Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java108 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testGetMeteredLabel_returnsCorrectValues()
112 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredLabel_returnsCorrectValues()
116 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredLabel_returnsCorrectValues()
120 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testGetMeteredLabel_returnsCorrectValues()
124 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testGetMeteredLabel_returnsCorrectValues()
131 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testIsMeteredOverridden_returnsCorrectValues()
135 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testIsMeteredOverridden_returnsCorrectValues()
139 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testIsMeteredOverridden_returnsCorrectValues()
143 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testIsMeteredOverridden_returnsCorrectValues()
147 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testIsMeteredOverridden_returnsCorrectValues()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java924 public int meteredOverride = METERED_OVERRIDE_NONE; field in WifiConfiguration
941 && config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED) { in isMetered()
945 && config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_NOT_METERED) { in isMetered()
1788 meteredOverride = METERED_OVERRIDE_NONE; in WifiConfiguration()
1907 if (this.meteredOverride != METERED_OVERRIDE_NONE) { in toString()
1908 sbuf.append(" meteredOverride ").append(meteredOverride).append("\n"); in toString()
2416 meteredOverride = source.meteredOverride; in WifiConfiguration()
2495 dest.writeInt(meteredOverride); in writeToParcel()
2568 config.meteredOverride = in.readInt();
DWifiNetworkSuggestion.java356 wifiConfiguration.meteredOverride = in buildWifiConfiguration()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkSuggestionTest.java62 suggestion.wifiConfiguration.meteredOverride); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
89 suggestion.wifiConfiguration.meteredOverride); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
116 suggestion.wifiConfiguration.meteredOverride); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java573 assertEquals(expected.meteredOverride, actual.meteredOverride); in assertConfigurationEqualForBackup()
593 assertEquals(expected.meteredOverride, actual.meteredOverride); in assertConfigurationEqualForConfigStore()
623 assertEquals(expected.meteredOverride, actual.meteredOverride); in assertConfigurationEqualForConfigManagerAddOrUpdate()
DNetworkListStoreDataTest.java253 openNetwork.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in getTestNetworksConfig()
DNetworkSuggestionEvaluatorTest.java727 configs[i].meteredOverride = meteredness[i] in buildNetworkSuggestions()
DWifiBackupRestoreTest.java1016 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in createNetworkForConfigurationWithV1_1Data()
DWifiNetworkSuggestionsManagerTest.java397 networkSuggestion.wifiConfiguration.meteredOverride = in testAddNetworkSuggestionsFailureOnInPlaceModification()
/frameworks/base/core/java/android/net/
DINetworkPolicyManager.aidl68 void setWifiMeteredOverride(String networkId, int meteredOverride); in setWifiMeteredOverride() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.java209 if (config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED in getMeteredLabel()
217 return config.meteredOverride != WifiConfiguration.METERED_OVERRIDE_NONE; in isMeteredOverridden()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java331 if (arg == null || config.meteredOverride == match) { in listWifiNetworks()
334 pw.println(overrideToString(config.meteredOverride)); in listWifiNetworks()
DNetworkPolicyManagerService.java2423 config.meteredOverride = policy.metered in upgradeWifiMeteredOverrideAL()
3008 public void setWifiMeteredOverride(String networkId, int meteredOverride) { in setWifiMeteredOverride() argument
3016 config.meteredOverride = meteredOverride; in setWifiMeteredOverride()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java467 XmlUtil.writeNextValue(out, XML_TAG_METERED_OVERRIDE, configuration.meteredOverride); in writeToXmlForBackup()
498 XmlUtil.writeNextValue(out, XML_TAG_METERED_OVERRIDE, configuration.meteredOverride); in writeToXmlForConfigStore()
667 configuration.meteredOverride = (int) value; in parseFromXml()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java347 configuration.meteredOverride = (int) value; in parseWifiConfigurationFromXmlInternal()
DWifiConfigManager.java1051 internalConfig.meteredOverride = externalConfig.meteredOverride; in mergeWithInternalWifiConfiguration()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProviderTest.java1021 assertEquals(WifiConfiguration.METERED_OVERRIDE_METERED, wifiConfig.meteredOverride); in getWifiConfigWithUserCredential()
1090 assertEquals(WifiConfiguration.METERED_OVERRIDE_METERED, wifiConfig.meteredOverride); in getWifiConfigWithCertCredential()
1143 assertEquals(WifiConfiguration.METERED_OVERRIDE_NONE, wifiConfig.meteredOverride); in getWifiConfigWithSimCredential()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvider.java401 wifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in getWifiConfig()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt47159 Landroid/net/wifi/WifiConfiguration;->meteredOverride:I