Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DScoredNetwork.java82 public final RssiCurve rssiCurve; field in ScoredNetwork
115 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve) { in ScoredNetwork() argument
116 this(networkKey, rssiCurve, false /* meteredHint */); in ScoredNetwork()
132 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint) { in ScoredNetwork() argument
133 this(networkKey, rssiCurve, meteredHint, null /* attributes */); in ScoredNetwork()
150 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint, in ScoredNetwork() argument
153 this.rssiCurve = rssiCurve; in ScoredNetwork()
161 rssiCurve = RssiCurve.CREATOR.createFromParcel(in); in ScoredNetwork()
163 rssiCurve = null; in ScoredNetwork()
177 if (rssiCurve != null) { in writeToParcel()
[all …]
DRssiCurve.java181 RssiCurve rssiCurve = (RssiCurve) o; in equals()
183 return start == rssiCurve.start && in equals()
184 bucketWidth == rssiCurve.bucketWidth && in equals()
185 Arrays.equals(rssiBuckets, rssiCurve.rssiBuckets) && in equals()
186 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.txt9738 field @Deprecated public final android.net.RssiCurve rssiCurve;