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.java132 } else if (level >= AccessPoint.SIGNAL_LEVELS) { in setLevel()
136 float outputRange = AccessPoint.SIGNAL_LEVELS - 1; in setLevel()
DAccessPoint.java177 public static final int SIGNAL_LEVELS = 5; field in AccessPoint
387 int difference = WifiManager.calculateSignalLevel(other.mRssi, SIGNAL_LEVELS) in compareTo()
388 - WifiManager.calculateSignalLevel(mRssi, SIGNAL_LEVELS); in compareTo()
653 return WifiManager.calculateSignalLevel(mRssi, SIGNAL_LEVELS); in getLevel()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java155 final int highLevel = AccessPoint.SIGNAL_LEVELS - 1; in testCompareTo_GivesHighLevelBeforeLowLevel()
201 .setLevel(AccessPoint.SIGNAL_LEVELS - 1).build();
617 for (int i = 0; i < AccessPoint.SIGNAL_LEVELS; i++) {
623 testAp = new TestAccessPointBuilder(mContext).setLevel(AccessPoint.SIGNAL_LEVELS).build();
624 assertThat(testAp.getLevel()).isEqualTo(AccessPoint.SIGNAL_LEVELS - 1);
634 assertThat(level).isLessThan(AccessPoint.SIGNAL_LEVELS - 1);