Searched refs:get_host_socket_spec_port (Results 1 – 4 of 4) sorted by relevance
/packages/modules/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
|
/packages/modules/adb/daemon/ |
D | main.cpp | 174 port = get_host_socket_spec_port(addr, &error); in setup_adb()
|