Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java225 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()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DPasspointWifiEntryTest.java312 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()
DStandardWifiEntryTest.java1009 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()
/frameworks/base/core/java/android/net/
DScoredNetwork.java297 public int calculateBadge(int rssi) { in calculateBadge() method in ScoredNetwork
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.java251 return timedScore.getScore().calculateBadge(result.level); in getSpecificApSpeed()
DAccessPoint.java649 int speed = timedScore.getScore().calculateBadge(mRssi); in generateAverageSpeedForSsid()
1634 return getSpeedLabel(context, roundToClosestSpeedEnum(scoredNetwork.calculateBadge(rssi))); in getSpeedLabel()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DUtils.java250 @Speed int speed = scoredNetwork.calculateBadge(scanResult.level); in getAverageSpeedFromScanResults()
277 return roundToClosestSpeedEnum(scoredNetwork.calculateBadge(wifiInfo.getRssi())); in getSpeedFromWifiInfo()
/frameworks/base/core/api/
Dsystem-current.txt7476 method public int calculateBadge(int);