Searched refs:get_host_socket_spec_port (Results 1 – 5 of 5) sorted by relevance
/system/core/adb/ |
D | socket_spec_test.cpp | 103 TEST(socket_spec, get_host_socket_spec_port) { in TEST() argument 105 EXPECT_EQ(5555, get_host_socket_spec_port("tcp:5555", &error)); in TEST() 106 EXPECT_EQ(5555, get_host_socket_spec_port("tcp:localhost:5555", &error)); in TEST() 107 EXPECT_EQ(5555, get_host_socket_spec_port("tcp:[::1]:5555", &error)); in TEST() 108 EXPECT_EQ(5555, get_host_socket_spec_port("vsock:5555", &error)); in TEST() 113 EXPECT_EQ(5555, get_host_socket_spec_port("tcp:localhost", &error)); in TEST() 114 EXPECT_EQ(-1, get_host_socket_spec_port("vsock:localhost", &error)); in TEST() 119 EXPECT_EQ(-1, get_host_socket_spec_port("tcp:65536", &error)); in TEST() 120 EXPECT_EQ(-1, get_host_socket_spec_port("tcp:-5", &error)); in TEST() 121 EXPECT_EQ(-1, get_host_socket_spec_port("vsock:-5", &error)); in TEST() [all …]
|
D | socket_spec.h | 35 int get_host_socket_spec_port(std::string_view spec, std::string* error);
|
D | socket_spec.cpp | 120 int get_host_socket_spec_port(std::string_view spec, std::string* error) { in get_host_socket_spec_port() function
|
/system/core/adb/daemon/ |
D | transport_qemu.cpp | 74 int port = get_host_socket_spec_port(addr, &error); in qemu_socket_thread()
|
D | main.cpp | 170 port = get_host_socket_spec_port(addr, &error); in setup_adb()
|