Searched refs:buf_size (Results 1 - 25 of 237) sorted by relevance

12345678910

/external/adhd/cras/src/tests/
H A Dfmt_conv_unittest.cc65 const size_t buf_size = 4096; local
76 c = cras_fmt_conv_create(&in_fmt, &out_fmt, buf_size, 0);
79 out_frames = cras_fmt_conv_out_frames_to_in(c, buf_size);
80 EXPECT_EQ(buf_size, out_frames);
82 out_frames = cras_fmt_conv_in_frames_to_out(c, buf_size);
83 EXPECT_EQ(buf_size, out_frames);
85 in_buff = (int16_t *)ralloc(buf_size * 2 * cras_get_format_bytes(&in_fmt));
86 out_buff = (int16_t *)ralloc(buf_size * 2 * cras_get_format_bytes(&out_fmt));
91 buf_size);
92 EXPECT_EQ(buf_size, out_frame
116 const size_t buf_size = 4096; local
167 const size_t buf_size = 100; local
227 const size_t buf_size = 4096; local
334 const size_t buf_size = 4096; local
369 const size_t buf_size = 4096; local
404 const size_t buf_size = 4096; local
444 const size_t buf_size = 4096; local
485 const size_t buf_size = 4096; local
526 const size_t buf_size = 4096; local
568 const size_t buf_size = 4096; local
609 const size_t buf_size = 4096; local
650 const size_t buf_size = 4096; local
692 const size_t buf_size = 4096; local
735 const size_t buf_size = 4096; local
787 const size_t buf_size = 4096; local
839 const size_t buf_size = 4096; local
882 const size_t buf_size = 4096; local
926 const size_t buf_size = 4096; local
970 const size_t buf_size = 4096; local
1015 const size_t buf_size = 4096; local
1059 const size_t buf_size = 4096; local
1108 const size_t buf_size = 4096; local
[all...]
/external/swiftshader/third_party/subzero/crosstest/
H A Dtest_bitmanip.cpp24 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) { \
H A Dtest_sync_atomic.cpp31 const size_t buf_size = 8; \
32 type buf[buf_size]; \
33 for (size_t i = 0; i < buf_size; ++i) { \
41 for (size_t i = 0; i < buf_size; ++i) { \
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform_windows.cc31 void WriteMemoryProfile(char *buf, uptr buf_size, uptr nthread, uptr nlive) { argument
/external/strace/tests/
H A Ds390_pci_mmio_read_write.c84 static const size_t buf_size = DEFAULT_STRLEN + 10; local
86 char *buf = tail_alloc(buf_size);
101 { (kernel_ulong_t) (buf + buf_size), NULL, 0 },
102 { (kernel_ulong_t) (buf), NULL, buf_size },
103 { (kernel_ulong_t) (buf + 9), NULL, buf_size - 9 },
104 { (kernel_ulong_t) (buf + 10), NULL, buf_size - 10 },
105 { (kernel_ulong_t) (buf + 16), NULL, buf_size - 16 },
106 { (kernel_ulong_t) (buf + 26), NULL, buf_size - 26 },
107 { (kernel_ulong_t) (buf + 28), NULL, buf_size - 28 },
116 buf_size,
[all...]
/external/strace/tests-m32/
H A Ds390_pci_mmio_read_write.c84 static const size_t buf_size = DEFAULT_STRLEN + 10; local
86 char *buf = tail_alloc(buf_size);
101 { (kernel_ulong_t) (buf + buf_size), NULL, 0 },
102 { (kernel_ulong_t) (buf), NULL, buf_size },
103 { (kernel_ulong_t) (buf + 9), NULL, buf_size - 9 },
104 { (kernel_ulong_t) (buf + 10), NULL, buf_size - 10 },
105 { (kernel_ulong_t) (buf + 16), NULL, buf_size - 16 },
106 { (kernel_ulong_t) (buf + 26), NULL, buf_size - 26 },
107 { (kernel_ulong_t) (buf + 28), NULL, buf_size - 28 },
116 buf_size,
[all...]
/external/strace/tests-mx32/
H A Ds390_pci_mmio_read_write.c84 static const size_t buf_size = DEFAULT_STRLEN + 10; local
86 char *buf = tail_alloc(buf_size);
101 { (kernel_ulong_t) (buf + buf_size), NULL, 0 },
102 { (kernel_ulong_t) (buf), NULL, buf_size },
103 { (kernel_ulong_t) (buf + 9), NULL, buf_size - 9 },
104 { (kernel_ulong_t) (buf + 10), NULL, buf_size - 10 },
105 { (kernel_ulong_t) (buf + 16), NULL, buf_size - 16 },
106 { (kernel_ulong_t) (buf + 26), NULL, buf_size - 26 },
107 { (kernel_ulong_t) (buf + 28), NULL, buf_size - 28 },
116 buf_size,
[all...]
/external/vboot_reference/tests/
H A Dvb21_common_tests.c259 uint32_t buf_size; local
283 buf_size = kbuf->c.total_size;
286 buf2 = malloc(buf_size);
287 memcpy(buf2, buf, buf_size);
292 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb),
295 memcpy(buf, buf2, buf_size);
296 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk2, &wb),
299 memcpy(buf, buf2, buf_size);
300 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk3, &wb),
304 memcpy(buf, buf2, buf_size);
386 uint32_t buf_size; local
[all...]
/external/libavc/test/encoder/
H A Doutput.c67 WORD32 buf_size; local
71 buf_size = ps_app_ctxt->s_get_buf_info_op.s_ive_op.au4_min_out_buf_size[0];
77 pu1_buf = (UWORD8 *)ih264a_aligned_malloc(16, buf_size);
82 buf_size);
86 ps_app_ctxt->as_output_buf[i].u4_buf_size = buf_size;
/external/compiler-rt/test/msan/Linux/
H A Dxattr.cc59 int buf_size = 1024; variable
61 *buf = (char *)malloc(buf_size);
62 assert(__msan_test_shadow(*buf, buf_size) != -1);
63 ssize_t res = fun(*buf, buf_size);
65 assert(__msan_test_shadow(*buf, buf_size) == res);
74 buf_size *= 2;
83 int buf_size = 1024; variable
85 buf = (char *)malloc(buf_size);
86 assert(__msan_test_shadow(buf, buf_size) != -1);
87 ssize_t res = fun(attr_name, buf, buf_size);
[all...]
/external/pdfium/core/fpdfapi/parser/
H A Dfpdf_parser_decode_embeddertest.cpp40 uint32_t buf_size; local
41 EXPECT_TRUE(FlateEncode(data.input, data.input_size, &buf, &buf_size));
43 EXPECT_EQ(data.expected_size, buf_size) << " for case " << i;
44 if (data.expected_size != buf_size)
77 uint32_t buf_size; local
79 FlateDecode(data.input, data.input_size, &buf, &buf_size))
82 EXPECT_EQ(data.expected_size, buf_size) << " for case " << i;
83 if (data.expected_size != buf_size)
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/
H A D9-1.c49 static int do_test(int num_aiocbs, size_t buf_size) argument
76 int file_size = num_aiocbs * buf_size;
103 aiocbs[i]->aio_offset = i * buf_size;
104 aiocbs[i]->aio_buf = &bufs[i * buf_size];
105 aiocbs[i]->aio_nbytes = buf_size;
173 if ((err != 0) && ((size_t)ret != buf_size)) {
197 int buf_size = 1024 * 64; local
205 ret = do_test(aio_cbs, buf_size);
206 buf_size += buf_size /
[all...]
/external/tensorflow/tensorflow/core/lib/io/
H A Drecord_reader_writer_test.cc40 for (auto buf_size : BufferSizes()) {
46 options.zlib_options.output_buffer_size = buf_size;
58 options.zlib_options.input_buffer_size = buf_size;
74 for (auto buf_size : BufferSizes()) {
76 if (buf_size == 1) continue;
83 options.zlib_options.output_buffer_size = buf_size;
96 options.zlib_options.input_buffer_size = buf_size;
/external/ltp/testcases/kernel/syscalls/fallocate/
H A Dfallocate04.c38 static size_t buf_size; variable
53 buf_size = NUM_OF_BLOCKS * block_size;
96 tst_res(TINFO, "allocate '%zu' bytes", buf_size);
98 if (fallocate(fd, 0, 0, buf_size) == -1) {
104 char buf[buf_size];
108 SAFE_WRITE(1, fd, buf, buf_size);
161 char exp_buf[buf_size];
166 check_file_data(exp_buf, buf_size);
203 char exp_buf[buf_size];
208 check_file_data(exp_buf, buf_size);
[all...]
/external/speex/libspeex/
H A Dbits.c54 bits->buf_size = MAX_CHARS_PER_FRAME;
61 EXPORT void speex_bits_init_buffer(SpeexBits *bits, void *buff, int buf_size) argument
64 bits->buf_size = buf_size;
71 EXPORT void speex_bits_set_bit_buffer(SpeexBits *bits, void *buff, int buf_size) argument
74 bits->buf_size = buf_size;
78 bits->nbBits=buf_size<<LOG2_BITS_PER_CHAR;
113 if (nchars > bits->buf_size)
121 bits->buf_size
[all...]
/external/libexif/libexif/olympus/
H A Dexif-mnote-data-olympus.c42 unsigned int buf_size);
96 * @param buf_size the size of the buffer
100 unsigned char **buf, unsigned int *buf_size)
108 if (!n || !buf || !buf_size) return;
113 *buf_size = 6 + 2 + 2 + n->count * 12;
118 *buf = exif_mem_alloc (ne->mem, *buf_size);
120 EXIF_LOG_NO_MEMORY(ne->log, "ExifMnoteDataOlympus", *buf_size);
132 *buf_size += 8-6 + 4;
133 *buf = exif_mem_alloc (ne->mem, *buf_size);
135 EXIF_LOG_NO_MEMORY(ne->log, "ExifMnoteDataOlympus", *buf_size);
99 exif_mnote_data_olympus_save(ExifMnoteData *ne, unsigned char **buf, unsigned int *buf_size) argument
237 exif_mnote_data_olympus_load(ExifMnoteData *en, const unsigned char *buf, unsigned int buf_size) argument
576 exif_mnote_data_olympus_identify_variant(const unsigned char *buf, unsigned int buf_size) argument
[all...]
/external/libunwind/src/
H A Dos-linux.h36 size_t buf_size; member in struct:map_iterator
81 mi->buf_size = getpagesize ();
82 cp = mmap (NULL, mi->buf_size, PROT_READ | PROT_WRITE,
93 mi->buf = mi->buf_end = cp + mi->buf_size;
185 scan_string (char *cp, char *valp, size_t buf_size) argument
194 if ((valp != NULL) && (i < buf_size - 1))
198 if (i == 0 || i >= buf_size)
235 memmove (mi->buf_end - mi->buf_size, mi->buf, bytes_left);
237 mi->buf = mi->buf_end - mi->buf_size;
239 mi->buf_size
[all...]
/external/pdfium/core/fxcrt/
H A Dfx_string.cpp211 size_t buf_size = 0; local
213 buf[buf_size++] = '-';
218 memcpy(buf + buf_size, buf2, len);
219 buf_size += len;
222 return buf_size;
224 buf[buf_size++] = '.';
227 buf[buf_size++] = '0' + fraction / scale;
231 return buf_size;
/external/wpa_supplicant_8/hostapd/src/common/
H A Dwpa_helpers.h22 const char *event, char *buf, size_t buf_size);
25 char *buf, size_t buf_size);
/external/wpa_supplicant_8/src/common/
H A Dwpa_helpers.h22 const char *event, char *buf, size_t buf_size);
25 char *buf, size_t buf_size);
/external/wpa_supplicant_8/wpa_supplicant/src/common/
H A Dwpa_helpers.h22 const char *event, char *buf, size_t buf_size);
25 char *buf, size_t buf_size);
/external/libexif/libexif/pentax/
H A Dexif-mnote-data-pentax.c74 * @param buf_size the final size of the buffer
78 unsigned char **buf, unsigned int *buf_size)
87 if (!n || !buf || !buf_size) return;
93 *buf_size = o2 + 2 + n->count * 12 + 4;
97 *buf = exif_mem_alloc (ne->mem, *buf_size);
99 EXIF_LOG_NO_MEMORY(ne->log, "ExifMnoteDataPentax", *buf_size);
110 *buf = exif_mem_alloc (ne->mem, *buf_size);
112 EXIF_LOG_NO_MEMORY(ne->log, "ExifMnoteDataPentax", *buf_size);
126 *buf = exif_mem_alloc (ne->mem, *buf_size);
128 EXIF_LOG_NO_MEMORY(ne->log, "ExifMnoteDataPentax", *buf_size);
77 exif_mnote_data_pentax_save(ExifMnoteData *ne, unsigned char **buf, unsigned int *buf_size) argument
214 exif_mnote_data_pentax_load(ExifMnoteData *en, const unsigned char *buf, unsigned int buf_size) argument
[all...]
/external/kernel-headers/original/uapi/linux/
H A Drandom.h40 int buf_size; member in struct:rand_pool_info
/external/libexif/libexif/fuji/
H A Dexif-mnote-data-fuji.c80 unsigned int *buf_size)
87 if (!n || !buf || !buf_size) return;
93 *buf_size = 8 + 4 + 2 + n->count * 12 + 4;
94 *buf = exif_mem_alloc (ne->mem, *buf_size);
96 *buf_size = 0;
126 ts = *buf_size + s;
135 *buf_size = ts;
136 doff = *buf_size - s;
137 if (s & 1) { doff--; *(*buf + *buf_size - 1) = '\0'; }
153 const unsigned char *buf, unsigned int buf_size)
79 exif_mnote_data_fuji_save(ExifMnoteData *ne, unsigned char **buf, unsigned int *buf_size) argument
152 exif_mnote_data_fuji_load(ExifMnoteData *en, const unsigned char *buf, unsigned int buf_size) argument
[all...]
/external/perfetto/src/tracing/test/
H A Daligned_buffer_test.h38 size_t buf_size() const { return buf_->size(); } function in class:perfetto::AlignedBufferTest

Completed in 594 milliseconds

12345678910