Searched refs:parse_tcp_socket_spec (Results 1 – 4 of 4) sorted by relevance
/system/core/adb/ |
D | socket_spec_test.cpp | 23 TEST(socket_spec, parse_tcp_socket_spec) { in TEST() argument 26 EXPECT_TRUE(parse_tcp_socket_spec("tcp:5037", &hostname, &port, &serial, &error)); in TEST() 32 EXPECT_FALSE(parse_tcp_socket_spec("tcp:", &hostname, &port, &serial, &error)); in TEST() 33 EXPECT_FALSE(parse_tcp_socket_spec("tcp:-1", &hostname, &port, &serial, &error)); in TEST() 34 EXPECT_FALSE(parse_tcp_socket_spec("tcp:65536", &hostname, &port, &serial, &error)); in TEST() 36 EXPECT_TRUE(parse_tcp_socket_spec("tcp:localhost:1234", &hostname, &port, &serial, &error)); in TEST() 41 EXPECT_FALSE(parse_tcp_socket_spec("tcp:localhost", &hostname, &port, &serial, &error)); in TEST() 42 EXPECT_FALSE(parse_tcp_socket_spec("tcp:localhost:", &hostname, &port, &serial, &error)); in TEST() 43 EXPECT_FALSE(parse_tcp_socket_spec("tcp:localhost:-1", &hostname, &port, &serial, &error)); in TEST() 44 EXPECT_FALSE(parse_tcp_socket_spec("tcp:localhost:65536", &hostname, &port, &serial, &error)); in TEST() [all …]
|
D | socket_spec.cpp | 74 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port, in parse_tcp_socket_spec() function 147 if (!parse_tcp_socket_spec(spec, &hostname, nullptr, nullptr, &error)) { in is_local_socket_spec() 158 if (!parse_tcp_socket_spec(address, &hostname, &port_value, serial, error)) { in socket_spec_connect() 267 if (!parse_tcp_socket_spec(spec, &hostname, &port, nullptr, error)) { in socket_spec_listen()
|
D | socket_spec.h | 32 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port,
|
/system/core/adb/client/ |
D | adb_client.cpp | 223 if (!parse_tcp_socket_spec(__adb_server_socket_spec, nullptr, &port, nullptr, &error)) { in adb_get_server_executable_path()
|