Home
last modified time | relevance | path

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

/system/core/adb/
Dtransport_local.c112 int local_connect_arbitrary_ports(int console_port, int adb_port) in local_connect_arbitrary_ports() argument
120 fd = socket_network_client(host, adb_port, SOCK_STREAM); in local_connect_arbitrary_ports()
124 fd = socket_loopback_client(adb_port, SOCK_STREAM); in local_connect_arbitrary_ports()
132 register_socket_transport(fd, buf, adb_port, 1); in local_connect_arbitrary_ports()
365 atransport* find_emulator_transport_by_adb_port_locked(int adb_port) in find_emulator_transport_by_adb_port_locked() argument
369 if (local_transports[i] && local_transports[i]->adb_port == adb_port) { in find_emulator_transport_by_adb_port_locked()
376 atransport* find_emulator_transport_by_adb_port(int adb_port) in find_emulator_transport_by_adb_port() argument
379 atransport* result = find_emulator_transport_by_adb_port_locked(adb_port); in find_emulator_transport_by_adb_port()
405 int init_socket_transport(atransport *t, int s, int adb_port, int local) in init_socket_transport() argument
417 t->adb_port = 0; in init_socket_transport()
[all …]
Dservices.c566 int adb_port = strtol(port_separator, NULL, 0); in connect_emulator() local
567 if (!(console_port > 0 && adb_port > 0)) { in connect_emulator()
582 atransport* known_emulator = find_emulator_transport_by_adb_port(adb_port); in connect_emulator()
585 "Emulator on port %d already registered.", adb_port); in connect_emulator()
598 if (!local_connect_arbitrary_ports(console_port, adb_port)) { in connect_emulator()
600 "Connected to emulator on ports %d,%d", console_port, adb_port); in connect_emulator()
604 console_port, adb_port); in connect_emulator()
Dadb.h204 int adb_port; // Use for emulators (local transport) member
312 atransport* find_emulator_transport_by_adb_port(int adb_port);
363 int local_connect_arbitrary_ports(int console_port, int adb_port);
Dtransport.c1081 if (t->type == kTransportLocal && t->adb_port == 0) { in unregister_all_tcp_transports()