Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/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 …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DRssiUtil.java28 public static int calculateSignalLevel(Context context, int rssi) { in calculateSignalLevel() method in RssiUtil
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DStandardWifiEntryTest.java113 when(mMockWifiManager.calculateSignalLevel(GOOD_RSSI)) in setUp()
115 when(mMockWifiManager.calculateSignalLevel(OKAY_RSSI)) in setUp()
117 when(mMockWifiManager.calculateSignalLevel(BAD_RSSI)) in setUp()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DOsuWifiEntry.java272 ? mWifiManager.calculateSignalLevel(bestScanResult.level) in updateScanResultInfo()
DWifiEntry.java606 mLevel = mWifiManager.calculateSignalLevel(wifiInfoRssi); in updateConnectionInfo()
DPasspointWifiEntry.java556 ? mWifiManager.calculateSignalLevel(bestScanResult.level) in updateScanResultInfo()
DStandardWifiEntry.java692 ? mWifiManager.calculateSignalLevel(bestScanResult.level) in updateScanResultInfo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java206 level = mWifiManager.calculateSignalLevel(rssi); in updateRssi()
DAccessPoint.java470 int difference = wifiManager.calculateSignalLevel(other.mRssi) in compareTo()
471 - wifiManager.calculateSignalLevel(mRssi); in compareTo()
892 return getWifiManager().calculateSignalLevel(mRssi); in getLevel()
/frameworks/base/wifi/java/android/net/wifi/
DIWifiManager.aidl256 int calculateSignalLevel(int rssi); in calculateSignalLevel() method
DWifiManager.java2961 public static int calculateSignalLevel(int rssi, int numLevels) { in calculateSignalLevel() method in WifiManager
2982 public int calculateSignalLevel(int rssi) { in calculateSignalLevel() method in WifiManager
2984 return mService.calculateSignalLevel(rssi); in calculateSignalLevel()
2996 return calculateSignalLevel(Integer.MAX_VALUE); in getMaxSignalLevel()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java2197 when(mWifiService.calculateSignalLevel(anyInt())).thenReturn(3); in testCalculateSignalLevel()
2198 int actual = mWifiManager.calculateSignalLevel(-60); in testCalculateSignalLevel()
2199 verify(mWifiService).calculateSignalLevel(-60); in testCalculateSignalLevel()
2206 when(mWifiService.calculateSignalLevel(anyInt())).thenReturn(4); in testGetMaxSignalLevel()
2208 verify(mWifiService).calculateSignalLevel(Integer.MAX_VALUE); in testGetMaxSignalLevel()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DBaseWifiService.java626 public int calculateSignalLevel(int rssi) { in calculateSignalLevel() method in BaseWifiService
DWifiServiceImpl.java4237 public int calculateSignalLevel(int rssi) {
4238 return RssiUtil.calculateSignalLevel(mContext, rssi);
DClientModeImpl.java2458 int newSignalLevel = RssiUtil.calculateSignalLevel(mContext, newRssi); in fetchRssiLinkSpeedAndFrequencyNative()
2549 RssiUtil.calculateSignalLevel(mContext, newRssi)); in sendRssiChangeBroadcast()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java168 }).when(mMockWm).calculateSignalLevel(anyInt()); in setUp()
/frameworks/base/wifi/api/
Dcurrent.txt307 method @Deprecated public static int calculateSignalLevel(int, int);
308 method @IntRange(from=0) public int calculateSignalLevel(int);
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java527 when(mMockWifiManager.calculateSignalLevel(rssi)).thenReturn(4);
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java5840 int strengthBin = WifiManager.calculateSignalLevel(newRssi, NUM_WIFI_SIGNAL_STRENGTH_BINS); in noteWifiRssiChangedLocked()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/base/api/
Dcurrent.txt31387 method @Deprecated public static int calculateSignalLevel(int, int);
31388 method @IntRange(from=0) public int calculateSignalLevel(int);
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt18030 method public static int calculateSignalLevel(int, int);