Home
last modified time | relevance | path

Searched refs:orig_len (Results 1 – 25 of 53) sorted by relevance

123

/external/rust/crates/base64/src/write/
Dencoder_tests.rs321 let orig_len: usize = rng.gen_range(100..20_000); in retrying_writes_that_error_with_interrupted_works() localVariable
322 for _ in 0..orig_len { in retrying_writes_that_error_with_interrupted_works()
341 while bytes_consumed < orig_len { in retrying_writes_that_error_with_interrupted_works()
344 let input_len: usize = cmp::min(rng.gen_range(0..10), orig_len - bytes_consumed); in retrying_writes_that_error_with_interrupted_works()
366 assert_eq!(orig_len, bytes_consumed); in retrying_writes_that_error_with_interrupted_works()
385 let orig_len: usize = rng.gen_range(100..20_000); in writes_that_only_write_part_of_input_and_sometimes_interrupt_produce_correct_encoded_data() localVariable
386 for _ in 0..orig_len { in writes_that_only_write_part_of_input_and_sometimes_interrupt_produce_correct_encoded_data()
406 while bytes_consumed < orig_len { in writes_that_only_write_part_of_input_and_sometimes_interrupt_produce_correct_encoded_data()
408 let input_len: usize = cmp::min(rng.gen_range(0..100), orig_len - bytes_consumed); in writes_that_only_write_part_of_input_and_sometimes_interrupt_produce_correct_encoded_data()
427 assert_eq!(orig_len, bytes_consumed); in writes_that_only_write_part_of_input_and_sometimes_interrupt_produce_correct_encoded_data()
[all …]
/external/rust/crates/base64/src/engine/
Dtests.rs130 let (orig_len, _, encoded_len) = generate_random_encoded_data( in roundtrip_random()
139 decode_buf.resize(orig_len, 0); in roundtrip_random()
145 assert_eq!(orig_len, dec_len); in roundtrip_random()
168 let orig_len = fill_rand(&mut orig_data, &mut rng, &input_len_range); in encode_doesnt_write_extra_bytes() localVariable
172 fill_rand_len(&mut encode_buf, &mut rng, prefix_len * 2 + orig_len * 2); in encode_doesnt_write_extra_bytes()
175 let expected_encode_len_no_pad = encoded_len(orig_len, false).unwrap(); in encode_doesnt_write_extra_bytes()
193 orig_len, in encode_doesnt_write_extra_bytes()
198 add_padding(orig_len, &mut encode_buf[prefix_len + encoded_len_no_pad..]) in encode_doesnt_write_extra_bytes()
280 let orig_len = fill_rand(&mut orig_data, &mut rng, &len_range); in decode_doesnt_write_extra_bytes() localVariable
281 encode_buf.resize(orig_len * 2 + 100, 0); in decode_doesnt_write_extra_bytes()
[all …]
/external/icing/icing/legacy/core/
Dicing-string-util.cc36 uint32_t IcingStringUtil::UpdateAtPositionCrc32(uint32_t crc, int orig_len, in UpdateAtPositionCrc32() argument
41 if (offset + len > orig_len) { in UpdateAtPositionCrc32()
43 << "original_length: " << orig_len; in UpdateAtPositionCrc32()
58 update_crc = crc32_combine(update_crc, 0, orig_len - (offset + len)); in UpdateAtPositionCrc32()
/external/rust/crates/rayon/src/
Dvec.rs93 orig_len: self.len(), in par_drain()
105 orig_len: usize, field
155 if self.vec.len() == self.orig_len { in drop()
161 self.vec.set_len(self.orig_len); in drop()
163 } else if end < self.orig_len { in drop()
169 let tail_len = self.orig_len - end; in drop()
/external/rust/crates/rayon/src/collections/
Dvec_deque.rs97 orig_len: usize, field
106 orig_len: self.len(), in par_drain()
153 if self.deque.len() != self.orig_len - self.range.len() { in drop()
155 assert_eq!(self.deque.len(), self.orig_len); in drop()
/external/boringssl/src/crypto/cipher_extra/
Dtls_cbc.c115 size_t in_len, size_t orig_len) { in EVP_tls_cbc_copy_mac() argument
124 assert(orig_len >= in_len); in EVP_tls_cbc_copy_mac()
133 if (orig_len > md_size + 255 + 1) { in EVP_tls_cbc_copy_mac()
134 scan_start = orig_len - (md_size + 255 + 1); in EVP_tls_cbc_copy_mac()
140 for (size_t i = scan_start, j = 0; i < orig_len; i++, j++) { in EVP_tls_cbc_copy_mac()
/external/rust/crates/quiche/deps/boringssl/src/crypto/cipher_extra/
Dtls_cbc.c115 size_t in_len, size_t orig_len) { in EVP_tls_cbc_copy_mac() argument
124 assert(orig_len >= in_len); in EVP_tls_cbc_copy_mac()
133 if (orig_len > md_size + 255 + 1) { in EVP_tls_cbc_copy_mac()
134 scan_start = orig_len - (md_size + 255 + 1); in EVP_tls_cbc_copy_mac()
140 for (size_t i = scan_start, j = 0; i < orig_len; i++, j++) { in EVP_tls_cbc_copy_mac()
/external/cronet/third_party/boringssl/src/crypto/cipher_extra/
Dtls_cbc.c115 size_t in_len, size_t orig_len) { in EVP_tls_cbc_copy_mac() argument
124 assert(orig_len >= in_len); in EVP_tls_cbc_copy_mac()
133 if (orig_len > md_size + 255 + 1) { in EVP_tls_cbc_copy_mac()
134 scan_start = orig_len - (md_size + 255 + 1); in EVP_tls_cbc_copy_mac()
140 for (size_t i = scan_start, j = 0; i < orig_len; i++, j++) { in EVP_tls_cbc_copy_mac()
/external/python/cpython3/Lib/test/
Dtest_context.py642 orig_len = len(h)
652 self.assertEqual(len(h), orig_len - 1)
658 self.assertEqual(len(h), orig_len - 2)
664 self.assertEqual(len(h), orig_len - 3)
687 orig_len = len(h)
702 self.assertEqual(len(h), orig_len)
705 self.assertEqual(len(h), orig_len - 1)
708 self.assertEqual(len(h), orig_len - 2)
711 self.assertEqual(len(h), orig_len - 3)
736 orig_len = len(h)
[all …]
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/ext4/ext4_mballoc_prealloc/
Dformat14 field:int orig_len; offset:36; size:4; signed:1;
20 … 1))), (unsigned long) REC->ino, REC->orig_group, REC->orig_start, REC->orig_len, REC->orig_logica…
/external/perfetto/src/traced/probes/ftrace/test/data/android_hammerhead_MRA59G_3.4.0/events/ext4/ext4_mballoc_prealloc/
Dformat15 field:int orig_len; offset:32; size:4; signed:1;
21 … 1))), (unsigned long) REC->ino, REC->orig_group, REC->orig_start, REC->orig_len, REC->orig_logica…
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/ext4/ext4_mballoc_prealloc/
Dformat14 field:int orig_len; offset:36; size:4; signed:1;
20 … 1))), (unsigned long) REC->ino, REC->orig_group, REC->orig_start, REC->orig_len, REC->orig_logica…
/external/perfetto/src/traced/probes/ftrace/test/data/android_raven_AOSP.MASTER_5.10.43/events/ext4/ext4_mballoc_prealloc/
Dformat14 field:int orig_len; offset:36; size:4; signed:1;
20 … 1))), (unsigned long) REC->ino, REC->orig_group, REC->orig_start, REC->orig_len, REC->orig_logica…
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/ext4/ext4_mballoc_prealloc/
Dformat14 field:int orig_len; offset:28; size:4; signed:1;
20 … 1))), (unsigned long) REC->ino, REC->orig_group, REC->orig_start, REC->orig_len, REC->orig_logica…
/external/ltp/utils/sctp/func_tests/
Dtest_timetolive.c115 int orig_len; in main() local
154 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &orig_len, in main()
248 error = setsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &orig_len, in main()
249 sizeof(orig_len)); in main()
/external/perfetto/src/traced/probes/ftrace/test/data/android_hammerhead_MRA59G_3.4.0/events/ext4/ext4_mballoc_alloc/
Dformat21 field:int orig_len; offset:44; size:4; signed:1;
31 … 1))), (unsigned long) REC->ino, REC->orig_group, REC->orig_start, REC->orig_len, REC->orig_logica…
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/ext4/ext4_mballoc_alloc/
Dformat14 field:int orig_len; offset:36; size:4; signed:1;
30 … 1))), (unsigned long) REC->ino, REC->orig_group, REC->orig_start, REC->orig_len, REC->orig_logica…
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/ext4/ext4_mballoc_alloc/
Dformat14 field:int orig_len; offset:28; size:4; signed:1;
30 … 1))), (unsigned long) REC->ino, REC->orig_group, REC->orig_start, REC->orig_len, REC->orig_logica…
/external/python/cpython3/Python/
Dpystrtod.c385 const char *s, Py_ssize_t orig_len, const char *what, PyObject *obj, void *arg, in _Py_string_to_number_with_underscores() argument
393 assert(s[orig_len] == '\0'); in _Py_string_to_number_with_underscores()
396 return innerfunc(s, orig_len, arg); in _Py_string_to_number_with_underscores()
399 dup = PyMem_Malloc(orig_len + 1); in _Py_string_to_number_with_underscores()
405 last = s + orig_len; in _Py_string_to_number_with_underscores()
/external/openthread/third_party/mbedtls/repo/library/
Dgcm.c406 uint64_t orig_len; in mbedtls_gcm_finish() local
412 orig_len = ctx->len * 8; in mbedtls_gcm_finish()
420 if( orig_len || orig_add_len ) in mbedtls_gcm_finish()
426 MBEDTLS_PUT_UINT32_BE( ( orig_len >> 32 ), work_buf, 8 ); in mbedtls_gcm_finish()
427 MBEDTLS_PUT_UINT32_BE( ( orig_len ), work_buf, 12 ); in mbedtls_gcm_finish()
/external/rust/crates/zeroize/tests/
Dzeroize.rs175 let orig_len = cstring.as_bytes().len(); in zeroize_c_string() localVariable
181 for i in 0..orig_len { in zeroize_c_string()
/external/perfetto/src/traced/probes/ftrace/test/data/android_raven_AOSP.MASTER_5.10.43/events/ext4/ext4_mballoc_alloc/
Dformat14 field:int orig_len; offset:36; size:4; signed:1;
30 … 1))), (unsigned long) REC->ino, REC->orig_group, REC->orig_start, REC->orig_len, REC->orig_logica…
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/ext4/ext4_mballoc_alloc/
Dformat14 field:int orig_len; offset:36; size:4; signed:1;
30 … 1))), (unsigned long) REC->ino, REC->orig_group, REC->orig_start, REC->orig_len, REC->orig_logica…
/external/AFLplusplus/src/
Dafl-fuzz-mutators.c355 u32 orig_len = q->len; in trim_case_custom() local
399 } else if (unlikely(retlen > orig_len)) { in trim_case_custom()
534 SAYF("[Custom Trimming] DONE: %u bytes -> %u bytes", orig_len, q->len); in trim_case_custom()
/external/mbedtls/library/
Dgcm.c493 uint64_t orig_len; in mbedtls_gcm_finish() local
502 orig_len = ctx->len * 8; in mbedtls_gcm_finish()
518 if( orig_len || orig_add_len ) in mbedtls_gcm_finish()
524 MBEDTLS_PUT_UINT32_BE( ( orig_len >> 32 ), work_buf, 8 ); in mbedtls_gcm_finish()
525 MBEDTLS_PUT_UINT32_BE( ( orig_len ), work_buf, 12 ); in mbedtls_gcm_finish()

123