/frameworks/base/core/java/android/net/ |
D | ScoredNetwork.java | 89 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/ |
D | WifiUtilsTest.java | 107 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/ |
D | ScoredNetworkEvaluator.java | 291 mEphemeralConfig.meteredHint)); in getCandidateConfiguration() 301 mEphemeralConfig.meteredHint = mScoreCache.getMeteredHint(mScanResultCandidate); in getCandidateConfiguration() 326 mEphemeralConfig.meteredHint)); in getCandidateConfiguration()
|
D | WifiConfigManager.java | 964 internalConfig.meteredHint = externalConfig.meteredHint; in mergeWithInternalWifiConfiguration()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiConfiguration.java | 904 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;
|
D | WifiInfo.java | 489 public void setMeteredHint(boolean meteredHint) { in setMeteredHint() argument 490 mMeteredHint = meteredHint; in setMeteredHint()
|
D | WifiNetworkScoreCache.java | 167 return network != null && network.meteredHint; in getMeteredHint()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | ScoredNetworkTest.java | 192 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWhenAllFieldsSet() 218 assertTrue(newNetwork.meteredHint); in shouldWriteAndReadFromParcelWithoutBundle()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScoredNetworkEvaluatorTest.java | 313 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()
|
D | WifiConfigurationTestUtil.java | 591 assertEquals(expected.meteredHint, actual.meteredHint); in assertConfigurationEqualForConfigStore() 621 assertEquals(expected.meteredHint, actual.meteredHint); in assertConfigurationEqualForConfigManagerAddOrUpdate()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiUtils.java | 210 || (config.meteredHint && !isMeteredOverridden(config))) { in getMeteredLabel()
|
D | AccessPoint.java | 634 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/ |
D | XmlUtil.java | 460 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/ |
D | XmlUtilTest.java | 205 configuration.meteredHint = true; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 302 configuration.meteredHint = true; 531 config.meteredHint = true;
|
/frameworks/base/api/ |
D | system-current.txt | 4188 field public final boolean meteredHint; 4660 field @Deprecated public boolean meteredHint;
|