Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DScoredNetwork.java92 public final boolean meteredHint; field in ScoredNetwork
132 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint) { in ScoredNetwork() argument
133 this(networkKey, rssiCurve, meteredHint, null /* attributes */); in ScoredNetwork()
150 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint, in ScoredNetwork() argument
154 this.meteredHint = meteredHint; in ScoredNetwork()
165 meteredHint = (in.readByte() == 1); in ScoredNetwork()
183 out.writeByte((byte) (meteredHint ? 1 : 0)); in writeToParcel()
196 && Objects.equals(meteredHint, that.meteredHint) in equals()
223 return Objects.hash(networkKey, rssiCurve, meteredHint, attributes); in hashCode()
233 ", meteredHint=" + meteredHint); in toString()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java115 mWifiConfig.meteredHint = true; in testGetMeteredLabel_returnsCorrectValues()
119 mWifiConfig.meteredHint = false; in testGetMeteredLabel_returnsCorrectValues()
123 mWifiConfig.meteredHint = true; in testGetMeteredLabel_returnsCorrectValues()
127 mWifiConfig.meteredHint = false; in testGetMeteredLabel_returnsCorrectValues()
131 mWifiConfig.meteredHint = true; in testGetMeteredLabel_returnsCorrectValues()
138 mWifiConfig.meteredHint = true; in testIsMeteredOverridden_returnsCorrectValues()
142 mWifiConfig.meteredHint = false; in testIsMeteredOverridden_returnsCorrectValues()
146 mWifiConfig.meteredHint = true; in testIsMeteredOverridden_returnsCorrectValues()
150 mWifiConfig.meteredHint = false; in testIsMeteredOverridden_returnsCorrectValues()
154 mWifiConfig.meteredHint = true; in testIsMeteredOverridden_returnsCorrectValues()
/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java192 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
218 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWithoutBundle()
/frameworks/base/wifi/java/src/android/net/wifi/
DWifiNetworkScoreCache.java168 return network != null && network.meteredHint; in getMeteredHint()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DUtilsTest.java279 config.meteredHint = false; in testGetMeteredDescription_noOverrideNoHint_returnEmptyString()
306 config.meteredHint = true; in testGetMeteredDescription__meteredHintTrueAndOverrideNone_returnMetered()
321 config.meteredHint = true; in testGetMeteredDescription__meteredHintTrueAndOverrideMetered_returnMetered()
336 config.meteredHint = true; in testGetMeteredDescription__meteredHintTrueAndOverrideNotMetered_returnUnmetered()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.kt376 config.meteredHint && !isMeteredOverridden( in <lambda>()
DAccessPoint.java674 mIsScoredNetworkMetered |= score.meteredHint; in updateMetered()
683 mIsScoredNetworkMetered |= score.meteredHint; in updateMetered()
1234 if (mConfig != null && (WifiUtils.isMeteredOverridden(mConfig) || mConfig.meteredHint)) { in getSettingsSummary()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DPasspointWifiEntry.java284 || (mWifiConfig != null && mWifiConfig.meteredHint); in isMetered()
DStandardWifiEntry.java276 || (mTargetWifiConfig != null && mTargetWifiConfig.meteredHint); in isMetered()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java315 configuration.meteredHint = true;
502 config.meteredHint = true;
/frameworks/base/core/api/
Dsystem-current.txt9736 field @Deprecated public final boolean meteredHint;