Home
last modified time | relevance | path

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

/system/core/adb/
Dsocket_test.cpp107 int socket_fd; member
113 asocket* s = create_local_socket(arg->socket_fd); in CloseWithPacketThreadFunc()
137 int socket_fd[2]; in TEST_F() local
138 ASSERT_EQ(0, adb_socketpair(socket_fd)); in TEST_F()
142 arg.socket_fd = socket_fd[1]; in TEST_F()
152 ASSERT_EQ(0, adb_close(socket_fd[0])); in TEST_F()
160 int socket_fd[2]; in TEST_F() local
161 ASSERT_EQ(0, adb_socketpair(socket_fd)); in TEST_F()
165 arg.socket_fd = socket_fd[1]; in TEST_F()
179 ASSERT_EQ(true, ReadFdExactly(socket_fd[0], buf.data(), buf.size())); in TEST_F()
[all …]
/system/bt/test/rootcanal/
Dbluetooth_hci.cc198 int socket_fd = test_channel_transport_.SetUp(port); in SetUpTestChannel() local
200 if (socket_fd == -1) { in SetUpTestChannel()
206 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this](int socket_fd) { in SetUpTestChannel() argument
207 int conn_fd = test_channel_transport_.Accept(socket_fd); in SetUpTestChannel()