Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DRssiUtilTest.java70 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/
DWifiTileTest.java94 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()
DWifiRowTest.java106 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/
DRssiUtil.java49 public static int calculateSignalLevel(Context context, int rssi) { in calculateSignalLevel() method in RssiUtil
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pPeer.java94 return WifiManager.calculateSignalLevel(mRssi, SIGNAL_LEVELS); in getLevel()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DWifiQCUtils.java81 int level = wifiManager.calculateSignalLevel(rssi); in getIcon()
/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/
DConnectivityListener.java358 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/
DConnectivityListener.java388 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/
DMmsRequest.java420 final int wifiLevel = wifiManager.calculateSignalLevel(rssi); in isPoorSignal()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DPreviewActionsViewModel.kt384 val signalLevel = wifiMgr.calculateSignalLevel(wifiInfo.rssi) in <lambda>()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectFromListWizardFragment.java132 mIconLevel = WifiManager.calculateSignalLevel(scanResult.level, 4); in ListItem()
/packages/modules/Wifi/framework/java/android/net/wifi/
DIWifiManager.aidl377 int calculateSignalLevel(int rssi); in calculateSignalLevel() method
DBaseWifiService.java867 public int calculateSignalLevel(int rssi) { in calculateSignalLevel() method in BaseWifiService
DWifiManager.java5373 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/
DWifiManagerTest.java3221 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/
DWifiScoreCardTest.java1915 int signalLevel = RssiUtil.calculateSignalLevel(mContext, mWifiInfo.getRssi()); in testLinkBandwidthLowOnTimeHighSignalLevel()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiScoreCard.java1313 mSignalLevel = RssiUtil.calculateSignalLevel(mContext, rssi); in updateWifiInfo()
DWifiServiceImpl.java7102 public int calculateSignalLevel(int rssi) {
7103 return RssiUtil.calculateSignalLevel(mContext, rssi);
DClientModeImpl.java2833 int newSignalLevel = RssiUtil.calculateSignalLevel(mContext, newRssi); in updateLinkLayerStatsRssiSpeedFrequencyCapabilities()
2948 RssiUtil.calculateSignalLevel(mContext, newRssi)); in sendRssiChangeBroadcast()
/packages/modules/Wifi/framework/api/
Dcurrent.txt446 method @Deprecated public static int calculateSignalLevel(int, int);
447 method @IntRange(from=0) public int calculateSignalLevel(int);
/packages/modules/Wifi/service/proto/src/
Dmetrics.proto3988 // Signal level derived by RssiUtil.calculateSignalLevel based on RSSI