Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/security/net/config/
DApplicationConfig.java75 public NetworkSecurityConfig getConfigForHostname(String hostname) { in getConfigForHostname() argument
77 if (hostname == null || hostname.isEmpty() || mConfigs == null) { in getConfigForHostname()
80 if (hostname.charAt(0) == '.') { in getConfigForHostname()
84 hostname = hostname.toLowerCase(Locale.US); in getConfigForHostname()
87 if (hostname.charAt(hostname.length() - 1) == '.') { in getConfigForHostname()
88 hostname = hostname.substring(0, hostname.length() - 1); in getConfigForHostname()
98 if (domain.hostname.equals(hostname)) { in getConfigForHostname()
104 && hostname.endsWith(domain.hostname) in getConfigForHostname()
105 && hostname.charAt(hostname.length() - domain.hostname.length() - 1) == '.') { in getConfigForHostname()
108 } else if (domain.hostname.length() > bestMatch.first.hostname.length()) { in getConfigForHostname()
[all …]
DDomain.java28 public final String hostname; field in Domain
35 public Domain(String hostname, boolean subdomainsIncluded) { in Domain() argument
36 if (hostname == null) { in Domain()
39 this.hostname = hostname.toLowerCase(Locale.US); in Domain()
45 return hostname.hashCode() ^ (subdomainsIncluded ? 1231 : 1237); in hashCode()
58 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
43 return mConfig.isCertificateTransparencyVerificationRequired(hostname); in isCertificateTransparencyVerificationRequired()
DRootTrustManager.java128 String hostname) throws CertificateException { in checkServerTrusted() argument
129 if (hostname == null && mConfig.hasPerDomainConfigs()) { in checkServerTrusted()
133 NetworkSecurityConfig config = mConfig.getConfigForHostname(hostname); in checkServerTrusted()
134 return config.getTrustManager().checkServerTrusted(certs, authType, hostname); in checkServerTrusted()
/frameworks/base/core/java/android/net/
DPrivateDnsConnectivityChecker.java45 public static boolean canConnectToPrivateDnsServer(@NonNull String hostname) { in canConnectToPrivateDnsServer() argument
51 socket.connect(new InetSocketAddress(hostname, PRIVATE_DNS_PORT)); in canConnectToPrivateDnsServer()
53 Log.w(TAG, String.format("Connection to %s failed.", hostname)); in canConnectToPrivateDnsServer()
57 Log.w(TAG, String.format("TLS handshake to %s succeeded.", hostname)); in canConnectToPrivateDnsServer()
60 Log.w(TAG, String.format("TLS handshake to %s failed.", hostname), e); in canConnectToPrivateDnsServer()
DINetdEventCallback.aidl44 void onDnsEvent(int netId, int eventType, int returnCode, String hostname, in onDnsEvent() argument
70 void onPrivateDnsValidationEvent(int netId, String ipAddress, String hostname, in onPrivateDnsValidationEvent() argument
DSSLCertificateSocketFactory.java231 public static void verifyHostname(Socket socket, String hostname) throws IOException { in verifyHostname() argument
246 if (!HttpsURLConnection.getDefaultHostnameVerifier().verify(hostname, session)) { in verifyHostname()
247 throw new SSLPeerUnverifiedException("Cannot verify hostname: " + hostname); in verifyHostname()
/frameworks/base/core/java/android/security/
DNetworkSecurityPolicy.java77 public boolean isCleartextTrafficPermitted(String hostname) { in isCleartextTrafficPermitted() argument
79 .isCleartextTrafficPermitted(hostname); in isCleartextTrafficPermitted()
106 public boolean isCertificateTransparencyVerificationRequired(@NonNull String hostname) { in isCertificateTransparencyVerificationRequired() argument
108 .isCertificateTransparencyVerificationRequired(hostname); in isCertificateTransparencyVerificationRequired()
DFrameworkNetworkSecurityPolicy.java37 public boolean isCleartextTrafficPermitted(String hostname) { in isCleartextTrafficPermitted() argument
42 public boolean isCertificateTransparencyVerificationRequired(String hostname) { in isCertificateTransparencyVerificationRequired() argument
/frameworks/base/core/java/com/android/internal/net/
DNetworkUtilsInternal.java61 public static boolean isWeaklyValidatedHostname(@NonNull String hostname) { in isWeaklyValidatedHostname() argument
65 if (!hostname.matches(weakHostnameRegex)) { in isWeaklyValidatedHostname()
70 if (Os.inet_pton(address_family, hostname) != null) { in isWeaklyValidatedHostname()
/frameworks/base/services/core/jni/gnss/
DAGnss.cpp62 jboolean AGnss::setServer(JNIEnv* env, jint type, jstring hostname, jint port) { in setServer() argument
63 ScopedJniString jniHostName{env, hostname}; in setServer()
98 jboolean AGnss_V1_0::setServer(JNIEnv* env, jint type, jstring hostname, jint port) { in setServer() argument
99 ScopedJniString jniHostName{env, hostname}; in setServer()
134 jboolean AGnss_V2_0::setServer(JNIEnv* env, jint type, jstring hostname, jint port) { in setServer() argument
135 ScopedJniString jniHostName{env, hostname}; in setServer()
DAGnss.h42 virtual jboolean setServer(JNIEnv* env, jint type, jstring hostname, jint port) = 0;
52 jboolean setServer(JNIEnv* env, jint type, jstring hostname, jint port) override;
65 jboolean setServer(JNIEnv* env, jint type, jstring hostname, jint port) override;
78 jboolean setServer(JNIEnv* env, jint type, jstring hostname, jint port) override;
/frameworks/base/core/java/com/android/server/net/
DBaseNetdEventCallback.java29 public void onDnsEvent(int netId, int eventType, int returnCode, String hostname, in onDnsEvent() argument
42 String hostname, boolean validated) { in onPrivateDnsValidationEvent() argument
/frameworks/base/core/java/android/app/admin/
DDnsEvent.java49 public DnsEvent(String hostname, String[] ipAddresses, int ipAddressesCount, in DnsEvent() argument
52 this.mHostname = hostname; in DnsEvent()
/frameworks/base/core/java/org/apache/http/conn/scheme/
DHostNameResolver.java45 InetAddress resolve (String hostname) throws IOException; in resolve() argument
/frameworks/base/ravenwood/runtime-helper-src/libcore-fake/com/android/okhttp/internalandroidapi/
DDns.java35 List<InetAddress> lookup(String hostname) throws UnknownHostException; in lookup() argument
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DNetworkLogger.java61 public void onDnsEvent(int netId, int eventType, int returnCode, String hostname,
71 DnsEvent dnsEvent = new DnsEvent(hostname, ipAddresses, ipAddressesCount,
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DNetworkWatchlistService.java145 public void onDnsEvent(int netId, int eventType, int returnCode, String hostname,
150 mNetworkWatchlistHandler.asyncNetworkEvent(hostname, ipAddresses, uid);
DWatchlistLoggingHandler.java205 private void handleNetworkEvent(String hostname, String[] ipAddresses, in handleNetworkEvent() argument
208 Slog.i(TAG, "handleNetworkEvent with host: " + hostname + ", uid: " + uid); in handleNetworkEvent()
222 final String cncDomain = searchAllSubDomainsInWatchlist(hostname); in handleNetworkEvent()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetdEventListenerService.java215 String hostname, String[] ipAddresses, int ipAddressesCount, int uid) { in onDnsEvent() argument
222 callback.onDnsEvent(netId, eventType, returnCode, hostname, ipAddresses, in onDnsEvent()
251 String ipAddress, String hostname, boolean validated) { in onPrivateDnsValidationEvent() argument
255 callback.onPrivateDnsValidationEvent(netId, ipAddress, hostname, validated); in onPrivateDnsValidationEvent()
/frameworks/base/services/core/java/com/android/server/location/gnss/hal/
DGnssNative.java1010 public void setAgpsServer(int type, String hostname, int port) { in setAgpsServer() argument
1012 mGnssHal.setAgpsServer(type, hostname, port); in setAgpsServer()
1548 protected void setAgpsServer(int type, String hostname, int port) { in setAgpsServer() argument
1549 native_set_agps_server(type, hostname, port); in setAgpsServer()
1706 private static native void native_set_agps_server(int type, String hostname, int port); in native_set_agps_server() argument
/frameworks/base/services/core/java/com/android/server/adb/
DAdbDebuggingManager.java1444 String hostname = "nouser@nohostname"; in onPairingResult() local
1447 hostname = args[1]; in onPairingResult()
1451 device.guid = hostname; in onPairingResult()
1903 String hostname = "nouser@nohostname"; in getPairedDevices() local
1906 hostname = args[1]; in getPairedDevices()
1909 pairDevice.name = hostname; in getPairedDevices()
/frameworks/base/services/core/jni/
Dcom_android_server_location_GnssLocationProvider.cpp532 jstring hostname, jint port) { in android_location_gnss_hal_GnssNative_set_agps_server() argument
534 agnssIface->setServer(env, type, hostname, port); in android_location_gnss_hal_GnssNative_set_agps_server()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/hal/
DFakeGnssHal.java694 protected void setAgpsServer(int type, String hostname, int port) {} in setAgpsServer() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java2563 private static Proxy hostnameProxy(String hostname, int port) { in hostnameProxy() argument
2565 Proxy.Type.HTTP, InetSocketAddress.createUnresolved(hostname, port)); in hostnameProxy()

12