Searched refs:scoredNetwork (Results 1 – 5 of 5) 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/services/core/java/com/android/server/ |
D | NetworkScoreService.java | 641 final ScoredNetwork scoredNetwork = scoredNetworks.get(i); in apply() local 642 if (scoredNetwork.networkKey.equals(mCurrentNetwork)) { in apply() 643 return Collections.singletonList(scoredNetwork); in apply() 686 final ScoredNetwork scoredNetwork = scoredNetworks.get(i); in apply() local 687 if (mScanResultKeys.contains(scoredNetwork.networkKey)) { in apply() 688 filteredScores.add(scoredNetwork); in apply()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiStatusTracker.java | 340 ScoredNetwork scoredNetwork = in updateStatusLabel() local 342 statusLabel = scoredNetwork == null in updateStatusLabel() 343 ? null : AccessPoint.getSpeedLabel(mContext, scoredNetwork, rssi); in updateStatusLabel()
|
D | AccessPoint.java | 1633 public static String getSpeedLabel(Context context, ScoredNetwork scoredNetwork, int rssi) { in getSpeedLabel() argument 1634 return getSpeedLabel(context, roundToClosestSpeedEnum(scoredNetwork.calculateBadge(rssi))); in getSpeedLabel()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 1122 ScoredNetwork scoredNetwork = buildScoredNetworkWithGivenBadgeCurve(FAST_BADGE_CURVE); in testUpdateScoresRefreshesScoredNetworkCacheTimestamps() local 1124 scoredNetwork, in testUpdateScoresRefreshesScoredNetworkCacheTimestamps() 1136 .thenReturn(scoredNetwork); in testUpdateScoresRefreshesScoredNetworkCacheTimestamps() 1150 ScoredNetwork scoredNetwork = buildScoredNetworkWithGivenBadgeCurve(FAST_BADGE_CURVE); in testUpdateScoresRefreshesScoredNetworkCacheWithNewSpeed() local 1152 scoredNetwork, in testUpdateScoresRefreshesScoredNetworkCacheWithNewSpeed()
|