Home
last modified time | relevance | path

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

/test/vts/drivers/resource/fmq_driver/
DVtsFmqDriverTest.cpp178 uint16_t read_data[DATA_SIZE]; in TEST_F() local
189 "uint16_t", reader_id_, read_data, DATA_SIZE))); in TEST_F()
192 ASSERT_EQ(0, memcmp(write_data, read_data, DATA_SIZE * sizeof(uint16_t))); in TEST_F()
198 uint16_t read_data[DATA_SIZE]; in TEST_F() local
202 "uint16_t", reader_id_, read_data, DATA_SIZE))); in TEST_F()
209 uint16_t read_data[DATA_SIZE]; in TEST_F() local
230 "uint16_t", reader_id_, read_data, DATA_SIZE))); in TEST_F()
232 ASSERT_EQ(0, memcmp(write_data, read_data, DATA_SIZE * sizeof(uint16_t))); in TEST_F()
266 uint16_t read_data[DATA_SIZE]; in TEST_F() local
276 "uint16_t", reader_id_, read_data, DATA_SIZE))); in TEST_F()
[all …]
/test/vts/testcases/codelab/fmq_test/
DVtsCodelabFmqTest.py191 read_data = []
196 read_success = self._queue1_reader.read(read_data, 2048)
198 asserts.assertEqual(read_data, write_data)
202 read_data = []
203 read_success = self._queue1_reader.read(read_data, 5)
238 read_data = []
239 read_success = self._queue1_reader.read(read_data, 2048)
242 asserts.assertEqual(write_data, read_data)
256 read_data = []
266 read_data, 2048, 1000 * 1000000)
[all …]
/test/vts/drivers/resource/resource_manager/
DVtsResourceManager.cpp128 char read_data[read_data_size]; in ProcessHidlHandleCommand() local
131 handle_id, static_cast<void*>(read_data), read_data_size); in ProcessHidlHandleCommand()
134 string(read_data, read_success_bytes)); in ProcessHidlHandleCommand()
216 char read_data[length]; in ProcessHidlMemoryCommand() local
217 success = hidl_memory_driver_.ReadBytes(mem_id, read_data, length, start); in ProcessHidlMemoryCommand()
218 hidl_memory_response->set_read_data(string(read_data, length)); in ProcessHidlMemoryCommand()
334 T read_data[read_data_size]; in ProcessFmqCommandInternal() local
366 success = fmq_driver_.ReadFmq<T, flavor>(data_type, queue_id, read_data, in ProcessFmqCommandInternal()
368 if (!FmqCpp2Proto<T>(fmq_response, data_type, read_data, in ProcessFmqCommandInternal()
378 data_type, queue_id, read_data, read_data_size, time_out_nanos); in ProcessFmqCommandInternal()
[all …]
/test/vts/testcases/host/fmq_hidl_test/
DVtsHalTestsMsgqV1_0HostTest.py165 read_data = []
167 self._sync_client.read(read_data, data_len),
169 asserts.assertEqual(read_data, generateSequentialData(data_len))
230 read_data = []
234 self._sync_client.read(read_data, self.MAX_NUM_MSG)
235 asserts.assertEqual(write_data, read_data)
295 read_data = []
297 self._sync_client.read(read_data, chunk_size),
299 total_read_data.extend(read_data)
366 read_data = []
[all …]
/test/vts/testcases/codelab/hidl_memory_test/
DVtsCodelabHidlMemoryTest.py124 read_data = self._mem_obj.readBytes(len(write_data))
125 asserts.assertEqual(write_data, read_data)
146 read_data = list(bytearray(read_data_str))
148 asserts.assertEqual(write_data, read_data)
204 read_data = self._mem_obj.readBytes(self.MEM_SIZE)
208 read_data = list(read_data)
209 read_data = map(lambda i: ord(i), read_data)
212 asserts.assertEqual(read_data, [42] * self.MEM_SIZE)
/test/vts/drivers/resource/hidl_handle_driver/
DVtsHidlHandleDriverTest.cpp95 char read_data[write_data.length()]; in TEST_F() local
96 ASSERT_EQ(handle_driver_.ReadFile(client2_id_, static_cast<void*>(read_data), in TEST_F()
100 ASSERT_TRUE(write_data == string(read_data, write_data.length())); in TEST_F()
110 char read_data[write_data.length() * NUM_ITERS]; in TEST_F() local
111 char* curr_read_data_ptr = read_data; in TEST_F()
126 string curr_read_data = string(read_data, write_data.length() * (i + 1)); in TEST_F()
DVtsHidlHandleDriver.cpp92 ssize_t VtsHidlHandleDriver::ReadFile(HandleId handle_id, void* read_data, in ReadFile() argument
105 ssize_t read_result = read(fd, read_data, num_bytes); in ReadFile()
/test/vts/drivers/resource/hidl_memory_driver/
DVtsHidlMemoryDriverTest.cpp74 char read_data[write_data.length()]; in TEST_F() local
76 ASSERT_TRUE(mem_driver_.ReadBytes(mem_id_, read_data, write_data.length())); in TEST_F()
80 ASSERT_EQ(0, strncmp(write_data.c_str(), read_data, write_data.length())); in TEST_F()
88 int read_data[5]; in TEST_F() local
103 mem_id_, reinterpret_cast<char*>(read_data), 5 * sizeof(int), i)); in TEST_F()
106 ASSERT_EQ(0, memcmp(write_data, read_data, 5 * sizeof(int))); in TEST_F()
DVtsHidlMemoryDriver.cpp119 bool VtsHidlMemoryDriver::ReadBytes(MemoryId mem_id, char* read_data, in ReadBytes() argument
125 memcpy(read_data, memory_char_ptr + start, length); in ReadBytes()
/test/vts/testcases/codelab/hidl_handle_test/
DVtsCodelabHidlHandleTest.py176 read_data = self._reader.writeFile("abc", 3)
178 read_data is None,
206 read_data = self._reader.readFile(len(write_data))
207 asserts.assertEqual(write_data, read_data)
/test/vts/drivers/resource/include/hidl_handle_driver/
DVtsHidlHandleDriver.h93 ssize_t ReadFile(HandleId handle_id, void* read_data, size_t num_bytes);
/test/vts/utils/python/mirror/
Dresource_mirror.py369 for item in response_msg.read_data:
546 return response_msg.read_data
731 return response_msg.read_data
/test/vts/proto/
DVtsResourceControllerMessage.proto138 repeated VariableSpecificationMessage read_data = 1; field
174 optional bytes read_data = 4; field
201 optional bytes read_data = 3; field
/test/vts/drivers/resource/include/hidl_memory_driver/
DVtsHidlMemoryDriver.h149 bool ReadBytes(MemoryId mem_id, char* read_data, uint64_t length,
/test/vts/drivers/resource/include/resource_manager/
DVtsResourceManager.h235 T* read_data, size_t read_data_size);