Home
last modified time | relevance | path

Searched refs:transport_id (Results 1 – 9 of 9) sorted by relevance

/system/core/adb/client/
Dadb_client.h57 void adb_set_transport(TransportType type, const char* _Nullable serial, TransportId transport_id);
59 TransportId* _Nullable transport_id);
Dadb_client.cpp57 void adb_set_transport(TransportType type, const char* serial, TransportId transport_id) { in adb_set_transport() argument
60 __adb_transport_id = transport_id; in adb_set_transport()
63 void adb_get_transport(TransportType* type, const char** serial, TransportId* transport_id) { in adb_get_transport() argument
66 if (transport_id) *transport_id = __adb_transport_id; in adb_get_transport()
Dcommandline.cpp1105 TransportId transport_id; in adb_root() local
1106 unique_fd fd(adb_connect(&transport_id, android::base::StringPrintf("%s:", command), &error)); in adb_root()
1145 adb_set_transport(kTransportAny, nullptr, transport_id); in adb_root()
1534 TransportId transport_id = 0; in adb_commandline() local
1572 transport_id = strtoll(id, const_cast<char**>(&id), 10); in adb_commandline()
1658 adb_set_transport(transport_type, serial, transport_id); in adb_commandline()
1719 TransportId transport_id; in adb_commandline() local
1721 unique_fd fd(adb_connect(&transport_id, "host:features", &error, true)); in adb_commandline()
1725 printf("%" PRIu64 "\n", transport_id); in adb_commandline()
/system/core/adb/
Dservices.cpp155 static void wait_service(unique_fd fd, std::string serial, TransportId transport_id, in wait_service() argument
202 transport_id, &is_ambiguous, &error); in wait_service()
243 TransportId transport_id) { in host_service_to_socket() argument
252 std::string(serial), transport_id, spec)); in host_service_to_socket()
Dadb.h154 TransportId transport_id);
228 const char* serial, TransportId transport_id, int reply_fd,
Dadb.cpp1101 const char* serial, TransportId transport_id, int reply_fd, in handle_host_request() argument
1145 if (!ParseUint(&transport_id, service)) { in handle_host_request()
1162 atransport* t = acquire_one_transport(type, serial, transport_id, nullptr, &error); in handle_host_request()
1209 : acquire_one_transport(type, serial, transport_id, nullptr, &error); in handle_host_request()
1270 : acquire_one_transport(type, serial, transport_id, nullptr, &error); in handle_host_request()
1282 : acquire_one_transport(type, serial, transport_id, nullptr, &error); in handle_host_request()
1294 : acquire_one_transport(type, serial, transport_id, nullptr, &error); in handle_host_request()
1319 : acquire_one_transport(type, serial, transport_id, nullptr, in handle_host_request()
1337 return acquire_one_transport(type, serial, transport_id, nullptr, &error); in handle_host_request()
Dsockets.cpp719 TransportId transport_id = 0; in smart_socket_enqueue() local
763 if (!ParseUint(&transport_id, service, &service)) { in smart_socket_enqueue()
787 service, type, serial.empty() ? nullptr : std::string(serial).c_str(), transport_id, in smart_socket_enqueue()
809 s2 = host_service_to_socket(service, serial, transport_id); in smart_socket_enqueue()
Dtransport.cpp956 atransport* acquire_one_transport(TransportType type, const char* serial, TransportId transport_id, in acquire_one_transport() argument
961 if (transport_id != 0) { in acquire_one_transport()
963 android::base::StringPrintf("no device with transport id '%" PRIu64 "'", transport_id); in acquire_one_transport()
981 if (transport_id) { in acquire_one_transport()
982 if (t->id == transport_id) { in acquire_one_transport()
Dtransport.h432 atransport* acquire_one_transport(TransportType type, const char* serial, TransportId transport_id,