/test/vts/drivers/resource/hidl_handle_driver/ |
D | VtsHidlHandleDriverTest.cpp | 67 char write_data[10]; in TEST_F() local 68 ASSERT_EQ(handle_driver_.WriteFile(client2_id_, write_data, 10), -1); in TEST_F() 86 string write_data = "Hello World!"; in TEST_F() local 90 client1_id_, static_cast<const void*>(write_data.c_str()), in TEST_F() 91 write_data.length()), in TEST_F() 92 write_data.length()); in TEST_F() 95 char read_data[write_data.length()]; in TEST_F() 97 write_data.length()), in TEST_F() 98 write_data.length()); in TEST_F() 100 ASSERT_TRUE(write_data == string(read_data, write_data.length())); in TEST_F() [all …]
|
D | VtsHidlHandleDriver.cpp | 114 const void* write_data, in WriteFile() argument 127 ssize_t write_result = write(fd, write_data, num_bytes); in WriteFile()
|
/test/vts/drivers/resource/fmq_driver/ |
D | VtsFmqDriverTest.cpp | 177 uint16_t write_data[DATA_SIZE]; in TEST_F() local 181 InitData(write_data, DATA_SIZE); in TEST_F() 185 "uint16_t", writer_id_, write_data, DATA_SIZE))); in TEST_F() 192 ASSERT_EQ(0, memcmp(write_data, read_data, DATA_SIZE * sizeof(uint16_t))); in TEST_F() 208 uint16_t write_data[DATA_SIZE]; in TEST_F() local 212 InitData(write_data, DATA_SIZE); in TEST_F() 216 "uint16_t", writer_id_, write_data, DATA_SIZE))); in TEST_F() 220 "uint16_t", writer_id_, write_data, DATA_SIZE))); in TEST_F() 232 ASSERT_EQ(0, memcmp(write_data, read_data, DATA_SIZE * sizeof(uint16_t))); in TEST_F() 238 uint16_t write_data[LARGE_DATA_SIZE]; in TEST_F() local [all …]
|
/test/vts/testcases/host/fmq_hidl_test/ |
D | VtsHalTestsMsgqV1_0HostTest.py | 137 write_data = generateSequentialData(self.MAX_NUM_MSG) 139 self._sync_client.writeBlocking(write_data, self.MAX_NUM_MSG), 145 self._sync_client.writeBlocking(write_data, self.MAX_NUM_MSG, 177 write_data = generateSequentialData(data_len) 181 self._sync_client.write(write_data, data_len), 203 write_data = generateSequentialData(self.MAX_NUM_MSG) 207 self._sync_client.write(write_data, self.MAX_NUM_MSG), 229 write_data = generateSequentialData(self.MAX_NUM_MSG) 235 asserts.assertEqual(write_data, read_data) 259 write_data = generateSequentialData(self.MAX_NUM_MSG) [all …]
|
/test/vts/testcases/codelab/fmq_test/ |
D | VtsCodelabFmqTest.py | 190 write_data = self.GetRandomIntegers(2048) 194 self._queue1_writer.write(write_data, 2048), "Write queue failed.") 198 asserts.assertEqual(read_data, write_data) 209 write_data = self.GetRandomIntegers(2048) 213 self._queue1_writer.write(write_data, 2048), 217 self._queue1_writer.write(write_data, 2048), 222 write_data = self.GetRandomIntegers(2049) 225 self._queue1_writer.write(write_data, 2049), 234 write_data = self.GetRandomIntegers(2048) 236 self._queue1_writer.write(write_data, 2048), [all …]
|
/test/vts/drivers/resource/hidl_memory_driver/ |
D | VtsHidlMemoryDriverTest.cpp | 66 string write_data = "abcdef"; in TEST_F() local 69 ASSERT_TRUE(mem_driver_.UpdateBytes(mem_id_, write_data.c_str(), in TEST_F() 70 write_data.length())); in TEST_F() 74 char read_data[write_data.length()]; in TEST_F() 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() 87 int write_data[5]; in TEST_F() local 93 InitData(write_data, 5); in TEST_F() 97 mem_id_, reinterpret_cast<char*>(write_data), 5 * sizeof(int), i)); in TEST_F() 106 ASSERT_EQ(0, memcmp(write_data, read_data, 5 * sizeof(int))); in TEST_F()
|
D | VtsHidlMemoryDriver.cpp | 109 bool VtsHidlMemoryDriver::UpdateBytes(MemoryId mem_id, const char* write_data, in UpdateBytes() argument 115 memcpy(memory_char_ptr + start, write_data, length); in UpdateBytes()
|
/test/vts/drivers/resource/resource_manager/ |
D | VtsResourceManager.cpp | 47 const void* write_data = in ProcessHidlHandleCommand() local 48 static_cast<const void*>(hidl_handle_request.write_data().c_str()); in ProcessHidlHandleCommand() 49 size_t write_data_size = hidl_handle_request.write_data().length(); in ProcessHidlHandleCommand() 140 hidl_handle_driver_.WriteFile(handle_id, write_data, write_data_size); in ProcessHidlHandleCommand() 184 const string& write_data = hidl_memory_request.write_data(); in ProcessHidlMemoryCommand() local 211 success = hidl_memory_driver_.UpdateBytes(mem_id, write_data.c_str(), in ProcessHidlMemoryCommand() 332 T write_data[write_data_size]; in ProcessFmqCommandInternal() local 402 if (!FmqProto2Cpp<T>(fmq_request, write_data, write_data_size)) { in ProcessFmqCommandInternal() 407 success = fmq_driver_.WriteFmq<T, flavor>(data_type, queue_id, write_data, in ProcessFmqCommandInternal() 412 if (!FmqProto2Cpp<T>(fmq_request, write_data, write_data_size)) { in ProcessFmqCommandInternal() [all …]
|
/test/vts/testcases/codelab/hidl_handle_test/ |
D | VtsCodelabHidlHandleTest.py | 202 write_data = "Hello World!" 204 len(write_data), self._writer.writeFile(write_data, 205 len(write_data))) 206 read_data = self._reader.readFile(len(write_data)) 207 asserts.assertEqual(write_data, read_data) 211 write_data = "Android VTS" 215 len(write_data), 216 self._writer.writeFile(write_data, len(write_data))) 217 curr_read_data = self._reader.readFile(len(write_data)) 218 asserts.assertEqual(curr_read_data, write_data)
|
/test/vts/testcases/codelab/hidl_memory_test/ |
D | VtsCodelabHidlMemoryTest.py | 116 write_data = "abcdef" 119 self._mem_obj.updateBytes(write_data, len(write_data)) 124 read_data = self._mem_obj.readBytes(len(write_data)) 125 asserts.assertEqual(write_data, read_data) 135 write_data = [random.randint(0, 100) for j in range(10)] 136 write_data_str = str(bytearray(write_data)) 148 asserts.assertEqual(write_data, read_data)
|
/test/vts/utils/python/mirror/ |
D | resource_mirror.py | 345 new_message = request_msg.write_data.add() 570 request_msg.write_data = data 736 def writeFile(self, write_data, index=0): argument 750 request_msg.write_data = write_data
|
/test/vts/drivers/resource/include/hidl_handle_driver/ |
D | VtsHidlHandleDriver.h | 106 ssize_t WriteFile(HandleId handle_id, const void* write_data,
|
/test/vts/proto/ |
D | VtsResourceControllerMessage.proto | 121 repeated VariableSpecificationMessage write_data = 8; field 162 optional bytes write_data = 6; field 191 optional bytes write_data = 5; field
|
/test/vts/drivers/resource/include/hidl_memory_driver/ |
D | VtsHidlMemoryDriver.h | 136 bool UpdateBytes(MemoryId mem_id, const char* write_data, uint64_t length,
|
/test/vts/drivers/resource/include/resource_manager/ |
D | VtsResourceManager.h | 215 bool FmqProto2Cpp(const FmqRequestMessage& fmq_request, T* write_data,
|