Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/security/net/config/
DApplicationConfig.java70 public NetworkSecurityConfig getConfigForHostname(String hostname) { in getConfigForHostname() argument
72 if (hostname == null || hostname.isEmpty() || mConfigs == null) { in getConfigForHostname()
75 if (hostname.charAt(0) == '.') { in getConfigForHostname()
79 hostname = hostname.toLowerCase(Locale.US); in getConfigForHostname()
82 if (hostname.charAt(hostname.length() - 1) == '.') { in getConfigForHostname()
83 hostname = hostname.substring(0, hostname.length() - 1); in getConfigForHostname()
93 if (domain.hostname.equals(hostname)) { in getConfigForHostname()
99 && hostname.endsWith(domain.hostname) in getConfigForHostname()
100 && hostname.charAt(hostname.length() - domain.hostname.length() - 1) == '.') { in getConfigForHostname()
103 } else if (domain.hostname.length() > bestMatch.first.hostname.length()) { in getConfigForHostname()
[all …]
DDomain.java25 public final String hostname; field in Domain
32 public Domain(String hostname, boolean subdomainsIncluded) { in Domain() argument
33 if (hostname == null) { in Domain()
36 this.hostname = hostname.toLowerCase(Locale.US); in Domain()
42 return hostname.hashCode() ^ (subdomainsIncluded ? 1231 : 1237); in hashCode()
55 otherDomain.hostname.equals(this.hostname); in equals()
DConfigNetworkSecurityPolicy.java37 public boolean isCleartextTrafficPermitted(String hostname) { in isCleartextTrafficPermitted() argument
38 return mConfig.isCleartextTrafficPermitted(hostname); in isCleartextTrafficPermitted()
42 public boolean isCertificateTransparencyVerificationRequired(String hostname) { in isCertificateTransparencyVerificationRequired() argument
DRootTrustManager.java125 String hostname) throws CertificateException { in checkServerTrusted() argument
126 if (hostname == null && mConfig.hasPerDomainConfigs()) { in checkServerTrusted()
130 NetworkSecurityConfig config = mConfig.getConfigForHostname(hostname); in checkServerTrusted()
131 return config.getTrustManager().checkServerTrusted(certs, authType, hostname); in checkServerTrusted()
/frameworks/base/core/java/android/app/admin/
DDnsEvent.java37 private final String hostname; field in DnsEvent
49 public DnsEvent(String hostname, String[] ipAddresses, int ipAddressesCount, in DnsEvent() argument
52 this.hostname = hostname; in DnsEvent()
58 this.hostname = in.readString(); in DnsEvent()
67 return hostname; in getHostname()
98 return String.format("DnsEvent(%s, %s, %d, %d, %s)", hostname, in toString()
128 out.writeString(hostname); in writeToParcel()
/frameworks/base/core/java/android/security/
DFrameworkNetworkSecurityPolicy.java37 public boolean isCleartextTrafficPermitted(String hostname) { in isCleartextTrafficPermitted() argument
42 public boolean isCertificateTransparencyVerificationRequired(String hostname) { in isCertificateTransparencyVerificationRequired() argument
DNetworkSecurityPolicy.java78 public boolean isCleartextTrafficPermitted(String hostname) { in isCleartextTrafficPermitted() argument
80 .isCleartextTrafficPermitted(hostname); in isCleartextTrafficPermitted()
/frameworks/base/core/java/android/net/
DProxy.java218 public static int validate(String hostname, String port, String exclList) { in validate() argument
219 Matcher match = HOSTNAME_PATTERN.matcher(hostname); in validate()
226 if (hostname.length() > 0 && port.length() == 0) return PROXY_PORT_EMPTY; in validate()
229 if (hostname.length() == 0) return PROXY_HOSTNAME_EMPTY; in validate()
DINetdEventCallback.aidl34 void onDnsEvent(String hostname, in String[] ipAddresses, int ipAddressesCount, long timestamp, in onDnsEvent() argument
DSSLCertificateSocketFactory.java192 public static void verifyHostname(Socket socket, String hostname) throws IOException { in verifyHostname() argument
207 if (!HttpsURLConnection.getDefaultHostnameVerifier().verify(hostname, session)) { in verifyHostname()
208 throw new SSLPeerUnverifiedException("Cannot verify hostname: " + hostname); in verifyHostname()
DNetwork.java229 public List<InetAddress> lookup(String hostname) throws UnknownHostException { in maybeInitHttpClient()
230 return Arrays.asList(Network.this.getAllByName(hostname)); in maybeInitHttpClient()
/frameworks/base/core/java/org/apache/http/conn/scheme/
DHostNameResolver.java45 InetAddress resolve (String hostname) throws IOException; in resolve() argument
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DNetworkLogger.java55 public void onDnsEvent(String hostname, String[] ipAddresses, int ipAddressesCount,
60 DnsEvent dnsEvent = new DnsEvent(hostname, ipAddresses, ipAddressesCount,
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetdEventListenerService.java123 String hostname, String[] ipAddresses, int ipAddressesCount, int uid) in onDnsEvent() argument
136 mNetdEventCallback.onDnsEvent(hostname, ipAddresses, ipAddressesCount, timestamp, uid); in onDnsEvent()
/frameworks/base/services/core/java/com/android/server/
DNsdService.java756 private boolean getAddrInfo(int resolveId, String hostname) { in getAddrInfo() argument
757 return mDaemon.execute("getaddrinfo", resolveId, hostname); in getAddrInfo()
/frameworks/base/services/core/jni/
Dcom_android_server_location_GnssLocationProvider.cpp1453 jint type, jstring hostname, jint port) { in android_location_GnssLocationProvider_set_agps_server() argument
1459 const char *c_hostname = env->GetStringUTFChars(hostname, NULL); in android_location_GnssLocationProvider_set_agps_server()
1467 env->ReleaseStringUTFChars(hostname, c_hostname); in android_location_GnssLocationProvider_set_agps_server()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java2655 private native void native_set_agps_server(int type, String hostname, int port);
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt54331 field protected final java.lang.String hostname;