Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsNetUtils.java69 import com.android.net.module.util.ConnectivitySettingsUtils;
448 mOldPrivateDnsMode = ConnectivitySettingsUtils.getPrivateDnsMode(mContext); in storePrivateDnsSetting()
449 mOldPrivateDnsSpecifier = ConnectivitySettingsUtils.getPrivateDnsHostname(mContext); in storePrivateDnsSetting()
457 if (mOldPrivateDnsMode != ConnectivitySettingsUtils.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME) { in restorePrivateDnsSetting()
460 ConnectivitySettingsUtils.setPrivateDnsHostname(mContext, mOldPrivateDnsSpecifier); in restorePrivateDnsSetting()
461 ConnectivitySettingsUtils.setPrivateDnsMode(mContext, mOldPrivateDnsMode); in restorePrivateDnsSetting()
467 ConnectivitySettingsUtils.setPrivateDnsMode(mContext, in restorePrivateDnsSetting()
468 ConnectivitySettingsUtils.PRIVATE_DNS_MODE_OPPORTUNISTIC); in restorePrivateDnsSetting()
484 ConnectivitySettingsUtils.setPrivateDnsHostname(mContext, server); in setPrivateDnsStrictMode()
485 final int mode = ConnectivitySettingsUtils.getPrivateDnsMode(mContext); in setPrivateDnsStrictMode()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DConnectivitySettingsManager.java23 import static com.android.net.module.util.ConnectivitySettingsUtils.getPrivateDnsModeAsString;
43 import com.android.net.module.util.ConnectivitySettingsUtils;
357 public static final int PRIVATE_DNS_MODE_OFF = ConnectivitySettingsUtils.PRIVATE_DNS_MODE_OFF;
364 ConnectivitySettingsUtils.PRIVATE_DNS_MODE_OPPORTUNISTIC;
372 ConnectivitySettingsUtils.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME;
776 return ConnectivitySettingsUtils.getPrivateDnsMode(context); in getPrivateDnsMode()
786 ConnectivitySettingsUtils.setPrivateDnsMode(context, mode); in setPrivateDnsMode()
797 return ConnectivitySettingsUtils.getPrivateDnsHostname(context); in getPrivateDnsHostname()
807 ConnectivitySettingsUtils.setPrivateDnsHostname(context, specifier); in setPrivateDnsHostname()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DConnectivitySettingsUtils.java31 public class ConnectivitySettingsUtils { class
/packages/modules/Connectivity/tests/common/java/android/net/
DConnectivitySettingsManagerTest.kt69 import com.android.net.module.util.ConnectivitySettingsUtils.getPrivateDnsModeAsString in <lambda>()