/packages/apps/IM/src/com/android/im/app/ |
IntTrie.java | 30 final int len = key.length(); local 34 while (index < len) { 69 final int len = dictionary.length; local 71 if (len != values.length) { 77 for (int i = 0; i < len; i++) {
|
/system/core/libdiskconfig/ |
write_lst.c | 39 item->len = data_len; 79 if (write(fd, lst->data, lst->len) != (int)lst->len) { 80 LOGE("Failed writing %u bytes at position %lld.", lst->len, 85 LOGI("Would write %d bytes @ offset %lld.", lst->len, lst->offset);
|
/external/tcpdump/ |
print-wb.c | 183 wb_id(const struct pkt_id *id, u_int len) 192 if (len < sizeof(*id) || (u_char *)(id + 1) > snapend) 194 len -= sizeof(*id); 205 len -= sizeof(*io) * nid; 208 if ((u_char *)cp + len <= snapend) { 210 (void)fn_print((u_char *)cp, (u_char *)cp + len); 228 wb_rreq(const struct pkt_rreq *rreq, u_int len) 231 if (len < sizeof(*rreq) || (u_char *)(rreq + 1) > snapend) 244 wb_preq(const struct pkt_preq *preq, u_int len) 247 if (len < sizeof(*preq) || (u_char *)(preq + 1) > snapend [all...] |
/bootable/bootloader/legacy/nandwrite/ |
nandwrite.c | 44 void verify_flash(ptentry *p, void *addr, unsigned len, int extra) 51 while(len > 0) { 60 len -= FLASH_PAGE_SIZE; 63 len -= extra; 70 void handle_flash(const char *name, unsigned addr, unsigned len) 75 dprintf("image @ %x (%d bytes)\n", addr, len); 89 dprintf("erasing flash @ %d (len=%d)\n", p->start, p->length); 92 if(len) { 96 r = flash_write(p, 64, (void*) addr, len); 98 len = (len + FLASH_PAGE_SIZE - 1) & (~(FLASH_PAGE_SIZE-1)) [all...] |
/external/dbus/dbus/ |
dbus-marshal-validate.c | 46 * @param len length of typecodes 52 int len) 75 _dbus_assert (type_pos < _DBUS_INT32_MAX - len); 76 _dbus_assert (len >= 0); 79 if (len > DBUS_MAXIMUM_SIGNATURE_LENGTH) 87 end = _dbus_string_get_const_data_len (type_str, type_pos + len, 0); 484 /* 1 byte sig len, sig typecodes, align to 625 * @param len length of values after value_pos 635 int len) 642 _dbus_assert (len >= 0) [all...] |
/external/icu4c/test/cintltst/ |
uenumtst.c | 24 static char* quikU2C(const UChar* str, int32_t len) { 25 u_UCharsToChars(str, quikBuf, len); 26 quikBuf[len] = 0; 208 int32_t len = 0; local 212 while ((string = uenum_next(en, &len, &status))) { 213 log_verbose("read \"%s\", length %i\n", string, len); 216 while ((uString = uenum_unext(en, &len, &status))) { 217 log_verbose("read \"%s\" (UChar), length %i\n", quikU2C(uString, len), len); 279 int32_t len = 0 local [all...] |
/external/iproute2/include/linux/ |
netlink.h | 78 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) 80 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN)) 81 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 83 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 85 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && [all...] |
/external/ipsec-tools/src/racoon/ |
plog.c | 103 int reslen, len; local 114 len = strftime(p, reslen, "%Y-%m-%d %T: ", tm); 115 p += len; 116 reslen -= len; 120 len = snprintf(p, reslen, "%s: ", ptab[pri].name); 121 if (len >= 0 && len < reslen) { 122 p += len; 123 reslen -= len; 178 plogdump(pri, data, len) [all...] |
/external/opencore/protocols/sdp/parser/src/ |
sdp_mediaparser_registry_populator_pvaddon_incl.cpp | 119 memFrag.len = (uint32)rfc3640.size(); 123 memFrag.len = (uint32)pcmu.size(); 127 memFrag.len = (uint32)pcma.size(); 131 memFrag.len = (uint32)rmV.size(); 135 memFrag.len = (uint32)rmA.size(); 139 memFrag.len = (uint32)h264.size(); 143 memFrag.len = (uint32)still.size(); 147 memFrag.len = (uint32)author_m4v.size(); 151 memFrag.len = (uint32)m4v.size(); 155 memFrag.len = (uint32)h263.size() [all...] |
/external/openssl/crypto/aes/ |
aes_cbc.c | 68 unsigned long len = length; local 76 while (len >= AES_BLOCK_SIZE) { 81 len -= AES_BLOCK_SIZE; 85 if (len) { 86 for(n=0; n < len; ++n) 88 for(n=len; n < AES_BLOCK_SIZE; ++n) 95 while (len >= AES_BLOCK_SIZE) { 100 len -= AES_BLOCK_SIZE; 104 if (len) { 106 for(n=0; n < len; ++n [all...] |
/external/qemu/android/utils/ |
bufprint.c | 41 int len = vsnprintf( buffer, buffer_end - buffer, fmt, args ); local 42 if (len < 0 || buffer+len >= buffer_end) { 47 return buffer + len; 80 int len; local 83 len = readlink("/proc/self/exe", path, sizeof(path)); 84 if (len <= 0 || len >= (int)sizeof(path)) goto Fail; 85 path[len] = 0; 138 int len; local [all...] |
/external/srec/srec/Nametag/src/ |
NametagImpl.c | 35 size_t len; local 44 rc = result->getSize(result, &len); 50 if (len < 1) 58 len = MAX_STRING_LEN; 60 rc = result->getValue(result, 0, L("meaning"), transcription, &len); 69 len = LSTRLEN(transcription)+1; 70 rc = SR_NametagCreateFromValue(id, transcription, (int)len, self); 83 len = LSTRLEN(L("ph_")); 87 if (LSTRNCMP(p, L("ph_"), len) != 0) 93 p += len; [all...] |
/system/core/libcutils/ |
strdup16to8.c | 29 extern size_t strnlen16to8(const char16_t* utf16Str, size_t len) 34 * potentially be as big as 3*len, which will overflow 35 * for len > SIZE_MAX/3. 43 * dst = malloc(strnlen16to8(utf16,len)+1) 55 /* Fast path for the usual case where 3*len is < SIZE_MAX-1. 57 if (len < (SIZE_MAX-1)/3) { 58 while (len--) { 72 while (len--) { 102 * not just "len". 107 extern char* strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len) 146 size_t len; local [all...] |
/external/ppp/pppd/ |
upap.c | 321 int len; local 334 GETSHORT(len, inp); 335 if (len < UPAP_HEADERLEN) { 339 if (len > l) { 343 len -= UPAP_HEADERLEN; 350 upap_rauthreq(u, inp, id, len); 354 upap_rauthack(u, inp, id, len); 358 upap_rauthnak(u, inp, id, len); 371 upap_rauthreq(u, inp, id, len) 375 int len; 619 int code, id, len; local [all...] |
/external/qemu/distrib/zlib-1.2.3/ |
inftrees.c | 40 unsigned len; /* a code's length in bits */ local 107 for (len = 0; len <= MAXBITS; len++) 108 count[len] = 0; 132 for (len = 1; len <= MAXBITS; len++) { 134 left -= count[len]; 142 for (len = 1; len < MAXBITS; len++ [all...] |
inffast.c | 42 state->mode == LEN 50 LEN -- ran out of enough output space or enough available input 93 unsigned len; /* match length, unused bytes */ local 140 len = (unsigned)(this.val); 147 len += (unsigned)hold & ((1U << op) - 1); 151 Tracevv((stderr, "inflate: length %u\n", len)); 197 if (op < len) { /* some from window */ 198 len -= op; 208 if (op < len) { /* some from end of window */ 209 len -= op [all...] |
/external/zlib/contrib/infback9/ |
inftree9.c | 40 unsigned len; /* a code's length in bits */ local 109 for (len = 0; len <= MAXBITS; len++) 110 count[len] = 0; 126 for (len = 1; len <= MAXBITS; len++) { 128 left -= count[len]; 136 for (len = 1; len < MAXBITS; len++ [all...] |
/external/zlib/ |
inftrees.c | 40 unsigned len; /* a code's length in bits */ local 107 for (len = 0; len <= MAXBITS; len++) 108 count[len] = 0; 132 for (len = 1; len <= MAXBITS; len++) { 134 left -= count[len]; 142 for (len = 1; len < MAXBITS; len++ [all...] |
inffast.c | 42 state->mode == LEN 50 LEN -- ran out of enough output space or enough available input 93 unsigned len; /* match length, unused bytes */ local 140 len = (unsigned)(this.val); 147 len += (unsigned)hold & ((1U << op) - 1); 151 Tracevv((stderr, "inflate: length %u\n", len)); 197 if (op < len) { /* some from window */ 198 len -= op; 208 if (op < len) { /* some from end of window */ 209 len -= op [all...] |
/external/zlib/examples/ |
gzlog.c | 29 unsigned long len; /* uncompressed length (modulo 2^32) */ member in struct:__anon7061 214 log->len = make_ulg(temp + 9); 226 int gzlog_write(void *obj, char *data, size_t len) 240 if (some > len) 241 some = len; 245 log->len += some; 246 len -= some; 262 } while (len); 270 size_t len, max; local 276 len = log->last_off - log->mark_off [all...] |
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
ndfdic.c | 74 static NJ_UINT16 convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, NJ_UINT16 size); 151 static NJ_UINT16 convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, NJ_UINT16 size) 174 for (i = 0; i < len; i++) { 360 NJ_UINT16 len; local 377 len = DATA_YOMI_SIZE(data)/sizeof(NJ_CHAR); 380 if (size < ((len + NJ_TERM_LEN) * sizeof(NJ_CHAR))) { 384 for (j = 0; j < len; j++) { 392 len = convert_to_yomi(loc->handle, area, DATA_YOMI_SIZE(data), stroke, size); 395 if (size < ((len + NJ_TERM_LEN) * sizeof(NJ_CHAR))) { 399 return len; 407 NJ_UINT16 len, j; local [all...] |
/system/core/fastboot/ |
usb_linux.c | 80 static int check(void *_desc, int len, unsigned type, int size) 84 if(len < size) return -1; 86 if(desc[0] > len) return -1; 92 static int filter_usb_device(int fd, char *ptr, int len, int writable, 106 if(check(ptr, len, USB_DT_DEVICE, USB_DT_DEVICE_SIZE)) 109 len -= dev->bLength; 112 if(check(ptr, len, USB_DT_CONFIG, USB_DT_CONFIG_SIZE)) 115 len -= cfg->bLength; 153 if(check(ptr, len, USB_DT_INTERFACE, USB_DT_INTERFACE_SIZE)) 156 len -= ifc->bLength [all...] |
/external/wpa_supplicant/ |
l2_packet_freebsd.c | 40 const u8 *buf, size_t len); 55 const u8 *buf, size_t len) 59 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); 65 os_memcpy(eth + 1, buf, len); 66 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); 70 return pcap_inject(l2->pcap, buf, len); 82 size_t len; local 92 len = hdr.caplen; 95 len = hdr.caplen - sizeof(*ethhdr); 97 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len); 166 size_t len; local [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/l2_packet/ |
l2_packet_freebsd.c | 43 const u8 *buf, size_t len); 58 const u8 *buf, size_t len) 62 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); 68 os_memcpy(eth + 1, buf, len); 69 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); 73 return pcap_inject(l2->pcap, buf, len); 85 size_t len; local 95 len = hdr.caplen; 98 len = hdr.caplen - sizeof(*ethhdr); 100 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len); 169 size_t len; local [all...] |
/frameworks/base/services/java/com/android/server/ |
Installer.java | 78 private boolean readBytes(byte buffer[], int len) { 80 if (len < 0) return false; 81 while (off != len) { 83 count = mIn.read(buffer, off, len - off); 94 // Slog.i(TAG, "read "+len+" bytes"); 95 if (off == len) return true; 101 int len; local 104 len = (((int) buf[0]) & 0xff) | ((((int) buf[1]) & 0xff) << 8); 105 if ((len < 1) || (len > 1024)) 117 int len = cmd.length; local [all...] |