Lines Matching refs:reply_fd

948         char reply_fd[30];  in launch_server()
949 snprintf(reply_fd, sizeof(reply_fd), "%d", pipe_write.get()); in launch_server()
952 "--reply-fd", reply_fd, NULL); in launch_server()
977 bool handle_forward_request(const char* service, atransport* transport, int reply_fd) { in handle_forward_request() argument
979 reply_fd); in handle_forward_request()
985 int reply_fd) { in handle_forward_request() argument
990 SendOkay(reply_fd); in handle_forward_request()
992 SendProtocolString(reply_fd, listeners); in handle_forward_request()
1000 SendOkay(reply_fd); in handle_forward_request()
1002 SendOkay(reply_fd); in handle_forward_request()
1012 SendFail(reply_fd, error); in handle_forward_request()
1034 SendFail(reply_fd, android::base::StringPrintf("bad killforward: %s", service)); in handle_forward_request()
1040 SendFail(reply_fd, android::base::StringPrintf("bad forward: %s", service)); in handle_forward_request()
1060 SendOkay(reply_fd); in handle_forward_request()
1062 SendOkay(reply_fd); in handle_forward_request()
1066 SendProtocolString(reply_fd, android::base::StringPrintf("%d", resolved_tcp_port)); in handle_forward_request()
1087 SendFail(reply_fd, message); in handle_forward_request()
1106 static bool handle_mdns_request(std::string_view service, int reply_fd) { in handle_mdns_request() argument
1113 SendOkay(reply_fd, check); in handle_mdns_request()
1118 SendOkay(reply_fd, services_list); in handle_mdns_request()
1126 const char* serial, TransportId transport_id, int reply_fd, in handle_host_request() argument
1131 SendFail(reply_fd, "kill-server rejected by remote server"); in handle_host_request()
1134 SendOkay(reply_fd); in handle_host_request()
1171 SendFail(reply_fd, "invalid transport id"); in handle_host_request()
1190 SendOkay(reply_fd); in handle_host_request()
1194 WriteFdExactly(reply_fd, &t->id, sizeof(t->id)); in handle_host_request()
1199 SendFail(reply_fd, error); in handle_host_request()
1210 SendOkay(reply_fd, device_list); in handle_host_request()
1226 SendOkay(reply_fd, response); in handle_host_request()
1236 SendOkay(reply_fd, FeatureSetToString(t->features())); in handle_host_request()
1238 SendFail(reply_fd, error); in handle_host_request()
1250 SendOkay(reply_fd, FeatureSetToString(features)); in handle_host_request()
1259 SendOkay(reply_fd, "disconnected everything"); in handle_host_request()
1267 SendOkay(reply_fd, android::base::StringPrintf("disconnected %s", address.c_str())); in handle_host_request()
1278 SendFail(reply_fd, android::base::StringPrintf("couldn't parse '%s': %s", in handle_host_request()
1284 SendFail(reply_fd, android::base::StringPrintf("no such device '%s'", serial.c_str())); in handle_host_request()
1288 SendOkay(reply_fd, android::base::StringPrintf("disconnected %s", address.c_str())); in handle_host_request()
1294 SendOkay(reply_fd, android::base::StringPrintf("%04x", ADB_SERVER_VERSION)); in handle_host_request()
1305 SendOkay(reply_fd, !t->serial.empty() ? t->serial : "unknown"); in handle_host_request()
1307 SendFail(reply_fd, error); in handle_host_request()
1317 SendOkay(reply_fd, !t->devpath.empty() ? t->devpath : "unknown"); in handle_host_request()
1319 SendFail(reply_fd, error); in handle_host_request()
1329 SendOkay(reply_fd, t->connection_state_name()); in handle_host_request()
1331 SendFail(reply_fd, error); in handle_host_request()
1359 SendOkay(reply_fd, response); in handle_host_request()
1373 if (handle_forward_request(service_str.c_str(), transport_acquirer, reply_fd)) { in handle_host_request()
1377 if (handle_mdns_request(service, reply_fd)) { in handle_host_request()