Lines Matching refs:reply_fd

861         char reply_fd[30];  in launch_server()
862 snprintf(reply_fd, sizeof(reply_fd), "%d", fd[1]); in launch_server()
864 …result = execl(path, "adb", "-P", str_port, "fork-server", "server", "--reply-fd", reply_fd, NULL); in launch_server()
895 …t handle_forward_request(const char* service, TransportType type, const char* serial, int reply_fd) in handle_forward_request() argument
901 SendOkay(reply_fd); in handle_forward_request()
903 return SendProtocolString(reply_fd, listeners); in handle_forward_request()
910 SendOkay(reply_fd); in handle_forward_request()
912 SendOkay(reply_fd); in handle_forward_request()
937 SendFail(reply_fd, android::base::StringPrintf("bad killforward: %s", service)); in handle_forward_request()
943 SendFail(reply_fd, android::base::StringPrintf("bad forward: %s", service)); in handle_forward_request()
951 SendFail(reply_fd, error_msg); in handle_forward_request()
966 SendOkay(reply_fd); in handle_forward_request()
968 SendOkay(reply_fd); in handle_forward_request()
987 SendFail(reply_fd, message); in handle_forward_request()
1002 const char* serial, int reply_fd, asocket* s) { in handle_host_request() argument
1006 SendOkay(reply_fd); in handle_host_request()
1013 adb_shutdown(reply_fd); in handle_host_request()
1041 SendOkay(reply_fd); in handle_host_request()
1043 SendFail(reply_fd, error); in handle_host_request()
1055 return SendOkay(reply_fd, device_list); in handle_host_request()
1064 SendOkay(reply_fd, FeatureSetToString(t->features())); in handle_host_request()
1066 SendFail(reply_fd, error); in handle_host_request()
1076 return SendOkay(reply_fd, "disconnected everything"); in handle_host_request()
1084 return SendFail(reply_fd, android::base::StringPrintf("couldn't parse '%s': %s", in handle_host_request()
1089 return SendFail(reply_fd, android::base::StringPrintf("no such device '%s'", in handle_host_request()
1093 return SendOkay(reply_fd, android::base::StringPrintf("disconnected %s", address.c_str())); in handle_host_request()
1098 return SendOkay(reply_fd, android::base::StringPrintf("%04x", ADB_SERVER_VERSION)); in handle_host_request()
1106 return SendOkay(reply_fd, t->serial ? t->serial : "unknown"); in handle_host_request()
1108 return SendFail(reply_fd, error); in handle_host_request()
1115 return SendOkay(reply_fd, t->devpath ? t->devpath : "unknown"); in handle_host_request()
1117 return SendFail(reply_fd, error); in handle_host_request()
1124 return SendOkay(reply_fd, t->connection_state_name()); in handle_host_request()
1126 return SendFail(reply_fd, error); in handle_host_request()
1142 return SendOkay(reply_fd, "done"); in handle_host_request()
1146 int ret = handle_forward_request(service, type, serial, reply_fd); in handle_host_request()