/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | RssiUtilTest.java | 69 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/ |
D | RssiUtil.java | 28 public static int calculateSignalLevel(Context context, int rssi) { in calculateSignalLevel() method in RssiUtil
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | ConnectivityListener.java | 337 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/ |
D | WifiP2pPeer.java | 94 return WifiManager.calculateSignalLevel(mRssi, SIGNAL_LEVELS); in getLevel()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/ |
D | WifiP2pPeerTest.java | 107 final int expectSignalLevel = WifiManager.calculateSignalLevel(mPreference.mRssi, in signalLevel_afterNewPreference_shouldBeExpected()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | SelectWifiState.java | 186 .setIconLevel(WifiManager.calculateSignalLevel(result.level, 4)) in getNetworks()
|
D | SelectFromListWizardFragment.java | 133 mIconLevel = WifiManager.calculateSignalLevel(scanResult.level, 4); in ListItem()
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | IWifiManager.aidl | 290 int calculateSignalLevel(int rssi); in calculateSignalLevel() method
|
D | WifiManager.java | 3677 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/ |
D | MmsRequest.java | 362 final int wifiLevel = wifiManager.calculateSignalLevel(rssi); in isPoorSignal()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 2978 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/ |
D | BaseWifiService.java | 689 public int calculateSignalLevel(int rssi) { in calculateSignalLevel() method in BaseWifiService
|
D | WifiServiceImpl.java | 5099 public int calculateSignalLevel(int rssi) { 5100 return RssiUtil.calculateSignalLevel(mContext, rssi);
|
D | WifiScoreCard.java | 1313 mSignalLevel = RssiUtil.calculateSignalLevel(mContext, rssi); in updateWifiInfo()
|
D | ClientModeImpl.java | 2237 int newSignalLevel = RssiUtil.calculateSignalLevel(mContext, newRssi); 2345 RssiUtil.calculateSignalLevel(mContext, newRssi));
|
/packages/modules/Wifi/framework/api/ |
D | current.txt | 351 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/ |
D | WifiScoreCardTest.java | 1877 int signalLevel = RssiUtil.calculateSignalLevel(mContext, mWifiInfo.getRssi()); in testLinkBandwidthLowOnTimeHighSignalLevel()
|
/packages/modules/Wifi/service/proto/src/ |
D | metrics.proto | 3918 // Signal level derived by RssiUtil.calculateSignalLevel based on RSSI
|