Home
last modified time | relevance | path

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

/system/core/adb/
Dsocket_spec_test.cpp28 std::string hostname, error, serial; in TEST() local
30 EXPECT_FALSE(parse_tcp_socket_spec("sneakernet:5037", &hostname, &port, &serial, &error)); in TEST()
35 std::string hostname, error, serial; in TEST() local
37 EXPECT_TRUE(parse_tcp_socket_spec("tcp:5037", &hostname, &port, &serial, &error)); in TEST()
38 EXPECT_EQ("", hostname); in TEST()
44 std::string hostname, error, serial; in TEST() local
46 EXPECT_FALSE(parse_tcp_socket_spec("tcp:", &hostname, &port, &serial, &error)); in TEST()
47 EXPECT_FALSE(parse_tcp_socket_spec("tcp:-1", &hostname, &port, &serial, &error)); in TEST()
48 EXPECT_FALSE(parse_tcp_socket_spec("tcp:65536", &hostname, &port, &serial, &error)); in TEST()
52 std::string hostname, error, serial; in TEST() local
[all …]
Dsocket_spec.cpp78 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port, in parse_tcp_socket_spec() argument
109 if (hostname) { in parse_tcp_socket_spec()
110 *hostname = std::move(hostname_value); in parse_tcp_socket_spec()
155 static bool tcp_host_is_local(std::string_view hostname) { in tcp_host_is_local() argument
157 return hostname.empty() || hostname == "localhost"; in tcp_host_is_local()
179 std::string hostname; in is_local_socket_spec() local
180 if (!parse_tcp_socket_spec(spec, &hostname, nullptr, nullptr, &error)) { in is_local_socket_spec()
183 return tcp_host_is_local(hostname); in is_local_socket_spec()
189 std::string hostname; in socket_spec_connect() local
191 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/core/adb/crypto/
Drsa_2048_key.cpp29 std::string hostname; in get_user_info() local
30 if (getenv("HOSTNAME")) hostname = getenv("HOSTNAME"); in get_user_info()
33 if (hostname.empty() && gethostname(buf, sizeof(buf)) != -1) hostname = buf; in get_user_info()
35 if (hostname.empty()) hostname = "unknown"; in get_user_info()
42 if (username.empty()) hostname = "unknown"; in get_user_info()
44 return " " + username + "@" + hostname; in get_user_info()
/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.h43 DNSServiceErrorType errorCode, const char *hostname, void *inContext);
46 uint32_t interface, DNSServiceErrorType errorCode, const char *hostname,
129 void setHostname(SocketClient *cli, int requestId, const char *hostname);
132 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_api/netd_event_listener_interface/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/server/aidl_api/netd_event_listener_interface/current/android/net/metrics/
DINetdEventListener.aidl21 … netId, int eventType, int returnCode, int latencyMs, @utf8InCpp String hostname, in @utf8InCpp St… in onDnsEvent() argument
22 …oneway void onPrivateDnsValidationEvent(int netId, String ipAddress, String hostname, boolean vali… in onPrivateDnsValidationEvent() argument
/system/core/adb/daemon/
Dmdns.cpp122 std::string hostname = "adb-"; in register_base_mdns_transport() local
123 hostname += android::base::GetProperty("ro.serialno", "unidentified"); in register_base_mdns_transport()
124 register_mdns_service(kADBTransportServiceRefIndex, port, hostname); in register_base_mdns_transport()
/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.cpp186 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error) { in Connect() argument
187 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.cpp378 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error) { in Connect() argument
379 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/adb/client/
Dtransport_mdns.cpp130 const char* hostname,
320 static void forEachService(const ServiceRegistry& services, std::string_view hostname,
445 DNSServiceErrorType errorCode, const char* hostname, in register_service_ip() argument
460 D("Resolved IP address for [%s]. Adding to service registry.", hostname); in register_service_ip()
/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
231 getenforce getfattr getopt grep groups gunzip gzip head help hostname
/system/sepolicy/prebuilts/api/28.0/private/
Dgenfs_contexts37 genfscon proc /sys/kernel/hostname u:object_r:proc_hostname:s0
/system/sepolicy/prebuilts/api/29.0/private/
Dgenfs_contexts45 genfscon proc /sys/kernel/hostname u:object_r:proc_hostname:s0
/system/sepolicy/private/
Dgenfs_contexts47 genfscon proc /sys/kernel/hostname u:object_r:proc_hostname:s0
/system/sepolicy/prebuilts/api/30.0/private/
Dgenfs_contexts47 genfscon proc /sys/kernel/hostname u:object_r:proc_hostname:s0
/system/core/rootdir/
Dinit.rc857 hostname localhost
/system/core/init/
DREADME.md488 `hostname <name>`