Searched refs:scoredNetwork (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/net/ |
D | ScoredNetworkTest.java | 109 ScoredNetwork scoredNetwork = new ScoredNetwork(KEY, null); in calculateRankingOffsetShouldThrowUnsupportedOperationException() local 111 scoredNetwork.calculateRankingScore(TEST_RSSI); in calculateRankingOffsetShouldThrowUnsupportedOperationException() 120 ScoredNetwork scoredNetwork = new ScoredNetwork(KEY, CURVE); in calculateRankingOffsetWithRssiCurveShouldReturnExpectedScore() local 121 assertEquals(TEST_SCORE << Byte.SIZE, scoredNetwork.calculateRankingScore(TEST_RSSI)); in calculateRankingOffsetWithRssiCurveShouldReturnExpectedScore() 139 ScoredNetwork scoredNetwork in calculateRankingScoreShouldNotResultInIntegerOverflow() local 141 assertEquals(Integer.MAX_VALUE, scoredNetwork.calculateRankingScore(TEST_RSSI)); in calculateRankingScoreShouldNotResultInIntegerOverflow() 148 ScoredNetwork scoredNetwork = in calculateRankingScoreShouldNotResultInIntegerUnderflow() local 150 assertEquals(Integer.MIN_VALUE, scoredNetwork.calculateRankingScore(RSSI_START)); in calculateRankingScoreShouldNotResultInIntegerUnderflow()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiStatusTracker.java | 171 ScoredNetwork scoredNetwork = in updateStatusLabel() local 173 statusLabel = scoredNetwork == null in updateStatusLabel() 174 ? null : AccessPoint.getSpeedLabel(mContext, scoredNetwork, rssi); in updateStatusLabel()
|
D | AccessPoint.java | 1505 public static String getSpeedLabel(Context context, ScoredNetwork scoredNetwork, int rssi) { in getSpeedLabel() argument 1506 return getSpeedLabel(context, roundToClosestSpeedEnum(scoredNetwork.calculateBadge(rssi))); in getSpeedLabel()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkScoreService.java | 648 final ScoredNetwork scoredNetwork = scoredNetworks.get(i); in apply() local 649 if (scoredNetwork.networkKey.equals(mCurrentNetwork)) { in apply() 650 return Collections.singletonList(scoredNetwork); in apply() 693 final ScoredNetwork scoredNetwork = scoredNetworks.get(i); in apply() local 694 if (mScanResultKeys.contains(scoredNetwork.networkKey)) { in apply() 695 filteredScores.add(scoredNetwork); in apply()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiNetworkSelectorTestUtil.java | 363 ScoredNetwork scoredNetwork = new ScoredNetwork(ntwkKey, rssiCurve, meteredHints[i]); in configureScoreCache() local 365 networks.add(scoredNetwork); in configureScoreCache()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 1164 ScoredNetwork scoredNetwork = buildScoredNetworkWithGivenBadgeCurve(FAST_BADGE_CURVE); in testUpdateScoresRefreshesScoredNetworkCacheTimestamps() local 1166 scoredNetwork, in testUpdateScoresRefreshesScoredNetworkCacheTimestamps() 1178 .thenReturn(scoredNetwork); in testUpdateScoresRefreshesScoredNetworkCacheTimestamps() 1192 ScoredNetwork scoredNetwork = buildScoredNetworkWithGivenBadgeCurve(FAST_BADGE_CURVE); in testUpdateScoresRefreshesScoredNetworkCacheWithNewSpeed() local 1194 scoredNetwork, in testUpdateScoresRefreshesScoredNetworkCacheWithNewSpeed()
|