/external/wpa_supplicant_8/src/wps/ |
D | wps_attr_parse.c | 20 u8 id, u8 len, const u8 *pos) in wps_set_vendor_ext_wfa_subelem() argument 23 id, len); in wps_set_vendor_ext_wfa_subelem() 26 if (len != 1) { in wps_set_vendor_ext_wfa_subelem() 28 "%u", len); in wps_set_vendor_ext_wfa_subelem() 35 attr->authorized_macs_len = len; in wps_set_vendor_ext_wfa_subelem() 38 if (len != 1) { in wps_set_vendor_ext_wfa_subelem() 40 "Shareable length %u", len); in wps_set_vendor_ext_wfa_subelem() 46 if (len != 1) { in wps_set_vendor_ext_wfa_subelem() 48 "length %u", len); in wps_set_vendor_ext_wfa_subelem() 54 if (len != 1) { in wps_set_vendor_ext_wfa_subelem() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
D | wps_attr_parse.c | 22 const u8 *pos, u16 len) in wps_set_attr() argument 26 if (len != 1) { in wps_set_attr() 28 len); in wps_set_attr() 34 if (len != 1) { in wps_set_attr() 36 "length %u", len); in wps_set_attr() 42 if (len != WPS_NONCE_LEN) { in wps_set_attr() 44 "length %u", len); in wps_set_attr() 50 if (len != WPS_NONCE_LEN) { in wps_set_attr() 52 "length %u", len); in wps_set_attr() 58 if (len != WPS_UUID_LEN) { in wps_set_attr() [all …]
|
/external/liblzf/ |
D | lzf_c.c | 163 unsigned int len = 2; in lzf_compress() local 164 unsigned int maxlen = in_end - ip - len; in lzf_compress() 178 len++; if (ref [len] != ip [len]) break; in lzf_compress() 179 len++; if (ref [len] != ip [len]) break; in lzf_compress() 180 len++; if (ref [len] != ip [len]) break; in lzf_compress() 181 len++; if (ref [len] != ip [len]) break; in lzf_compress() 183 len++; if (ref [len] != ip [len]) break; in lzf_compress() 184 len++; if (ref [len] != ip [len]) break; in lzf_compress() 185 len++; if (ref [len] != ip [len]) break; in lzf_compress() 186 len++; if (ref [len] != ip [len]) break; in lzf_compress() [all …]
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/ |
D | SimpleDERReader.java | 28 public SimpleDERReader(byte[] b, int off, int len) in SimpleDERReader() argument 30 resetInput(b, off, len); in SimpleDERReader() 38 public void resetInput(byte[] b, int off, int len) in resetInput() argument 42 count = len; in resetInput() 53 private byte[] readBytes(int len) throws IOException in readBytes() argument 55 if (len > count) in readBytes() 58 byte[] b = new byte[len]; in readBytes() 60 System.arraycopy(buffer, pos, b, 0, len); in readBytes() 62 pos += len; in readBytes() 63 count -= len; in readBytes() [all …]
|
/external/apache-http/src/org/apache/http/util/ |
D | CharArrayBuffer.java | 48 private int len; field in CharArrayBuffer 60 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len); in expand() 64 public void append(final char[] b, int off, int len) { in append() argument 68 if ((off < 0) || (off > b.length) || (len < 0) || in append() 69 ((off + len) < 0) || ((off + len) > b.length)) { in append() 72 if (len == 0) { in append() 75 int newlen = this.len + len; in append() 79 System.arraycopy(b, off, this.buffer, this.len, len); in append() 80 this.len = newlen; in append() 88 int newlen = this.len + strlen; in append() [all …]
|
D | ByteArrayBuffer.java | 46 private int len; field in ByteArrayBuffer 58 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len); in expand() 62 public void append(final byte[] b, int off, int len) { in append() argument 66 if ((off < 0) || (off > b.length) || (len < 0) || in append() 67 ((off + len) < 0) || ((off + len) > b.length)) { in append() 70 if (len == 0) { in append() 73 int newlen = this.len + len; in append() 77 System.arraycopy(b, off, this.buffer, this.len, len); in append() 78 this.len = newlen; in append() 82 int newlen = this.len + 1; in append() [all …]
|
/external/dropbear/ |
D | buffer.c | 59 buf->len = 0; in buf_new() 89 buf->len = MIN(newsize, buf->len); in buf_resize() 100 ret = buf_new(buf->len); in buf_newcopy() 101 ret->len = buf->len; in buf_newcopy() 102 memcpy(ret->data, buf->data, buf->len); in buf_newcopy() 107 void buf_setlen(buffer* buf, unsigned int len) { in buf_setlen() argument 108 if (len > buf->size) { in buf_setlen() 111 buf->len = len; in buf_setlen() 116 if (incr > BUF_MAX_INCR || buf->len + incr > buf->size) { in buf_incrlen() 119 buf->len += incr; in buf_incrlen() [all …]
|
D | packet.c | 45 static buffer* buf_decompress(buffer* buf, unsigned int len); 46 static void buf_compress(buffer * dest, buffer * src, unsigned int len); 52 int len, written; in write_packet() local 61 len = writebuf->len - writebuf->pos; in write_packet() 62 dropbear_assert(len > 0); in write_packet() 64 written = write(ses.sock, buf_getptr(writebuf, len), len); in write_packet() 79 if (written == len) { in write_packet() 97 int len; in read_packet() local 104 if (ses.readbuf == NULL || ses.readbuf->len < blocksize) { in read_packet() 113 if (ses.decryptreadbuf->len == 0) { in read_packet() [all …]
|
/external/dropbear/libtomcrypt/demos/ |
D | multi.c | 7 unsigned long len, len2; in main() local 15 len = sizeof(buf[0]); in main() 16 hash_memory(find_hash("sha256"), (unsigned char*)"hello", 5, buf[0], &len); in main() 19 if (len != len2 || memcmp(buf[0], buf[1], len)) { in main() 20 printf("Failed: %d %lu %lu\n", __LINE__, len, len2); in main() 25 if (len != len2 || memcmp(buf[0], buf[1], len)) { in main() 26 printf("Failed: %d %lu %lu\n", __LINE__, len, len2); in main() 31 if (len != len2 || memcmp(buf[0], buf[1], len)) { in main() 32 printf("Failed: %d %lu %lu\n", __LINE__, len, len2); in main() 37 len = sizeof(buf[0]); in main() [all …]
|
/external/linux-tools-perf/util/ |
D | strbuf.c | 21 sb->alloc = sb->len = 0; in strbuf_init() 39 *sz = sb->len; in strbuf_detach() 46 if (sb->len + extra + 1 <= sb->len) in strbuf_grow() 50 ALLOC_GROW(sb->buf, sb->len + extra + 1, sb->alloc); in strbuf_grow() 53 static void strbuf_splice(struct strbuf *sb, size_t pos, size_t len, in strbuf_splice() argument 56 if (pos + len < pos) in strbuf_splice() 58 if (pos > sb->len) in strbuf_splice() 60 if (pos + len > sb->len) in strbuf_splice() 63 if (dlen >= len) in strbuf_splice() 64 strbuf_grow(sb, dlen - len); in strbuf_splice() [all …]
|
D | path.c | 31 size_t len = (ret >= size) ? size - 1 : ret; in strlcpy() local 32 memcpy(dest, src, len); in strlcpy() 33 dest[len] = '\0'; in strlcpy() 61 size_t len; in perf_vsnpath() local 63 len = strlen(perf_dir); in perf_vsnpath() 64 if (n < len + 1) in perf_vsnpath() 66 memcpy(buf, perf_dir, len); in perf_vsnpath() 67 if (len && !is_dir_sep(perf_dir[len-1])) in perf_vsnpath() 68 buf[len++] = '/'; in perf_vsnpath() 69 len += vsnprintf(buf + len, n - len, fmt, args); in perf_vsnpath() [all …]
|
/external/qemu/hw/ |
D | bt-sdp.c | 35 int len; member 45 size_t len = *(*element) ++ & SDP_DSIZE_MASK; in sdp_datalen() local 51 if (len < SDP_DSIZE_NEXT1) in sdp_datalen() 52 return 1 << len; in sdp_datalen() 53 else if (len == SDP_DSIZE_NEXT1) { in sdp_datalen() 59 } else if (len == SDP_DSIZE_NEXT2) { in sdp_datalen() 64 len = (*(*element) ++) << 8; in sdp_datalen() 65 return len | (*(*element) ++); in sdp_datalen() 71 len = (*(*element) ++) << 24; in sdp_datalen() 72 len |= (*(*element) ++) << 16; in sdp_datalen() [all …]
|
/external/bluetooth/bluez/attrib/ |
D | att.c | 95 struct att_data_list *att_data_list_alloc(uint16_t num, uint16_t len) in att_data_list_alloc() argument 101 list->len = len; in att_data_list_alloc() 107 list->data[i] = g_malloc0(sizeof(uint8_t) * len); in att_data_list_alloc() 113 uint8_t *pdu, int len) in enc_read_by_grp_req() argument 128 if (len < min_len + length) in enc_read_by_grp_req() 140 uint16_t dec_read_by_grp_req(const uint8_t *pdu, int len, uint16_t *start, in dec_read_by_grp_req() argument 154 if (len < min_len + 2) in dec_read_by_grp_req() 159 if (len == min_len + 2) in dec_read_by_grp_req() 164 return len; in dec_read_by_grp_req() 168 int len) in enc_read_by_grp_resp() argument [all …]
|
/external/tcpdump/ |
D | print-gre.c | 94 u_int len = length, vers; in gre_print() local 96 if (len < 2) { in gre_print() 105 gre_print_0(bp, len); in gre_print() 108 gre_print_1(bp, len); in gre_print() 121 u_int len = length; in gre_print_0() local 129 len -= 2; in gre_print_0() 132 if (len < 2) in gre_print_0() 135 len -= 2; in gre_print_0() 139 if (len < 2) in gre_print_0() 144 len -= 2; in gre_print_0() [all …]
|
D | print-bootp.c | 366 register u_int len; in rfc1048_print() local 400 len = 0; in rfc1048_print() 404 len = *bp++; in rfc1048_print() 407 printf("\n\t %s Option %u, length %u%s", cp, tag, len, in rfc1048_print() 408 len > 0 ? ": " : ""); in rfc1048_print() 420 if (!TTEST2(*bp, len)) { in rfc1048_print() 421 printf("[|rfc1048 %u]", len); in rfc1048_print() 425 if (tag == TAG_DHCP_MESSAGE && len == 1) { in rfc1048_print() 433 while (len-- > 0) { in rfc1048_print() 448 while (len > 1) { in rfc1048_print() [all …]
|
/external/valgrind/main/none/tests/s390x/ |
D | cksm.c | 11 uint64_t len; member 19 cksm_by_insn(const uint32_t *buff, uint64_t len, uint32_t sum) in cksm_by_insn() argument 22 uint64_t init_length = len; in cksm_by_insn() 27 register uint64_t reg3 asm("3") = len; in cksm_by_insn() 36 len = reg3; in cksm_by_insn() 43 if(len != 0) in cksm_by_insn() 50 result.len = len; in cksm_by_insn() 60 cksm_by_hand(const uint32_t *buff, uint64_t len, uint32_t sum) in cksm_by_hand() argument 67 for (n=0; n < len/4; n++) { in cksm_by_hand() 79 if (len != 0) { in cksm_by_hand() [all …]
|
/external/dbus/dbus/ |
D | dbus-string.c | 86 _dbus_assert (real->len <= real->allocated - _DBUS_STRING_ALLOCATION_PADDING); in fixup_alignment() 101 real->len + 1); in fixup_alignment() 115 real->len + 1); in undo_alignment() 154 real->len = 0; in _dbus_string_init_preallocated() 155 real->str[real->len] = '\0'; in _dbus_string_init_preallocated() 232 int len) in _dbus_string_init_const_len() argument 237 _dbus_assert (len == 0 || value != NULL); in _dbus_string_init_const_len() 238 _dbus_assert (len <= _DBUS_STRING_MAX_MAX_LENGTH); in _dbus_string_init_const_len() 239 _dbus_assert (len >= 0); in _dbus_string_init_const_len() 244 real->len = len; in _dbus_string_init_const_len() [all …]
|
/external/bluetooth/glib/glib/ |
D | garray.c | 53 guint len; member 62 #define g_array_elt_zero(array, pos, len) \ argument 63 (memset (g_array_elt_pos ((array), pos), 0, g_array_elt_len ((array), len))) 66 g_array_elt_zero ((array), (array)->len, 1); \ 71 gint len); 89 array->len = 0; in g_array_sized_new() 128 guint len) in g_array_append_vals() argument 132 g_array_maybe_expand (array, len); in g_array_append_vals() 134 memcpy (g_array_elt_pos (array, array->len), data, in g_array_append_vals() 135 g_array_elt_len (array, len)); in g_array_append_vals() [all …]
|
D | gstring.c | 314 gssize len) in g_string_chunk_insert_len() argument 321 if (len < 0) in g_string_chunk_insert_len() 324 size = len; in g_string_chunk_insert_len() 342 if (len > 0) in g_string_chunk_insert_len() 354 gsize len) in g_string_maybe_expand() argument 356 if (string->len + len >= string->allocated_len) in g_string_maybe_expand() 358 string->allocated_len = nearest_power (1, string->len + len + 1); in g_string_maybe_expand() 381 string->len = 0; in g_string_sized_new() 407 gint len; in g_string_new() local 409 len = strlen (init); in g_string_new() [all …]
|
/external/expat/tests/ |
D | chardata.c | 26 int len = 0; in xmlstrlen() local 28 while (s[len] != 0) in xmlstrlen() 29 ++len; in xmlstrlen() 30 return len; in xmlstrlen() 45 int len; in CharData_AppendString() local 48 len = strlen(s); in CharData_AppendString() 51 if ((len + storage->count) > maxchars) { in CharData_AppendString() 52 len = (maxchars - storage->count); in CharData_AppendString() 54 if (len + storage->count < sizeof(storage->data)) { in CharData_AppendString() 55 memcpy(storage->data + storage->count, s, len); in CharData_AppendString() [all …]
|
/external/bluetooth/hcidump/parser/ |
D | capi.c | 260 frm->len -= 24; in profile() 304 uint8_t len; in cmd_alert() local 309 len = CAPI_U8(frm); in cmd_alert() 310 if (len > 0) { in cmd_alert() 313 hex_dump(level, frm, len); in cmd_alert() 321 uint8_t len; in cmd_connect() local 332 len = CAPI_U8(frm); in cmd_connect() 333 frm->ptr += len; in cmd_connect() 334 frm->len -= len; in cmd_connect() 335 len = CAPI_U8(frm); in cmd_connect() [all …]
|
/external/libxml2/ |
D | xmlstring.c | 41 xmlStrndup(const xmlChar *cur, int len) { in xmlStrndup() argument 44 if ((cur == NULL) || (len < 0)) return(NULL); in xmlStrndup() 45 ret = (xmlChar *) xmlMallocAtomic((len + 1) * sizeof(xmlChar)); in xmlStrndup() 50 memcpy(ret, cur, len * sizeof(xmlChar)); in xmlStrndup() 51 ret[len] = 0; in xmlStrndup() 85 xmlCharStrndup(const char *cur, int len) { in xmlCharStrndup() argument 89 if ((cur == NULL) || (len < 0)) return(NULL); in xmlCharStrndup() 90 ret = (xmlChar *) xmlMallocAtomic((len + 1) * sizeof(xmlChar)); in xmlCharStrndup() 95 for (i = 0;i < len;i++) { in xmlCharStrndup() 99 ret[len] = 0; in xmlCharStrndup() [all …]
|
/external/icu4c/common/ |
D | charstr.cpp | 23 if(U_SUCCESS(errorCode) && this!=&s && ensureCapacity(s.len+1, 0, errorCode)) { in copyFrom() 24 len=s.len; in copyFrom() 25 uprv_memcpy(buffer.getAlias(), s.buffer.getAlias(), len+1); in copyFrom() 34 if(newLength<len) { in truncate() 35 buffer[len=newLength]=0; in truncate() 41 if(ensureCapacity(len+2, 0, errorCode)) { in append() 42 buffer[len++]=c; in append() 43 buffer[len]=0; in append() 60 if(s==(buffer.getAlias()+len)) { in append() 62 if(sLength>=(buffer.getCapacity()-len)) { in append() [all …]
|
/external/openssl/crypto/buffer/ |
D | buffer.c | 97 int BUF_MEM_grow(BUF_MEM *str, size_t len) in BUF_MEM_grow() argument 102 if (str->length >= len) in BUF_MEM_grow() 104 str->length=len; in BUF_MEM_grow() 105 return(len); in BUF_MEM_grow() 107 if (str->max >= len) in BUF_MEM_grow() 109 memset(&str->data[str->length],0,len-str->length); in BUF_MEM_grow() 110 str->length=len; in BUF_MEM_grow() 111 return(len); in BUF_MEM_grow() 114 if (len > LIMIT_BEFORE_EXPANSION) in BUF_MEM_grow() 119 n=(len+3)/3*4; in BUF_MEM_grow() [all …]
|
/external/antlr/antlr-3.4/runtime/C/src/ |
D | antlr3string.c | 262 string->len = 0; in stringInit8() 299 string->len = 0; in stringInitUTF16() 337 string->len = 0; in stringInitUTF8() 351 return string->factory->newPtr(string->factory, (pANTLR3_UINT8)(string->chars), string->len); in toUTF8_8() 382 utf8String->size = string->len *3; in toUTF8_UTF16() 395 ((const UTF16 *)(string->chars)) + string->len, in toUTF8_UTF16() 405 utf8String->len = ANTLR3_UINT32_CAST(((pANTLR3_UINT8)outputEnd) - utf8String->chars); in toUTF8_UTF16() 496 string->len = size; in newPtr8() 544 string->len = size; in newPtrUTF16_8() 580 string->len = size; in newPtrUTF16_UTF16() [all …]
|