Searched refs:transport_ (Results 1 – 8 of 8) sorted by relevance
/system/core/fastboot/ |
D | tcp_test.cpp | 103 transport_ = tcp::internal::Connect(std::unique_ptr<Socket>(mock_), &error); in SetUp() 104 ASSERT_NE(nullptr, transport_); in SetUp() 110 return transport_->Write(message.data(), message.length()) == in Write() 117 return transport_->Read(&buffer[0], buffer.length()) == in Read() 125 std::unique_ptr<Transport> transport_; member in TcpTest 202 EXPECT_EQ(-1, transport_->Read(buffer, sizeof(buffer))); in TEST_F() 210 EXPECT_EQ(-1, transport_->Read(buffer, sizeof(buffer))); in TEST_F() 216 EXPECT_EQ(-1, transport_->Write("foo", 3)); in TEST_F() 220 EXPECT_EQ(0, transport_->Close()); in TEST_F() 225 EXPECT_EQ(-1, transport_->Read(buffer, sizeof(buffer))); in TEST_F() [all …]
|
D | udp_test.cpp | 323 transport_ = Connect(std::unique_ptr<Socket>(mock_socket_), &error); in InitializeTransport() 324 return transport_ != nullptr && error.empty(); in InitializeTransport() 329 return transport_->Write(message.data(), message.length()) == in Write() 336 return transport_->Read(&buffer[0], buffer.length()) == in Read() 344 std::unique_ptr<Transport> transport_; member in UdpTest 495 EXPECT_EQ(-1, transport_->Read(buffer, 3)); in TEST_F() 528 EXPECT_EQ(0, transport_->Close()); in TEST_F() 529 EXPECT_EQ(-1, transport_->Write("foo", 3)); in TEST_F() 530 EXPECT_EQ(-1, transport_->Read(buffer, sizeof(buffer))); in TEST_F()
|
D | fastboot_driver.cpp | 64 : transport_(std::move(transport)), in FastBootDriver() 424 return transport_->WaitForDisconnect() ? IO_ERROR : SUCCESS; in WaitForDisconnect() 445 if (transport_->Write(cmd.c_str(), cmd.size()) != static_cast<int>(cmd.size())) { in RawCommand() 479 int r = transport_->Read(status, FB_RESPONSE_SZ); in HandleResponse() 569 ssize_t tmp = transport_->Write(buf, size); in SendBuffer() 585 ssize_t tmp = transport_->Read(buf, size); in ReadBuffer() 632 transport_ = std::move(transport); in set_transport()
|
D | fastboot_driver.h | 142 std::unique_ptr<Transport> transport_; variable
|
/system/core/fastboot/fuzzy_fastboot/ |
D | transport_sniffer.cpp | 13 : transport_(std::move(transport)), serial_fd_(serial_fd) {} in TransportSniffer() 22 ssize_t ret = transport_->Read(data, len); in Read() 43 size_t ret = transport_->Write(data, len); in Write() 62 return transport_->Close(); in Close() 67 int ret = transport_->Reset(); in Reset()
|
D | transport_sniffer.h | 84 std::unique_ptr<Transport> transport_; variable
|
/system/core/fastboot/device/ |
D | fastboot_device.h | 52 Transport* get_transport() { return transport_.get(); } in get_transport() 65 std::unique_ptr<Transport> transport_; variable
|
D | fastboot_device.cpp | 118 transport_ = std::make_unique<ClientTcpTransport>(); 120 transport_ = std::make_unique<ClientUsbTransport>(); 136 transport_->Close(); in CloseDevice() 211 auto bytes_read = transport_->Read(command, FB_RESPONSE_SZ); in ExecuteCommands()
|