Searched refs:calculateBadge (Results 1 – 8 of 8) sorted by relevance
225 assertEquals(NetworkBadging.BADGING_NONE, network.calculateBadge(TEST_RSSI)); in calculateBadgeShouldReturnNoBadgeWhenNoAttributesBundle()231 assertEquals(NetworkBadging.BADGING_NONE, network.calculateBadge(TEST_RSSI)); in calculateBadgeShouldReturnNoBadgeWhenNoBadgingCurveInBundle()238 assertEquals(NetworkBadging.BADGING_4K, network.calculateBadge(TEST_RSSI)); in calculateBadgeShouldReturn4kBadge()245 assertEquals(NetworkBadging.BADGING_HD, network.calculateBadge(TEST_RSSI)); in calculateBadgeShouldReturnHdBadge()252 assertEquals(NetworkBadging.BADGING_SD, network.calculateBadge(TEST_RSSI)); in calculateBadgeShouldReturnSdBadge()259 assertEquals(NetworkBadging.BADGING_NONE, network.calculateBadge(TEST_RSSI)); in calculateBadgeShouldReturnNoBadge()
312 when(mMockScoredNetwork.calculateBadge(GOOD_RSSI)).thenReturn(SPEED_FAST); in testGetSpeed_cacheUpdated_speedValueChanges()322 when(mMockScoredNetwork.calculateBadge(GOOD_RSSI)).thenReturn(SPEED_SLOW); in testGetSpeed_cacheUpdated_speedValueChanges()330 when(mMockScoredNetwork.calculateBadge(BAD_RSSI)).thenReturn(SPEED_SLOW); in testGetSpeed_connected_useWifiInfoRssiForSpeed()331 when(mMockScoredNetwork.calculateBadge(GOOD_RSSI)).thenReturn(SPEED_FAST); in testGetSpeed_connected_useWifiInfoRssiForSpeed()353 when(mMockScoredNetwork.calculateBadge(BAD_RSSI)).thenReturn(SPEED_SLOW); in testGetSpeed_newScanResults_speedValueChanges()354 when(mMockScoredNetwork.calculateBadge(GOOD_RSSI)).thenReturn(SPEED_FAST); in testGetSpeed_newScanResults_speedValueChanges()
1009 when(mMockScoredNetwork.calculateBadge(GOOD_RSSI)).thenReturn(SPEED_FAST); in testGetSpeed_cacheUpdated_speedValueChanges()1015 when(mMockScoredNetwork.calculateBadge(GOOD_RSSI)).thenReturn(SPEED_SLOW); in testGetSpeed_cacheUpdated_speedValueChanges()1023 when(mMockScoredNetwork.calculateBadge(BAD_RSSI)).thenReturn(SPEED_SLOW); in testGetSpeed_connected_useWifiInfoRssiForSpeed()1024 when(mMockScoredNetwork.calculateBadge(GOOD_RSSI)).thenReturn(SPEED_FAST); in testGetSpeed_connected_useWifiInfoRssiForSpeed()1045 when(mMockScoredNetwork.calculateBadge(BAD_RSSI)).thenReturn(SPEED_SLOW); in testGetSpeed_newScanResults_speedValueChanges()1046 when(mMockScoredNetwork.calculateBadge(GOOD_RSSI)).thenReturn(SPEED_FAST); in testGetSpeed_newScanResults_speedValueChanges()
297 public int calculateBadge(int rssi) { in calculateBadge() method in ScoredNetwork
251 return timedScore.getScore().calculateBadge(result.level); in getSpecificApSpeed()
649 int speed = timedScore.getScore().calculateBadge(mRssi); in generateAverageSpeedForSsid()1634 return getSpeedLabel(context, roundToClosestSpeedEnum(scoredNetwork.calculateBadge(rssi))); in getSpeedLabel()
250 @Speed int speed = scoredNetwork.calculateBadge(scanResult.level); in getAverageSpeedFromScanResults()277 return roundToClosestSpeedEnum(scoredNetwork.calculateBadge(wifiInfo.getRssi())); in getSpeedFromWifiInfo()
7476 method public int calculateBadge(int);