Home
last modified time | relevance | path

Searched refs:get_host_socket_spec_port (Results 1 – 5 of 5) sorted by relevance

/system/core/adb/
Dsocket_spec_test.cpp103 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 …]
Dsocket_spec.h35 int get_host_socket_spec_port(std::string_view spec, std::string* error);
Dsocket_spec.cpp120 int get_host_socket_spec_port(std::string_view spec, std::string* error) { in get_host_socket_spec_port() function
/system/core/adb/daemon/
Dtransport_qemu.cpp74 int port = get_host_socket_spec_port(addr, &error); in qemu_socket_thread()
Dmain.cpp170 port = get_host_socket_spec_port(addr, &error); in setup_adb()