Searched refs:len (Results 176 - 200 of 208) sorted by relevance

123456789

/system/core/libcutils/
H A Dstr_parms.c242 int len)
248 return strlcpy(val, value, len);
241 str_parms_get_str(struct str_parms *str_parms, const char *key, char *val, int len) argument
H A Dtzstrftime.c424 int len; local
428 len = isleap_sum(year, base) ?
442 (len % DAYSPERWEEK);
445 top += len;
H A Dconfig_utils.c118 int len; member in struct:__anon390
/system/netd/
H A DNatController.cpp50 size_t len = strnlen(cmd, 255); local
53 if (len == 255) {
/system/extras/ext4_utils/
H A Dsha1.c217 void SHA1Update(context, data, len)
220 u_int len;
228 if ((context->count[0] += len << 3) < j)
229 context->count[1] += (len>>29)+1;
231 if ((j + len) > 63) {
234 for ( ; i + 63 < len; i += 64)
240 (void)memcpy(&context->buffer[j], &data[i], len - i);
H A Dext4_utils.h107 s64 len; /* If set to 0, ask the block device for the size, member in struct:fs_info
H A Dext4.h65 unsigned int len; member in struct:ext4_allocation_request
297 __u64 len; member in struct:move_extent
/system/vold/
H A Dcryptfs.c91 off64_t len; local
112 len = ( ((off64_t)sb.s_blocks_count_hi << 32) + sb.s_blocks_count_lo) * block_size;
115 return (unsigned int) (len / 512);
1030 static inline int unix_read(int fd, void* buff, int len) argument
1033 do { ret = read(fd, buff, len); } while (ret < 0 && errno == EINTR);
1037 static inline int unix_write(int fd, const void* buff, int len) argument
1040 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR);
H A DCommandListener.cpp60 unsigned int len = strlen(argv[i]) + 1; // Account for space local
62 len += 2; // Account for {}
64 if (((p - buffer) + len) < (sizeof(buffer)-1)) {
/system/core/init/
H A Dproperty_service.c194 static void update_prop_info(prop_info *pi, const char *value, unsigned len) argument
197 memcpy(pi->value, value, len + 1);
198 pi->serial = (len << 24) | ((pi->serial + 1) & 0xffffff);
H A Dbuiltins.c59 int fd, ret, len; local
66 len = strlen(value);
69 ret = write(fd, value, len);
H A Ddevices.c508 static const char *parse_device_name(struct uevent *uevent, unsigned int len) argument
523 if(strlen(name) > len)
/system/core/debuggerd/
H A Dtombstone.c178 size_t len = strlen(threadname); local
179 if (len && threadname[len - 1] == '\n') {
180 threadname[len - 1] = '\0';
/system/core/liblog/
H A Dlogprint.c364 * starts at buf->msg+1+len(tag)+1
369 if (buf->len < 3) {
380 for (i = 1; i < buf->len; i++) {
397 msgEnd = buf->len - 1;
457 //fprintf(stderr, "--- type=%d (rem len=%d)\n", type, eventDataLen);
617 inCount = buf->len;
/system/core/sh/
H A Dexec.c297 int len; local
303 len = p - start + strlen(name) + 2; /* "2" is for '/' and '\0' */
304 while (stackblocksize() < len)
322 return stalloc(len);
H A Darith_lex.c295 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
1661 * @param len the number of bytes in the buffer pointed to by @a bytes.
1665 YY_BUFFER_STATE yy_scan_bytes (yyconst char * bytes, int len )
1673 n = len + 2;
1678 for ( i = 0; i < len; ++i )
1681 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
H A Djobs.c1221 int len; local
1225 len = sizeof(ps->cmd);
1227 len = sizeof(ps->cmd) / 10;
1228 cmdnleft = len;
1231 char *p = ps->cmd + len - 4;
H A Deval.c617 size_t len; local
618 if (sysctl(mib, 2, 0, &len, 0, 0) != -1 &&
619 (sys_path = ckmalloc(len + 5)) != NULL &&
620 sysctl(mib, 2, sys_path + 5, &len, 0, 0) != -1) {
/system/bluetooth/tools/
H A Dpipetest.c72 static int _write(int fd, char *buf, int len) { argument
76 ret = write(fd, buf, len);
/system/core/toolbox/
H A Dnewfs_msdos.c740 size_t len; local
748 len = strlen(_PATH_DEV);
750 if (!strncmp(s1, _PATH_DEV, len))
751 s1 += len;
755 if (!strncmp(s2, _PATH_DEV, len))
756 s2 += len;
1047 setstr(u_int8_t *dest, const char *src, size_t len) argument
1049 while (len--)
H A Dgetevent.c432 //printf("%d: %08x \"%s\"\n", event->wd, event->mask, event->len ? event->name : "");
433 if(event->len) {
442 event_size = sizeof(*event) + event->len;
/system/extras/tests/sdcard/
H A Dplot_sdcard.py68 factor = len(self.data) / length
211 x = numpy.arange(len(dataset.data), dtype='int_')
/system/core/charger/
H A Dcharger.c205 int len; local
216 len = min(sz, LAST_KMSG_MAX_SZ);
217 ptr = buf + (sz - len);
219 while (len > 0) {
220 int cnt = min(len, MAX_KLOG_WRITE_BUF_SZ);
233 len -= cnt;
/system/core/libnetutils/
H A Difc_utils.c249 int ifindex, s, len, ret; local
320 len = recv(s, buf, sizeof(buf), 0);
322 if (len < 0) {
328 if (!NLMSG_OK(nh, (unsigned) len) || nh->nlmsg_type != NLMSG_ERROR) {
/system/core/libpixelflinger/codeflinger/
H A DMIPSAssembler.cpp1292 int len = 99; local
1295 while (*s && len-- > 0) {
1299 for ( ; i>0; i--) {*t++ = ' '; len--; }
1312 int len = strlen(s); local
1313 s += len;
1314 for (int i = padded_len - len; i > 0; --i) {

Completed in 223 milliseconds

123456789