/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | RssiUtilTest.java | 70 int expected = WifiManager.calculateSignalLevel(rssi, WifiManager.RSSI_LEVELS); in testCalculateSignalLevelImplementationsConsistent() 71 int actual = RssiUtil.calculateSignalLevel(mContext, rssi); in testCalculateSignalLevelImplementationsConsistent() 79 assertThat(RssiUtil.calculateSignalLevel(mContext, -100)).isEqualTo(0); in testCalculateSignalLevel() 80 assertThat(RssiUtil.calculateSignalLevel(mContext, -89)).isEqualTo(0); in testCalculateSignalLevel() 81 assertThat(RssiUtil.calculateSignalLevel(mContext, -88)).isEqualTo(1); in testCalculateSignalLevel() 82 assertThat(RssiUtil.calculateSignalLevel(mContext, -78)).isEqualTo(1); in testCalculateSignalLevel() 83 assertThat(RssiUtil.calculateSignalLevel(mContext, -77)).isEqualTo(2); in testCalculateSignalLevel() 84 assertThat(RssiUtil.calculateSignalLevel(mContext, -67)).isEqualTo(2); in testCalculateSignalLevel() 85 assertThat(RssiUtil.calculateSignalLevel(mContext, -66)).isEqualTo(3); in testCalculateSignalLevel() 86 assertThat(RssiUtil.calculateSignalLevel(mContext, -56)).isEqualTo(3); in testCalculateSignalLevel() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/ |
D | WifiTileTest.java | 94 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_wifiConnected_returnsTile() 112 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_passpointWifiConnected_hasFriendlyName_returnsTile() 130 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_passpointWifiConnected_noFriendlyName_returnsRow() 148 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_osuWifiConnected_hasFriendlyName_returnsTile() 166 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_osuWifiConnected_noFriendlyName_returnsTile() 214 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_createsTile_zoneWrite() 230 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_createsTile_zoneRead() 247 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_createsTile_zoneHidden()
|
D | WifiRowTest.java | 106 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_wifiConnected_returnsRow() 125 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_passpointWifiConnected_hasFriendlyName_returnsRow() 144 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_passpointWifiConnected_noFriendlyName_returnsRow() 163 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_osuWifiConnected_hasFriendlyName_returnsRow() 182 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_osuWifiConnected_noFriendlyName_returnsRow() 233 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_createsRow_zoneWrite() 252 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_createsRow_zoneRead() 272 when(mWifiManager.calculateSignalLevel(anyInt())).thenReturn(4); in getQCItem_createsRow_zoneHidden()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | RssiUtil.java | 49 public static int calculateSignalLevel(Context context, int rssi) { in calculateSignalLevel() method in RssiUtil
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
D | WifiP2pPeer.java | 94 return WifiManager.calculateSignalLevel(mRssi, SIGNAL_LEVELS); in getLevel()
|
/packages/apps/Car/Settings/src/com/android/car/settings/qc/ |
D | WifiQCUtils.java | 81 int level = wifiManager.calculateSignalLevel(rssi); in getIcon()
|
/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/ |
D | ConnectivityListener.java | 358 return WifiManager.calculateSignalLevel(wifiInfo.getRssi(), maxLevel); in getWifiSignalStrength() 416 signalStrength = WifiManager.calculateSignalLevel(wifiInfo.getRssi(), 4); in updateConnectivityStatus()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/ |
D | ConnectivityListener.java | 388 return WifiManager.calculateSignalLevel(wifiInfo.getRssi(), maxLevel); in getWifiSignalStrength() 446 signalStrength = WifiManager.calculateSignalLevel(wifiInfo.getRssi(), 4); in updateConnectivityStatus()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsRequest.java | 420 final int wifiLevel = wifiManager.calculateSignalLevel(rssi); in isPoorSignal()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/viewmodel/ |
D | PreviewActionsViewModel.kt | 384 val signalLevel = wifiMgr.calculateSignalLevel(wifiInfo.rssi) in <lambda>()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | SelectFromListWizardFragment.java | 132 mIconLevel = WifiManager.calculateSignalLevel(scanResult.level, 4); in ListItem()
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | IWifiManager.aidl | 377 int calculateSignalLevel(int rssi); in calculateSignalLevel() method
|
D | BaseWifiService.java | 867 public int calculateSignalLevel(int rssi) { in calculateSignalLevel() method in BaseWifiService
|
D | WifiManager.java | 5373 public static int calculateSignalLevel(int rssi, int numLevels) { in calculateSignalLevel() method in WifiManager 5394 public int calculateSignalLevel(int rssi) { in calculateSignalLevel() method in WifiManager 5396 return mService.calculateSignalLevel(rssi); in calculateSignalLevel() 5408 return calculateSignalLevel(Integer.MAX_VALUE); in getMaxSignalLevel()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 3221 when(mWifiService.calculateSignalLevel(anyInt())).thenReturn(3); in testCalculateSignalLevel() 3222 int actual = mWifiManager.calculateSignalLevel(-60); in testCalculateSignalLevel() 3223 verify(mWifiService).calculateSignalLevel(-60); in testCalculateSignalLevel() 3230 when(mWifiService.calculateSignalLevel(anyInt())).thenReturn(4); in testGetMaxSignalLevel() 3232 verify(mWifiService).calculateSignalLevel(Integer.MAX_VALUE); in testGetMaxSignalLevel()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiScoreCardTest.java | 1915 int signalLevel = RssiUtil.calculateSignalLevel(mContext, mWifiInfo.getRssi()); in testLinkBandwidthLowOnTimeHighSignalLevel()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiScoreCard.java | 1313 mSignalLevel = RssiUtil.calculateSignalLevel(mContext, rssi); in updateWifiInfo()
|
D | WifiServiceImpl.java | 7102 public int calculateSignalLevel(int rssi) { 7103 return RssiUtil.calculateSignalLevel(mContext, rssi);
|
D | ClientModeImpl.java | 2833 int newSignalLevel = RssiUtil.calculateSignalLevel(mContext, newRssi); in updateLinkLayerStatsRssiSpeedFrequencyCapabilities() 2948 RssiUtil.calculateSignalLevel(mContext, newRssi)); in sendRssiChangeBroadcast()
|
/packages/modules/Wifi/framework/api/ |
D | current.txt | 446 method @Deprecated public static int calculateSignalLevel(int, int); 447 method @IntRange(from=0) public int calculateSignalLevel(int);
|
/packages/modules/Wifi/service/proto/src/ |
D | metrics.proto | 3988 // Signal level derived by RssiUtil.calculateSignalLevel based on RSSI
|