Lines Matching refs:fd

47                             unique_fd fd) {  in service_bootstrap_func()  argument
48 adb_thread_setname(android::base::StringPrintf("%s svc %d", service_name.c_str(), fd.get())); in service_bootstrap_func()
49 func(std::move(fd)); in service_bootstrap_func()
137 static void connect_service(unique_fd fd, std::string host) { in connect_service() argument
146 SendProtocolString(fd.get(), response); in connect_service()
149 static void pair_service(unique_fd fd, std::string host, std::string password) { in pair_service() argument
153 SendProtocolString(fd.get(), response); in pair_service()
155 SendFail(fd, response); in pair_service()
159 static void wait_service(unique_fd fd, std::string serial, TransportId transport_id, in wait_service() argument
163 SendFail(fd, "short wait-for-: " + spec); in wait_service()
175 SendFail(fd, "bad wait-for- transport: " + spec); in wait_service()
196 SendFail(fd, "bad wait-for- state: " + spec); in wait_service()
212 SendFail(fd, error); in wait_service()
226 SendOkay(fd); in wait_service()
231 SendOkay(fd); in wait_service()
238 adb_pollfd pfd = {.fd = fd.get(), .events = POLLIN}; in wait_service()
242 SendFail(fd, error); in wait_service()
262 unique_fd fd = in host_service_to_socket() local
265 return create_local_socket(std::move(fd)); in host_service_to_socket()
268 unique_fd fd = create_service_thread( in host_service_to_socket() local
270 return create_local_socket(std::move(fd)); in host_service_to_socket()
278 unique_fd fd = create_service_thread( in host_service_to_socket() local
280 return create_local_socket(std::move(fd)); in host_service_to_socket()