/system/core/adb/ |
D | socket_spec_test.cpp | 28 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 …]
|
D | socket_spec.cpp | 78 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 …]
|
D | socket_spec.h | 32 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port,
|
/system/core/adb/crypto/ |
D | rsa_2048_key.cpp | 29 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/ |
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 | 43 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);
|
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_api/netd_event_listener_interface/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/server/aidl_api/netd_event_listener_interface/current/android/net/metrics/ |
D | INetdEventListener.aidl | 21 … 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/ |
D | mdns.cpp | 122 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/ |
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 | 186 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()
|
D | socket.h | 57 static std::unique_ptr<Socket> NewClient(Protocol protocol, const std::string& hostname,
|
D | udp.cpp | 378 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()
|
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/adb/client/ |
D | transport_mdns.cpp | 130 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/ |
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 231 getenforce getfattr getopt grep groups gunzip gzip head help hostname
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | genfs_contexts | 37 genfscon proc /sys/kernel/hostname u:object_r:proc_hostname:s0
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | genfs_contexts | 45 genfscon proc /sys/kernel/hostname u:object_r:proc_hostname:s0
|
/system/sepolicy/private/ |
D | genfs_contexts | 47 genfscon proc /sys/kernel/hostname u:object_r:proc_hostname:s0
|
/system/sepolicy/prebuilts/api/30.0/private/ |
D | genfs_contexts | 47 genfscon proc /sys/kernel/hostname u:object_r:proc_hostname:s0
|
/system/core/rootdir/ |
D | init.rc | 857 hostname localhost
|
/system/core/init/ |
D | README.md | 488 `hostname <name>`
|