Searched refs:len (Results 151 - 175 of 227) sorted by relevance

12345678910

/system/vold/
H A Dfstrim.c100 range.len = ULLONG_MAX;
106 SLOGI("Trimmed %llu bytes on %s\n", range.len, fstab->recs[i].mount_point);
H A DDevmapper.cpp133 int Devmapper::lookupActive(const char *name, char *ubuffer, size_t len) { argument
162 snprintf(ubuffer, len, "/dev/block/dm-%u", minor);
167 unsigned int numSectors, char *ubuffer, size_t len) {
218 snprintf(ubuffer, len, "/dev/block/dm-%u", minor);
166 create(const char *name, const char *loopFile, const char *key, unsigned int numSectors, char *ubuffer, size_t len) argument
H A Dcryptfs.h151 int cryptfs_getfield(char *fieldname, char *value, int len);
/system/core/logcat/
H A Dlogcat.cpp152 size_t size = sizeof(logger_entry) + buf->len;
170 //printf(">>> pri=%d len=%d msg='%s'\n",
299 else if (entry->entry.len != ret - sizeof(struct logger_entry)) {
301 entry->entry.len, ret - sizeof(struct logger_entry));
305 entry->entry.msg[entry->entry.len] = '\0';
632 int len; local
635 len = q - p;
637 len = strlen(p);
639 len = snprintf( devname, sizeof(devname), "/dev/%.*s", len,
[all...]
/system/core/liblog/
H A Dlogd_write.c264 int __android_log_bwrite(int32_t tag, const void *payload, size_t len) argument
271 vec[1].iov_len = len;
282 size_t len)
291 vec[2].iov_len = len;
281 __android_log_btwrite(int32_t tag, char type, const void *payload, size_t len) argument
/system/core/libnetutils/
H A Dpacket.c115 udp.len = htons(sizeof(udp) + size);
123 temp = udp.len;
220 dhcp_size = ntohs(packet.udp.len) - sizeof(packet.udp);
228 packet.ip.tot_len = packet.udp.len;
/system/core/toolbox/
H A Dmount.c67 int len = strlen(s); local
71 len++; /* +1 for ',' */
72 newlen = extra->used_size + len;
91 extra->used_size += len;
H A Dschedtop.c82 int len; local
86 len = read(fd, line, line_size - 1);
88 if (len <= 0)
90 line[len] = '\0';
/system/core/adb/
H A Dusb_osx.c452 int usb_write(usb_handle *handle, const void *buf, int len) argument
456 if (!len)
474 handle->interface, handle->bulkOut, (void *)buf, len);
478 if(!(len & handle->zero_mask)) {
492 int usb_read(usb_handle *handle, void *buf, int len) argument
495 UInt32 numBytes = len;
497 if (!len) {
H A Dadb.c118 int len, tagn; local
124 len = q - p;
130 if (len == taglen && !memcmp(tags[tagn].tag, p, len) )
301 size_t len;
303 len = snprintf(buf, remaining, "%s::", adb_device_banner);
304 remaining -= len;
305 buf += len;
309 len = snprintf(buf, remaining, "%s=%s;", cnxn_props[i], value);
310 remaining -= len;
775 int len = format_listener(l, buf, buflen); local
[all...]
H A Dadb.h63 unsigned len; member in struct:apacket
445 int usb_write(usb_handle *h, const void *data, int len);
446 int usb_read(usb_handle *h, void *data, int len);
H A Dcommandline.c245 int len; local
249 len = adb_read(fd, buf, 4096);
250 D("read_and_dump(): post adb_read(fd=%d): len=%d\n", fd, len);
251 if(len == 0) {
255 if(len < 0) {
259 fwrite(buf, 1, len, stdout);
267 int len; local
272 len = adb_read(inFd, buf, BUFSIZE);
273 if (len
[all...]
/system/core/init/
H A Dbuiltins.c58 int fd, ret, len; local
65 len = strlen(value);
68 ret = write(fd, value, len);
618 int len = 0; local
630 len = 8;
633 len = 6;
639 if (command[len] == ',') {
640 reboot_target = &command[len + 1];
641 } else if (command[len] == '\0') {
644 ERROR("powerctl: unrecognized reboot target '%s'\n", &command[len]);
[all...]
/system/core/include/log/
H A Dlog.h491 ((void) 0) /* not implemented -- must combine len with string */
529 #define android_bWriteLog(tag, payload, len) \
530 __android_log_bwrite(tag, payload, len)
531 #define android_btWriteLog(tag, type, payload, len) \
532 __android_log_btwrite(tag, type, payload, len)
537 #define android_write1Log(str,len) do{}while (0)
/system/security/keystore/
H A DIKeystoreService.cpp32 KeystoreArg::KeystoreArg(const void* data, size_t len) argument
33 : mData(data), mSize(len) {
85 ssize_t len = reply.readInt32(); local
86 if (len >= 0 && (size_t) len <= reply.dataAvail()) {
87 size_t ulen = (size_t) len;
360 ssize_t len = reply.readInt32(); local
361 if (len >= 0 && (size_t) len <= reply.dataAvail()) {
362 size_t ulen = (size_t) len;
421 ssize_t len = reply.readInt32(); local
[all...]
/system/core/libutils/
H A DUnicode.cpp201 size_t len = utf32_codepoint_utf8_length(*cur_utf32); local
202 utf32_codepoint_to_utf8((uint8_t *)cur, *cur_utf32++, len);
203 cur += len;
352 const size_t len = utf32_codepoint_utf8_length(utf32); local
353 utf32_codepoint_to_utf8((uint8_t*)cur, utf32, len);
354 cur += len;
516 //printf("Char at %p: len=%d, utf-16=%p\n", src, length, (void*)result);
524 /* Validate that the UTF-8 is the correct len */
/system/core/libnl_2/
H A Dattr.c123 int len, struct nla_policy *policy)
131 nla_for_each_attr(pos, head, len, rem) {
122 nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, int len, struct nla_policy *policy) argument
/system/core/include/diskconfig/
H A Ddiskconfig.h102 uint32_t len; member in struct:write_list
/system/core/sh/
H A Dinput.c144 pfgets(char *line, int len) argument
147 int nleft = len;
386 pushstring(char *s, int len, void *ap) argument
391 /*dprintf("*** calling pushstring: %s, %d\n", s, len);*/
405 parsenleft = len;
H A Dvar.c225 int len; local
246 len = namelen + 2; /* 2 is space for '=' and '\0' */
250 len += strlen(val);
252 d = nameeq = ckmalloc(len);
800 int len; local
807 len = p - name;
810 *lenp = len;
816 if (vp->name_len != len)
818 if (memcmp(vp->text, name, len) != 0)
H A Dexpand.c1274 int len; local
1277 len = 0;
1279 len++;
1280 return msort(str, len);
1285 msort(struct strlist *list, int len) argument
1292 if (len <= 1)
1294 half = len >> 1;
1302 p = msort(p, len - half); /* sort second half */
1545 size_t len; local
1550 for (i = 1, len
[all...]
/system/core/toolbox/cp/
H A Dcp.c298 size_t len = strlen(*src); local
299 while (len-- > 1 && (*src)[len] == '/')
300 (*src)[len] = '\0';
/system/extras/memtrack/
H A Dmemtrack.cpp176 int len; local
182 len = strlen(dir_data->d_name);
185 for (int i = 0; i < len; i++) {
193 getInformation(pid, dir_data->d_name, len);
/system/extras/tests/sdcard/
H A Dsysutil.cpp160 const size_t len = strlen(start); local
161 size_t size = len;
195 filename, size, len);
197 return len - size;
/system/core/fs_mgr/
H A Dfs_mgr_verity.c75 if (key->len != RSANUMWORDS) {
76 ERROR("Invalid key length %d\n", key->len);
144 *device_size = info.len;

Completed in 489 milliseconds

12345678910