/frameworks/base/core/java/android/net/ |
D | ScoredNetwork.java | 93 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/ |
D | ScoredNetworkEvaluator.java | 267 mEphemeralConfig.meteredHint)); in getCandidateConfiguration() 275 mEphemeralConfig.meteredHint = mScoreCache.getMeteredHint(mScanResultCandidate); in getCandidateConfiguration() 295 mEphemeralConfig.meteredHint)); in getCandidateConfiguration()
|
D | WifiNetworkHistory.java | 215 + Boolean.toString(config.meteredHint) + NL); in writeKnownNetworkHistory() 428 config.meteredHint = Boolean.parseBoolean(value); in readNetworkHistory()
|
D | WifiConfigManager.java | 888 newInternalConfig.meteredHint = externalConfig.meteredHint; in createNewInternalWifiConfigurationFromExternal()
|
D | WifiStateMachine.java | 3224 mWifiInfo.setMeteredHint(config.meteredHint); in handleSupplicantStateChange()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | ScoredNetworkTest.java | 137 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWhenAllFieldsSet() 163 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWithoutBundle()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiNetworkSelectorTestUtil.java | 363 int networkId, ScanDetail scanDetail, boolean meteredHint) { in setupEphemeralNetwork() argument 371 config.meteredHint = meteredHint; in setupEphemeralNetwork()
|
D | WifiConfigurationTestUtil.java | 466 assertEquals(expected.meteredHint, actual.meteredHint); in assertConfigurationEqualForConfigStore() 493 assertEquals(expected.meteredHint, actual.meteredHint); in assertConfigurationEqualForConfigManagerAddOrUpdate()
|
D | ScoredNetworkEvaluatorTest.java | 248 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/ |
D | WifiConfiguration.java | 750 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;
|
D | WifiInfo.java | 463 public void setMeteredHint(boolean meteredHint) { in setMeteredHint() argument 464 mMeteredHint = meteredHint; in setMeteredHint()
|
D | WifiNetworkScoreCache.java | 163 return network != null && network.meteredHint; in getMeteredHint()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 84 configuration.meteredHint = true; in testCopyAccessPoint_dataShouldMatch() 245 configuration.meteredHint = true;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | XmlUtil.java | 447 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/ |
D | AccessPoint.java | 404 mIsScoredNetworkMetered |= score.meteredHint; in updateMetered() 527 || (mConfig != null && mConfig.meteredHint) in isMetered()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | XmlUtilTest.java | 204 configuration.meteredHint = true; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 1003 final boolean meteredHint = info.getMeteredHint(); 1009 if (policy == null && meteredHint) { 1012 policy = newWifiPolicy(template, meteredHint); 1018 policy.metered = meteredHint;
|
/frameworks/base/api/ |
D | system-current.txt | 27980 field public final boolean meteredHint; 28847 field public boolean meteredHint;
|