Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 25 of 31) sorted by relevance

12

/system/core/adb/
Dsocket_spec_test.cpp24 std::string hostname, error, serial; in TEST() local
26 EXPECT_TRUE(parse_tcp_socket_spec("tcp:5037", &hostname, &port, &serial, &error)); in TEST()
27 EXPECT_EQ("", hostname); 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()
37 EXPECT_EQ("localhost", hostname); 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()
[all …]
Dsocket_spec.cpp74 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port, in parse_tcp_socket_spec() argument
111 if (hostname) { in parse_tcp_socket_spec()
112 *hostname = std::move(hostname_value); in parse_tcp_socket_spec()
122 static bool tcp_host_is_local(std::string_view hostname) { in tcp_host_is_local() argument
124 return hostname.empty() || hostname == "localhost"; in tcp_host_is_local()
146 std::string hostname; in is_local_socket_spec() local
147 if (!parse_tcp_socket_spec(spec, &hostname, nullptr, nullptr, &error)) { in is_local_socket_spec()
150 return tcp_host_is_local(hostname); in is_local_socket_spec()
156 std::string hostname; in socket_spec_connect() local
158 if (!parse_tcp_socket_spec(address, &hostname, &port_value, serial, error)) { in socket_spec_connect()
[all …]
Dsocket_spec.h32 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port,
/system/netd/resolv/tests/
DTestMetrics.cpp27 const std::string& hostname, in onDnsEvent() argument
49 if (hostname != result.hostname) continue; in onDnsEvent()
DTestMetrics.h34 std::string hostname; member
46 int32_t /*latencyMs*/, const std::string& hostname,
/system/core/adb/daemon/
Dmdns.cpp67 std::string hostname = "adb-"; in setup_mdns_thread() local
68 hostname += android::base::GetProperty("ro.serialno", "unidentified"); in setup_mdns_thread()
70 auto error = DNSServiceRegister(&mdns_ref, 0, 0, hostname.c_str(), in setup_mdns_thread()
/system/extras/multinetwork/
Dhttpurl.cpp39 std::string hostname; member
72 parameters->hostname = parameters->host.substr(1, closing_bracket - 1); in parseUrl()
86 parameters->hostname = parameters->host.substr(0, first_colon); in parseUrl()
88 parameters->hostname = parameters->host; in parseUrl()
94 std::cerr << "Resolving hostname=" << parameters->hostname in parseUrl()
108 parameters->hostname.c_str(), in parseUrl()
113 rval = getaddrinfo(parameters->hostname.c_str(), in parseUrl()
/system/netd/server/
DMDnsSdListener.h42 DNSServiceErrorType errorCode, const char *hostname, void *inContext);
45 uint32_t interface, DNSServiceErrorType errorCode, const char *hostname,
127 void setHostname(SocketClient *cli, int requestId, const char *hostname);
130 uint32_t protocol, const char *hostname);
DMDnsSdListener.cpp288 const char *interfaceName, uint32_t protocol, const char *hostname) { in getAddrInfo() argument
289 if (VDBG) ALOGD("getAddrInfo(%d, %s %d, %s)", requestId, interfaceName, protocol, hostname); in getAddrInfo()
301 hostname, &MDnsSdListenerGetAddrInfoCallback, context); in getAddrInfo()
317 uint32_t /* interface */, DNSServiceErrorType errorCode, const char *hostname, in MDnsSdListenerGetAddrInfoCallback() argument
331 char *quotedHostname = SocketClient::quoteArg(hostname); in MDnsSdListenerGetAddrInfoCallback()
348 const char *hostname) { in setHostname() argument
349 if (VDBG) ALOGD("setHostname(%d, %s)", requestId, hostname); in setHostname()
359 DNSServiceErrorType result = DNSSetHostname(ref, nativeFlags, hostname, in setHostname()
375 DNSServiceErrorType errorCode, const char *hostname, void *inContext) { in MDnsSdListenerSetHostnameCallback() argument
384 char *quotedHostname = SocketClient::quoteArg(hostname); in MDnsSdListenerSetHostnameCallback()
[all …]
/system/netd/server/binder/android/net/metrics/
DINetdEventListener.aidl52 @utf8InCpp String hostname, in @utf8InCpp String[] ipAddresses, in onDnsEvent() argument
63 void onPrivateDnsValidationEvent(int netId, String ipAddress, String hostname, in onPrivateDnsValidationEvent() argument
/system/netd/server/aidl/netdeventlistener/1/android/net/metrics/
DINetdEventListener.aidl20 … netId, int eventType, int returnCode, int latencyMs, @utf8InCpp String hostname, in @utf8InCpp St… in onDnsEvent() argument
21 …oneway void onPrivateDnsValidationEvent(int netId, String ipAddress, String hostname, boolean vali… in onPrivateDnsValidationEvent() argument
/system/netd/resolv/
Dgetaddrinfo.cpp258 int getaddrinfo_numeric(const char* hostname, const char* servname, addrinfo hints, in getaddrinfo_numeric() argument
268 return android_getaddrinfofornetcontext(hostname, servname, &hints, &netcontext, result); in getaddrinfo_numeric()
271 int android_getaddrinfofornetcontext(const char* hostname, const char* servname, in android_getaddrinfofornetcontext() argument
297 if (hostname == NULL && servname == NULL) { in android_getaddrinfofornetcontext()
368 if (hostname == nullptr) in android_getaddrinfofornetcontext()
371 error = explore_numeric_scope(&tmp, hostname, servname, &cur->ai_next); in android_getaddrinfofornetcontext()
386 if (hostname == nullptr) { in android_getaddrinfofornetcontext()
416 error = explore_fqdn(&tmp, hostname, servname, &cur->ai_next, netcontext); in android_getaddrinfofornetcontext()
438 static int explore_fqdn(const struct addrinfo* pai, const char* hostname, const char* servname, in explore_fqdn() argument
453 if (!files_getaddrinfo(hostname, pai, &result)) { in explore_fqdn()
[all …]
DPrivateDnsConfiguration.h49 const char* hostname; member
Ddnsresolver_binder_test.cpp152 std::string hostname; in TEST_F() member
207 SCOPED_TRACE(config.hostname); in TEST_F()
211 int status = getaddrinfo(config.hostname.c_str(), nullptr, &hints, &result); in TEST_F()
Dresolv_private.h231 int getaddrinfo_numeric(const char* hostname, const char* servname, addrinfo hints,
DPrivateDnsConfiguration.cpp153 status->serverStatus[count].hostname = in getStatus()
DResolverController.cpp370 privateDnsStatus.serverStatus[i].hostname, in dump()
/system/core/fastboot/
Dtcp.h45 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error);
Dudp.h43 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error);
Dtcp.cpp181 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error) { in Connect() argument
182 return internal::Connect(Socket::NewClient(Socket::Protocol::kTcp, hostname, port, error), in Connect()
Dsocket.h57 static std::unique_ptr<Socket> NewClient(Protocol protocol, const std::string& hostname,
Dudp.cpp373 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error) { in Connect() argument
374 return internal::Connect(Socket::NewClient(Socket::Protocol::kUdp, hostname, port, error), in Connect()
Dsocket_test.cpp37 const std::string& hostname = "localhost") { in MakeConnectedSockets() argument
44 *client = Socket::NewClient(protocol, hostname, (*server)->GetLocalPort(), nullptr); in MakeConnectedSockets()
/system/core/shell_and_utilities/
DREADME.md104 head hostname hwclock id ifconfig inotifyd insmod kill load\_policy ln
124 getenforce getprop groups head hostname hwclock id ifconfig inotifyd
146 getenforce getprop groups gunzip gzip head hostname hwclock id ifconfig
172 getenforce groups gunzip gzip head hostname hwclock id ifconfig inotifyd
199 getenforce getfattr grep groups gunzip gzip head help hostname hwclock
/system/core/adb/client/
Dtransport_mdns.cpp52 const char* hostname,

12