Home
last modified time | relevance | path

Searched refs:PrivateDnsConfig (Results 1 – 10 of 10) sorted by relevance

/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/
DPrivateDnsConfig.java29 public class PrivateDnsConfig { class
34 public PrivateDnsConfig() { in PrivateDnsConfig() method in PrivateDnsConfig
38 public PrivateDnsConfig(boolean useTls) { in PrivateDnsConfig() method in PrivateDnsConfig
44 public PrivateDnsConfig(String hostname, InetAddress[] ips) { in PrivateDnsConfig() method in PrivateDnsConfig
50 public PrivateDnsConfig(PrivateDnsConfig cfg) { in PrivateDnsConfig() method in PrivateDnsConfig
65 return PrivateDnsConfig.class.getSimpleName() in toString()
84 public static PrivateDnsConfig fromParcel(PrivateDnsConfigParcel parcel) { in fromParcel()
88 return new PrivateDnsConfig(parcel.hostname, ips); in fromParcel()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DDnsManager.java43 import android.net.shared.PrivateDnsConfig;
122 private static final PrivateDnsConfig PRIVATE_DNS_OFF = new PrivateDnsConfig();
133 public static PrivateDnsConfig getPrivateDnsConfig(Context context) { in getPrivateDnsConfig()
141 return new PrivateDnsConfig(specifier, null); in getPrivateDnsConfig()
144 return new PrivateDnsConfig(useTls); in getPrivateDnsConfig()
250 private final ConcurrentHashMap<Integer, PrivateDnsConfig> mPrivateDnsMap;
274 public PrivateDnsConfig getPrivateDnsConfig() { in getPrivateDnsConfig()
287 public PrivateDnsConfig getPrivateDnsConfig(@NonNull Network network) { in getPrivateDnsConfig()
291 public PrivateDnsConfig updatePrivateDns(Network network, PrivateDnsConfig cfg) { in updatePrivateDns()
301 final PrivateDnsConfig privateDnsCfg = mPrivateDnsMap.getOrDefault(netId, in updatePrivateDnsStatus()
[all …]
DNetworkDiagnostics.java29 import android.net.shared.PrivateDnsConfig;
115 private final PrivateDnsConfig mPrivateDnsCfg;
184 @NonNull PrivateDnsConfig privateDnsCfg, long timeoutMs) { in NetworkDiagnostics()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DDnsManagerTest.java58 import android.net.shared.PrivateDnsConfig;
204 new PrivateDnsConfig("strictmode.com", new InetAddress[] { in testTrackedValidationUpdates()
325 final PrivateDnsConfig cfgAuto = DnsManager.getPrivateDnsConfig(mCtx); in testOverrideDefaultMode()
332 final PrivateDnsConfig cfgOff = DnsManager.getPrivateDnsConfig(mCtx); in testOverrideDefaultMode()
340 final PrivateDnsConfig cfgStrict = DnsManager.getPrivateDnsConfig(mCtx); in testOverrideDefaultMode()
411 PrivateDnsConfig privateDnsCfg = mDnsManager.getPrivateDnsConfig(network); in testGetPrivateDnsConfigForNetwork()
429 mDnsManager.updatePrivateDns(network, new PrivateDnsConfig(tlsName, tlsAddrs)); in testGetPrivateDnsConfigForNetwork()
/packages/modules/NetworkStack/src/com/android/server/
DNetworkStackService.java46 import android.net.shared.PrivateDnsConfig;
606 mNm.notifyPrivateDnsSettingsChanged(PrivateDnsConfig.fromParcel(config)); in notifyPrivateDnsChanged()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java119 import android.net.shared.PrivateDnsConfig;
1897 wnm.notifyPrivateDnsSettingsChanged(new PrivateDnsConfig("dns6.google",
1907 wnm.notifyPrivateDnsSettingsChanged(new PrivateDnsConfig("dns4.google",
1919 wnm.notifyPrivateDnsSettingsChanged(new PrivateDnsConfig("dns.google", new InetAddress[0]));
1932 wnm.notifyPrivateDnsSettingsChanged(new PrivateDnsConfig("dns.google", new InetAddress[0]));
1959 wnm.notifyPrivateDnsSettingsChanged(new PrivateDnsConfig("dns.google", new InetAddress[0]));
1982 wnm.notifyPrivateDnsSettingsChanged(new PrivateDnsConfig("dns.bad", new InetAddress[0]));
1995 wnm.notifyPrivateDnsSettingsChanged(new PrivateDnsConfig("dns.google",
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java114 import android.net.shared.PrivateDnsConfig;
655 public void notifyPrivateDnsSettingsChanged(PrivateDnsConfig newCfg) { in notifyPrivateDnsSettingsChanged()
934 final PrivateDnsConfig cfg = (PrivateDnsConfig) message.obj; in processMessage()
1403 private PrivateDnsConfig mPrivateDnsConfig;
1485 mPrivateDnsConfig = new PrivateDnsConfig(mPrivateDnsProviderHostname, ips); in resolveStrictModeHostname()
/packages/modules/Wifi/framework/
Djarjar-rules.txt66 rule android.net.shared.PrivateDnsConfig* com.android.wifi.x.@0
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java189 import android.net.shared.PrivateDnsConfig;
2954 PrivateDnsConfig privateDnsCfg = mDnsManager.getPrivateDnsConfig(nai.network); in dumpNetworkDiagnostics()
3424 updatePrivateDns(nai, (PrivateDnsConfig) msg.obj); in maybeHandleNetworkMonitorMessage()
3592 0, mNetId, PrivateDnsConfig.fromParcel(config))); in notifyPrivateDnsConfigResolved()
3691 final PrivateDnsConfig cfg = mDnsManager.getPrivateDnsConfig(); in handleFreshlyValidatedNetwork()
3698 final PrivateDnsConfig cfg = mDnsManager.getPrivateDnsConfig(); in handlePrivateDnsSettingsChanged()
3708 private void handlePerNetworkPrivateDnsConfig(NetworkAgentInfo nai, PrivateDnsConfig cfg) { in handlePerNetworkPrivateDnsConfig()
3724 private void updatePrivateDns(NetworkAgentInfo nai, PrivateDnsConfig newCfg) { in updatePrivateDns()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java269 import android.net.shared.PrivateDnsConfig;
6573 new PrivateDnsConfig(TLS_SPECIFIER, TLS_IPS).toParcel()); in testBasicDnsConfigurationPushed()