/system/core/libion/ |
H A D | ion.c | 60 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask, argument 65 .len = len, 140 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask, argument 145 ret = ion_alloc(fd, len, align, heap_mask, flags, &handle);
|
/system/core/libmincrypt/ |
H A D | sha.c | 107 void SHA_update(SHA_CTX* ctx, const void* data, int len) { argument 111 ctx->count += len; 113 while (len--) { 149 const uint8_t* SHA_hash(const void* data, int len, uint8_t* digest) { argument 152 SHA_update(&ctx, data, len);
|
/system/core/logd/ |
H A D | libaudit.c | 211 ssize_t len; local 231 len = TEMP_FAILURE_RETRY(recvfrom(fd, rep, sizeof(*rep), flags, 237 if (len < 0) { 259 if (!NLMSG_OK(&rep->nlh, (size_t)len)) { 260 rc = (len == sizeof(*rep)) ? -EFBIG : -EBADE;
|
H A D | LogBufferElement.h | 38 const char *msg, unsigned short len);
|
/system/core/toolbox/ |
H A D | netstat.c | 83 size_t len = strlen(buf); local 85 snprintf(buf+len, ADDR_LEN-len, ":%d", port); 87 strncat(buf+len, ":*", ADDR_LEN-len-1);
|
H A D | nandread.c | 35 loff_t start = 0, len = 0; local 68 len = strtoll(optarg, NULL, 0); 83 " -L <len> Length (default 0)\n" 189 end = len ? (start + len) : mtdinfo.size; 232 int len = ecclayout.oobfree[i].length; local 233 if (oob_fixed + len > oobbuf.ptr) 234 len = oobbuf.ptr - oob_fixed; 235 if (len) { 236 memcpy(oob_fixed, oobbuf.ptr + ecclayout.oobfree[i].offset, len); [all...] |
/system/core/logcat/ |
H A D | logcat.cpp | 117 size_t size = buf->len(); 134 //printf(">>> pri=%d len=%d msg='%s'\n", 595 int len; local 598 len = q - p; 600 len = strlen(p); 602 len = snprintf( devname, sizeof(devname), "/dev/%.*s", len, p ); 603 fprintf(stderr, "logcat using %s (%d)\n", devname, len); 604 if (len < (int)sizeof(devname)) { 752 size_t len local 766 size_t len = 8192; local [all...] |
/system/core/liblog/ |
H A D | log_read.c | 279 size_t len; local 292 len = strlen(buf) + 1; 293 ret = TEMP_FAILURE_RETRY(write(sock, buf, len)); 298 len = buf_size; 300 while ((ret = TEMP_FAILURE_RETRY(read(sock, cp, len))) > 0) { 303 if (((size_t)ret == len) || (buf_size < PAGE_SIZE)) { 307 len -= ret; 328 ret += buf_size - len; 423 char *buf, size_t len) 427 size_t remaining = len; 422 android_logger_get_statistics(struct logger_list *logger_list, char *buf, size_t len) argument 444 android_logger_get_prune_list(struct logger_list *logger_list __unused, char *buf, size_t len) argument 450 android_logger_set_prune_list(struct logger_list *logger_list __unused, char *buf, size_t len) argument [all...] |
/system/core/include/private/ |
H A D | android_filesystem_config.h | 285 int len = strlen(pc->prefix); local 287 if(plen < len) continue; 288 if(!strncmp(pc->prefix, path, len)) break; 292 if (pc->prefix[len -1] == '*') { 293 if(!strncmp(pc->prefix, path, len - 1)) break; 294 } else if (plen == len){ 295 if(!strncmp(pc->prefix, path, len)) break;
|
/system/core/libcutils/ |
H A D | sched_policy.c | 159 size_t len; local 179 len = strlen(grp); 180 grp[len-1] = '\0'; /* Drop the trailing '\n' */ 182 if (bufLen <= len) { 183 len = bufLen - 1; 185 strncpy(buf, grp, len); 186 buf[len] = '\0';
|
H A D | record_stream.c | 76 size_t len; local 84 len = ntohl(*((uint32_t *)p_begin)); 86 p_ret = p_begin + HEADER_SIZE + len;
|
/system/core/fastboot/ |
H A D | usb_osx.c | 475 int usb_read(usb_handle *h, void *data, int len) { argument 477 UInt32 numBytes = len; 479 if (len == 0) { 509 int usb_write(usb_handle *h, const void *data, int len) { argument 512 if (len == 0) { 532 h->interface, h->bulkOut, (void *)data, len); 539 int lenRemaining = len; 557 if(!(len & h->zero_mask)) { 569 return len;
|
/system/extras/procrank/ |
H A D | procrank.c | 36 static int getprocname(pid_t pid, char *buf, int len); 62 const int len = read(fd, buffer, sizeof(buffer)-1); local 65 if (len < 0) { 69 buffer[len] = 0; 358 * buf of length len. The size of the buffer must be greater than zero to get 370 static int getprocname(pid_t pid, char *buf, int len) { argument 376 if (len <= 0) { 391 if (fgets(buf, len, f) == NULL) { 407 if (strlcpy(buf, unknown_cmdline, (size_t)len) >= (size_t)len) { [all...] |
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
H A D | grep.h | 91 size_t len; member in struct:str 103 size_t len; member in struct:__anon246 157 char *grep_fgetln(struct file *f, size_t *len);
|
/system/core/adb/ |
H A D | adb_auth_client.c | 85 if (key->key.len != RSANUMWORDS) { 86 D("%s: Invalid key len %d\n", file, key->key.len); 191 void adb_auth_confirm_key(unsigned char *key, size_t len, atransport *t) argument 207 if (key[len - 1] != '\0') {
|
H A D | usb_linux.c | 311 static int usb_bulk_write(usb_handle *h, const void *data, int len) argument 323 urb->buffer_length = len; 364 static int usb_bulk_read(usb_handle *h, void *data, int len) argument 375 urb->buffer_length = len; 436 int usb_write(usb_handle *h, const void *_data, int len) argument 447 if(!(len & h->zero_mask)) { 452 while(len > 0) { 453 int xfer = (len > 4096) ? 4096 : len; 462 len 474 usb_read(usb_handle *h, void *_data, int len) argument [all...] |
/system/core/debuggerd/ |
H A D | backtrace.cpp | 77 size_t len = strlen(threadname); local 78 if (len && threadname[len - 1] == '\n') { 79 threadname[len - 1] = '\0';
|
/system/core/include/cutils/ |
H A D | str_parms.h | 44 char *out_val, int len);
|
/system/core/libion/kernel-headers/linux/ |
H A D | ion.h | 46 size_t len; member in struct:ion_allocation_data
|
/system/core/libion/original-kernel-headers/linux/ |
H A D | ion.h | 77 * @len: size of the allocation 87 size_t len; member in struct:ion_allocation_data
|
/system/core/libmincrypt/test/ |
H A D | rsa_test.c | 75 .len = 64, 748 unsigned char* parsehex(char* str, int* len) { argument 753 *len = 0; 791 ++*len;
|
/system/extras/ext4_utils/ |
H A D | contents.h | 38 u32 make_file(const char *filename, u64 len);
|
H A D | ext4_sb.c | 44 info->len = (uint64_t)info->block_size * len_blocks;
|
/system/extras/libpagemap/include/pagemap/ |
H A D | pagemap.h | 88 * Length of the array (in sizeof(pid_t) units) is returned through *len. 90 int pm_kernel_pids(pm_kernel_t *ker, pid_t **pids_out, size_t *len); 157 uint64_t **range_out, size_t *len); 172 int pm_process_maps(pm_process_t *proc, pm_map_t ***maps_out, size_t *len); 191 int pm_map_pagemap(pm_map_t *map, uint64_t **pagemap_out, size_t *len);
|
/system/media/camera/docs/ |
H A D | metadata_model_test.py | 39 self.assertEquals(1, len(combined_ins)) 40 self.assertEquals(1, len(combined_ent)) 119 self.assertEquals(1, len(combined_ins)) 120 self.assertEquals(1, len(combined_ent))
|