Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 5486) sorted by relevance

12345678910>>...220

/external/wpa_supplicant_8/src/wps/
Dwps_attr_parse.c21 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/
Dx86_format.c18 #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/liblzf/
Dlzf_c.c163 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/pdfium/third_party/bigint/
DBigUnsigned.cc32 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/
DCharArrayBuffer.java53 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 …]
DByteArrayBuffer.java51 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/
Dvce_tests.c229 int len, r; in amdgpu_cs_vce_create() local
239 len = 0; in amdgpu_cs_vce_create()
241 len += sizeof(vce_session) / 4; in amdgpu_cs_vce_create()
242 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo)); in amdgpu_cs_vce_create()
243 len += sizeof(vce_taskinfo) / 4; in amdgpu_cs_vce_create()
244 memcpy((ib_cpu + len), vce_create, sizeof(vce_create)); in amdgpu_cs_vce_create()
245 len += sizeof(vce_create) / 4; in amdgpu_cs_vce_create()
246 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback)); in amdgpu_cs_vce_create()
247 ib_cpu[len + 2] = enc.fb[0].addr >> 32; in amdgpu_cs_vce_create()
248 ib_cpu[len + 3] = enc.fb[0].addr; in amdgpu_cs_vce_create()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/raw/
DNat.java11 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/ImageMagick/MagickWand/tests/
Dscript-token-test-results.txt1 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/libopus/src/
Drepacketizer.c61 …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/wpa_supplicant_8/src/ap/
Dctrl_iface_ap.c90 int len, res, ret, i; in hostapd_ctrl_iface_sta_mib() local
95 len = 0; in hostapd_ctrl_iface_sta_mib()
96 ret = os_snprintf(buf + len, buflen - len, MACSTR "\nflags=", in hostapd_ctrl_iface_sta_mib()
98 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_sta_mib()
99 return len; in hostapd_ctrl_iface_sta_mib()
100 len += ret; in hostapd_ctrl_iface_sta_mib()
102 ret = ap_sta_flags_txt(sta->flags, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib()
104 return len; in hostapd_ctrl_iface_sta_mib()
105 len += ret; in hostapd_ctrl_iface_sta_mib()
107 ret = os_snprintf(buf + len, buflen - len, "\naid=%d\ncapability=0x%x\n" in hostapd_ctrl_iface_sta_mib()
[all …]
/external/valgrind/none/tests/s390x/
Dcksm.c11 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/
Dtest-blob.c49 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/
Drtp_packet_history_unittest.cc69 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/fio/
Dlog.c12 size_t len; in log_valist() local
14 len = vsnprintf(buffer, sizeof(buffer), str, args); in log_valist()
15 len = min(len, sizeof(buffer) - 1); in log_valist()
18 len = fio_server_text_output(FIO_LOG_INFO, buffer, len); in log_valist()
22 len = fwrite(buffer, len, 1, f_out); in log_valist()
24 return len; in log_valist()
27 int log_local_buf(const char *buf, size_t len) in log_local_buf() argument
32 len = fwrite(buf, len, 1, f_out); in log_local_buf()
34 return len; in log_local_buf()
41 size_t len; in log_info() local
[all …]
/external/dbus/dbus/
Ddbus-string.c86 _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()
212 int len) in _dbus_string_init_const_len() argument
217 _dbus_assert (len == 0 || value != NULL); in _dbus_string_init_const_len()
218 _dbus_assert (len <= _DBUS_STRING_MAX_LENGTH); in _dbus_string_init_const_len()
219 _dbus_assert (len >= 0); in _dbus_string_init_const_len()
224 real->len = len; in _dbus_string_init_const_len()
[all …]
/external/libevent/
Devent_tagging.c154 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/tcpdump/
Dprint-gre.c88 u_int len = length, vers; in gre_print() local
90 if (len < 2) { in gre_print()
99 gre_print_0(ndo, bp, len); in gre_print()
102 gre_print_1(ndo, bp, len); in gre_print()
113 u_int len = length; in gre_print_0() local
121 len -= 2; in gre_print_0()
124 if (len < 2) in gre_print_0()
127 len -= 2; in gre_print_0()
131 if (len < 2) in gre_print_0()
136 len -= 2; in gre_print_0()
[all …]
/external/google-breakpad/src/client/linux/minidump_writer/
Dline_reader_unittest.cc63 unsigned len; in TEST() local
64 ASSERT_FALSE(reader.GetNextLine(&line, &len)); in TEST()
73 unsigned int len; in TEST() local
74 ASSERT_TRUE(reader.GetNextLine(&line, &len)); in TEST()
75 ASSERT_EQ((unsigned int)1, len); in TEST()
78 reader.PopLine(len); in TEST()
80 ASSERT_FALSE(reader.GetNextLine(&line, &len)); in TEST()
89 unsigned len; in TEST() local
90 ASSERT_TRUE(reader.GetNextLine(&line, &len)); in TEST()
91 ASSERT_EQ((unsigned)1, len); in TEST()
[all …]
/external/expat/tests/
Dchardata.c22 int len = 0; in xmlstrlen() local
24 while (s[len] != 0) in xmlstrlen()
25 ++len; in xmlstrlen()
26 return len; in xmlstrlen()
41 int len; in CharData_AppendString() local
44 len = strlen(s); in CharData_AppendString()
47 if ((len + storage->count) > maxchars) { in CharData_AppendString()
48 len = (maxchars - storage->count); in CharData_AppendString()
50 if (len + storage->count < sizeof(storage->data)) { in CharData_AppendString()
51 memcpy(storage->data + storage->count, s, len); in CharData_AppendString()
[all …]
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3string.c262 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 …]
/external/libxml2/
Dxmlstring.c41 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/icu/icu4c/source/common/
Dcharstr.cpp24 if(U_SUCCESS(errorCode) && this!=&s && ensureCapacity(s.len+1, 0, errorCode)) { in copyFrom()
25 len=s.len; in copyFrom()
26 uprv_memcpy(buffer.getAlias(), s.buffer.getAlias(), len+1); in copyFrom()
32 for(int32_t i=len; i>0;) { in lastIndexOf()
44 if(newLength<len) { in truncate()
45 buffer[len=newLength]=0; in truncate()
51 if(ensureCapacity(len+2, 0, errorCode)) { in append()
52 buffer[len++]=c; in append()
53 buffer[len]=0; in append()
70 if(s==(buffer.getAlias()+len)) { in append()
[all …]
/external/toybox/lib/
Dlinestack.c11 if (pos > catch->len) error_exit("linestack_addstack past end."); in linestack_addstack()
14 if (catch->len+throw->len >= catch->max) { in linestack_addstack()
16 catch->max = ((catch->len+throw->len)|63)+1; in linestack_addstack()
22 if (pos != catch->len) in linestack_addstack()
23 memmove((*lls)->idx+pos+throw->len, catch->idx+pos, in linestack_addstack()
24 (catch->len-pos)*sizeof(struct ptr_len)); in linestack_addstack()
32 memcpy(catch->idx+pos, throw->idx, throw->len*sizeof(struct ptr_len)); in linestack_addstack()
33 catch->len += throw->len; in linestack_addstack()
36 void linestack_insert(struct linestack **lls, long pos, char *line, long len) in linestack_insert() argument
46 ls.ls.len = ls.ls.max = 1; in linestack_insert()
[all …]
/external/fio/lib/
Drand.c70 void __fill_random_buf(void *buf, unsigned int len, unsigned long seed) in __fill_random_buf() argument
74 while (len) { in __fill_random_buf()
77 if (len >= sizeof(int64_t)) { in __fill_random_buf()
80 } else if (len >= sizeof(int32_t)) { in __fill_random_buf()
83 } else if (len >= sizeof(int16_t)) { in __fill_random_buf()
91 len -= this_len; in __fill_random_buf()
98 unsigned int len) in fill_random_buf() argument
105 __fill_random_buf(buf, len, r); in fill_random_buf()
109 void fill_pattern(void *p, unsigned int len, char *pattern, in fill_pattern() argument
117 memset(p, pattern[0], len); in fill_pattern()
[all …]

12345678910>>...220