Home
last modified time | relevance | path

Searched refs:TEST_RSSI (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java41 private static final int TEST_RSSI = -50; field in ScoredNetworkTest
111 scoredNetwork.calculateRankingScore(TEST_RSSI); in calculateRankingOffsetShouldThrowUnsupportedOperationException()
121 assertEquals(TEST_SCORE << Byte.SIZE, scoredNetwork.calculateRankingScore(TEST_RSSI)); in calculateRankingOffsetWithRssiCurveShouldReturnExpectedScore()
130 scoredNetwork2.calculateRankingScore(TEST_RSSI) in rankingScoresShouldDifferByRankingScoreOffset()
131 - scoredNetwork1.calculateRankingScore(TEST_RSSI); in rankingScoresShouldDifferByRankingScoreOffset()
141 assertEquals(Integer.MAX_VALUE, scoredNetwork.calculateRankingScore(TEST_RSSI)); in calculateRankingScoreShouldNotResultInIntegerOverflow()
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()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiInfoTest.java49 private static final int TEST_RSSI = -60; field in WifiInfoTest
122 .setRssi(TEST_RSSI) in testWifiInfoBuilder()
129 assertEquals(TEST_RSSI, info1.getRssi()); in testWifiInfoBuilder()
142 assertEquals(TEST_RSSI, info1.getRssi()); in testWifiInfoBuilder()
148 assertEquals(TEST_RSSI, info2.getRssi()); in testWifiInfoBuilder()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java180 private static final int TEST_RSSI = -54; field in ClientModeImplTest
330 list.add(getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq)); in getMockScanResults()
1006 getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq)); in connect()
1008 getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq).getScanResult()); in connect()
1074 getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq)); in setupEapSimConnection()
1076 getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq).getScanResult()); in setupEapSimConnection()
1161 getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq)); in testSetAnonymousIdentityWhenConnectionIsEstablishedNoPseudonym()
1163 getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq).getScanResult()); in testSetAnonymousIdentityWhenConnectionIsEstablishedNoPseudonym()
1214 getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq)); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithPseudonym()
1216 getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq).getScanResult()); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithPseudonym()
[all …]
DWifiConfigManagerTest.java114 private static final int TEST_RSSI = -50; field in WifiConfigManagerTest
5471 TEST_RSSI, TEST_FREQUENCY_1); in testFindScanRssiRecentScan()
5476 assertEquals(mWifiConfigManager.findScanRssi(result.getNetworkId(), 5000), TEST_RSSI); in testFindScanRssiRecentScan() local
5490 TEST_RSSI, TEST_FREQUENCY_1); in testFindScanRssiOldScan()