Home
last modified time | relevance | path

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

/packages/modules/adb/client/
Dtransport_local.cpp136 int local_connect_arbitrary_ports(int console_port, int adb_port, std::string* error) { in local_connect_arbitrary_ports() argument
139 if (find_emulator_transport_by_adb_port(adb_port) != nullptr || in local_connect_arbitrary_ports()
146 fd.reset(network_connect(host, adb_port, SOCK_STREAM, 0, error)); in local_connect_arbitrary_ports()
150 fd.reset(network_loopback_client(adb_port, SOCK_STREAM, error)); in local_connect_arbitrary_ports()
159 std::move(fd), std::move(serial), adb_port, 1, in local_connect_arbitrary_ports()
262 static atransport* find_emulator_transport_by_adb_port_locked(int adb_port) in find_emulator_transport_by_adb_port_locked() argument
264 auto it = local_transports.find(adb_port); in find_emulator_transport_by_adb_port_locked()
271 atransport* find_emulator_transport_by_adb_port(int adb_port) { in find_emulator_transport_by_adb_port() argument
273 return find_emulator_transport_by_adb_port_locked(adb_port); in find_emulator_transport_by_adb_port()
284 int init_socket_transport(atransport* t, unique_fd fd, int adb_port, int local) { in init_socket_transport() argument
[all …]
/packages/modules/adb/
Dservices.cpp107 int adb_port = strtol(pieces[1].c_str(), nullptr, 0); in connect_emulator() local
108 if (console_port <= 0 || adb_port <= 0) { in connect_emulator()
120 atransport* known_emulator = find_emulator_transport_by_adb_port(adb_port); in connect_emulator()
122 *response = android::base::StringPrintf("Emulator already registered on port %d", adb_port); in connect_emulator()
128 if (!local_connect_arbitrary_ports(console_port, adb_port, &error)) { in connect_emulator()
130 console_port, adb_port); in connect_emulator()
133 console_port, adb_port, error.c_str()); in connect_emulator()
Dadb.h147 atransport* find_emulator_transport_by_adb_port(int adb_port);
205 int local_connect_arbitrary_ports(int console_port, int adb_port, std::string* error);
/packages/modules/adb/daemon/
Dtransport_local.cpp100 int init_socket_transport(atransport* t, unique_fd fd, int adb_port, int local) { in init_socket_transport() argument