Searched refs:socket_fd (Results 1 – 8 of 8) sorted by relevance
/system/bt/vendor_libs/test_vendor_lib/desktop/ |
D | test_environment.cc | 61 int socket_fd = remote_hci_transport_.SetUp(hci_server_port_); in SetUpHciServer() local 66 if (socket_fd == -1) { in SetUpHciServer() 71 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this, connection_callback](int socket_fd) { in SetUpHciServer() argument 72 int conn_fd = remote_hci_transport_.Accept(socket_fd); in SetUpHciServer() 87 int socket_fd = remote_link_layer_transport_.SetUp(link_server_port_); in SetUpLinkLayerServer() local 92 if (socket_fd == -1) { in SetUpLinkLayerServer() 97 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this, connection_callback](int socket_fd) { in SetUpLinkLayerServer() argument 98 int conn_fd = remote_link_layer_transport_.Accept(socket_fd); in SetUpLinkLayerServer() 112 int socket_fd = socket(AF_INET, SOCK_STREAM, 0); in ConnectToRemoteServer() local 113 if (socket_fd < 1) { in ConnectToRemoteServer() [all …]
|
/system/bt/test/rootcanal/ |
D | bluetooth_hci.cc | 191 int socket_fd = remote_hci_transport_.SetUp(port); in SetUpHciServer() local 196 if (socket_fd == -1) { in SetUpHciServer() 201 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this, connection_callback](int socket_fd) { in SetUpHciServer() argument 202 int conn_fd = remote_hci_transport_.Accept(socket_fd); in SetUpHciServer() 217 int socket_fd = remote_link_layer_transport_.SetUp(port); in SetUpLinkLayerServer() local 222 if (socket_fd == -1) { in SetUpLinkLayerServer() 227 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this, connection_callback](int socket_fd) { in SetUpLinkLayerServer() argument 228 int conn_fd = remote_link_layer_transport_.Accept(socket_fd); in SetUpLinkLayerServer() 242 int socket_fd = socket(AF_INET, SOCK_STREAM, 0); in ConnectToRemoteServer() local 243 if (socket_fd < 1) { in ConnectToRemoteServer() [all …]
|
/system/core/adb/ |
D | socket_test.cpp | 107 unique_fd socket_fd; member 114 asocket* s = create_local_socket(std::move(arg->socket_fd)); in CreateCloser() 152 int socket_fd[2]; in TEST_F() local 153 ASSERT_EQ(0, adb_socketpair(socket_fd)); in TEST_F() 157 arg.socket_fd.reset(socket_fd[1]); in TEST_F() 167 ASSERT_EQ(0, adb_close(socket_fd[0])); in TEST_F() 176 int socket_fd[2]; in TEST_F() local 177 ASSERT_EQ(0, adb_socketpair(socket_fd)); in TEST_F() 181 arg.socket_fd.reset(socket_fd[1]); in TEST_F() 196 ASSERT_EQ(true, ReadFdExactly(socket_fd[0], buf.data(), buf.size())); in TEST_F() [all …]
|
/system/bt/vendor_libs/test_vendor_lib/model/setup/ |
D | test_model.cc | 142 void TestModel::AddLinkLayerConnection(int socket_fd, Phy::Type phy_type) { in AddLinkLayerConnection() argument 143 std::shared_ptr<Device> dev = LinkLayerSocketDevice::Create(socket_fd, phy_type); in AddLinkLayerConnection() 152 void TestModel::IncomingLinkLayerConnection(int socket_fd) { in IncomingLinkLayerConnection() argument 154 AddLinkLayerConnection(socket_fd, Phy::Type::BR_EDR); in IncomingLinkLayerConnection() 158 int socket_fd = connect_to_remote_(server, port); in AddRemote() local 159 if (socket_fd < 0) { in AddRemote() 162 AddLinkLayerConnection(socket_fd, phy_type); in AddRemote() 165 void TestModel::IncomingHciConnection(int socket_fd) { in IncomingHciConnection() argument 166 std::shared_ptr<HciSocketDevice> dev = HciSocketDevice::Create(socket_fd); in IncomingHciConnection()
|
D | test_model.h | 62 void AddLinkLayerConnection(int socket_fd, Phy::Type phy_type); 63 void IncomingLinkLayerConnection(int socket_fd); 64 void IncomingHciConnection(int socket_fd);
|
/system/bt/vendor_libs/test_vendor_lib/model/devices/ |
D | hci_socket_device.h | 33 HciSocketDevice(int socket_fd); 36 static std::shared_ptr<HciSocketDevice> Create(int socket_fd) { in Create() argument 37 return std::make_shared<HciSocketDevice>(socket_fd); in Create()
|
D | link_layer_socket_device.h | 32 LinkLayerSocketDevice(int socket_fd, Phy::Type phy_type); 36 static std::shared_ptr<Device> Create(int socket_fd, Phy::Type phy_type) { in Create() argument 37 return std::make_shared<LinkLayerSocketDevice>(socket_fd, phy_type); in Create()
|
D | link_layer_socket_device.cc | 33 LinkLayerSocketDevice::LinkLayerSocketDevice(int socket_fd, Phy::Type phy_type) in LinkLayerSocketDevice() argument 34 : socket_(socket_fd), phy_type_(phy_type) {} in LinkLayerSocketDevice()
|