Home
last modified time | relevance | path

Searched refs:read_data (Results 1 – 25 of 59) sorted by relevance

123

/external/vboot_reference/tests/
Dvb21_host_misc_tests.c34 uint8_t *read_data; in file_tests() local
42 TEST_EQ(vb2_read_file(testfile, &read_data, &read_size), in file_tests()
49 TEST_SUCC(vb2_read_file(testfile, &read_data, &read_size), in file_tests()
52 TEST_EQ(memcmp(read_data, test_data, read_size), 0, " data"); in file_tests()
53 free(read_data); in file_tests()
62 TEST_SUCC(vb2_read_file(testfile, &read_data, &read_size), in file_tests()
66 TEST_EQ(memcmp(read_data, c, read_size), 0, " data"); in file_tests()
67 free(read_data); in file_tests()
/external/webrtc/common_audio/
Dring_buffer_unittest.cc64 std::unique_ptr<int[]> read_data(new int[buffer_size]); in RandomStressTest() local
93 read_data.get(), num_elements)); in RandomStressTest()
94 int* check_ptr = read_data.get(); in RandomStressTest()
118 int read_data[kDataSize]; in TEST() local
127 SetIncrementingData(read_data, kDataSize, kDataSize); in TEST()
130 read_data, kDataSize)); in TEST()
133 CheckIncrementingData(read_data, kDataSize, kDataSize); in TEST()
137 WebRtc_ReadBuffer(buffer.get(), nullptr, read_data, kDataSize)); in TEST()
139 CheckIncrementingData(read_data, kDataSize, 0); in TEST()
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestwith.py192 mock = mock_open(read_data='foo')
203 mock = mock_open(read_data='foo\nbar\nbaz\n')
215 mock = mock_open(read_data='foo')
225 mock = mock_open(read_data='foo\nbar\nbaz\n')
239 mock = mock_open(read_data='foo\nbar\nbaz\n')
252 mock = mock_open(read_data='foo\nbar\nbaz\n')
260 mock = mock_open(read_data='foo\nbar\nbaz')
269 mock = mock_open(read_data=b'\xc6')
277 m = mock_open(read_data=b'abc\ndef\nghi\n')
289 m = mock_open(read_data=b'abc\ndef\nghi\n')
[all …]
/external/python/mock/mock/tests/
Dtestwith.py197 mock = mock_open(read_data='foo')
208 mock = mock_open(read_data='foo\nbar\nbaz\n')
220 mock = mock_open(read_data='foo')
230 mock = mock_open(read_data='foo\nbar\nbaz\n')
242 mock = mock_open(read_data='foo\nbar\nbaz\n')
250 mock = mock_open(read_data='foo\nbar\nbaz')
259 mock = mock_open(read_data=b'\xc6')
267 m = mock_open(read_data=b'abc\ndef\nghi\n')
279 m = mock_open(read_data=b'abc\ndef\nghi\n')
290 mock = mock_open(read_data=some_data)
[all …]
/external/arm-trusted-firmware/plat/brcm/board/stingray/driver/
Dswreg.c197 uint32_t read_data; in swreg_config_done() local
200 ret = read_swreg_config(reg_id, PHY_REG0, &read_data); in swreg_config_done()
204 read_data &= BSTI_CONFI_DONE_MASK; in swreg_config_done()
205 read_data |= BSTI_TOGGLE_BIT; in swreg_config_done()
206 ret = write_swreg_config(reg_id, PHY_REG0, read_data); in swreg_config_done()
210 ret = read_swreg_config(reg_id, PHY_REG0, &read_data); in swreg_config_done()
214 read_data &= BSTI_CONFI_DONE_MASK; in swreg_config_done()
215 ret = write_swreg_config(reg_id, PHY_REG0, read_data); in swreg_config_done()
/external/marisa-trie/lib/marisa/grimoire/io/
Dreader.h26 read_data(obj, sizeof(T)); in read()
34 read_data(objs, sizeof(T) * num_objs); in read()
55 void read_data(void *buf, std::size_t size);
Dreader.cc73 read_data(buf, size); in seek()
78 read_data(buf, count); in seek()
112 void Reader::read_data(void *buf, std::size_t size) { in read_data() function in marisa::grimoire::io::Reader
/external/ltp/testcases/kernel/io/stress_cd/
Dstress_cd.c48 static int read_data(int, unsigned long *);
65 read_data(0, &checksum); in main()
128 read_data(num, &cksum); in thread()
140 static int read_data(int num, unsigned long *cksum) in read_data() function
/external/arm-trusted-firmware/drivers/brcm/
Dsotp.c70 uint64_t read_data = 0; in sotp_mem_read()
111 read_data = SOTP_ECC_ERR_DETECT; in sotp_mem_read()
117 read_data = read_data1 | read_data2; in sotp_mem_read()
127 return read_data; in sotp_mem_read()
/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/train/
Ddata_split_person_test.py25 from data_split_person import read_data
31 self.data = read_data("./data/complete_data")
Ddata_split_person.py37 from data_split import read_data
62 data = read_data("./data/complete_data")
Ddata_split.py40 def read_data(path): function
86 data = read_data("./data/complete_data")
Ddata_split_test.py25 from data_split import read_data
32 self.data = read_data("./data/complete_data")
/external/autotest/client/site_tests/enterprise_SmbProviderDaemon/
Denterprise_SmbProviderDaemon.py119 read_data = self._check_read_file(mount_id, file_id, 0, len(data))
125 self._check_contents(data, read_data)
319 def _check_contents(self, data, read_data): argument
328 if data != read_data:
/external/arm-trusted-firmware/plat/intel/soc/common/drivers/qspi/
Dcadence_qspi.c636 uint32_t read_count = 0, *read_data; in cad_qspi_read_bank() local
649 read_data = (uint32_t *)(buffer + read_count); in cad_qspi_read_bank()
651 *read_data++ = mmio_read_32(CAD_QSPIDATA_OFST); in cad_qspi_read_bank()
684 uint8_t *read_data; in cad_qspi_read() local
714 read_data = (uint8_t *)buffer; in cad_qspi_read()
723 status = cad_qspi_read_bank(read_data, bank_offset, copy_len); in cad_qspi_read()
728 read_data += copy_len; in cad_qspi_read()
/external/rust/crates/plotters/examples/
Dboxplot.rs10 fn read_data<BR: BufRead>(reader: BR) -> HashMap<(String, String), Vec<f64>> { in read_data() function
35 read_data(io::Cursor::new(get_data())) in main()
38 read_data(BufReader::new(file)) in main()
/external/toolchain-utils/rust_tools/
Drust_uprev_test.py122 mock_open = mock.mock_open(read_data=self.ebuild_file_before)
131 mock_open = mock.mock_open(read_data=ebuild_file)
145 mock_open = mock.mock_open(read_data=f'RESTRICT="{before}"')
207 mock_open = mock.mock_open(read_data=package_before)
219 mock_open = mock.mock_open(read_data=package_before)
445 mock_open = mock.mock_open(read_data=rust_ebuild)
/external/libbrillo/brillo/http/
Dhttp_request_test.cc152 auto read_data = in TEST_F() local
179 [this, &read_data](const SuccessCallback& success_callback) { in TEST_F()
182 .WillOnce(Invoke(read_data)) in TEST_F()
/external/python/cpython2/Lib/test/
Dtest_telnetlib.py282 read_data = telnet.read_lazy()
283 data += read_data
284 if not read_data:
304 read_data = telnet.read_very_lazy()
307 data += read_data
308 if not read_data:
Dtest_zipfile.py130 read_data = zipopen1.read(256)
131 if not read_data:
133 zipdata1.append(read_data)
138 read_data = zipopen2.read(256)
139 if not read_data:
141 zipdata2.append(read_data)
178 read_data = zipopen1.read(randint(1, 1024))
179 if not read_data:
181 zipdata1.append(read_data)
1403 read_data = zipopen1.read(256)
[all …]
/external/OpenCL-CTS/test_conformance/basic/
Dtest_progvar.cpp952 cl_uchar* read_data = (cl_uchar*)align_malloc(read_data_size, ALIGNMENT); in l_write_read_for_type() local
956 …clMemWrapper read_mem( clCreateBuffer( context, CL_MEM_USE_HOST_PTR, read_data_size, read_data, &s… in l_write_read_for_type()
1010 memset(read_data, -1, read_data_size); in l_write_read_for_type()
1023 … for ( unsigned i = 0; i < NUM_TESTED_VALUES-1 ; i++ ) read_data[i] = (bool)read_data[i]; in l_write_read_for_type()
1027 …int compare_result = l_compare( "read-after-write", expected, read_data, NUM_TESTED_VALUES-1, ti ); in l_write_read_for_type()
1039 align_free(read_data); in l_write_read_for_type()
1102 cl_uchar* read_data = (cl_uchar*)align_malloc(read_data_size, ALIGNMENT); in l_init_write_read_for_type() local
1105 …clMemWrapper read_mem( clCreateBuffer( context, CL_MEM_USE_HOST_PTR, read_data_size, read_data, &s… in l_init_write_read_for_type()
1185 memset( read_data, -1, read_data_size ); in l_init_write_read_for_type()
1203 … for ( unsigned i = 0; i < NUM_TESTED_VALUES-1 ; i++ ) read_data[i] = (bool)read_data[i]; in l_init_write_read_for_type()
[all …]
/external/squashfs-tools/kernel-2.4/include/linux/
Dsquashfs_fs_sb.h58 char *read_data; member
/external/python/cpython3/Lib/test/
Dtest_zipfile.py135 read_data = zipopen1.read(256)
136 if not read_data:
138 zipdata1.append(read_data)
143 read_data = zipopen2.read(256)
144 if not read_data:
146 zipdata2.append(read_data)
169 read_data = zipopen1.read(randint(1, 1024))
170 if not read_data:
172 zipdata1.append(read_data)
188 read_data = zipopen.read1(-1)
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/mm/
Dtlbie_test.c472 unsigned int *w_ptr, read_data; in rim_fn() local
516 read_data = *w_ptr; //Load in rim_fn()
522 if (read_data != old_pattern) { in rim_fn()
/external/toolchain-utils/crosperf/
Dresults_cache.py542 read_data = ''
544 read_data = f.readlines()
546 if not read_data:
551 stats = read_data[0].split()
573 for st in read_data[1:]:
745 read_data = ''
747 read_data = f.readlines()
749 if not read_data:
756 for st in read_data:

123