/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/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/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/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/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_handle_driver/ |
D | VtsHidlHandleDriver.h | 106 ssize_t WriteFile(HandleId handle_id, const void* write_data,
|
/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,
|