Home
last modified time | relevance | path

Searched refs:useTls (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/net/java/android/net/shared/
DPrivateDnsConfig.java30 public final boolean useTls; field in PrivateDnsConfig
38 public PrivateDnsConfig(boolean useTls) { in PrivateDnsConfig() argument
39 this.useTls = useTls; in PrivateDnsConfig()
45 this.useTls = !TextUtils.isEmpty(hostname); in PrivateDnsConfig()
46 this.hostname = useTls ? hostname : ""; in PrivateDnsConfig()
51 useTls = cfg.useTls; in PrivateDnsConfig()
60 return useTls && !TextUtils.isEmpty(hostname); in inStrictMode()
66 + "{" + useTls + ":" + hostname + "/" + Arrays.toString(ips) + "}"; in toString()
/frameworks/base/services/core/java/com/android/server/connectivity/
DDnsManager.java127 final boolean useTls = !TextUtils.isEmpty(mode) && !PRIVATE_DNS_MODE_OFF.equals(mode); in getPrivateDnsConfig()
134 return new PrivateDnsConfig(useTls); in getPrivateDnsConfig()
283 final boolean useTls = privateDnsCfg.useTls; in updatePrivateDnsStatus()
285 useTls ? mPrivateDnsValidationMap.get(netId) : null; in updatePrivateDnsStatus()
323 final boolean useTls = privateDnsCfg.useTls; in setDnsConfigurationForNetwork()
338 : useTls ? paramsParcel.servers // Opportunistic in setDnsConfigurationForNetwork()
343 if (useTls) { in setDnsConfigurationForNetwork()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DDnsManagerTest.java241 assertTrue(cfgAuto.useTls); in testOverrideDefaultMode()
248 assertFalse(cfgOff.useTls); in testOverrideDefaultMode()
257 assertTrue(cfgStrict.useTls); in testOverrideDefaultMode()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java2844 if (cfg.useTls && TextUtils.isEmpty(cfg.hostname)) { in handleFreshlyValidatedNetwork()