/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/wpa_supplicant_8/src/ap/ |
D | ctrl_iface_ap.c | 33 size_t len = curr_len; in hostapd_write_ht_mcs_bitmask() local 35 ret = os_snprintf(buf + len, buflen - len, in hostapd_write_ht_mcs_bitmask() 37 if (os_snprintf_error(buflen - len, ret)) in hostapd_write_ht_mcs_bitmask() 38 return len; in hostapd_write_ht_mcs_bitmask() 39 len += ret; in hostapd_write_ht_mcs_bitmask() 42 len += wpa_snprintf_hex(buf + len, buflen - len, mcs_set, 10); in hostapd_write_ht_mcs_bitmask() 44 ret = os_snprintf(buf + len, buflen - len, "\n"); in hostapd_write_ht_mcs_bitmask() 45 if (os_snprintf_error(buflen - len, ret)) in hostapd_write_ht_mcs_bitmask() 47 len += ret; in hostapd_write_ht_mcs_bitmask() 49 return len; in hostapd_write_ht_mcs_bitmask() [all …]
|
/external/iperf3/src/ |
D | iperf_error.c | 88 int len, perr, herr; in iperf_strerror() local 91 len = sizeof(errstr); in iperf_strerror() 92 memset(errstr, 0, len); in iperf_strerror() 96 snprintf(errstr, len, "no error"); in iperf_strerror() 99 snprintf(errstr, len, "cannot be both server and client"); in iperf_strerror() 102 snprintf(errstr, len, "must either be a client (-c) or server (-s)"); in iperf_strerror() 105 snprintf(errstr, len, "some option you are trying to set is server only"); in iperf_strerror() 108 snprintf(errstr, len, "some option you are trying to set is client only"); in iperf_strerror() 111 snprintf(errstr, len, "test duration too long (maximum = %d seconds)", MAX_TIME); in iperf_strerror() 114 … snprintf(errstr, len, "number of parallel streams too large (maximum = %d)", MAX_STREAMS); in iperf_strerror() [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/adhd/cras/src/tests/ |
D | dsp_core_unittest.cc | 17 static void add_sine(float *data, size_t len, float freq, float offset, in add_sine() argument 20 for (size_t i = 0; i < len; i++) in add_sine() 26 static float magnitude_at(float *data, size_t len, float f) in magnitude_at() argument 30 for (size_t i = 0; i < len; i++) { in magnitude_at() 34 return sqrt(re * re + im * im) * (2.0 / len); in magnitude_at() 81 size_t len = 44100; in TEST() local 82 float NQ = len / 2; in TEST() 86 float *data = (float *)malloc(sizeof(float) * len); in TEST() 90 memset(data, 0, sizeof(float) * len); in TEST() 91 add_sine(data, len, f_low, 0, 1); // 10Hz sine, magnitude = 1 in TEST() [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/libdrm/tests/amdgpu/ |
D | uvd_enc_tests.c | 280 int len, r; in amdgpu_cs_uvd_enc_session_init() local 282 len = 0; in amdgpu_cs_uvd_enc_session_init() 283 memcpy((ib_cpu + len), uve_session_info, sizeof(uve_session_info)); in amdgpu_cs_uvd_enc_session_init() 284 len += sizeof(uve_session_info) / 4; in amdgpu_cs_uvd_enc_session_init() 285 ib_cpu[len++] = enc.session.addr >> 32; in amdgpu_cs_uvd_enc_session_init() 286 ib_cpu[len++] = enc.session.addr; in amdgpu_cs_uvd_enc_session_init() 288 memcpy((ib_cpu + len), uve_task_info, sizeof(uve_task_info)); in amdgpu_cs_uvd_enc_session_init() 289 len += sizeof(uve_task_info) / 4; in amdgpu_cs_uvd_enc_session_init() 290 ib_cpu[len++] = 0x000000d8; in amdgpu_cs_uvd_enc_session_init() 291 ib_cpu[len++] = 0x00000000; in amdgpu_cs_uvd_enc_session_init() [all …]
|
D | vce_tests.c | 255 int len, r; in amdgpu_cs_vce_create() local 265 len = 0; in amdgpu_cs_vce_create() 267 len += sizeof(vce_session) / 4; in amdgpu_cs_vce_create() 268 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_create() 269 len += sizeof(vce_taskinfo) / 4; in amdgpu_cs_vce_create() 270 memcpy((ib_cpu + len), vce_create, sizeof(vce_create)); in amdgpu_cs_vce_create() 271 ib_cpu[len + 8] = ALIGN(enc.width, align); in amdgpu_cs_vce_create() 272 ib_cpu[len + 9] = ALIGN(enc.width, align); in amdgpu_cs_vce_create() 273 len += sizeof(vce_create) / 4; in amdgpu_cs_vce_create() 274 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback)); in amdgpu_cs_vce_create() [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/tcpdump/tests/ |
D | arp-oobr.out | 1 …9 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request … 2 …9 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request … 3 …b > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request … 4 …9 > ff:ff:ff:ff:6b:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request … 5 …9 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request … 6 …d > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request … 7 …9 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request … 8 …9 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request … 9 …9 > ff:ff:84:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request … 10 …6 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Ethernet (len 6), IPv4 (len 4), Request … [all …]
|
/external/syzkaller/sys/linux/ |
D | socket_inet_sctp.txt | 33 sendmmsg$inet_sctp(fd sock_sctp, mmsg ptr[in, array[msghdr_sctp]], vlen len[mmsg], f flags[send_fla… 37 addrlen len[addr, int32] 39 vlen len[vec, intptr] 56 len len[parent, intptr] 63 len len[parent, intptr] 70 len len[parent, intptr] 77 len len[parent, intptr] 89 len len[parent, intptr] 100 len len[parent, intptr] 107 len len[parent, intptr] [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/raw/ |
D | Nat.java | 15 public static int add(int len, int[] x, int[] y, int[] z) in add() argument 18 for (int i = 0; i < len; ++i) in add() 27 public static int add33At(int len, int x, int[] z, int zPos) in add33At() argument 36 return c == 0 ? 0 : incAt(len, z, zPos + 2); in add33At() 39 public static int add33At(int len, int x, int[] z, int zOff, int zPos) in add33At() argument 48 return c == 0 ? 0 : incAt(len, z, zOff, zPos + 2); in add33At() 51 public static int add33To(int len, int x, int[] z) in add33To() argument 59 return c == 0 ? 0 : incAt(len, z, 2); in add33To() 62 public static int add33To(int len, int x, int[] z, int zOff) in add33To() argument 70 return c == 0 ? 0 : incAt(len, z, zOff, 2); in add33To() [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/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/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/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/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/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/tcpdump/ |
D | print-pim.c | 140 static void pimv2_print(netdissect_options *, register const u_char *bp, register u_int len, const … 144 register const u_char *bp, register u_int len) in pimv1_join_prune_print() argument 172 if (len < sizeof(struct in_addr)) in pimv1_join_prune_print() 179 len -= 4; in pimv1_join_prune_print() 180 if (len < 4) in pimv1_join_prune_print() 190 len -= 4; in pimv1_join_prune_print() 192 if (len < 4) in pimv1_join_prune_print() 197 len -= 4; in pimv1_join_prune_print() 203 if (len < 4) in pimv1_join_prune_print() 208 len -= 4; in pimv1_join_prune_print() [all …]
|
/external/libevent/ |
D | event_tagging.c | 156 int len = encode_int_internal(data, number); in evtag_encode_int() local 157 evbuffer_add(evbuf, data, len); in evtag_encode_int() 164 int len = encode_int64_internal(data, number); in evtag_encode_int64() local 165 evbuffer_add(evbuf, data, len); in evtag_encode_int64() 200 size_t len = evbuffer_get_length(evbuf); in decode_tag_internal() local 210 evbuf, len < sizeof(number) + 1 ? len : sizeof(number) + 1); in decode_tag_internal() 214 while (count++ < len) { in decode_tag_internal() 258 const void *data, ev_uint32_t len) in evtag_marshal() argument 261 evtag_encode_int(evbuf, len); in evtag_marshal() 262 evbuffer_add(evbuf, (void *)data, len); in evtag_marshal() [all …]
|