/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/core/libsuspend/ |
H A D | autosuspend_wakeup_count.c | 43 char buf[80]; local 54 strerror_r(errno, buf, sizeof(buf)); 55 ALOGE("Error reading from %s: %s\n", SYS_POWER_WAKEUP_COUNT, buf); 67 strerror_r(errno, buf, sizeof(buf)); 68 ALOGE("Error waiting on semaphore: %s\n", buf); 75 strerror_r(errno, buf, sizeof(buf)); 76 ALOGE("Error writing to %s: %s\n", SYS_POWER_WAKEUP_COUNT, buf); 98 char buf[80]; local 117 char buf[80]; local 142 char buf[80]; local [all...] |
H A D | autosuspend_autosleep.c | 38 char buf[80]; local 45 strerror_r(errno, buf, sizeof(buf)); 46 ALOGE("Error writing to %s: %s\n", SYS_POWER_AUTOSLEEP, buf); 60 char buf[80]; local 67 strerror_r(errno, buf, sizeof(buf)); 68 ALOGE("Error writing to %s: %s\n", SYS_POWER_AUTOSLEEP, buf); 88 char buf[80]; local 92 strerror_r(errno, buf, sizeo [all...] |
H A D | autosuspend_earlysuspend.c | 41 char buf[80]; local 48 strerror_r(errno, buf, sizeof(buf)); 49 ALOGE("Error writing to %s: %s\n", EARLYSUSPEND_SYS_POWER_STATE, buf); 63 char buf[80]; local 70 strerror_r(errno, buf, sizeof(buf)); 71 ALOGE("Error writing to %s: %s\n", EARLYSUSPEND_SYS_POWER_STATE, buf); 90 char buf[80]; local 106 strerror_r(errno, buf, sizeo [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/libsysutils/src/ |
H A D | SocketClient.cpp | 58 char *buf; local 63 ret = asprintf(&buf, "%d %d %s (%s)", code, getCmdNum(), msg, strerror(errno)); 65 ret = asprintf(&buf, "%d %s (%s)", code, msg, strerror(errno)); 69 ret = asprintf(&buf, "%d %d %s", code, getCmdNum(), msg); 71 ret = asprintf(&buf, "%d %s", code, msg); 76 ret = sendMsg(buf); 77 free(buf); 86 char buf[8]; local 88 snprintf(buf, 4, "%.3d", code); 91 memcpy(buf 105 char buf[4]; local [all...] |
/system/core/libcorkscrew/ |
H A D | demangle.c | 24 extern char *__cxa_demangle (const char *mangled, char *buf, size_t *len,
|
/system/core/toolbox/ |
H A D | start.c | 10 char buf[1024]; local
|
H A D | stop.c | 8 char buf[1024]; local
|
/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 | commandline.c | 227 char buf[4096]; local 232 len = adb_read(fd, buf, 4096); 242 fwrite(buf, 1, len, stdout); 249 char* buf = (char*) malloc(BUFSIZE); local 255 len = adb_read(inFd, buf, BUFSIZE); 268 adb_write(outFd, buf, len); 272 free(buf); 278 unsigned char buf[1024]; local 290 r = unix_read(fdi, buf, 1024); 298 switch(buf[ 375 char buf[4096]; local 606 send_shellcommand(transport_type transport, char* serial, char* buf) argument 629 char buf[4096]; local 683 char buf[4096]; local 909 char buf[4096]; local 1443 char buf[4096]; local 1481 char buf[4096]; local [all...] |