Home
last modified time | relevance | path

Searched refs:meteredHint (Results 1 – 16 of 16) 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.java107 mWifiConfig.meteredHint = true; in testGetMeteredLabel_returnsCorrectValues()
111 mWifiConfig.meteredHint = false; in testGetMeteredLabel_returnsCorrectValues()
115 mWifiConfig.meteredHint = true; in testGetMeteredLabel_returnsCorrectValues()
119 mWifiConfig.meteredHint = false; in testGetMeteredLabel_returnsCorrectValues()
123 mWifiConfig.meteredHint = true; in testGetMeteredLabel_returnsCorrectValues()
130 mWifiConfig.meteredHint = true; in testIsMeteredOverridden_returnsCorrectValues()
134 mWifiConfig.meteredHint = false; in testIsMeteredOverridden_returnsCorrectValues()
138 mWifiConfig.meteredHint = true; in testIsMeteredOverridden_returnsCorrectValues()
142 mWifiConfig.meteredHint = false; in testIsMeteredOverridden_returnsCorrectValues()
146 mWifiConfig.meteredHint = true; in testIsMeteredOverridden_returnsCorrectValues()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScoredNetworkEvaluator.java291 mEphemeralConfig.meteredHint)); in getCandidateConfiguration()
301 mEphemeralConfig.meteredHint = mScoreCache.getMeteredHint(mScanResultCandidate); in getCandidateConfiguration()
326 mEphemeralConfig.meteredHint)); in getCandidateConfiguration()
DWifiConfigManager.java964 internalConfig.meteredHint = externalConfig.meteredHint; in mergeWithInternalWifiConfiguration()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java904 public boolean meteredHint; field in WifiConfiguration
936 if (config != null && config.meteredHint) { in isMetered()
1786 meteredHint = false; in WifiConfiguration()
1899 if (this.meteredHint) sbuf.append(" meteredHint"); in toString()
1903 || this.fromWifiNetworkSpecifier || this.meteredHint || this.useExternalScores) { in toString()
2406 meteredHint = source.meteredHint; in WifiConfiguration()
2485 dest.writeInt(meteredHint ? 1 : 0); in writeToParcel()
2558 config.meteredHint = in.readInt() != 0;
DWifiInfo.java489 public void setMeteredHint(boolean meteredHint) { in setMeteredHint() argument
490 mMeteredHint = meteredHint; in setMeteredHint()
DWifiNetworkScoreCache.java167 return network != null && network.meteredHint; in getMeteredHint()
/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java192 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
218 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWithoutBundle()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScoredNetworkEvaluatorTest.java313 assertEquals(meteredHints[1], candidate.meteredHint); in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable()
354 assertEquals(meteredHints[1], candidate.meteredHint); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork()
398 assertEquals(meteredHints[1], candidate.meteredHint); in testEvaluateNetworks_chooseHigherScoredEphemeralNetwork()
673 assertEquals(meteredHints[1], candidate.meteredHint); in testEvaluateNetworks_chooseActiveEphemeralNetwork()
DWifiConfigurationTestUtil.java591 assertEquals(expected.meteredHint, actual.meteredHint); in assertConfigurationEqualForConfigStore()
621 assertEquals(expected.meteredHint, actual.meteredHint); in assertConfigurationEqualForConfigManagerAddOrUpdate()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.java210 || (config.meteredHint && !isMeteredOverridden(config))) { in getMeteredLabel()
DAccessPoint.java634 mIsScoredNetworkMetered |= score.meteredHint; in updateMetered()
643 mIsScoredNetworkMetered |= score.meteredHint; in updateMetered()
1106 if (mConfig != null && (WifiUtils.isMeteredOverridden(mConfig) || mConfig.meteredHint)) { in getSettingsSummary()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java460 XmlUtil.writeNextValue(out, XML_TAG_METERED_HINT, configuration.meteredHint); in writeToXmlForConfigStore()
621 configuration.meteredHint = (boolean) value; in parseFromXml()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java205 configuration.meteredHint = true; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java302 configuration.meteredHint = true;
531 config.meteredHint = true;
/frameworks/base/api/
Dsystem-current.txt4188 field public final boolean meteredHint;
4660 field @Deprecated public boolean meteredHint;