Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DScoredNetwork.java90 public final boolean meteredHint; field in ScoredNetwork
130 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint) { in ScoredNetwork() argument
131 this(networkKey, rssiCurve, meteredHint, null /* attributes */); in ScoredNetwork()
148 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint, in ScoredNetwork() argument
152 this.meteredHint = meteredHint; in ScoredNetwork()
163 meteredHint = (in.readByte() == 1); in ScoredNetwork()
181 out.writeByte((byte) (meteredHint ? 1 : 0)); in writeToParcel()
194 && Objects.equals(meteredHint, that.meteredHint) in equals()
221 return Objects.hash(networkKey, rssiCurve, meteredHint, attributes); in hashCode()
231 ", 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.java1050 internalConfig.meteredHint = externalConfig.meteredHint; in mergeWithInternalWifiConfiguration()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java905 public boolean meteredHint; field in WifiConfiguration
937 if (config != null && config.meteredHint) { in isMetered()
1787 meteredHint = false; in WifiConfiguration()
1900 if (this.meteredHint) sbuf.append(" meteredHint"); in toString()
1904 || this.fromWifiNetworkSpecifier || this.meteredHint || this.useExternalScores) { in toString()
2415 meteredHint = source.meteredHint; in WifiConfiguration()
2494 dest.writeInt(meteredHint ? 1 : 0); in writeToParcel()
2567 config.meteredHint = in.readInt() != 0;
DWifiInfo.java489 public void setMeteredHint(boolean meteredHint) { in setMeteredHint() argument
490 mMeteredHint = meteredHint; in setMeteredHint()
DWifiNetworkScoreCache.java169 return network != null && network.meteredHint; in getMeteredHint()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSelectorTestUtil.java380 int networkId, ScanDetail scanDetail, boolean meteredHint) { in setupEphemeralNetwork() argument
389 config.meteredHint = meteredHint; in setupEphemeralNetwork()
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.java592 assertEquals(expected.meteredHint, actual.meteredHint); in assertConfigurationEqualForConfigStore()
622 assertEquals(expected.meteredHint, actual.meteredHint); in assertConfigurationEqualForConfigManagerAddOrUpdate()
/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java192 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
218 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWithoutBundle()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.java210 || (config.meteredHint && !isMeteredOverridden(config))) { in getMeteredLabel()
DAccessPoint.java644 mIsScoredNetworkMetered |= score.meteredHint; in updateMetered()
653 mIsScoredNetworkMetered |= score.meteredHint; in updateMetered()
1214 if (mConfig != null && (WifiUtils.isMeteredOverridden(mConfig) || mConfig.meteredHint)) { in getSettingsSummary()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java497 XmlUtil.writeNextValue(out, XML_TAG_METERED_HINT, configuration.meteredHint); in writeToXmlForConfigStore()
664 configuration.meteredHint = (boolean) value; in parseFromXml()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java231 configuration.meteredHint = true; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java303 configuration.meteredHint = true;
532 config.meteredHint = true;
/frameworks/base/api/
Dsystem-current.txt4736 field public final boolean meteredHint;
5351 field @Deprecated public boolean meteredHint;
/frameworks/base/non-updatable-api/
Dsystem-current.txt4736 field public final boolean meteredHint;
5257 field @Deprecated public boolean meteredHint;