Searched refs:adb_port (Results 1 – 3 of 3) sorted by relevance
/system/core/adb/ |
D | transport_local.cpp | 110 int local_connect_arbitrary_ports(int console_port, int adb_port, std::string* error) { in local_connect_arbitrary_ports() argument 114 if (find_emulator_transport_by_adb_port(adb_port) != nullptr || in local_connect_arbitrary_ports() 121 fd = network_connect(host, adb_port, SOCK_STREAM, 0, error); in local_connect_arbitrary_ports() 125 fd = network_loopback_client(adb_port, SOCK_STREAM, error); in local_connect_arbitrary_ports() 133 if (register_socket_transport(fd, serial.c_str(), adb_port, 1) == 0) { in local_connect_arbitrary_ports() 421 static atransport* find_emulator_transport_by_adb_port_locked(int adb_port) in find_emulator_transport_by_adb_port_locked() argument 423 auto it = local_transports.find(adb_port); in find_emulator_transport_by_adb_port_locked() 434 atransport* find_emulator_transport_by_adb_port(int adb_port) { in find_emulator_transport_by_adb_port() argument 436 return find_emulator_transport_by_adb_port_locked(adb_port); in find_emulator_transport_by_adb_port() 444 int init_socket_transport(atransport* t, int s, int adb_port, int local) { in init_socket_transport() argument [all …]
|
D | services.cpp | 391 int adb_port = strtol(pieces[1].c_str(), NULL, 0); in connect_emulator() local 392 if (console_port <= 0 || adb_port <= 0) { in connect_emulator() 404 atransport* known_emulator = find_emulator_transport_by_adb_port(adb_port); in connect_emulator() 406 *response = android::base::StringPrintf("Emulator already registered on port %d", adb_port); in connect_emulator() 412 if (!local_connect_arbitrary_ports(console_port, adb_port, &error)) { in connect_emulator() 414 console_port, adb_port); in connect_emulator() 417 console_port, adb_port, error.c_str()); in connect_emulator()
|
D | adb.h | 139 atransport* find_emulator_transport_by_adb_port(int adb_port); 192 int local_connect_arbitrary_ports(int console_port, int adb_port, std::string* error);
|