/external/adhd/cras/src/tests/ |
D | fmt_conv_unittest.cc | 126 const size_t buf_size = 4096; in TEST() local 137 c = cras_fmt_conv_create(&in_fmt, &out_fmt, buf_size, 0); in TEST() 140 out_frames = cras_fmt_conv_out_frames_to_in(c, buf_size); in TEST() 141 EXPECT_EQ(buf_size, out_frames); in TEST() 143 out_frames = cras_fmt_conv_in_frames_to_out(c, buf_size); in TEST() 144 EXPECT_EQ(buf_size, out_frames); in TEST() 146 in_buff = (int16_t*)ralloc(buf_size * 2 * cras_get_format_bytes(&in_fmt)); in TEST() 147 out_buff = (int16_t*)ralloc(buf_size * 2 * cras_get_format_bytes(&out_fmt)); in TEST() 149 c, (uint8_t*)in_buff, (uint8_t*)out_buff, &in_buf_size, buf_size); in TEST() 150 EXPECT_EQ(buf_size, out_frames); in TEST() [all …]
|
/external/vboot_reference/tests/ |
D | vb21_common_tests.c | 259 uint32_t buf_size; in test_verify_keyblock() local 283 buf_size = kbuf->c.total_size; in test_verify_keyblock() 286 buf2 = malloc(buf_size); in test_verify_keyblock() 287 memcpy(buf2, buf, buf_size); in test_verify_keyblock() 292 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock() 295 memcpy(buf, buf2, buf_size); in test_verify_keyblock() 296 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk2, &wb), in test_verify_keyblock() 299 memcpy(buf, buf2, buf_size); in test_verify_keyblock() 300 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk3, &wb), in test_verify_keyblock() 304 memcpy(buf, buf2, buf_size); in test_verify_keyblock() [all …]
|
/external/strace/tests-m32/ |
D | s390_pci_mmio_read_write.c | 83 static const size_t buf_size = DEFAULT_STRLEN + 10; in main() local 85 char *buf = tail_alloc(buf_size); in main() 100 { (kernel_ulong_t) (buf + buf_size), NULL, 0 }, in main() 101 { (kernel_ulong_t) (buf), NULL, buf_size }, in main() 102 { (kernel_ulong_t) (buf + 9), NULL, buf_size - 9 }, in main() 103 { (kernel_ulong_t) (buf + 10), NULL, buf_size - 10 }, in main() 104 { (kernel_ulong_t) (buf + 16), NULL, buf_size - 16 }, in main() 105 { (kernel_ulong_t) (buf + 26), NULL, buf_size - 26 }, in main() 106 { (kernel_ulong_t) (buf + 28), NULL, buf_size - 28 }, in main() 115 buf_size, in main() [all …]
|
/external/strace/tests/ |
D | s390_pci_mmio_read_write.c | 83 static const size_t buf_size = DEFAULT_STRLEN + 10; in main() local 85 char *buf = tail_alloc(buf_size); in main() 100 { (kernel_ulong_t) (buf + buf_size), NULL, 0 }, in main() 101 { (kernel_ulong_t) (buf), NULL, buf_size }, in main() 102 { (kernel_ulong_t) (buf + 9), NULL, buf_size - 9 }, in main() 103 { (kernel_ulong_t) (buf + 10), NULL, buf_size - 10 }, in main() 104 { (kernel_ulong_t) (buf + 16), NULL, buf_size - 16 }, in main() 105 { (kernel_ulong_t) (buf + 26), NULL, buf_size - 26 }, in main() 106 { (kernel_ulong_t) (buf + 28), NULL, buf_size - 28 }, in main() 115 buf_size, in main() [all …]
|
/external/strace/tests-mx32/ |
D | s390_pci_mmio_read_write.c | 83 static const size_t buf_size = DEFAULT_STRLEN + 10; in main() local 85 char *buf = tail_alloc(buf_size); in main() 100 { (kernel_ulong_t) (buf + buf_size), NULL, 0 }, in main() 101 { (kernel_ulong_t) (buf), NULL, buf_size }, in main() 102 { (kernel_ulong_t) (buf + 9), NULL, buf_size - 9 }, in main() 103 { (kernel_ulong_t) (buf + 10), NULL, buf_size - 10 }, in main() 104 { (kernel_ulong_t) (buf + 16), NULL, buf_size - 16 }, in main() 105 { (kernel_ulong_t) (buf + 26), NULL, buf_size - 26 }, in main() 106 { (kernel_ulong_t) (buf + 28), NULL, buf_size - 28 }, in main() 115 buf_size, in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate04.c | 24 static size_t buf_size; variable 39 buf_size = NUM_OF_BLOCKS * block_size; in get_blocksize() 82 tst_res(TINFO, "allocate '%zu' bytes", buf_size); in test01() 84 if (fallocate(fd, 0, 0, buf_size) == -1) { in test01() 90 char buf[buf_size]; in test01() 94 SAFE_WRITE(1, fd, buf, buf_size); in test01() 147 char exp_buf[buf_size]; in test02() 152 check_file_data(exp_buf, buf_size); in test02() 189 char exp_buf[buf_size]; in test03() 194 check_file_data(exp_buf, buf_size); in test03() [all …]
|
D | fallocate03.c | 136 int buf_size; variable 188 buf_size = block_size; in get_blocksize() 205 char buf[buf_size + 1]; in populate_file() 210 for (index = 0; index < buf_size; index++) in populate_file() 212 buf[buf_size] = '\0'; in populate_file() 213 if ((data = write(fd, buf, buf_size)) < 0) in populate_file()
|
/external/libhevc/encoder/ |
D | ihevce_memory_init.c | 166 WORD32 buf_size; in ihevce_mem_manager_init() local 752 buf_size = ((num_ctb_horz * ctb_size) + (PAD_HORZ << 1)); in ihevce_mem_manager_init() 753 buf_size = buf_size * ((num_ctb_vert * ctb_size) + (PAD_VERT << 1)); in ihevce_mem_manager_init() 754 buf_size = buf_size * (max_num_ref_pics + 1 + NUM_EXTRA_RECON_BUFS); in ihevce_mem_manager_init() 763 (buf_size * ((ps_enc_ctxt->ps_stat_prms->s_tgt_lyr_prms.i4_internal_bit_depth > 8) in ihevce_mem_manager_init() 767 (SHL_NEG(buf_size, i4_chroma_buf_size_shift)); in ihevce_mem_manager_init() 779 buf_size * (3 + L0ME_IN_OPENLOOP_MODE); /* 3 planes */ in ihevce_mem_manager_init() 787 buf_size = (num_ctb_horz + 1) * (num_ctb_vert + 1) * num_pu_in_ctb; in ihevce_mem_manager_init() 788 buf_size = buf_size * sizeof(pu_col_mv_t) * (max_num_ref_pics + 1 + NUM_EXTRA_RECON_BUFS) * in ihevce_mem_manager_init() 795 ps_memtab[total_memtabs_used].i4_mem_size = buf_size; in ihevce_mem_manager_init() [all …]
|
/external/swiftshader/third_party/subzero/crosstest/ |
D | test_bitmanip.cpp | 24 const size_t buf_size = 8; \ 25 type buf[buf_size]; \ 26 for (size_t i = 0; i < buf_size; ++i) { \ 30 for (size_t i = 0; i < buf_size; ++i) { \ 45 const size_t buf_size = 8; \ 46 type buf[buf_size]; \ 47 for (size_t i = 0; i < buf_size; ++i) { \ 51 for (size_t i = 0; i < buf_size; ++i) { \
|
/external/llvm-project/compiler-rt/test/msan/Linux/ |
D | xattr.cpp | 59 int buf_size = 1024; in test_list() local 61 *buf = (char *)malloc(buf_size); in test_list() 62 assert(__msan_test_shadow(*buf, buf_size) != -1); in test_list() 63 ssize_t res = fun(*buf, buf_size); in test_list() 65 assert(__msan_test_shadow(*buf, buf_size) == res); in test_list() 74 buf_size *= 2; in test_list() 83 int buf_size = 1024; in test_get_single_attr() local 85 buf = (char *)malloc(buf_size); in test_get_single_attr() 86 assert(__msan_test_shadow(buf, buf_size) != -1); in test_get_single_attr() 87 ssize_t res = fun(attr_name, buf, buf_size); in test_get_single_attr() [all …]
|
/external/compiler-rt/test/msan/Linux/ |
D | xattr.cc | 59 int buf_size = 1024; in test_list() local 61 *buf = (char *)malloc(buf_size); in test_list() 62 assert(__msan_test_shadow(*buf, buf_size) != -1); in test_list() 63 ssize_t res = fun(*buf, buf_size); in test_list() 65 assert(__msan_test_shadow(*buf, buf_size) == res); in test_list() 74 buf_size *= 2; in test_list() 83 int buf_size = 1024; in test_get_single_attr() local 85 buf = (char *)malloc(buf_size); in test_get_single_attr() 86 assert(__msan_test_shadow(buf, buf_size) != -1); in test_get_single_attr() 87 ssize_t res = fun(attr_name, buf, buf_size); in test_get_single_attr() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/ |
D | 9-1.c | 49 static int do_test(int num_aiocbs, size_t buf_size) in do_test() argument 77 int file_size = num_aiocbs * buf_size; in do_test() 104 aiocbs[i]->aio_offset = i * buf_size; in do_test() 105 aiocbs[i]->aio_buf = &bufs[i * buf_size]; in do_test() 106 aiocbs[i]->aio_nbytes = buf_size; in do_test() 174 if ((err != 0) && ((size_t)ret != buf_size)) { in do_test() 198 int buf_size = 1024 * 64; in main() local 206 ret = do_test(aio_cbs, buf_size); in main() 207 buf_size += buf_size / 4; in main() 213 printf("(buf_size = %i)\nTest PASSED\n", buf_size); in main()
|
/external/webp/tests/fuzzer/ |
D | simple_api_fuzzer.c | 48 size_t buf_size = stride * h; in LLVMFuzzerTestOneInput() local 49 if (value % 0x10 == 0) buf_size--; in LLVMFuzzerTestOneInput() 50 uint8_t* const ext_buf = (uint8_t*)malloc(buf_size); in LLVMFuzzerTestOneInput() 52 WebPDecodeRGBAInto(data, size, ext_buf, buf_size, stride); in LLVMFuzzerTestOneInput() 55 WebPDecodeARGBInto(data, size, ext_buf, buf_size, stride); in LLVMFuzzerTestOneInput() 57 WebPDecodeBGRInto(data, size, ext_buf, buf_size, stride); in LLVMFuzzerTestOneInput() 59 WebPDecodeRGBInto(data, size, ext_buf, buf_size, stride); in LLVMFuzzerTestOneInput() 62 WebPDecodeBGRAInto(data, size, ext_buf, buf_size, stride); in LLVMFuzzerTestOneInput()
|
/external/pdfium/core/fpdfapi/parser/ |
D | fpdf_parser_decode_embeddertest.cpp | 43 uint32_t buf_size; in TEST_F() local 44 EXPECT_TRUE(FlateEncode({data.input, data.input_size}, &buf, &buf_size)); in TEST_F() 46 EXPECT_EQ(data.expected_size, buf_size) << " for case " << i; in TEST_F() 47 if (data.expected_size != buf_size) in TEST_F() 79 uint32_t buf_size; in TEST_F() local 81 FlateDecode({data.input, data.input_size}, &buf, &buf_size)) in TEST_F() 84 EXPECT_EQ(data.expected_size, buf_size) << " for case " << i; in TEST_F() 85 if (data.expected_size != buf_size) in TEST_F()
|
D | cpdf_encryptor.cpp | 22 uint32_t buf_size = m_pHandler->EncryptGetSize(src_data); in Encrypt() local 23 result.resize(buf_size); in Encrypt() 25 buf_size); // Updates |buf_size| with actual. in Encrypt() 26 result.resize(buf_size); in Encrypt()
|
/external/tensorflow/tensorflow/core/lib/io/ |
D | buffered_inputstream_test.cc | 72 for (auto buf_size : BufferSizes()) { in TEST() local 75 BufferedInputStream in(input_stream.get(), buf_size); in TEST() 90 for (auto buf_size : BufferSizes()) { in TEST() local 93 BufferedInputStream in(input_stream.get(), buf_size); in TEST() 115 for (auto buf_size : BufferSizes()) { in TEST() local 118 BufferedInputStream in(input_stream.get(), buf_size); in TEST() 141 for (auto buf_size : BufferSizes()) { in TEST() local 144 BufferedInputStream in(input_stream.get(), buf_size); in TEST() 171 for (auto buf_size : BufferSizes()) { in TEST() local 174 BufferedInputStream in(input_stream.get(), buf_size); in TEST() [all …]
|
D | record_reader_writer_test.cc | 124 for (auto buf_size : BufferSizes()) { in TEST() local 130 options.zlib_options.output_buffer_size = buf_size; in TEST() 142 options.zlib_options.input_buffer_size = buf_size; in TEST() 165 for (auto buf_size : BufferSizes()) { in TEST() local 171 options.zlib_options.output_buffer_size = buf_size; in TEST() 184 options.zlib_options.input_buffer_size = buf_size; in TEST() 202 for (auto buf_size : BufferSizes()) { in TEST() local 208 options.zlib_options.output_buffer_size = buf_size; in TEST() 220 options.zlib_options.input_buffer_size = buf_size; in TEST() 236 for (auto buf_size : BufferSizes()) { in TEST() local [all …]
|
D | inputbuffer_test.cc | 44 for (auto buf_size : BufferSizes()) { in TEST() local 48 io::InputBuffer in(file.get(), buf_size); in TEST() 60 for (auto buf_size : BufferSizes()) { in TEST() local 64 io::InputBuffer in(file.get(), buf_size); in TEST() 83 for (auto buf_size : BufferSizes()) { in TEST() local 87 io::InputBuffer in(file.get(), buf_size); in TEST() 107 for (auto buf_size : BufferSizes()) { in TEST() local 111 io::InputBuffer in(file.get(), buf_size); in TEST() 135 for (auto buf_size : BufferSizes()) { in TEST() local 139 io::InputBuffer in(file.get(), buf_size); in TEST() [all …]
|
/external/libavc/common/ |
D | ih264_list.c | 251 WORD32 buf_size, in ih264_list_init() argument 263 buf_size -= sizeof(list_t); in ih264_list_init() 267 buf_size -= ithread_get_mutex_lock_size(); in ih264_list_init() 269 if (buf_size <= 0) in ih264_list_init() 278 ASSERT((num_entries * entry_size) <= buf_size); in ih264_list_init() 434 WORD32 buf_size = ps_list->i4_entry_size; in ih264_list_queue() local 454 pv_buf_wr = (UWORD8 *)ps_list->pv_buf_base + wr_idx * buf_size; in ih264_list_queue() 456 memcpy(pv_buf_wr, pv_buf, buf_size); in ih264_list_queue() 518 WORD32 buf_size = ps_list->i4_entry_size; in ih264_list_dequeue() local 541 pv_buf_rd = (UWORD8 *)ps_list->pv_buf_base + rd_idx * buf_size; in ih264_list_dequeue() [all …]
|
/external/pdfium/core/fxcrt/ |
D | fx_string.cpp | 115 size_t buf_size = 0; in ToString() local 117 buf[buf_size++] = '-'; in ToString() 122 memcpy(buf + buf_size, buf2, len); in ToString() 123 buf_size += len; in ToString() 126 return buf_size; in ToString() 128 buf[buf_size++] = '.'; in ToString() 131 buf[buf_size++] = '0' + fraction / scale; in ToString() 135 return buf_size; in ToString()
|
/external/selinux/libselinux/src/ |
D | regex.c | 502 size_t buf_size) in regex_format_error() argument 504 unsigned the_end_length = buf_size > 4 ? 4 : buf_size; in regex_format_error() 505 char *ptr = &buffer[buf_size - the_end_length]; in regex_format_error() 508 if (!buffer || !buf_size) in regex_format_error() 510 rc = snprintf(buffer, buf_size, "REGEX back-end error: "); in regex_format_error() 519 if (pos >= buf_size) in regex_format_error() 525 rc = snprintf(buffer + pos, buf_size - pos, "no error code"); in regex_format_error() 529 if (pos >= buf_size) in regex_format_error() 535 rc = snprintf(buffer + pos, buf_size - pos, "empty error"); in regex_format_error() 539 if (pos >= buf_size) in regex_format_error() [all …]
|
/external/libpcap/ |
D | fad-gifc.c | 143 unsigned buf_size; in pcap_findalldevs_interfaces() local 169 buf_size = 8192; in pcap_findalldevs_interfaces() 174 if (buf_size > INT_MAX) { in pcap_findalldevs_interfaces() 181 buf = malloc(buf_size); in pcap_findalldevs_interfaces() 189 ifc.ifc_len = buf_size; in pcap_findalldevs_interfaces() 191 memset(buf, 0, buf_size); in pcap_findalldevs_interfaces() 200 if (ifc.ifc_len < (int)buf_size && in pcap_findalldevs_interfaces() 201 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs_interfaces() 204 buf_size *= 2; in pcap_findalldevs_interfaces()
|
/external/harfbuzz_ng/src/ |
D | hb-subset.cc | 80 unsigned int buf_size = _plan_estimate_subset_table_size (plan, source_blob->length); in _subset2() local 81 …SUBSET, nullptr, "OT::%c%c%c%c initial estimated table size: %u bytes.", HB_UNTAG (tag), buf_size); in _subset2() 82 if (unlikely (!buf.alloc (buf_size))) in _subset2() 84 … DEBUG_MSG(SUBSET, nullptr, "OT::%c%c%c%c failed to allocate %u bytes.", HB_UNTAG (tag), buf_size); in _subset2() 89 hb_serialize_context_t serializer ((void *) buf, buf_size); in _subset2() 95 buf_size += (buf_size >> 1) + 32; in _subset2() 96 …SET, nullptr, "OT::%c%c%c%c ran out of room; reallocating to %u bytes.", HB_UNTAG (tag), buf_size); in _subset2() 97 if (unlikely (!buf.alloc (buf_size))) in _subset2() 99 …DEBUG_MSG(SUBSET, nullptr, "OT::%c%c%c%c failed to reallocate %u bytes.", HB_UNTAG (tag), buf_size… in _subset2()
|
/external/libavc/test/encoder/ |
D | output.c | 68 WORD32 buf_size; in allocate_output() local 72 buf_size = ps_app_ctxt->s_get_buf_info_op.s_ive_op.au4_min_out_buf_size[0]; in allocate_output() 78 pu1_buf = (UWORD8 *)ih264a_aligned_malloc(16, buf_size); in allocate_output() 83 buf_size); in allocate_output() 87 ps_app_ctxt->as_output_buf[i].u4_buf_size = buf_size; in allocate_output()
|
/external/f2fs-tools/tools/f2fs_io/ |
D | f2fs_io.c | 512 u64 buf_size = 0, inc_num = 0, ret = 0, written = 0; in do_write() local 532 buf_size = bs * 4096; in do_write() 534 offset = atoi(argv[2]) * buf_size; in do_write() 536 buf = aligned_xalloc(4096, buf_size); in do_write() 540 memset(buf, 0, buf_size); in do_write() 562 ret = pwrite(fd, buf, buf_size, offset + buf_size * i); in do_write() 566 if (ret != buf_size) in do_write() 589 u64 buf_size = 0, ret = 0, read_cnt = 0; in do_read() local 608 buf_size = bs * 4096; in do_read() 610 offset = atoi(argv[2]) * buf_size; in do_read() [all …]
|