Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/common/networkstackclient/src/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()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DDnsManager.java136 final boolean useTls = mode != PRIVATE_DNS_MODE_OFF; in getPrivateDnsConfig()
144 return new PrivateDnsConfig(useTls); in getPrivateDnsConfig()
304 final boolean useTls = privateDnsCfg.useTls; in updatePrivateDnsStatus()
306 useTls ? mPrivateDnsValidationMap.get(netId) : null; in updatePrivateDnsStatus()
368 final boolean useTls = privateDnsCfg.useTls; in sendDnsConfigurationForNetwork()
384 : useTls ? paramsParcel.servers // Opportunistic in sendDnsConfigurationForNetwork()
389 if (useTls) { in sendDnsConfigurationForNetwork()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DDnsManagerTest.java326 assertTrue(cfgAuto.useTls); in testOverrideDefaultMode()
333 assertFalse(cfgOff.useTls); in testOverrideDefaultMode()
341 assertTrue(cfgStrict.useTls); in testOverrideDefaultMode()
412 assertFalse(privateDnsCfg.useTls); in testGetPrivateDnsConfigForNetwork()
424 assertTrue(privateDnsCfg.useTls); in testGetPrivateDnsConfigForNetwork()
432 assertTrue(privateDnsCfg.useTls); in testGetPrivateDnsConfigForNetwork()
439 assertFalse(privateDnsCfg.useTls); in testGetPrivateDnsConfigForNetwork()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java3692 if (cfg.useTls && TextUtils.isEmpty(cfg.hostname)) { in handleFreshlyValidatedNetwork()