Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DScoredNetwork.java89 public final boolean meteredHint; field in ScoredNetwork
129 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint) { in ScoredNetwork() argument
130 this(networkKey, rssiCurve, meteredHint, null /* attributes */); in ScoredNetwork()
147 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint, in ScoredNetwork() argument
151 this.meteredHint = meteredHint; in ScoredNetwork()
162 meteredHint = (in.readByte() == 1); in ScoredNetwork()
180 out.writeByte((byte) (meteredHint ? 1 : 0)); in writeToParcel()
193 && Objects.equals(meteredHint, that.meteredHint) in equals()
220 return Objects.hash(networkKey, rssiCurve, meteredHint, attributes); in hashCode()
229 ", meteredHint=" + meteredHint); in toString()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java106 mWifiConfig.meteredHint = true; in testGetMeteredLabel_returnsCorrectValues()
110 mWifiConfig.meteredHint = false; in testGetMeteredLabel_returnsCorrectValues()
114 mWifiConfig.meteredHint = true; in testGetMeteredLabel_returnsCorrectValues()
118 mWifiConfig.meteredHint = false; in testGetMeteredLabel_returnsCorrectValues()
122 mWifiConfig.meteredHint = true; in testGetMeteredLabel_returnsCorrectValues()
129 mWifiConfig.meteredHint = true; in testIsMeteredOverridden_returnsCorrectValues()
133 mWifiConfig.meteredHint = false; in testIsMeteredOverridden_returnsCorrectValues()
137 mWifiConfig.meteredHint = true; in testIsMeteredOverridden_returnsCorrectValues()
141 mWifiConfig.meteredHint = false; in testIsMeteredOverridden_returnsCorrectValues()
145 mWifiConfig.meteredHint = true; in testIsMeteredOverridden_returnsCorrectValues()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScoredNetworkEvaluator.java285 mEphemeralConfig.meteredHint)); in getCandidateConfiguration()
293 mEphemeralConfig.meteredHint = mScoreCache.getMeteredHint(mScanResultCandidate); in getCandidateConfiguration()
313 mEphemeralConfig.meteredHint)); in getCandidateConfiguration()
DWifiNetworkHistory.java212 + Boolean.toString(config.meteredHint) + NL); in writeKnownNetworkHistory()
424 config.meteredHint = Boolean.parseBoolean(value); in readNetworkHistory()
DWifiConfigManager.java868 internalConfig.meteredHint = externalConfig.meteredHint; in mergeWithInternalWifiConfiguration()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java669 public boolean meteredHint; field in WifiConfiguration
701 if (config != null && config.meteredHint) { in isMetered()
1518 meteredHint = false; in WifiConfiguration()
1624 if (this.meteredHint) sbuf.append(" meteredHint"); in toString()
1627 || this.ephemeral || this.meteredHint || this.useExternalScores) { in toString()
2060 meteredHint = source.meteredHint; in WifiConfiguration()
2131 dest.writeInt(meteredHint ? 1 : 0); in writeToParcel()
2196 config.meteredHint = in.readInt() != 0;
DWifiInfo.java364 public void setMeteredHint(boolean meteredHint) { in setMeteredHint() argument
365 mMeteredHint = meteredHint; in setMeteredHint()
DWifiNetworkScoreCache.java167 return network != null && network.meteredHint; in getMeteredHint()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSelectorTestUtil.java363 int networkId, ScanDetail scanDetail, boolean meteredHint) { in setupEphemeralNetwork() argument
371 config.meteredHint = meteredHint; in setupEphemeralNetwork()
DWifiConfigurationTestUtil.java499 assertEquals(expected.meteredHint, actual.meteredHint); in assertConfigurationEqualForConfigStore()
527 assertEquals(expected.meteredHint, actual.meteredHint); in assertConfigurationEqualForConfigManagerAddOrUpdate()
DScoredNetworkEvaluatorTest.java305 assertEquals(meteredHints[1], candidate.meteredHint); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork()
345 assertEquals(meteredHints[1], candidate.meteredHint); in testEvaluateNetworks_chooseHigherScoredEphemeralNetwork()
600 assertEquals(meteredHints[1], candidate.meteredHint); in testEvaluateNetworks_chooseActiveEphemeralNetwork()
/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java186 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
212 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWithoutBundle()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.java209 || (config.meteredHint && !isMeteredOverridden(config))) { in getMeteredLabel()
DAccessPoint.java575 mIsScoredNetworkMetered |= score.meteredHint; in updateMetered()
583 mIsScoredNetworkMetered |= score.meteredHint; in updateMetered()
897 if (config != null && (WifiUtils.isMeteredOverridden(config) || config.meteredHint)) { in getSettingsSummary()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java450 XmlUtil.writeNextValue(out, XML_TAG_METERED_HINT, configuration.meteredHint); in writeToXmlForConfigStore()
598 configuration.meteredHint = (boolean) value; in parseFromXml()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java204 configuration.meteredHint = true; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java275 configuration.meteredHint = true;
/frameworks/base/api/
Dsystem-current.txt3153 field public final boolean meteredHint;
3395 field public boolean meteredHint;
/frameworks/base/config/
Dhiddenapi-public-dex.txt25805 Landroid/net/ScoredNetwork;->meteredHint:Z
26900 Landroid/net/wifi/WifiConfiguration;->meteredHint:Z