Home
last modified time | relevance | path

Searched refs:write_data (Results 1 – 11 of 11) sorted by relevance

/test/vts/drivers/resource/hidl_handle_driver/
DVtsHidlHandleDriverTest.cpp67 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 …]
DVtsHidlHandleDriver.cpp114 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/
DVtsFmqDriverTest.cpp177 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/
DVtsResourceManager.cpp47 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/
DVtsHidlMemoryDriverTest.cpp66 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()
DVtsHidlMemoryDriver.cpp109 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/
Dresource_mirror.py345 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/
DVtsResourceControllerMessage.proto121 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/
DVtsHidlHandleDriver.h106 ssize_t WriteFile(HandleId handle_id, const void* write_data,
/test/vts/drivers/resource/include/hidl_memory_driver/
DVtsHidlMemoryDriver.h136 bool UpdateBytes(MemoryId mem_id, const char* write_data, uint64_t length,
/test/vts/drivers/resource/include/resource_manager/
DVtsResourceManager.h215 bool FmqProto2Cpp(const FmqRequestMessage& fmq_request, T* write_data,