/system/core/adb/ |
H A D | adb_auth_host.c | 110 static void get_user_info(char *buf, size_t len) argument 127 ret = snprintf(buf, len, " %s@%s", username, hostname); 129 buf[len - 1] = '\0'; 264 struct stat buf; local 286 if (stat(android_dir, &buf)) { 298 struct stat buf; local 310 if (stat(path, &buf) == -1) { 326 struct stat buf; local 337 if (stat(path, &buf))
|
H A D | sysdeps.h | 115 extern int adb_read(int fd, void* buf, int len); 116 extern int adb_write(int fd, const void* buf, int len); 128 static __inline__ int unix_read(int fd, void* buf, size_t len) argument 130 return read(fd, buf, len); 135 static __inline__ int unix_write(int fd, const void* buf, size_t len) argument 137 return write(fd, buf, len); 373 static __inline__ int adb_read(int fd, void* buf, size_t len) argument 375 return TEMP_FAILURE_RETRY( read( fd, buf, len ) ); 381 static __inline__ int adb_write(int fd, const void* buf, size_t len) argument 383 return TEMP_FAILURE_RETRY( write( fd, buf, le [all...] |
H A D | transport.c | 910 static void add_qual(char **buf, size_t *buf_size, argument 916 if (!buf || !*buf || !buf_size || !*buf_size || !qual || !*qual) 919 len = snprintf(*buf, *buf_size, "%s%n%s", prefix, &prefix_len, qual); 923 for (cp = *buf + prefix_len; cp < *buf + len; cp++) { 930 *buf += len; 933 static size_t format_transport(atransport *t, char *buf, size_t bufsize, argument 941 return snprintf(buf, bufsize, "%s\t%s\n", serial, statename(t)); 945 len = snprintf(buf, remainin 961 list_transports(char *buf, size_t bufsize, int long_listing) argument [all...] |
/system/core/libmemtrack/ |
H A D | memtrack_test.c | 28 static int getprocname(pid_t pid, char *buf, int len) { argument 49 if (fgets(buf, len, f) == NULL) { 65 if (strlcpy(buf, unknown_cmdline, (size_t)len) >= (size_t)len) {
|
/system/extras/fatblock/ |
H A D | fatblock.c | 52 static int read_callback(char *buf, uint64_t length, uint64_t offset) argument 57 result = fs_read(&fs, buf, offset, length); 66 static int write_callback(const char *buf, uint64_t length, uint64_t offset) argument
|
H A D | fatblock.h | 68 int fs_read(struct fs *fs, char *buf, offset_t start, offset_t len);
|
/system/core/healthd/ |
H A D | BatteryMonitor.h | 53 int readFromFile(const String8& path, char* buf, size_t size);
|
/system/core/include/mincrypt/ |
H A D | hash-internal.h | 26 uint8_t buf[64]; member in struct:HASH_CTX
|
/system/core/libmincrypt/ |
H A D | sha.c | 41 uint8_t* p = ctx->buf; 114 ctx->buf[i++] = *p++; 124 uint8_t *p = ctx->buf; 145 return ctx->buf;
|
/system/core/libsparse/ |
H A D | output_file.h | 39 int read_all(int fd, void *buf, size_t len);
|
/system/core/libutils/ |
H A D | LinearAllocator.cpp | 95 void* operator new(size_t size, void* buf) { return buf; } argument 199 void* buf = malloc(pageSize); local 200 return new (buf) Page();
|
H A D | RefBase.cpp | 188 char buf[128]; local 189 sprintf(buf, "Strong references on RefBase %p (weakref_type %p):\n", mBase, this); 190 text.append(buf); 192 sprintf(buf, "Weak references on RefBase %p (weakref_type %p):\n", mBase, this); 193 text.append(buf); 289 char buf[128]; local 292 sprintf(buf, "\t%c ID %p (ref %d):\n", 294 out->append(buf);
|
/system/core/libzipfile/ |
H A D | zipfile.c | 17 file->buf = data; 116 decompress_zipentry(zipentry_t e, void* buf, int bufsize) argument 122 memcpy(buf, entry->data, entry->uncompressedSize); 125 return uninflate(buf, bufsize, entry->data, entry->compressedSize);
|
/system/core/sh/ |
H A D | output.h | 44 char *buf; member in struct:output
|
H A D | error.c | 133 if (output.nextc != output.buf && output.nextc[-1] == '\n') 358 static char buf[12]; local 364 fmtstr(buf, sizeof buf, "error %d", e); 365 return buf;
|
/system/extras/tests/include/ |
H A D | testUtil.h | 58 void testXDump(const void *buf, size_t size);
|
/system/netd/ |
H A D | InterfaceController.cpp | 171 char buf[16]; local 172 int size = sizeof(buf); 175 int success = readFile(path, buf, &size); 177 *mtu = atoi(buf);
|
/system/core/libnetutils/ |
H A D | dhcpclient.c | 239 static void hex2str(char *buf, const unsigned char *array, int len) argument 242 char *cp = buf; 255 char buf[2048]; local 281 hex2str(buf, msg->chaddr, c); 282 ALOGD("chaddr = {%s}", buf); 320 if ((unsigned int)optsz < sizeof(buf) - 1) { 323 n = sizeof(buf) - 1; 325 memcpy(buf, &x[2], n); 326 buf[n] = '\0'; 328 hex2str(buf, [all...] |
/system/media/camera/docs/ |
H A D | metadata_helpers.py | 242 buf = _context_buf 244 cur_pos = buf.tell() 245 while buf.tell() > 0 and buf.read(1) != '\n': 246 buf.seek(cur_pos - x) 249 buf.seek(cur_pos)
|
H A D | metadata_parser_xml.py | 254 buf = StringIO.StringIO() 255 metadata_helpers._context_buf = buf 264 ctx = Context(buf, metadata=self.metadata, **helpers) 267 tpl_data = buf.getvalue() 269 buf.close()
|
/system/core/fastboot/ |
H A D | fastboot.c | 625 struct fastboot_buffer *buf) 641 buf->type = FB_BUFFER_SPARSE; 642 buf->data = s; 647 buf->type = FB_BUFFER; 648 buf->data = data; 649 buf->sz = sz; 656 struct fastboot_buffer *buf) 665 return load_buf_fd(usb, fd, buf); 668 static void flash_buf(const char *pname, struct fastboot_buffer *buf) argument 672 switch (buf 624 load_buf_fd(usb_handle *usb, int fd, struct fastboot_buffer *buf) argument 655 load_buf(usb_handle *usb, const char *fname, struct fastboot_buffer *buf) argument 690 struct fastboot_buffer buf; local 717 struct fastboot_buffer buf; local 791 struct fastboot_buffer buf; local [all...] |
/system/core/toolbox/ |
H A D | dd.c | 566 bwrite(int fd, const void *buf, size_t len) argument 573 rv = write(fd, buf, len); 961 char buf[100]; local 973 (void)snprintf(buf, sizeof(buf), 977 (void)write(STDERR_FILENO, buf, strlen(buf)); 979 (void)snprintf(buf, sizeof(buf), "%llu odd length swab %s\n", 982 (void)write(STDERR_FILENO, buf, strle [all...] |
H A D | iftop.c | 102 char buf[PAGE_SIZE]; local 112 ret = read(fd, buf, sizeof(buf) - 1); 120 buf[ret] = '\0'; 123 p = strchr(buf, '\n');
|
/system/security/keystore/ |
H A D | IKeystoreService.cpp | 88 const void* buf = reply.readInplace(ulen); local 91 memcpy(*item, buf, ulen); 114 void* buf = data.writeInplace(itemLength); local 115 memcpy(buf, item, itemLength); 303 void* buf = data.writeInplace(keyLength); local 304 memcpy(buf, item->data(), keyLength); 327 void* buf = data.writeInplace(keyLength); local 328 memcpy(buf, key, keyLength); 352 void* buf = data.writeInplace(inLength); local 353 memcpy(buf, i 386 void* buf; local 424 const void* buf = reply.readInplace(ulen); local 608 void* buf = reply->writeInplace(outSize); local 764 void* buf = reply->writeInplace(outSize); local 807 void* buf = reply->writeInplace(outSize); local [all...] |
/system/core/libion/ |
H A D | ion_test.c | 110 char buf[CMSG_SPACE(sizeof(int))]; local 114 .msg_control = buf, 115 .msg_controllen = sizeof buf, 165 .msg_control = buf, 166 .msg_controllen = sizeof buf,
|