/system/core/adb/ |
D | socket_spec_test.cpp | 24 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 …]
|
D | socket_spec.cpp | 74 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 …]
|
D | socket_spec.h | 32 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port,
|
/system/netd/resolv/tests/ |
D | TestMetrics.cpp | 27 const std::string& hostname, in onDnsEvent() argument 49 if (hostname != result.hostname) continue; in onDnsEvent()
|
D | TestMetrics.h | 34 std::string hostname; member 46 int32_t /*latencyMs*/, const std::string& hostname,
|
/system/core/adb/daemon/ |
D | mdns.cpp | 67 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/ |
D | httpurl.cpp | 39 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/ |
D | MDnsSdListener.h | 42 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);
|
D | MDnsSdListener.cpp | 288 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/ |
D | INetdEventListener.aidl | 52 @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/ |
D | INetdEventListener.aidl | 20 … 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/ |
D | getaddrinfo.cpp | 258 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 …]
|
D | PrivateDnsConfiguration.h | 49 const char* hostname; member
|
D | dnsresolver_binder_test.cpp | 152 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()
|
D | resolv_private.h | 231 int getaddrinfo_numeric(const char* hostname, const char* servname, addrinfo hints,
|
D | PrivateDnsConfiguration.cpp | 153 status->serverStatus[count].hostname = in getStatus()
|
D | ResolverController.cpp | 370 privateDnsStatus.serverStatus[i].hostname, in dump()
|
/system/core/fastboot/ |
D | tcp.h | 45 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error);
|
D | udp.h | 43 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error);
|
D | tcp.cpp | 181 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()
|
D | socket.h | 57 static std::unique_ptr<Socket> NewClient(Protocol protocol, const std::string& hostname,
|
D | udp.cpp | 373 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()
|
D | socket_test.cpp | 37 const std::string& hostname = "localhost") { in MakeConnectedSockets() argument 44 *client = Socket::NewClient(protocol, hostname, (*server)->GetLocalPort(), nullptr); in MakeConnectedSockets()
|
/system/core/shell_and_utilities/ |
D | README.md | 104 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/ |
D | transport_mdns.cpp | 52 const char* hostname,
|