Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DScoredNetwork.java53 public final boolean meteredHint; field in ScoredNetwork
83 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint) { in ScoredNetwork() argument
86 this.meteredHint = meteredHint; in ScoredNetwork()
96 meteredHint = in.readByte() != 0; in ScoredNetwork()
113 out.writeByte((byte) (meteredHint ? 1 : 0)); in writeToParcel()
125 && Objects.equals(meteredHint, that.meteredHint); in equals()
130 return Objects.hash(networkKey, rssiCurve, meteredHint); in hashCode()
136 + ",meteredHint=" + meteredHint + "]"; in toString()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNetworkScoreCache.java118 return network != null && network.meteredHint; in getMeteredHint()
183 + ", meteredHint=" + scoredNetwork.meteredHint); in dump()
DWifiNetworkHistory.java217 + Boolean.toString(config.meteredHint) + NL); in writeKnownNetworkHistory()
431 config.meteredHint = Boolean.parseBoolean(value); in readNetworkHistory()
DWifiQualifiedNetworkSelector.java902 unTrustedNetworkCandidate.meteredHint = in getExternalScoreCandidate()
911 unTrustedNetworkCandidate.meteredHint)); in getExternalScoreCandidate()
DWifiConfigManager.java1623 return config != null && config.meteredHint; in getMeteredHint()
1987 currentConfig.meteredHint = config.meteredHint; in addOrUpdateNetworkNative()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java690 public boolean meteredHint; field in WifiConfiguration
1345 meteredHint = false; in WifiConfiguration()
1446 if (this.meteredHint) sbuf.append(" meteredHint"); in toString()
1449 || this.ephemeral || this.meteredHint || this.useExternalScores) { in toString()
1873 meteredHint = source.meteredHint; in WifiConfiguration()
1954 dest.writeInt(meteredHint ? 1 : 0); in writeToParcel()
2025 config.meteredHint = in.readInt() != 0;
DWifiInfo.java438 public void setMeteredHint(boolean meteredHint) { in setMeteredHint() argument
439 mMeteredHint = meteredHint; in setMeteredHint()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java857 final boolean meteredHint = info.getMeteredHint();
862 if (policy == null && meteredHint) {
865 policy = newWifiPolicy(template, meteredHint);
871 policy.metered = meteredHint;
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiQualifiedNetworkSelectorTest.java1681 assertEquals(meteredHints[1], candidate.meteredHint); in selectQualifiedNetworkChoosesEphemeral()
1903 assertEquals(meteredHints[0], candidate.meteredHint); in selectQualifiedNetworkDoesNotChooseDeletedEphemeral()
/frameworks/base/api/
Dsystem-current.txt25623 field public final boolean meteredHint;