Searched refs:accept_fd (Results 1 – 3 of 3) sorted by relevance
/packages/modules/Bluetooth/tools/rootcanal/net/posix/ |
D | posix_async_socket_server.cc | 104 int accept_fd = 0; in AcceptSocket() local 105 REPEAT_UNTIL_NO_INTR(accept_fd = accept(server_socket_->fd(), NULL, NULL)); in AcceptSocket() 107 if (accept_fd < 0) { in AcceptSocket() 113 INFO("accept_fd = {}.", accept_fd); in AcceptSocket() 115 callback_(std::make_shared<PosixAsyncSocket>(accept_fd, am_), this); in AcceptSocket()
|
/packages/modules/Bluetooth/system/gd/hal/ |
D | hci_hal_host_test.cc | 115 int accept_fd; in Accept() local 117 RUN_NO_INTR(accept_fd = accept(listen_fd_, nullptr, nullptr)); in Accept() 119 int flags = fcntl(accept_fd, F_GETFL, NULL); in Accept() 120 int ret = fcntl(accept_fd, F_SETFL, flags | O_NONBLOCK); in Accept() 126 if (accept_fd < 0) { in Accept() 136 return accept_fd; in Accept()
|
/packages/modules/adb/ |
D | socket_test.cpp | 291 const int accept_fd = adb_socket_accept(listen_fd.get(), nullptr, nullptr); in TEST_F() local 293 ASSERT_GE(accept_fd, 0); in TEST_F() 297 fdevent_run_on_looper([accept_fd]() { in TEST_F() 298 asocket* s = create_local_socket(unique_fd(accept_fd)); in TEST_F()
|