/system/bluetooth/brfpatch/ |
H A D | brfpatch.c | 65 static int advance(char **buf) { argument 66 char *b = *buf; 71 *buf = b; 77 static void process_line(FILE *file_out, char *buf, char *buffer) { argument 78 FAILIF(strncmp(buf, "Send_", 5) != 0, "Not expecting: %s\n", buffer); 83 FAILIF(advance(&buf), "Could not find opcode in: %s\n", buffer); 84 FAILIF(sscanf(buf, "0x%04x\n", &opcode) != 1, 91 while (!advance(&buf)) { 92 switch (*buf) { 94 buf 178 char *buf; local [all...] |
/system/extras/tests/bionic/libc/common/ |
H A D | test_strptime.c | 27 char buf[255]; local 33 strftime(buf, sizeof(buf), "%H:%M", &tm); 34 puts(buf); 35 puts(!strcmp(buf, "11:14") ? "OK" : "FAILED"); 39 strftime(buf, sizeof(buf), "%H:%M:%S", &tm); 40 puts(buf); 41 puts(!strcmp(buf, "09:41:53") ? "OK" : "FAILED");
|
/system/extras/ext4_utils/ |
H A D | sparse_crc32.h | 17 u32 sparse_crc32(u32 crc, const void *buf, size_t size);
|
H A D | setup_fs.c | 14 char buf[256], path[128]; local 32 snprintf(buf, sizeof(buf), "/sys/fs/ext4/%s", blockdev); 33 if (access(buf, F_OK) == 0) { 37 snprintf(buf, sizeof(buf), "/dev/block/%s", blockdev); 39 if (!partition_wiped(buf)) { 52 execl(mkfs, mkfs, buf, NULL);
|
/system/core/libcutils/ |
H A D | partition_utils.c | 25 static int only_one_char(char *buf, int len, char c) argument 31 if (buf[i] != c) { 41 char buf[4096]; local 48 ret = read(fd, buf, sizeof(buf)); 51 if (ret != sizeof(buf)) { 56 if (only_one_char(buf, sizeof(buf), 0)) { 61 if (only_one_char(buf, sizeof(buf), [all...] |
H A D | uio.c | 27 const char* buf = vecs->iov_base; local 31 int ret = read( fd, buf, len ); 41 buf += ret; 54 const char* buf = (const char*)vecs->iov_base; local 58 int ret = write( fd, buf, len ); 68 buf += ret;
|
H A D | klog.c | 49 char buf[LOG_BUF_MAX]; local 56 vsnprintf(buf, LOG_BUF_MAX, fmt, ap); 57 buf[LOG_BUF_MAX - 1] = 0; 59 write(klog_fd, buf, strlen(buf));
|
/system/extras/tests/bionic/libc/glibc/assert/ |
H A D | test-assert.c | 15 char buf[160]; variable 75 fgets (buf, 160, stderr); 76 if (!strstr (buf, "1 == 2")) 79 fgets (buf, 160, stderr); 80 if (strstr (buf, "1 == 1")) 83 fgets (buf, 160, stderr); 84 if (strstr (buf, "2 == 3"))
|
/system/core/liblinenoise/ |
H A D | linenoise.c | 187 static void refreshLine(int fd, const char *prompt, char *buf, size_t len, size_t pos, size_t cols) { argument 192 buf++; 205 if (write(fd,buf,len) == -1) return; 214 static int linenoisePrompt(int fd, char *buf, size_t buflen, const char *prompt) { argument 221 buf[0] = '\0'; 250 memmove(buf+pos-1,buf+pos,len-pos); 253 buf[len] = '\0'; 254 refreshLine(fd,prompt,buf,len,pos,cols); 259 int aux = buf[po 364 linenoiseRaw(char *buf, size_t buflen, const char *prompt) argument 388 char buf[LINENOISE_MAX_LINE]; local [all...] |
/system/core/libzipfile/ |
H A D | centraldir.c | 22 read_le_int(const unsigned char* buf)
argument 24 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24);
28 read_le_short(const unsigned char* buf)
argument 30 return buf[0] | (buf[1] << 8);
34 read_central_dir_values(Zipfile* file, const unsigned char* buf, int len)
argument 43 file->disknum = read_le_short(&buf[ 64 read_central_directory_entry(Zipfile* file, Zipentry* entry, const unsigned char** buf, ssize_t* len) argument 185 const unsigned char* buf = file->buf; local [all...] |
H A D | private.h | 23 const unsigned char *buf;
member in struct:Zipfile 41 unsigned int read_le_int(const unsigned char* buf);
42 unsigned int read_le_short(const unsigned char* buf);
|
/system/extras/fatblock/ |
H A D | read.c | 28 static int buffer_read(char *buf, offset_t buf_len, char *out, argument 31 assert(buf); 47 memcpy(out, buf + off, len); 72 static int file_read(struct file *f, char *buf, offset_t off, offset_t len) argument 79 assert(buf); 114 ret = read(fd, buf, (size_t)len); 126 static int dir_read(struct dir *d, char *buf, offset_t off, offset_t len) argument 129 assert(buf); 131 return buffer_read((char*)d->entries, d->size, buf, off, len); 134 static int extent_read(struct fs *fs, struct extent *e, char *buf, argument 161 fs_read(struct fs *fs, char *buf, offset_t start, offset_t len) argument [all...] |
/system/core/toolbox/ |
H A D | start.c | 10 char buf[1024]; local
|
H A D | stop.c | 8 char buf[1024]; local
|
H A D | netstat.c | 77 static void addr2str(int af, const void *addr, unsigned port, char *buf) argument 79 if (inet_ntop(af, addr, buf, ADDR_LEN) == NULL) { 80 *buf = '\0'; 83 size_t len = strlen(buf); 85 snprintf(buf+len, ADDR_LEN-len, ":%d", port); 87 strncat(buf+len, ":*", ADDR_LEN-len-1); 96 char buf[BUFSIZ]; local 97 fgets(buf, BUFSIZ, fp); 98 while (fgets(buf, BUFSIZ, fp)){ 103 int n = sscanf(buf, " 123 char buf[BUFSIZ]; local [all...] |
H A D | notify.c | 27 char *buf; local 82 buf = malloc(width + 2); 116 read_len = read(ffd, buf, buflen); 118 if(read_len < buflen && buf[read_len-1] != '\n') { 119 buf[read_len] = '\n'; 123 buf[--read_len] = '\0'; 124 buf[--read_len] = '\n'; 125 buf[--read_len] = '.'; 126 buf[--read_len] = '.'; 127 buf[ [all...] |
/system/core/include/mincrypt/ |
H A D | sha.h | 44 } buf; member in struct:SHA_CTX 46 uint8_t buf[64]; member in struct:SHA_CTX
|
/system/core/libpixelflinger/tinyutils/ |
H A D | SharedBuffer.cpp | 54 SharedBuffer* buf = const_cast<SharedBuffer*>(this); local 55 if (buf->mSize == newSize) return buf; 56 buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize); 57 if (buf != NULL) { 58 buf->mSize = newSize; 59 return buf;
|
/system/extras/libublock/include/ublock/ |
H A D | ublock.h | 28 int (*read)(char *buf, uint64_t length, uint64_t offset); 29 int (*write)(const char *buf, uint64_t length, uint64_t offset);
|
/system/core/adb/ |
H A D | log_service.c | 31 void write_log_entry(int fd, struct logger_entry *buf); 45 unsigned char buf[LOGGER_ENTRY_MAX_LEN + 1] __attribute__((aligned(4))); local 46 struct logger_entry *entry = (struct logger_entry *) buf; 87 void write_log_entry(int fd, struct logger_entry *buf) argument 89 size_t size = sizeof(struct logger_entry) + buf->len; 91 writex(fd, buf, size);
|
H A D | remount_service.c | 41 char buf[4096]; local 47 buf[sizeof(buf) - 1] = '\0'; 48 size = adb_read(fd, buf, sizeof(buf) - 1); 51 token = strtok(buf, delims);
|
H A D | adb_client.c | 136 unsigned char buf[5]; local 139 if(readx(fd, buf, 4)) { 144 if(!memcmp(buf, "OKAY", 4)) { 148 if(memcmp(buf, "FAIL", 4)) { 151 buf[0], buf[1], buf[2], buf[3]); 155 if(readx(fd, buf, 4)) { 159 buf[ 230 char buf[100]; local 297 char buf[5]; local [all...] |
H A D | services.c | 81 unsigned char buf[4096]; local 93 if(readx(s, buf, xfer)) break; 94 if(writex(fd, buf, xfer)) break; 112 char buf[100]; local 116 snprintf(buf, sizeof(buf), "adbd is already running as root\n"); 117 writex(fd, buf, strlen(buf)); 122 snprintf(buf, sizeof(buf), "adb 139 char buf[100]; local 163 char buf[100]; local 177 char buf[100]; local [all...] |
H A D | commandline.c | 225 char buf[4096]; local 230 len = adb_read(fd, buf, 4096); 240 fwrite(buf, 1, len, stdout); 247 char* buf = (char*) malloc(BUFSIZE); local 253 len = adb_read(inFd, buf, BUFSIZE); 266 adb_write(outFd, buf, len); 270 free(buf); 276 unsigned char buf[1024]; local 288 r = unix_read(fdi, buf, 1024); 296 switch(buf[ 527 send_shellcommand(transport_type transport, char* serial, char* buf) argument 550 char buf[4096]; local 600 char buf[4096]; local 824 char buf[4096]; local 1349 char buf[4096]; local 1387 char buf[4096]; local [all...] |
/system/core/nexus/ |
H A D | SupplicantListener.cpp | 45 char buf[255]; local 46 size_t buflen = sizeof(buf); 50 if ((rc = wpa_ctrl_recv(mMonitor, buf, &nread))) { 55 buf[nread] = '\0'; 58 strncpy(buf, WPA_EVENT_TERMINATING " - signal 0 received", buflen-1); 59 buf[buflen-1] = '\0'; 63 SupplicantEvent *evt = mFactory->createEvent(buf, nread); 66 LOGW("Dropping unknown supplicant event '%s'", buf); 86 LOGW("Whoops - no handler available for event '%s'\n", buf);
|