Home
last modified time | relevance | path

Searched refs:meteredOverride (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java116 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testGetMeteredLabel_returnsCorrectValues()
120 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredLabel_returnsCorrectValues()
124 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredLabel_returnsCorrectValues()
128 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testGetMeteredLabel_returnsCorrectValues()
132 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testGetMeteredLabel_returnsCorrectValues()
139 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testIsMeteredOverridden_returnsCorrectValues()
143 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testIsMeteredOverridden_returnsCorrectValues()
147 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testIsMeteredOverridden_returnsCorrectValues()
151 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testIsMeteredOverridden_returnsCorrectValues()
155 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testIsMeteredOverridden_returnsCorrectValues()
/frameworks/base/core/java/android/net/
DINetworkPolicyManager.aidl80 void setWifiMeteredOverride(String networkId, int meteredOverride); in setWifiMeteredOverride() argument
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DStandardWifiEntry.java514 final int meteredOverride = mTargetWifiConfig.meteredOverride; in getMeteredChoice() local
515 if (meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED) { in getMeteredChoice()
517 } else if (meteredOverride == WifiConfiguration.METERED_OVERRIDE_NOT_METERED) { in getMeteredChoice()
539 mTargetWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in setMeteredChoice()
541 mTargetWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in setMeteredChoice()
543 mTargetWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in setMeteredChoice()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java361 if (arg == null || config.meteredOverride == match) { in listWifiNetworks()
364 pw.println(overrideToString(config.meteredOverride)); in listWifiNetworks()
DNetworkPolicyManagerService.java2964 config.meteredOverride = metered
3601 public void setWifiMeteredOverride(String networkId, int meteredOverride) {
3609 config.meteredOverride = meteredOverride;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.kt375 return if (config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED || in <lambda>()
422 return config.meteredOverride != WifiConfiguration.METERED_OVERRIDE_NONE in <lambda>()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DUtilsTest.java278 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testGetMeteredDescription_noOverrideNoHint_returnEmptyString()
291 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredDescription_overrideMetered_returnMetered()
307 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testGetMeteredDescription__meteredHintTrueAndOverrideNone_returnMetered()
322 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredDescription__meteredHintTrueAndOverrideMetered_returnMetered()
337 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testGetMeteredDescription__meteredHintTrueAndOverrideNotMetered_returnUnmetered()
DStandardWifiEntryTest.java969 assertThat(oldConfig.meteredOverride).isEqualTo(WifiConfiguration.METERED_OVERRIDE_NONE); in testGetMeteredChoice_afterSetMeteredChoice_getCorrectValue()
985 assertThat(configCaptor.getValue().meteredOverride) in testGetMeteredChoice_afterSetMeteredChoice_getCorrectValue()
1001 assertThat(oldConfig.meteredOverride).isEqualTo(WifiConfiguration.METERED_OVERRIDE_NONE); in testGetPrivacy_afterSetPrivacy_getCorrectValue()
1002 oldConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetPrivacy_afterSetPrivacy_getCorrectValue()
1016 assertThat(configCaptor.getValue().meteredOverride) in testGetPrivacy_afterSetPrivacy_getCorrectValue()