Home
last modified time | relevance | path

Searched refs:ack_reply_fd (Results 1 – 3 of 3) sorted by relevance

/packages/modules/adb/client/
Dmain.cpp84 int adb_server_main(int is_daemon, const std::string& socket_spec, int ack_reply_fd) { in adb_server_main() argument
183 std::thread notify_thread([ack_reply_fd]() { in adb_server_main()
186 if (ack_reply_fd >= 0) { in adb_server_main()
191 const HANDLE ack_reply_handle = cast_int_to_handle(ack_reply_fd); in adb_server_main()
207 if (!android::base::WriteStringToFd("OK\n", ack_reply_fd)) { in adb_server_main()
208 PLOG(FATAL) << "error writing ACK to fd " << ack_reply_fd; in adb_server_main()
210 unix_close(ack_reply_fd); in adb_server_main()
Dcommandline.cpp1485 static bool _is_valid_ack_reply_fd(const int ack_reply_fd) { in _is_valid_ack_reply_fd() argument
1487 const HANDLE ack_reply_handle = cast_int_to_handle(ack_reply_fd); in _is_valid_ack_reply_fd()
1492 return ack_reply_fd > 2; in _is_valid_ack_reply_fd()
1522 int ack_reply_fd = -1; in adb_commandline() local
1550 ack_reply_fd = strtol(reply_fd_str, nullptr, 10); in adb_commandline()
1551 if (!_is_valid_ack_reply_fd(ack_reply_fd)) { in adb_commandline()
1663 if (is_daemon && (ack_reply_fd == -1)) { in adb_commandline()
1667 r = adb_server_main(is_daemon, server_socket_str, ack_reply_fd); in adb_commandline()
/packages/modules/adb/
Dadb.h136 int adb_server_main(int is_daemon, const std::string& socket_spec, int ack_reply_fd);