Lines Matching refs:adb_port
136 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
291 auto emulator_connection = std::make_unique<EmulatorConnection>(std::move(fd), adb_port); in init_socket_transport()
295 atransport* existing_transport = find_emulator_transport_by_adb_port_locked(adb_port); in init_socket_transport()
297 D("local transport for port %d already registered (%p)?", adb_port, existing_transport); in init_socket_transport()
300 local_transports[adb_port] = t; in init_socket_transport()