Home
last modified time | relevance | path

Searched refs:SIGNAL_LEVELS (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java137 } else if (level >= AccessPoint.SIGNAL_LEVELS) { in setLevel()
141 float outputRange = AccessPoint.SIGNAL_LEVELS - 1; in setLevel()
DAccessPoint.java212 public static final int SIGNAL_LEVELS = 5; field in AccessPoint
441 int difference = WifiManager.calculateSignalLevel(other.mRssi, SIGNAL_LEVELS) in compareTo()
442 - WifiManager.calculateSignalLevel(mRssi, SIGNAL_LEVELS); in compareTo()
761 return WifiManager.calculateSignalLevel(mRssi, SIGNAL_LEVELS); in getLevel()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java182 final int highLevel = AccessPoint.SIGNAL_LEVELS - 1; in testCompareTo_GivesHighLevelBeforeLowLevel()
228 .setLevel(AccessPoint.SIGNAL_LEVELS - 1).build();
707 for (int i = 0; i < AccessPoint.SIGNAL_LEVELS; i++) {
713 testAp = new TestAccessPointBuilder(mContext).setLevel(AccessPoint.SIGNAL_LEVELS).build();
714 assertThat(testAp.getLevel()).isEqualTo(AccessPoint.SIGNAL_LEVELS - 1);
724 assertThat(level).isLessThan(AccessPoint.SIGNAL_LEVELS - 1);