Searched refs:adb_port (Results 1 – 3 of 3) sorted by relevance
/system/core/adb/ |
D | transport_local.cpp | 151 int local_connect_arbitrary_ports(int console_port, int adb_port, std::string* error) { in local_connect_arbitrary_ports() argument 155 if (find_emulator_transport_by_adb_port(adb_port) != nullptr || in local_connect_arbitrary_ports() 162 fd.reset(network_connect(host, adb_port, SOCK_STREAM, 0, error)); in local_connect_arbitrary_ports() 166 fd.reset(network_loopback_client(adb_port, SOCK_STREAM, error)); in local_connect_arbitrary_ports() 174 if (register_socket_transport(std::move(fd), std::move(serial), adb_port, 1, in local_connect_arbitrary_ports() 348 static atransport* find_emulator_transport_by_adb_port_locked(int adb_port) in find_emulator_transport_by_adb_port_locked() argument 350 auto it = local_transports.find(adb_port); in find_emulator_transport_by_adb_port_locked() 357 atransport* find_emulator_transport_by_adb_port(int adb_port) { in find_emulator_transport_by_adb_port() argument 359 return find_emulator_transport_by_adb_port_locked(adb_port); in find_emulator_transport_by_adb_port() 371 int init_socket_transport(atransport* t, unique_fd fd, int adb_port, int local) { in init_socket_transport() argument [all …]
|
D | services.cpp | 156 int adb_port = strtol(pieces[1].c_str(), nullptr, 0); in connect_emulator() local 157 if (console_port <= 0 || adb_port <= 0) { in connect_emulator() 169 atransport* known_emulator = find_emulator_transport_by_adb_port(adb_port); in connect_emulator() 171 *response = android::base::StringPrintf("Emulator already registered on port %d", adb_port); in connect_emulator() 177 if (!local_connect_arbitrary_ports(console_port, adb_port, &error)) { in connect_emulator() 179 console_port, adb_port); in connect_emulator() 182 console_port, adb_port, error.c_str()); in connect_emulator()
|
D | adb.h | 141 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);
|