Home
last modified time | relevance | path

Searched refs:read_data (Results 1 – 25 of 62) 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/webrtc/common_audio/
Dring_buffer_unittest.cc62 rtc::scoped_ptr<int[]> read_data(new int[buffer_size]); in RandomStressTest() local
92 read_data.get(), 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()
129 reinterpret_cast<void**>(&data_ptr), read_data, kDataSize)); in TEST()
132 CheckIncrementingData(read_data, kDataSize, kDataSize); in TEST()
135 EXPECT_EQ(kDataSize, WebRtc_ReadBuffer(buffer.get(), NULL, read_data, in TEST()
138 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/u-boot/drivers/ddr/marvell/a38x/
Dddr3_debug.c114 u32 read_data[MAX_INTERFACE_NUM]; in ddr3_tip_reg_dump() local
125 if_id, reg_addr, read_data, in ddr3_tip_reg_dump()
127 printf("0x%x ", read_data[if_id]); in ddr3_tip_reg_dump()
515 u32 read_data[MAX_INTERFACE_NUM]; in ddr3_tip_print_stability_log() local
549 read_data, MASK_ALL_BITS)); in ddr3_tip_print_stability_log()
550 printf("%d,%d,", ((read_data[if_id] & 0x3f0) >> 4), in ddr3_tip_print_stability_log()
551 ((read_data[if_id] & 0xfc00) >> 10)); in ddr3_tip_print_stability_log()
554 read_data, MASK_ALL_BITS)); in ddr3_tip_print_stability_log()
555 printf("%d,%d,", ((read_data[if_id] & 0x3f0) >> 4), in ddr3_tip_print_stability_log()
556 ((read_data[if_id] & 0xfc00) >> 10)); in ddr3_tip_print_stability_log()
[all …]
Dddr3_training_bist.c78 u32 read_data[MAX_INTERFACE_NUM]; in ddr3_tip_bist_read_result() local
87 ODPG_DATA_RX_WORD_ERR_DATA_HIGH_REG, read_data, in ddr3_tip_bist_read_result()
91 pst_bist_result->bist_fail_high = read_data[if_id]; in ddr3_tip_bist_read_result()
93 ODPG_DATA_RX_WORD_ERR_DATA_LOW_REG, read_data, in ddr3_tip_bist_read_result()
97 pst_bist_result->bist_fail_low = read_data[if_id]; in ddr3_tip_bist_read_result()
100 ODPG_DATA_RX_WORD_ERR_ADDR_REG, read_data, in ddr3_tip_bist_read_result()
104 pst_bist_result->bist_last_fail_addr = read_data[if_id]; in ddr3_tip_bist_read_result()
106 ODPG_DATA_RX_WORD_ERR_CNTR_REG, read_data, in ddr3_tip_bist_read_result()
110 pst_bist_result->bist_error_cnt = read_data[if_id]; in ddr3_tip_bist_read_result()
230 u32 subphy, read_data; in mv_ddr_tip_bist() local
[all …]
/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/u-boot/drivers/mtd/nand/raw/
Dkmeter1_nand.c16 #define read_data() in_8(CONFIG_NAND_DATA_REG) macro
75 return read_data(); in kpn_nand_read_byte()
93 buf[i] = read_data(); in kpn_nand_read_buf()
/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/libbrillo/brillo/http/
Dhttp_request_unittest.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/python/cpython3/Lib/test/
Dtest_zipfile.py137 read_data = zipopen1.read(256)
138 if not read_data:
140 zipdata1.append(read_data)
145 read_data = zipopen2.read(256)
146 if not read_data:
148 zipdata2.append(read_data)
171 read_data = zipopen1.read(randint(1, 1024))
172 if not read_data:
174 zipdata1.append(read_data)
190 read_data = zipopen.read1(-1)
[all …]
Dtest_telnetlib.py268 read_data = telnet.read_lazy()
269 data += read_data
270 if not read_data:
/external/toolchain-utils/crosperf/
Dresults_cache.py485 read_data = ''
487 read_data = f.readlines()
489 if not read_data:
494 stats = read_data[0].split()
516 for st in read_data[1:]:
679 read_data = ''
681 read_data = f.readlines()
683 if not read_data:
690 for st in read_data:
/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/u-boot/tools/
Dproftool.c157 static int read_data(FILE *fin, void *buff, int size) in read_data() function
223 if (read_data(fin, call_data, sizeof(*call_data))) in read_calls()
237 err = read_data(fin, &hdr, sizeof(hdr)); in read_profile()
/external/squashfs-tools/kernel-2.4/include/linux/
Dsquashfs_fs_sb.h58 char *read_data; member
/external/u-boot/drivers/net/
Dmt7628-eth.c171 u32 phy_addr, u32 phy_register, u32 *read_data) in mii_mgr_read() argument
177 *read_data = 0xffff; in mii_mgr_read()
194 *read_data = FIELD_GET(PCR1_RD_DATA, status); in mii_mgr_read()

123