Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkScoreTest.java140 + PasspointNetworkScore.RSSI_SCORE.lookupScore(-60, false))); in TEST_DATA_LIST.add()
150 + PasspointNetworkScore.RSSI_SCORE.lookupScore(-60, true))); in TEST_DATA_LIST.add()
161 + PasspointNetworkScore.RSSI_SCORE.lookupScore(-60, false))); in TEST_DATA_LIST.add()
172 + PasspointNetworkScore.RSSI_SCORE.lookupScore(-60, false))); in TEST_DATA_LIST.add()
184 + PasspointNetworkScore.RSSI_SCORE.lookupScore(-60, false))); in TEST_DATA_LIST.add()
196 + PasspointNetworkScore.RSSI_SCORE.lookupScore(-60, false) in TEST_DATA_LIST.add()
209 + PasspointNetworkScore.RSSI_SCORE.lookupScore(-60, false) in TEST_DATA_LIST.add()
222 + PasspointNetworkScore.RSSI_SCORE.lookupScore(-60, false) in TEST_DATA_LIST.add()
235 + PasspointNetworkScore.RSSI_SCORE.lookupScore(-60, false) in TEST_DATA_LIST.add()
250 + PasspointNetworkScore.RSSI_SCORE.lookupScore(-60, false))); in TEST_DATA_LIST.add()
[all …]
/frameworks/base/core/java/android/net/
DRssiCurve.java135 public byte lookupScore(int rssi) { in lookupScore() method in RssiCurve
136 return lookupScore(rssi, false /* isActiveNetwork */); in lookupScore()
148 public byte lookupScore(int rssi, boolean isActiveNetwork) { in lookupScore() method in RssiCurve
DScoredNetwork.java260 int score = (rssiCurve == null) ? 0 : rssiCurve.lookupScore(rssi) << Byte.SIZE; in calculateRankingScore()
282 return badgingCurve.lookupScore(rssi); in calculateBadge()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java369 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.VERY_FAST);
385 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.FAST);
402 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.MODERATE);
418 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.SLOW);
434 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.VERY_FAST);
453 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.VERY_FAST);
469 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.VERY_FAST);
868 when(badgeCurve1.lookupScore(anyInt())).thenReturn((byte) speed1);
873 when(badgeCurve2.lookupScore(anyInt())).thenReturn((byte) speed2);
891 when(badgeCurve1.lookupScore(anyInt())).thenReturn((byte) speed1);
[all …]
DWifiTrackerTest.java181 when(mockCurve1.lookupScore(RSSI_1)).thenReturn(SCORE_1); in setUp()
182 when(mockCurve2.lookupScore(RSSI_2)).thenReturn(SCORE_2); in setUp()
184 when(mockBadgeCurve1.lookupScore(RSSI_1)).thenReturn((byte) BADGE_1); in setUp()
185 when(mockBadgeCurve2.lookupScore(RSSI_2)).thenReturn((byte) BADGE_2); in setUp()
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkScoreCache.java150 score = network.rssiCurve.lookupScore(result.level); in getNetworkScore()
175 score = network.rssiCurve.lookupScore(result.level, isActiveNetwork); in getNetworkScore()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkScore.java182 score += RSSI_SCORE.lookupScore(scanDetail.getScanResult().level, isActiveNetwork); in calculateScore()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkScoreCacheTest.java171 when(mockRssiCurve.lookupScore(rssi)).thenReturn(score); in getNetworkScoreShouldReturnScore()
/frameworks/base/api/
Dsystem-current.txt28096 method public byte lookupScore(int);
28097 method public byte lookupScore(int, boolean);