Home
last modified time | relevance | path

Searched refs:read_data (Results 1 – 25 of 52) 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.py195 mock = mock_open(read_data='foo')
206 mock = mock_open(read_data='foo\nbar\nbaz\n')
218 mock = mock_open(read_data='foo')
228 mock = mock_open(read_data='foo\nbar\nbaz\n')
240 mock = mock_open(read_data='foo\nbar\nbaz\n')
248 mock = mock_open(read_data='foo\nbar\nbaz')
257 mock = mock_open(read_data=b'\xc6')
265 m = mock_open(read_data=b'abc\ndef\nghi\n')
277 m = mock_open(read_data=b'abc\ndef\nghi\n')
288 mock = mock_open(read_data=some_data)
[all …]
/external/python/mock/mock/tests/
Dtestwith.py186 mock = mock_open(read_data='foo')
196 mock = mock_open(read_data='foo\nbar\nbaz\n')
207 mock = mock_open(read_data='foo')
216 mock = mock_open(read_data='foo\nbar\nbaz\n')
224 mock = mock_open(read_data='foo\nbar\nbaz')
233 mock = mock_open(read_data=b'\xc6')
241 m = mock_open(read_data=b'abc\ndef\nghi\n')
253 m = mock_open(read_data=b'abc\ndef\nghi\n')
264 mock = mock_open(read_data=some_data)
271 mock = mock_open(read_data='foo\nbar\nbaz\n')
[all …]
/external/u-boot/drivers/ddr/marvell/a38x/
Dddr3_training_bist.c77 u32 read_data[MAX_INTERFACE_NUM]; in ddr3_tip_bist_read_result() local
86 ODPG_DATA_RX_WORD_ERR_DATA_HIGH_REG, read_data, in ddr3_tip_bist_read_result()
90 pst_bist_result->bist_fail_high = read_data[if_id]; in ddr3_tip_bist_read_result()
92 ODPG_DATA_RX_WORD_ERR_DATA_LOW_REG, read_data, in ddr3_tip_bist_read_result()
96 pst_bist_result->bist_fail_low = read_data[if_id]; in ddr3_tip_bist_read_result()
99 ODPG_DATA_RX_WORD_ERR_ADDR_REG, read_data, in ddr3_tip_bist_read_result()
103 pst_bist_result->bist_last_fail_addr = read_data[if_id]; in ddr3_tip_bist_read_result()
105 ODPG_DATA_RX_WORD_ERR_CNTR_REG, read_data, in ddr3_tip_bist_read_result()
109 pst_bist_result->bist_error_cnt = read_data[if_id]; in ddr3_tip_bist_read_result()
229 u32 subphy, read_data; in mv_ddr_tip_bist() local
[all …]
Dddr3_debug.c112 u32 read_data[MAX_INTERFACE_NUM]; in ddr3_tip_reg_dump() local
123 if_id, reg_addr, read_data, in ddr3_tip_reg_dump()
125 printf("0x%x ", read_data[if_id]); in ddr3_tip_reg_dump()
530 u32 read_data[MAX_INTERFACE_NUM]; in ddr3_tip_print_stability_log() local
564 read_data, MASK_ALL_BITS)); in ddr3_tip_print_stability_log()
565 printf("%d,%d,", ((read_data[if_id] & 0x3f0) >> 4), in ddr3_tip_print_stability_log()
566 ((read_data[if_id] & 0xfc00) >> 10)); in ddr3_tip_print_stability_log()
569 read_data, MASK_ALL_BITS)); in ddr3_tip_print_stability_log()
570 printf("%d,%d,", ((read_data[if_id] & 0x3f0) >> 4), in ddr3_tip_print_stability_log()
571 ((read_data[if_id] & 0xfc00) >> 10)); in ddr3_tip_print_stability_log()
[all …]
Dddr3_training_ip_engine.c704 u32 read_data[MAX_INTERFACE_NUM]; in ddr3_tip_read_training_result() local
796 read_data, in ddr3_tip_read_training_result()
799 if ((read_data[if_id] & in ddr3_tip_read_training_result()
808 read_data in ddr3_tip_read_training_result()
814 = read_data[if_id] + in ddr3_tip_read_training_result()
/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/
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/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/tensorflow/tensorflow/contrib/ignite/python/ops/
Dignite_dataset_ops.py63 self.read_data(length)
66 def read_data(self, length): member in Readable
72 data_buffer = self.read_data(length)
89 def read_data(self, length): member in DataBuffer
163 def read_data(self, length): member in TcpClient
442 payload = DataBuffer(self.read_data(result_length - 25))
598 inner_data = data.read_data(length)
683 return self.read_data(length).decode("utf-8")
/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/cpython3/Lib/test/
Dtest_zipfile.py133 read_data = zipopen1.read(256)
134 if not read_data:
136 zipdata1.append(read_data)
141 read_data = zipopen2.read(256)
142 if not read_data:
144 zipdata2.append(read_data)
167 read_data = zipopen1.read(randint(1, 1024))
168 if not read_data:
170 zipdata1.append(read_data)
186 read_data = zipopen.read1(-1)
[all …]
Dtest_telnetlib.py268 read_data = telnet.read_lazy()
269 data += read_data
270 if not read_data:
/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/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/python/mock/
DNEWS14 read_data is bytes. Initial patch by Aaron Hill.
16 - Issue #21750: mock_open.read_data can now be read from each instance, as it
/external/squashfs-tools/kernel-2.4/include/linux/
Dsquashfs_fs_sb.h58 char *read_data; member
/external/autotest/client/profilers/powertop/src/
Dpowertop.c423 static void read_data(uint64_t * usage, uint64_t * duration) in read_data() function
825 read_data(&start_usage[0], &start_duration[0]); in main()
876 read_data(&cur_usage[0], &cur_duration[0]); in main()
1166 read_data(&cur_usage[0], &cur_duration[0]); in main()
/external/tensorflow/tensorflow/examples/tutorials/word2vec/
Dword2vec_basic.py68 def read_data(filename): function
74 vocabulary = read_data(filename)
/external/python/cpython3/Lib/unittest/
Dmock.py2332 def _iterate_read_data(read_data): argument
2336 sep = b'\n' if isinstance(read_data, bytes) else '\n'
2337 data_as_list = [l + sep for l in read_data.split(sep)]
2353 def mock_open(mock=None, read_data=''): argument
2373 return type(read_data)().join(_state[0])
2378 yield type(read_data)()
2398 _state = [_iterate_read_data(read_data), None]
2412 _state[0] = _iterate_read_data(read_data)
/external/u-boot/arch/arm/mach-exynos/
Ddmc_init_ddr3.c260 unsigned int read_data; in dmc_valid_window_test_vector() local
267 read_data = readl(test_addr + i * 4 + ch * 0x80); in dmc_valid_window_test_vector()
268 if ((read_data & mask) != (test_pattern[i] & mask)) in dmc_valid_window_test_vector()
/external/curl/lib/
Dsecurity.c191 static CURLcode read_data(struct connectdata *conn, in read_data() function
256 if(read_data(conn, fd, &conn->in_buffer)) in sec_recv()
/external/python/mock/mock/
Dmock.py2451 def _iterate_read_data(read_data): argument
2455 sep = b'\n' if isinstance(read_data, bytes) else '\n'
2456 data_as_list = [l + sep for l in read_data.split(sep)]
2471 def mock_open(mock=None, read_data=''): argument
2491 return type(read_data)().join(_state[0])
2516 _state = [_iterate_read_data(read_data), None]
2529 _state[0] = _iterate_read_data(read_data)

123