Home
last modified time | relevance | path

Searched refs:rssiCurve (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/net/
DScoredNetwork.java80 public final RssiCurve rssiCurve; field in ScoredNetwork
113 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve) { in ScoredNetwork() argument
114 this(networkKey, rssiCurve, false /* meteredHint */); in ScoredNetwork()
130 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint) { in ScoredNetwork() argument
131 this(networkKey, rssiCurve, meteredHint, null /* attributes */); in ScoredNetwork()
148 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint, in ScoredNetwork() argument
151 this.rssiCurve = rssiCurve; in ScoredNetwork()
159 rssiCurve = RssiCurve.CREATOR.createFromParcel(in); in ScoredNetwork()
161 rssiCurve = null; in ScoredNetwork()
175 if (rssiCurve != null) { in writeToParcel()
[all …]
DRssiCurve.java179 RssiCurve rssiCurve = (RssiCurve) o; in equals()
181 return start == rssiCurve.start && in equals()
182 bucketWidth == rssiCurve.bucketWidth && in equals()
183 Arrays.equals(rssiBuckets, rssiCurve.rssiBuckets) && in equals()
184 activeNetworkRssiBoost == rssiCurve.activeNetworkRssiBoost; in equals()
/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java189 assertEquals(CURVE.start, newNetwork.rssiCurve.start); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
190 assertEquals(CURVE.bucketWidth, newNetwork.rssiCurve.bucketWidth); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
191 assertTrue(Arrays.equals(CURVE.rssiBuckets, newNetwork.rssiCurve.rssiBuckets)); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
215 assertEquals(CURVE.start, newNetwork.rssiCurve.start); in shouldWriteAndReadFromParcelWithoutBundle()
216 assertEquals(CURVE.bucketWidth, newNetwork.rssiCurve.bucketWidth); in shouldWriteAndReadFromParcelWithoutBundle()
217 assertTrue(Arrays.equals(CURVE.rssiBuckets, newNetwork.rssiCurve.rssiBuckets)); in shouldWriteAndReadFromParcelWithoutBundle()
/frameworks/base/wifi/java/src/android/net/wifi/
DWifiNetworkScoreCache.java143 return network != null && network.rssiCurve != null; in hasScoreCurve()
150 if (network != null && network.rssiCurve != null) { in getNetworkScore()
151 score = network.rssiCurve.lookupScore(result.level); in getNetworkScore()
175 if (network != null && network.rssiCurve != null) { in getNetworkScore()
176 score = network.rssiCurve.lookupScore(result.level, isActiveNetwork); in getNetworkScore()
/frameworks/base/core/api/
Dsystem-current.txt7486 field public final android.net.RssiCurve rssiCurve;