Home
last modified time | relevance | path

Searched refs:adb_port (Results 1 – 4 of 4) sorted by relevance

/system/core/adb/
Dtransport_local.cpp91 int local_connect_arbitrary_ports(int console_port, int adb_port) in local_connect_arbitrary_ports() argument
98 fd = socket_network_client(host, adb_port, SOCK_STREAM); in local_connect_arbitrary_ports()
102 fd = socket_loopback_client(adb_port, SOCK_STREAM); in local_connect_arbitrary_ports()
110 register_socket_transport(fd, serial.c_str(), adb_port, 1); in local_connect_arbitrary_ports()
343 atransport* find_emulator_transport_by_adb_port_locked(int adb_port) in find_emulator_transport_by_adb_port_locked() argument
347 if (local_transports[i] && local_transports[i]->adb_port == adb_port) { in find_emulator_transport_by_adb_port_locked()
354 atransport* find_emulator_transport_by_adb_port(int adb_port) in find_emulator_transport_by_adb_port() argument
357 atransport* result = find_emulator_transport_by_adb_port_locked(adb_port); in find_emulator_transport_by_adb_port()
383 int init_socket_transport(atransport *t, int s, int adb_port, int local) in init_socket_transport() argument
395 t->adb_port = 0; in init_socket_transport()
[all …]
Dservices.cpp593 int adb_port = strtol(pieces[1].c_str(), NULL, 0); in connect_emulator() local
594 if (console_port <= 0 || adb_port <= 0) { in connect_emulator()
606 atransport* known_emulator = find_emulator_transport_by_adb_port(adb_port); in connect_emulator()
608 *response = android::base::StringPrintf("Emulator already registered on port %d", adb_port); in connect_emulator()
621 if (!local_connect_arbitrary_ports(console_port, adb_port)) { in connect_emulator()
623 console_port, adb_port); in connect_emulator()
626 console_port, adb_port); in connect_emulator()
Dadb.h202 int adb_port; // Use for emulators (local transport) member
272 atransport* find_emulator_transport_by_adb_port(int adb_port);
323 int local_connect_arbitrary_ports(int console_port, int adb_port);
Dtransport.cpp1002 if (t->type == kTransportLocal && t->adb_port == 0) { in unregister_all_tcp_transports()