/system/core/adb/ |
D | adb_listeners_test.cpp | 64 atransport transport_; member in AdbListenersTest 71 install_listener("tcp:9000", "tcp:9000", &transport_, false, nullptr, &error)); in TEST_F() 81 install_listener("tcp:9000", "tcp:9000", &transport_, false, nullptr, &error)); in TEST_F() 85 install_listener("tcp:9000", "tcp:9001", &transport_, false, nullptr, &error)); in TEST_F() 95 install_listener("tcp:9000", "tcp:9000", &transport_, true, nullptr, &error)); in TEST_F() 99 install_listener("tcp:9000", "tcp:9001", &transport_, true, nullptr, &error)); in TEST_F() 110 install_listener("tcp:0", "tcp:9000", &transport_, true, &port, &error)); in TEST_F() 120 install_listener("tcp:9000", "tcp:9000", &transport_, false, nullptr, &error)); in TEST_F() 123 ASSERT_EQ(INSTALL_STATUS_OK, remove_listener("tcp:9000", &transport_)); in TEST_F() 131 install_listener("tcp:9000", "tcp:9000", &transport_, false, nullptr, &error)); in TEST_F() [all …]
|
/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 | 59 : transport_(transport), in FastBootDriver() 372 return transport_->WaitForDisconnect() ? IO_ERROR : SUCCESS; in WaitForDisconnect() 393 if (transport_->Write(cmd.c_str(), cmd.size()) != static_cast<int>(cmd.size())) { in RawCommand() 427 int r = transport_->Read(status, FB_RESPONSE_SZ); in HandleResponse() 513 ssize_t tmp = transport_->Write(buf, size); in SendBuffer() 534 ssize_t tmp = transport_->Read(buf, size); in ReadBuffer() 581 std::swap(transport_, transport); in set_transport()
|
D | fastboot_driver.h | 128 Transport* transport() const { return transport_; } in transport() 145 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.cpp | 70 transport_ = std::make_unique<ClientTcpTransport>(); 72 transport_ = std::make_unique<ClientUsbTransport>(); 92 transport_->Close(); in CloseDevice() 151 auto bytes_read = transport_->Read(command, FB_RESPONSE_SZ); in ExecuteCommands()
|
D | fastboot_device.h | 51 Transport* get_transport() { return transport_.get(); } in get_transport() 66 std::unique_ptr<Transport> transport_; variable
|