Home
last modified time | relevance | path

Searched refs:PRIVATE_DNS_MODE_OPPORTUNISTIC (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DConnectivitySettingsUtils.java33 public static final int PRIVATE_DNS_MODE_OPPORTUNISTIC = 2; field in ConnectivitySettingsUtils
53 case PRIVATE_DNS_MODE_OPPORTUNISTIC: in getPrivateDnsModeAsString()
66 return PRIVATE_DNS_MODE_OPPORTUNISTIC; in getPrivateDnsModeAsInt()
73 return PRIVATE_DNS_MODE_OPPORTUNISTIC; in getPrivateDnsModeAsInt()
78 return PRIVATE_DNS_MODE_OPPORTUNISTIC; in getPrivateDnsModeAsInt()
103 || mode == PRIVATE_DNS_MODE_OPPORTUNISTIC in setPrivateDnsMode()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsModeDialogPreferenceTest.java20 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
102 assertThat(mPreference.mMode).isEqualTo(PRIVATE_DNS_MODE_OPPORTUNISTIC); in testOnCheckedChanged_dnsModeOpportunistic_disableEditText()
159 mPreference.mMode = PRIVATE_DNS_MODE_OPPORTUNISTIC; in testOnClick_positiveButtonClicked_saveData()
164 PRIVATE_DNS_MODE_OPPORTUNISTIC); in testOnClick_positiveButtonClicked_saveData()
172 mPreference.mMode = PRIVATE_DNS_MODE_OPPORTUNISTIC; in testOnClick_negativeButtonClicked_doNothing()
DPrivateDnsPreferenceControllerTest.java20 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
219 ConnectivitySettingsManager.setPrivateDnsMode(mContext, PRIVATE_DNS_MODE_OPPORTUNISTIC); in getSummary_PrivateDnsModeOpportunistic()
290 ConnectivitySettingsManager.setPrivateDnsMode(mContext, PRIVATE_DNS_MODE_OPPORTUNISTIC); in getSummary_PrivateDnsDefaultMode()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/
DPrivateDnsConfig.java20 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
69 this(useTls ? PRIVATE_DNS_MODE_OPPORTUNISTIC : PRIVATE_DNS_MODE_OFF, null /* hostname */, in PrivateDnsConfig()
123 return mode == PRIVATE_DNS_MODE_OPPORTUNISTIC; in inOpportunisticMode()
141 case PRIVATE_DNS_MODE_OPPORTUNISTIC: return "opportunistic"; in modeAsString()
/packages/apps/Settings/src/com/android/settings/network/
DPrivateDnsModeDialogPreference.java19 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
78 PRIVATE_DNS_MAP.put(PRIVATE_DNS_MODE_OPPORTUNISTIC, R.id.private_dns_mode_opportunistic); in PRIVATE_DNS_MAP.put() argument
202 mMode = PRIVATE_DNS_MODE_OPPORTUNISTIC; in onCheckedChanged()
DPrivateDnsPreferenceController.java20 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
132 case PRIVATE_DNS_MODE_OPPORTUNISTIC: in getSummary()
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DPrivateDnsConfigTest.java20 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
37 private static final int OPPORTUNISTIC_MODE = PRIVATE_DNS_MODE_OPPORTUNISTIC;
/packages/modules/Connectivity/framework/src/android/net/
DConnectivitySettingsManager.java363 public static final int PRIVATE_DNS_MODE_OPPORTUNISTIC = field in ConnectivitySettingsManager
364 ConnectivitySettingsUtils.PRIVATE_DNS_MODE_OPPORTUNISTIC;
378 PRIVATE_DNS_MODE_OPPORTUNISTIC,
832 || mode == PRIVATE_DNS_MODE_OPPORTUNISTIC in setPrivateDnsDefaultMode()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DDnsManagerTest.java22 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
307 assertEquals(PRIVATE_DNS_MODE_OPPORTUNISTIC, cfgAuto.mode); in testOverrideDefaultMode()
405 assertEquals(PRIVATE_DNS_MODE_OPPORTUNISTIC, privateDnsCfg.mode); in testGetPrivateDnsConfigForNetwork()
/packages/modules/Connectivity/tests/common/java/android/net/
DConnectivitySettingsManagerTest.kt35 import android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC in <lambda>()
252 val mode = getPrivateDnsModeAsString(PRIVATE_DNS_MODE_OPPORTUNISTIC) in <lambda>()
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsNetUtils.java99 private static final String PRIVATE_DNS_MODE_OPPORTUNISTIC = "opportunistic"; field in CtsNetUtils
468 ConnectivitySettingsUtils.PRIVATE_DNS_MODE_OPPORTUNISTIC); in restorePrivateDnsSetting()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java199 private static final String PRIVATE_DNS_MODE_OPPORTUNISTIC = "opportunistic"; field in VpnTest
842 Settings.Global.putString(cr, PRIVATE_DNS_MODE_SETTING, PRIVATE_DNS_MODE_OPPORTUNISTIC); in setAndVerifyPrivateDns()
/packages/modules/Connectivity/framework/api/
Dmodule-lib-current.txt134 field public static final int PRIVATE_DNS_MODE_OPPORTUNISTIC = 2; // 0x2
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java89 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
8223 setPrivateDnsSettings(PRIVATE_DNS_MODE_OPPORTUNISTIC, "ignored.example.com");
8361 setPrivateDnsSettings(PRIVATE_DNS_MODE_OPPORTUNISTIC, "ignored.example.com");
8428 setPrivateDnsSettings(PRIVATE_DNS_MODE_OPPORTUNISTIC, "ignored.example.com");
8463 setPrivateDnsSettings(PRIVATE_DNS_MODE_OPPORTUNISTIC, "ignored.example.com");
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java2700 ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC,
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt117 Landroid/net/ConnectivityManager;->PRIVATE_DNS_MODE_OPPORTUNISTIC:Ljava/lang/String;
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java68 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
11708 PRIVATE_DNS_MODE_OPPORTUNISTIC);