Home
last modified time | relevance | path

Searched refs:calculateSignalLevel (Results 1 – 18 of 18) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DRssiUtilTest.java69 int expected = WifiManager.calculateSignalLevel(rssi, WifiManager.RSSI_LEVELS); in testCalculateSignalLevelImplementationsConsistent()
70 int actual = RssiUtil.calculateSignalLevel(mContext, rssi); in testCalculateSignalLevelImplementationsConsistent()
78 assertThat(RssiUtil.calculateSignalLevel(mContext, -100)).isEqualTo(0); in testCalculateSignalLevel()
79 assertThat(RssiUtil.calculateSignalLevel(mContext, -89)).isEqualTo(0); in testCalculateSignalLevel()
80 assertThat(RssiUtil.calculateSignalLevel(mContext, -88)).isEqualTo(1); in testCalculateSignalLevel()
81 assertThat(RssiUtil.calculateSignalLevel(mContext, -78)).isEqualTo(1); in testCalculateSignalLevel()
82 assertThat(RssiUtil.calculateSignalLevel(mContext, -77)).isEqualTo(2); in testCalculateSignalLevel()
83 assertThat(RssiUtil.calculateSignalLevel(mContext, -67)).isEqualTo(2); in testCalculateSignalLevel()
84 assertThat(RssiUtil.calculateSignalLevel(mContext, -66)).isEqualTo(3); in testCalculateSignalLevel()
85 assertThat(RssiUtil.calculateSignalLevel(mContext, -56)).isEqualTo(3); in testCalculateSignalLevel()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DRssiUtil.java28 public static int calculateSignalLevel(Context context, int rssi) { in calculateSignalLevel() method in RssiUtil
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java337 return WifiManager.calculateSignalLevel(wifiInfo.getRssi(), maxLevel); in getWifiSignalStrength()
395 signalStrength = WifiManager.calculateSignalLevel(wifiInfo.getRssi(), 4); in updateConnectivityStatus()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pPeer.java94 return WifiManager.calculateSignalLevel(mRssi, SIGNAL_LEVELS); in getLevel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/
DWifiP2pPeerTest.java107 final int expectSignalLevel = WifiManager.calculateSignalLevel(mPreference.mRssi, in signalLevel_afterNewPreference_shouldBeExpected()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectWifiState.java186 .setIconLevel(WifiManager.calculateSignalLevel(result.level, 4)) in getNetworks()
DSelectFromListWizardFragment.java133 mIconLevel = WifiManager.calculateSignalLevel(scanResult.level, 4); in ListItem()
/packages/modules/Wifi/framework/java/android/net/wifi/
DIWifiManager.aidl290 int calculateSignalLevel(int rssi); in calculateSignalLevel() method
DWifiManager.java3677 public static int calculateSignalLevel(int rssi, int numLevels) { in calculateSignalLevel() method in WifiManager
3698 public int calculateSignalLevel(int rssi) { in calculateSignalLevel() method in WifiManager
3700 return mService.calculateSignalLevel(rssi); in calculateSignalLevel()
3712 return calculateSignalLevel(Integer.MAX_VALUE); in getMaxSignalLevel()
/packages/services/Mms/src/com/android/mms/service/
DMmsRequest.java362 final int wifiLevel = wifiManager.calculateSignalLevel(rssi); in isPoorSignal()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java2978 when(mWifiService.calculateSignalLevel(anyInt())).thenReturn(3); in testCalculateSignalLevel()
2979 int actual = mWifiManager.calculateSignalLevel(-60); in testCalculateSignalLevel()
2980 verify(mWifiService).calculateSignalLevel(-60); in testCalculateSignalLevel()
2987 when(mWifiService.calculateSignalLevel(anyInt())).thenReturn(4); in testGetMaxSignalLevel()
2989 verify(mWifiService).calculateSignalLevel(Integer.MAX_VALUE); in testGetMaxSignalLevel()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DBaseWifiService.java689 public int calculateSignalLevel(int rssi) { in calculateSignalLevel() method in BaseWifiService
DWifiServiceImpl.java5099 public int calculateSignalLevel(int rssi) {
5100 return RssiUtil.calculateSignalLevel(mContext, rssi);
DWifiScoreCard.java1313 mSignalLevel = RssiUtil.calculateSignalLevel(mContext, rssi); in updateWifiInfo()
DClientModeImpl.java2237 int newSignalLevel = RssiUtil.calculateSignalLevel(mContext, newRssi);
2345 RssiUtil.calculateSignalLevel(mContext, newRssi));
/packages/modules/Wifi/framework/api/
Dcurrent.txt351 method @Deprecated public static int calculateSignalLevel(int, int);
352 method @IntRange(from=0) public int calculateSignalLevel(int);
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiScoreCardTest.java1877 int signalLevel = RssiUtil.calculateSignalLevel(mContext, mWifiInfo.getRssi()); in testLinkBandwidthLowOnTimeHighSignalLevel()
/packages/modules/Wifi/service/proto/src/
Dmetrics.proto3918 // Signal level derived by RssiUtil.calculateSignalLevel based on RSSI