/external/wpa_supplicant_8/src/wps/ |
D | wps_attr_parse.c | 21 u8 id, u8 len, const u8 *pos) in wps_set_vendor_ext_wfa_subelem() argument 24 id, len); in wps_set_vendor_ext_wfa_subelem() 27 if (len != 1) { in wps_set_vendor_ext_wfa_subelem() 29 "%u", len); in wps_set_vendor_ext_wfa_subelem() 36 attr->authorized_macs_len = len; in wps_set_vendor_ext_wfa_subelem() 39 if (len != 1) { in wps_set_vendor_ext_wfa_subelem() 41 "Shareable length %u", len); in wps_set_vendor_ext_wfa_subelem() 47 if (len != 1) { in wps_set_vendor_ext_wfa_subelem() 49 "length %u", len); in wps_set_vendor_ext_wfa_subelem() 55 if (len != 1) { in wps_set_vendor_ext_wfa_subelem() [all …]
|
/external/google-breakpad/src/third_party/libdisasm/ |
D | x86_format.c | 18 #define STRNCAT( buf, str, len ) do { \ argument 19 int _i = strlen(str), _blen = strlen(buf), _len = len - 1; \ 20 if ( len ) { \ 24 len = 0; \ 26 len -= _i; \ 31 #define STRNCATF( buf, fmt, data, len ) do { \ argument 35 STRNCAT( buf, _tmp, len ); \ 42 STRNCATF( buf, "-0x%" PRIX32, -ea->disp, len ); \ 44 STRNCATF( buf, "0x%" PRIX32, ea->disp, len ); \ 58 int len ) { in format_insn_prefix_str() argument [all …]
|
/external/libnetfilter_conntrack/src/expect/ |
D | snprintf_xml.c | 53 snprintf_expect_meta_xml(char *buf, size_t len, in snprintf_expect_meta_xml() argument 59 ret = snprintf(buf, len, "<meta>"); in snprintf_expect_meta_xml() 60 BUFFER_SIZE(ret, size, len, offset); in snprintf_expect_meta_xml() 63 ret = snprintf(buf+offset, len, in snprintf_expect_meta_xml() 66 BUFFER_SIZE(ret, size, len, offset); in snprintf_expect_meta_xml() 69 ret = snprintf(buf+offset, len, "<timeout>%u</timeout>", in snprintf_expect_meta_xml() 71 BUFFER_SIZE(ret, size, len, offset); in snprintf_expect_meta_xml() 74 ret = snprintf(buf+offset, len, "<class>%u</class>", in snprintf_expect_meta_xml() 76 BUFFER_SIZE(ret, size, len, offset); in snprintf_expect_meta_xml() 79 ret = snprintf(buf+offset, len, "<zone>%u</zone>", exp->zone); in snprintf_expect_meta_xml() [all …]
|
D | snprintf_default.c | 13 __snprintf_expect_timeout(char *buf, unsigned int len, in __snprintf_expect_timeout() argument 17 return snprintf(buf, len, "%u ", exp->timeout); in __snprintf_expect_timeout() 23 __snprintf_expect_class(char *buf, unsigned int len, in __snprintf_expect_class() argument 27 return snprintf(buf, len, "class=%u ", exp->class); in __snprintf_expect_class() 33 unsigned int len, in __snprintf_expect_proto() argument 36 return(snprintf(buf, len, "proto=%d ", in __snprintf_expect_proto() 41 unsigned int len, in __snprintf_expect_default() argument 51 ret = snprintf(buf, len, "%9s ", "[NEW]"); in __snprintf_expect_default() 54 ret = snprintf(buf, len, "%9s ", "[UPDATE]"); in __snprintf_expect_default() 57 ret = snprintf(buf, len, "%9s ", "[DESTROY]"); in __snprintf_expect_default() [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/libnetfilter_conntrack/src/conntrack/ |
D | snprintf_xml.c | 67 unsigned int len, in __snprintf_ipv4_xml() argument 75 return snprintf(buf, len, "%s", inet_ntoa(addr)); in __snprintf_ipv4_xml() 79 unsigned int len, in __snprintf_ipv6_xml() argument 92 return snprintf(buf, len, "%s", tmp); in __snprintf_ipv6_xml() 95 int __snprintf_addr_xml(char *buf, unsigned int len, in __snprintf_addr_xml() argument 103 ret = snprintf(buf, len, "<%s>", tag); in __snprintf_addr_xml() 104 BUFFER_SIZE(ret, size, len, offset); in __snprintf_addr_xml() 108 ret = __snprintf_ipv4_xml(buf+offset, len, tuple, type); in __snprintf_addr_xml() 109 BUFFER_SIZE(ret, size, len, offset); in __snprintf_addr_xml() 112 ret = __snprintf_ipv6_xml(buf+offset, len, tuple, type); in __snprintf_addr_xml() [all …]
|
D | snprintf_default.c | 13 unsigned int len, in __snprintf_l3protocol() argument 16 return (snprintf(buf, len, "%-8s %u ", in __snprintf_l3protocol() 23 unsigned int len, in __snprintf_protocol() argument 26 return (snprintf(buf, len, "%-8s %u ", in __snprintf_protocol() 33 unsigned int len, in __snprintf_timeout() argument 36 return snprintf(buf, len, "%u ", ct->timeout); in __snprintf_timeout() 40 unsigned int len, in __snprintf_protoinfo() argument 43 return snprintf(buf, len, "%s ", in __snprintf_protoinfo() 50 unsigned int len, in __snprintf_protoinfo_sctp() argument 53 return snprintf(buf, len, "%s ", in __snprintf_protoinfo_sctp() [all …]
|
/external/pdfium/third_party/bigint/ |
D | BigUnsigned.cc | 32 if (i < len) { in setBlock() 38 if (i >= len) { in setBlock() 42 for (Index j = len; j < i; j++) in setBlock() 44 len = i+1; in setBlock() 57 Blk leftmostBlock = getBlock(len - 1); in bitLength() 63 return leftmostBlockLen + (len - 1) * N; in bitLength() 77 if (len < x.len) in compareTo() 79 else if (len > x.len) in compareTo() 83 Index i = len; in compareTo() 133 if (a.len == 0) { in add() [all …]
|
/external/apache-http/src/org/apache/http/util/ |
D | CharArrayBuffer.java | 53 private int len; field in CharArrayBuffer 65 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len); in expand() 69 public void append(final char[] b, int off, int len) { in append() argument 73 if ((off < 0) || (off > b.length) || (len < 0) || in append() 74 ((off + len) < 0) || ((off + len) > b.length)) { in append() 77 if (len == 0) { in append() 80 int newlen = this.len + len; in append() 84 System.arraycopy(b, off, this.buffer, this.len, len); in append() 85 this.len = newlen; in append() 93 int newlen = this.len + strlen; in append() [all …]
|
D | ByteArrayBuffer.java | 51 private int len; field in ByteArrayBuffer 63 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len); in expand() 67 public void append(final byte[] b, int off, int len) { in append() argument 71 if ((off < 0) || (off > b.length) || (len < 0) || in append() 72 ((off + len) < 0) || ((off + len) > b.length)) { in append() 75 if (len == 0) { in append() 78 int newlen = this.len + len; in append() 82 System.arraycopy(b, off, this.buffer, this.len, len); in append() 83 this.len = newlen; in append() 87 int newlen = this.len + 1; in append() [all …]
|
/external/libdrm/tests/amdgpu/ |
D | vce_tests.c | 237 int len, r; in amdgpu_cs_vce_create() local 247 len = 0; in amdgpu_cs_vce_create() 249 len += sizeof(vce_session) / 4; in amdgpu_cs_vce_create() 250 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_create() 251 len += sizeof(vce_taskinfo) / 4; in amdgpu_cs_vce_create() 252 memcpy((ib_cpu + len), vce_create, sizeof(vce_create)); in amdgpu_cs_vce_create() 253 len += sizeof(vce_create) / 4; in amdgpu_cs_vce_create() 254 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback)); in amdgpu_cs_vce_create() 255 ib_cpu[len + 2] = enc.fb[0].addr >> 32; in amdgpu_cs_vce_create() 256 ib_cpu[len + 3] = enc.fb[0].addr; in amdgpu_cs_vce_create() [all …]
|
/external/strace/tests-m32/ |
D | net-sockaddr.c | 64 unsigned int len = sizeof(*un); in check_un() local 65 int ret = connect(-1, (void *) un, len); in check_un() 68 (int) sizeof(un->sun_path), 0, len, ret); in check_un() 71 ret = connect(-1, (void *) un, len); in check_un() 73 " = %d EBADF (%m)\n", 0, len, ret); in check_un() 77 ret = connect(-1, (void *) un, len); in check_un() 80 (int) sizeof(un->sun_path) - 3, 0, len, ret); in check_un() 85 len = sizeof(*un) + 2; in check_un() 86 ret = connect(-1, (void *) un, len); in check_un() 89 (int) sizeof(un->sun_path), 0, len, ret); in check_un() [all …]
|
/external/strace/tests/ |
D | net-sockaddr.c | 64 unsigned int len = sizeof(*un); in check_un() local 65 int ret = connect(-1, (void *) un, len); in check_un() 68 (int) sizeof(un->sun_path), 0, len, ret); in check_un() 71 ret = connect(-1, (void *) un, len); in check_un() 73 " = %d EBADF (%m)\n", 0, len, ret); in check_un() 77 ret = connect(-1, (void *) un, len); in check_un() 80 (int) sizeof(un->sun_path) - 3, 0, len, ret); in check_un() 85 len = sizeof(*un) + 2; in check_un() 86 ret = connect(-1, (void *) un, len); in check_un() 89 (int) sizeof(un->sun_path), 0, len, ret); in check_un() [all …]
|
/external/strace/tests-mx32/ |
D | net-sockaddr.c | 64 unsigned int len = sizeof(*un); in check_un() local 65 int ret = connect(-1, (void *) un, len); in check_un() 68 (int) sizeof(un->sun_path), 0, len, ret); in check_un() 71 ret = connect(-1, (void *) un, len); in check_un() 73 " = %d EBADF (%m)\n", 0, len, ret); in check_un() 77 ret = connect(-1, (void *) un, len); in check_un() 80 (int) sizeof(un->sun_path) - 3, 0, len, ret); in check_un() 85 len = sizeof(*un) + 2; in check_un() 86 ret = connect(-1, (void *) un, len); in check_un() 89 (int) sizeof(un->sun_path), 0, len, ret); in check_un() [all …]
|
/external/syslinux/gpxe/src/crypto/ |
D | asn1.c | 52 unsigned int len; in asn1_start() local 56 if ( cursor->len < 2 /* Tag byte and first length byte */ ) { in asn1_start() 57 if ( cursor->len ) in asn1_start() 71 cursor->len--; in asn1_start() 78 cursor->len--; in asn1_start() 82 if ( cursor->len < len_len ) { in asn1_start() 84 "%zd)\n", cursor, len_len, cursor->len ); in asn1_start() 90 for ( len = 0 ; len_len ; len_len-- ) { in asn1_start() 91 len <<= 8; in asn1_start() 92 len |= *( ( uint8_t * ) cursor->data ); in asn1_start() [all …]
|
/external/ImageMagick/MagickWand/tests/ |
D | script-token-test-results.txt | 1 l=8, c=1, stat=0, len=64, token="-option" 2 l=8, c=9, stat=0, len=64, token="key" 3 l=9, c=1, stat=0, len=64, token="+reset" 4 l=9, c=10, stat=0, len=64, token="imbedded#hash" 5 l=11, c=1, stat=0, len=64, token="This is a single token" 6 l=13, c=1, stat=0, len=64, token="And\ 'even '"more "complex" 7 l=15, c=1, stat=0, len=64, token="Backslash chars \n are returned as is" 8 l=16, c=1, stat=0, len=64, token="regardless \n of quoting" 9 l=18, c=1, stat=0, len=64, token="Single quote escapes" 10 l=19, c=2, stat=0, len=64, token="'" [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/raw/ |
D | Nat.java | 11 public static int add(int len, int[] x, int[] y, int[] z) in add() argument 14 for (int i = 0; i < len; ++i) in add() 23 public static int add33At(int len, int x, int[] z, int zPos) in add33At() argument 32 return c == 0 ? 0 : incAt(len, z, zPos + 2); in add33At() 35 public static int add33At(int len, int x, int[] z, int zOff, int zPos) in add33At() argument 44 return c == 0 ? 0 : incAt(len, z, zOff, zPos + 2); in add33At() 47 public static int add33To(int len, int x, int[] z) in add33To() argument 55 return c == 0 ? 0 : incAt(len, z, 2); in add33To() 58 public static int add33To(int len, int x, int[] z, int zOff) in add33To() argument 66 return c == 0 ? 0 : incAt(len, z, zOff, 2); in add33To() [all …]
|
/external/libopus/src/ |
D | repacketizer.c | 61 …tizer_cat_impl(OpusRepacketizer *rp, const unsigned char *data, opus_int32 len, int self_delimited) in opus_repacketizer_cat_impl() argument 66 if (len<1) return OPUS_INVALID_PACKET; in opus_repacketizer_cat_impl() 76 curr_nb_frames = opus_packet_get_nb_frames(data, len); in opus_repacketizer_cat_impl() 85 …ret=opus_packet_parse_impl(data, len, self_delimited, &tmp_toc, &rp->frames[rp->nb_frames], &rp->l… in opus_repacketizer_cat_impl() 92 int opus_repacketizer_cat(OpusRepacketizer *rp, const unsigned char *data, opus_int32 len) in opus_repacketizer_cat() argument 94 return opus_repacketizer_cat_impl(rp, data, len, 0); in opus_repacketizer_cat() 107 opus_int16 *len; in opus_repacketizer_out_range_impl() local 118 len = rp->len+begin; in opus_repacketizer_out_range_impl() 121 tot_size = 1 + (len[count-1]>=252); in opus_repacketizer_out_range_impl() 129 tot_size += len[0]+1; in opus_repacketizer_out_range_impl() [all …]
|
/external/openssh/ |
D | sshbuf-getput-basic.c | 32 sshbuf_get(struct sshbuf *buf, void *v, size_t len) in sshbuf_get() argument 37 if ((r = sshbuf_consume(buf, len)) < 0) in sshbuf_get() 39 if (v != NULL && len != 0) in sshbuf_get() 40 memcpy(v, p, len); in sshbuf_get() 100 size_t len; in sshbuf_get_string() local 107 if ((r = sshbuf_get_string_direct(buf, &val, &len)) < 0) in sshbuf_get_string() 110 if ((*valp = malloc(len + 1)) == NULL) { in sshbuf_get_string() 114 if (len != 0) in sshbuf_get_string() 115 memcpy(*valp, val, len); in sshbuf_get_string() 116 (*valp)[len] = '\0'; in sshbuf_get_string() [all …]
|
/external/valgrind/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/harfbuzz_ng/test/api/ |
D | test-blob.c | 49 unsigned int len; in test_blob_empty() local 63 len = hb_blob_get_length (blob); in test_blob_empty() 64 g_assert_cmpint (len, ==, 0); in test_blob_empty() 69 data = hb_blob_get_data (blob, &len); in test_blob_empty() 71 g_assert_cmpint (len, ==, 0); in test_blob_empty() 76 data_writable = hb_blob_get_data_writable (blob, &len); in test_blob_empty() 78 g_assert_cmpint (len, ==, 0); in test_blob_empty() 97 unsigned int len; member 147 unsigned int len; in fixture_init() local 155 len = sizeof (test_data); in fixture_init() [all …]
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | rtp_packet_history_unittest.cc | 69 size_t len = 0; in TEST_F() local 71 CreateRtpPacket(kSeqNum, kSsrc, kPayload, kTimestamp, packet_, &len); in TEST_F() 72 EXPECT_EQ(0, hist_->PutRTPPacket(packet_, len, capture_time_ms, in TEST_F() 75 len = kMaxPacketLength; in TEST_F() 77 EXPECT_FALSE(hist_->GetPacketAndSetSendTime(kSeqNum, 0, false, packet_, &len, in TEST_F() 90 size_t len = kMaxPacketLength; in TEST_F() local 92 EXPECT_FALSE(hist_->GetPacketAndSetSendTime(0, 0, false, packet_, &len, in TEST_F() 98 size_t len = 0; in TEST_F() local 99 CreateRtpPacket(kSeqNum, kSsrc, kPayload, kTimestamp, packet_, &len); in TEST_F() 103 EXPECT_EQ(0, hist_->PutRTPPacket(packet_, len, capture_time_ms, in TEST_F() [all …]
|
/external/libevent/ |
D | event_tagging.c | 154 int len = encode_int_internal(data, number); in evtag_encode_int() local 155 evbuffer_add(evbuf, data, len); in evtag_encode_int() 162 int len = encode_int64_internal(data, number); in evtag_encode_int64() local 163 evbuffer_add(evbuf, data, len); in evtag_encode_int64() 198 size_t len = evbuffer_get_length(evbuf); in decode_tag_internal() local 208 evbuf, len < sizeof(number) + 1 ? len : sizeof(number) + 1); in decode_tag_internal() 212 while (count++ < len) { in decode_tag_internal() 249 const void *data, ev_uint32_t len) in evtag_marshal() argument 252 evtag_encode_int(evbuf, len); in evtag_marshal() 253 evbuffer_add(evbuf, (void *)data, len); in evtag_marshal() [all …]
|
/external/wpa_supplicant_8/src/ap/ |
D | ctrl_iface_ap.c | 91 int len, res, ret, i; in hostapd_ctrl_iface_sta_mib() local 96 len = 0; in hostapd_ctrl_iface_sta_mib() 97 ret = os_snprintf(buf + len, buflen - len, MACSTR "\nflags=", in hostapd_ctrl_iface_sta_mib() 99 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_sta_mib() 100 return len; in hostapd_ctrl_iface_sta_mib() 101 len += ret; in hostapd_ctrl_iface_sta_mib() 103 ret = ap_sta_flags_txt(sta->flags, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib() 105 return len; in hostapd_ctrl_iface_sta_mib() 106 len += ret; in hostapd_ctrl_iface_sta_mib() 108 ret = os_snprintf(buf + len, buflen - len, "\naid=%d\ncapability=0x%x\n" in hostapd_ctrl_iface_sta_mib() [all …]
|
/external/syslinux/gpxe/src/util/ |
D | zbin.c | 13 size_t len; member 18 size_t len; member 30 uint32_t len; member 37 uint32_t len; member 64 static int read_file ( const char *filename, void **buf, size_t *len ) { in read_file() argument 81 *len = stat.st_size; in read_file() 82 *buf = malloc ( *len ); in read_file() 85 *len, filename, strerror ( errno ) ); in read_file() 89 if ( fread ( *buf, 1, *len, file ) != *len ) { in read_file() 91 *len, filename, strerror ( errno ) ); in read_file() [all …]
|