Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DScoredNetwork.java93 public final boolean meteredHint; field in ScoredNetwork
133 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint) { in ScoredNetwork() argument
134 this(networkKey, rssiCurve, meteredHint, null /* attributes */); in ScoredNetwork()
151 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint, in ScoredNetwork() argument
155 this.meteredHint = meteredHint; in ScoredNetwork()
166 meteredHint = (in.readByte() == 1); in ScoredNetwork()
184 out.writeByte((byte) (meteredHint ? 1 : 0)); in writeToParcel()
197 && Objects.equals(meteredHint, that.meteredHint) in equals()
203 return Objects.hash(networkKey, rssiCurve, meteredHint, attributes); in hashCode()
212 ", meteredHint=" + meteredHint); in toString()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScoredNetworkEvaluator.java267 mEphemeralConfig.meteredHint)); in getCandidateConfiguration()
275 mEphemeralConfig.meteredHint = mScoreCache.getMeteredHint(mScanResultCandidate); in getCandidateConfiguration()
295 mEphemeralConfig.meteredHint)); in getCandidateConfiguration()
DWifiNetworkHistory.java215 + Boolean.toString(config.meteredHint) + NL); in writeKnownNetworkHistory()
428 config.meteredHint = Boolean.parseBoolean(value); in readNetworkHistory()
DWifiConfigManager.java888 newInternalConfig.meteredHint = externalConfig.meteredHint; in createNewInternalWifiConfigurationFromExternal()
DWifiStateMachine.java3224 mWifiInfo.setMeteredHint(config.meteredHint); in handleSupplicantStateChange()
/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java137 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
163 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWithoutBundle()
/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.java466 assertEquals(expected.meteredHint, actual.meteredHint); in assertConfigurationEqualForConfigStore()
493 assertEquals(expected.meteredHint, actual.meteredHint); in assertConfigurationEqualForConfigManagerAddOrUpdate()
DScoredNetworkEvaluatorTest.java248 assertEquals(meteredHints[1], candidate.meteredHint); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork()
288 assertEquals(meteredHints[1], candidate.meteredHint); in testEvaluateNetworks_chooseHigherScoredEphemeralNetwork()
543 assertEquals(meteredHints[1], candidate.meteredHint); in testEvaluateNetworks_chooseActiveEphemeralNetwork()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java750 public boolean meteredHint; field in WifiConfiguration
1423 meteredHint = false; in WifiConfiguration()
1527 if (this.meteredHint) sbuf.append(" meteredHint"); in toString()
1531 || this.ephemeral || this.meteredHint || this.meteredOverride in toString()
1982 meteredHint = source.meteredHint; in WifiConfiguration()
2059 dest.writeInt(meteredHint ? 1 : 0); in writeToParcel()
2126 config.meteredHint = in.readInt() != 0;
DWifiInfo.java463 public void setMeteredHint(boolean meteredHint) { in setMeteredHint() argument
464 mMeteredHint = meteredHint; in setMeteredHint()
DWifiNetworkScoreCache.java163 return network != null && network.meteredHint; in getMeteredHint()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java84 configuration.meteredHint = true; in testCopyAccessPoint_dataShouldMatch()
245 configuration.meteredHint = true;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java447 XmlUtil.writeNextValue(out, XML_TAG_METERED_HINT, configuration.meteredHint); in writeToXmlForConfigStore()
592 configuration.meteredHint = (boolean) value; in parseFromXml()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java404 mIsScoredNetworkMetered |= score.meteredHint; in updateMetered()
527 || (mConfig != null && mConfig.meteredHint) in isMetered()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java204 configuration.meteredHint = true; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1003 final boolean meteredHint = info.getMeteredHint();
1009 if (policy == null && meteredHint) {
1012 policy = newWifiPolicy(template, meteredHint);
1018 policy.metered = meteredHint;
/frameworks/base/api/
Dsystem-current.txt27980 field public final boolean meteredHint;
28847 field public boolean meteredHint;