Home
last modified time | relevance | path

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

/system/core/adb/
Dtransport_local.c109 int local_connect_arbitrary_ports(int console_port, int adb_port) in local_connect_arbitrary_ports() argument
117 fd = socket_network_client(host, adb_port, SOCK_STREAM); in local_connect_arbitrary_ports()
121 fd = socket_loopback_client(adb_port, SOCK_STREAM); in local_connect_arbitrary_ports()
129 register_socket_transport(fd, buf, adb_port, 1); in local_connect_arbitrary_ports()
362 atransport* find_emulator_transport_by_adb_port_locked(int adb_port) in find_emulator_transport_by_adb_port_locked() argument
366 if (local_transports[i] && local_transports[i]->adb_port == adb_port) { in find_emulator_transport_by_adb_port_locked()
373 atransport* find_emulator_transport_by_adb_port(int adb_port) in find_emulator_transport_by_adb_port() argument
376 atransport* result = find_emulator_transport_by_adb_port_locked(adb_port); in find_emulator_transport_by_adb_port()
402 int init_socket_transport(atransport *t, int s, int adb_port, int local) in init_socket_transport() argument
414 t->adb_port = 0; in init_socket_transport()
[all …]
Dadb.h200 int adb_port; // Use for emulators (local transport) member
308 atransport* find_emulator_transport_by_adb_port(int adb_port);
443 int local_connect_arbitrary_ports(int console_port, int adb_port);
Dadb.c1292 int adb_port = strtol(port_separator, NULL, 0); in connect_emulator() local
1293 if (!(console_port > 0 && adb_port > 0)) { in connect_emulator()
1308 atransport* known_emulator = find_emulator_transport_by_adb_port(adb_port); in connect_emulator()
1311 "Emulator on port %d already registered.", adb_port); in connect_emulator()
1324 if (!local_connect_arbitrary_ports(console_port, adb_port)) { in connect_emulator()
1326 "Connected to emulator on ports %d,%d", console_port, adb_port); in connect_emulator()
1330 console_port, adb_port); in connect_emulator()
Dtransport.c1043 if (t->type == kTransportLocal && t->adb_port == 0) { in unregister_all_tcp_transports()