Home
last modified time | relevance | path

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

12

/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/core/adb/
Dadb_auth_host.cpp111 char hostname[1024], username[1024]; in get_user_info() local
115 strncpy(hostname, getenv("HOSTNAME"), sizeof(hostname)); in get_user_info()
116 hostname[sizeof(hostname)-1] = '\0'; in get_user_info()
122 ret = gethostname(hostname, sizeof(hostname)); in get_user_info()
125 strcpy(hostname, "unknown"); in get_user_info()
142 ret = snprintf(buf, len, " %s@%s", username, hostname); in get_user_info()
Dadb_client.h49 void adb_set_tcp_name(const char* _Nullable hostname);
Dadb_client.cpp67 void adb_set_tcp_name(const char* hostname) in adb_set_tcp_name() argument
69 __adb_server_name = hostname; in adb_set_tcp_name()
/system/netd/server/
DMDnsSdListener.h41 DNSServiceErrorType errorCode, const char *hostname, void *inContext);
44 uint32_t interface, DNSServiceErrorType errorCode, const char *hostname,
125 void setHostname(SocketClient *cli, int requestId, const char *hostname);
128 uint32_t protocol, const char *hostname);
DMDnsSdListener.cpp284 const char *interfaceName, uint32_t protocol, const char *hostname) { in getAddrInfo() argument
285 if (VDBG) ALOGD("getAddrInfo(%d, %s %d, %s)", requestId, interfaceName, protocol, hostname); in getAddrInfo()
297 hostname, &MDnsSdListenerGetAddrInfoCallback, context); in getAddrInfo()
313 uint32_t /* interface */, DNSServiceErrorType errorCode, const char *hostname, in MDnsSdListenerGetAddrInfoCallback() argument
327 char *quotedHostname = SocketClient::quoteArg(hostname); in MDnsSdListenerGetAddrInfoCallback()
344 const char *hostname) { in setHostname() argument
345 if (VDBG) ALOGD("setHostname(%d, %s)", requestId, hostname); in setHostname()
355 DNSServiceErrorType result = DNSSetHostname(ref, nativeFlags, hostname, in setHostname()
371 DNSServiceErrorType errorCode, const char *hostname, void *inContext) { in MDnsSdListenerSetHostnameCallback() argument
380 char *quotedHostname = SocketClient::quoteArg(hostname); in MDnsSdListenerSetHostnameCallback()
[all …]
/system/connectivity/shill/
Dshill_ares.cc38 const char* hostname, in GetHostByName() argument
42 ares_gethostbyname(channel, hostname, family, callback, arg); in GetHostByName()
Dmock_dns_client.h34 MOCK_METHOD2(Start, bool(const std::string& hostname, Error* error));
Dmock_ares.h34 const char* hostname,
Dshill_ares.h38 const char* hostname,
Ddns_client.h71 virtual bool Start(const std::string& hostname, Error* error);
Dmock_device_info.h83 MOCK_CONST_METHOD1(SetHostname, bool(const std::string& hostname));
Ddns_client.cc97 bool DNSClient::Start(const string& hostname, Error* error) { in Start() argument
162 ares_->GetHostByName(resolver_state_->channel, hostname.c_str(), in Start()
Ddevice_info.cc1281 bool DeviceInfo::SetHostname(const std::string& hostname) const { in SetHostname()
1282 if (sethostname(hostname.c_str(), hostname.length())) { in SetHostname()
1283 PLOG(ERROR) << "Failed to set hostname to: " << hostname; in SetHostname()
Ddevice_info.h158 virtual bool SetHostname(const std::string& hostname) const;
/system/core/fastboot/
Dtcp.h46 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error);
Dudp.h44 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.h58 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/connectivity/shill/dhcp/
Ddhcpv4_config_unittest.cc104 DHCPv4ConfigRefPtr CreateMockMinijailConfig(const string& hostname,
108 DHCPv4ConfigRefPtr CreateRunningConfig(const string& hostname,
133 const string& hostname, in CreateMockMinijailConfig() argument
139 if (!hostname.empty()) { in CreateMockMinijailConfig()
170 const string& hostname, const string& vendorclass, in CreateRunningConfig() argument
174 if (!hostname.empty()) { in CreateRunningConfig()
205 EXPECT_EQ(config->hostname_, hostname); in CreateRunningConfig()
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/
Dheader.h80 char * hostname; member
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
Dheader.h69 char *hostname; member
/system/connectivity/shill/init/
Dshill.conf.in94 ARGS="${ARGS} --accept-hostname-from=${SHILL_ACCEPT_HOSTNAME_FROM}"

12