Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java107 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testGetMeteredLabel_returnsCorrectValues()
111 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredLabel_returnsCorrectValues()
115 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredLabel_returnsCorrectValues()
119 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testGetMeteredLabel_returnsCorrectValues()
123 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testGetMeteredLabel_returnsCorrectValues()
130 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testIsMeteredOverridden_returnsCorrectValues()
134 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testIsMeteredOverridden_returnsCorrectValues()
138 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testIsMeteredOverridden_returnsCorrectValues()
142 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testIsMeteredOverridden_returnsCorrectValues()
146 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testIsMeteredOverridden_returnsCorrectValues()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java688 public int meteredOverride = METERED_OVERRIDE_NONE; field in WifiConfiguration
705 && config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED) { in isMetered()
709 && config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_NOT_METERED) { in isMetered()
1519 meteredOverride = METERED_OVERRIDE_NONE; in WifiConfiguration()
1630 if (this.meteredOverride != METERED_OVERRIDE_NONE) { in toString()
1631 sbuf.append(" meteredOverride ").append(meteredOverride).append("\n"); in toString()
2061 meteredOverride = source.meteredOverride; in WifiConfiguration()
2132 dest.writeInt(meteredOverride); in writeToParcel()
2197 config.meteredOverride = in.readInt();
/frameworks/base/core/java/android/net/
DINetworkPolicyManager.aidl65 void setWifiMeteredOverride(String networkId, int meteredOverride); in setWifiMeteredOverride() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.java208 if (config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED in getMeteredLabel()
216 return config.meteredOverride != WifiConfiguration.METERED_OVERRIDE_NONE; in isMeteredOverridden()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java294 if (arg == null || config.meteredOverride == match) { in listWifiNetworks()
297 pw.println(overrideToString(config.meteredOverride)); in listWifiNetworks()
DNetworkPolicyManagerService.java2337 config.meteredOverride = policy.metered in upgradeWifiMeteredOverrideAL()
2908 public void setWifiMeteredOverride(String networkId, int meteredOverride) { in setWifiMeteredOverride() argument
2916 config.meteredOverride = meteredOverride; in setWifiMeteredOverride()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNetworkHistory.java214 + Integer.toString(config.meteredOverride) + NL); in writeKnownNetworkHistory()
427 config.meteredOverride = Integer.parseInt(value); in readNetworkHistory()
DWifiConfigManager.java869 internalConfig.meteredOverride = externalConfig.meteredOverride; in mergeWithInternalWifiConfiguration()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java451 XmlUtil.writeNextValue(out, XML_TAG_METERED_OVERRIDE, configuration.meteredOverride); in writeToXmlForConfigStore()
601 configuration.meteredOverride = (int) value; in parseFromXml()