Home
last modified time | relevance | path

Searched refs:socket_fd (Results 1 – 9 of 9) sorted by relevance

/system/bt/vendor_libs/test_vendor_lib/desktop/
Dtest_environment.cc70 int socket_fd = remote_hci_transport_.SetUp(hci_server_port_); in SetUpHciServer() local
75 if (socket_fd == -1) { in SetUpHciServer()
80 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this, connection_callback](int socket_fd) { in SetUpHciServer() argument
81 int conn_fd = remote_hci_transport_.Accept(socket_fd); in SetUpHciServer()
96 int socket_fd = remote_link_layer_transport_.SetUp(link_server_port_); in SetUpLinkLayerServer() local
101 if (socket_fd == -1) { in SetUpLinkLayerServer()
106 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this, connection_callback](int socket_fd) { in SetUpLinkLayerServer() argument
107 int conn_fd = remote_link_layer_transport_.Accept(socket_fd); in SetUpLinkLayerServer()
121 int socket_fd = socket(AF_INET, SOCK_STREAM, 0); in ConnectToRemoteServer() local
122 if (socket_fd < 1) { in ConnectToRemoteServer()
[all …]
/system/core/adb/
Dsocket_test.cpp107 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/test/rootcanal/
Dbluetooth_hci.cc276 int socket_fd = remote_hci_transport_.SetUp(port); in SetUpHciServer() local
282 if (socket_fd == -1) { in SetUpHciServer()
287 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this, connection_callback](int socket_fd) { in SetUpHciServer() argument
288 int conn_fd = remote_hci_transport_.Accept(socket_fd); in SetUpHciServer()
303 int socket_fd = remote_link_layer_transport_.SetUp(port); in SetUpLinkLayerServer() local
309 if (socket_fd == -1) { in SetUpLinkLayerServer()
314 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this, connection_callback](int socket_fd) { in SetUpLinkLayerServer() argument
315 int conn_fd = remote_link_layer_transport_.Accept(socket_fd); in SetUpLinkLayerServer()
329 int socket_fd = socket(AF_INET, SOCK_STREAM, 0); in ConnectToRemoteServer() local
330 if (socket_fd < 1) { in ConnectToRemoteServer()
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dtest_model.cc163 void TestModel::AddLinkLayerConnection(int socket_fd, Phy::Type phy_type) { in AddLinkLayerConnection() argument
164 std::shared_ptr<Device> dev = LinkLayerSocketDevice::Create(socket_fd, phy_type); in AddLinkLayerConnection()
173 void TestModel::IncomingLinkLayerConnection(int socket_fd) { in IncomingLinkLayerConnection() argument
175 AddLinkLayerConnection(socket_fd, Phy::Type::BR_EDR); in IncomingLinkLayerConnection()
179 int socket_fd = connect_to_remote_(server, port); in AddRemote() local
180 if (socket_fd < 0) { in AddRemote()
183 AddLinkLayerConnection(socket_fd, phy_type); in AddRemote()
186 void TestModel::IncomingHciConnection(int socket_fd) { in IncomingHciConnection() argument
187 auto dev = HciSocketDevice::Create(socket_fd); in IncomingHciConnection()
206 dev->RegisterCloseCallback([this, socket_fd, index, user_id] { in IncomingHciConnection()
[all …]
Dtest_model.h72 void AddLinkLayerConnection(int socket_fd, Phy::Type phy_type);
73 void IncomingLinkLayerConnection(int socket_fd);
74 void IncomingHciConnection(int socket_fd);
77 void OnHciConnectionClosed(int socket_fd, size_t index, AsyncUserId user_id);
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dhci_socket_device.h33 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()
Dlink_layer_socket_device.h31 LinkLayerSocketDevice(int socket_fd, Phy::Type phy_type);
35 static std::shared_ptr<Device> Create(int socket_fd, Phy::Type phy_type) { in Create() argument
36 return std::make_shared<LinkLayerSocketDevice>(socket_fd, phy_type); in Create()
Dlink_layer_socket_device.cc29 LinkLayerSocketDevice::LinkLayerSocketDevice(int socket_fd, Phy::Type phy_type) in LinkLayerSocketDevice() argument
30 : socket_(socket_fd), phy_type_(phy_type) {} in LinkLayerSocketDevice()
/system/bt/gd/hal/
Dhci_hal_host_rootcanal.cc50 int socket_fd = socket(AF_INET, SOCK_STREAM, 0); in ConnectToRootCanal() local
51 if (socket_fd < 1) { in ConnectToRootCanal()
69 int result = connect(socket_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in ConnectToRootCanal()
79 int ret = setsockopt(socket_fd, SOL_SOCKET, SO_RCVTIMEO, &socket_timeout, sizeof(socket_timeout)); in ConnectToRootCanal()
84 return socket_fd; in ConnectToRootCanal()