Home
last modified time | relevance | path

Searched refs:lookupScore (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/net/
DRssiCurve.java139 public byte lookupScore(int rssi) { in lookupScore() method in RssiCurve
140 return lookupScore(rssi, false /* isActiveNetwork */); in lookupScore()
152 public byte lookupScore(int rssi, boolean isActiveNetwork) { in lookupScore() method in RssiCurve
DScoredNetwork.java281 int score = (rssiCurve == null) ? 0 : rssiCurve.lookupScore(rssi) << Byte.SIZE; in calculateRankingScore()
303 return badgingCurve.lookupScore(rssi); in calculateBadge()
/frameworks/base/wifi/java/src/android/net/wifi/
DWifiNetworkScoreCache.java151 score = network.rssiCurve.lookupScore(result.level); in getNetworkScore()
176 score = network.rssiCurve.lookupScore(result.level, isActiveNetwork); in getNetworkScore()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java384 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.VERY_FAST);
400 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.FAST);
416 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.MODERATE);
432 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.SLOW);
448 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.VERY_FAST);
463 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.VERY_FAST);
983 when(badgeCurve1.lookupScore(anyInt())).thenReturn((byte) speed1); in testSpeedLabelAveragesAllBssidScores()
988 when(badgeCurve2.lookupScore(anyInt())).thenReturn((byte) speed2); in testSpeedLabelAveragesAllBssidScores()
1006 when(badgeCurve1.lookupScore(anyInt())).thenReturn((byte) speed1); in testSpeedLabelAverageIgnoresNoSpeedScores()
1011 when(badgeCurve2.lookupScore(anyInt())).thenReturn((byte) speed2); in testSpeedLabelAverageIgnoresNoSpeedScores()
[all …]
DWifiTrackerTest.java189 when(mockCurve1.lookupScore(RSSI_1)).thenReturn(SCORE_1); in setUp()
190 when(mockCurve2.lookupScore(RSSI_2)).thenReturn(SCORE_2); in setUp()
192 when(mockBadgeCurve1.lookupScore(RSSI_1)).thenReturn((byte) BADGE_1); in setUp()
193 when(mockBadgeCurve2.lookupScore(RSSI_2)).thenReturn((byte) BADGE_2); in setUp()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkScoreCacheTest.java171 when(mockRssiCurve.lookupScore(rssi)).thenReturn(score); in getNetworkScoreShouldReturnScore()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java95 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.VERY_FAST); in testVerboseSummaryString_showsScanResultSpeedLabel()
/frameworks/base/core/api/
Dsystem-current.txt9714 method @Deprecated public byte lookupScore(int);
9715 method @Deprecated public byte lookupScore(int, boolean);