Home
last modified time | relevance | path

Searched refs:getLowerFreqKhz (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/
DCoexUtilsTest.java27 import static com.android.server.wifi.coex.CoexUtils.getLowerFreqKhz;
73 assertThat(getNeighboringCoexUnsafeChannels(getLowerFreqKhz(1, WIFI_BAND_24_GHZ) - 100_000, in testGetNeighboringCoexUnsafeChannels_noOverlap_returnsEmptySet()
81 assertThat(getNeighboringCoexUnsafeChannels(getLowerFreqKhz(32, WIFI_BAND_5_GHZ) - 100_000, in testGetNeighboringCoexUnsafeChannels_noOverlap_returnsEmptySet()
167 assertThat(getLowerFreqKhz(1, WIFI_BAND_24_GHZ)).isEqualTo(2401_000); in testGetLowerFreqKhz_returnsCorrectValues()
168 assertThat(getLowerFreqKhz(4, WIFI_BAND_24_GHZ)).isEqualTo(2416_000); in testGetLowerFreqKhz_returnsCorrectValues()
169 assertThat(getLowerFreqKhz(6, WIFI_BAND_24_GHZ)).isEqualTo(2426_000); in testGetLowerFreqKhz_returnsCorrectValues()
170 assertThat(getLowerFreqKhz(9, WIFI_BAND_24_GHZ)).isEqualTo(2441_000); in testGetLowerFreqKhz_returnsCorrectValues()
171 assertThat(getLowerFreqKhz(0, WIFI_BAND_24_GHZ)).isEqualTo(INVALID_FREQ); in testGetLowerFreqKhz_returnsCorrectValues()
172 assertThat(getLowerFreqKhz(14, WIFI_BAND_24_GHZ)).isEqualTo(2473_000); in testGetLowerFreqKhz_returnsCorrectValues()
173 assertThat(getLowerFreqKhz(32, WIFI_BAND_5_GHZ)).isEqualTo(5150_000); in testGetLowerFreqKhz_returnsCorrectValues()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/coex/
DCoexUtils.java180 /* package */ static int getLowerFreqKhz(int channel, @WifiAnnotations.WifiBandBasic int band) { in getLowerFreqKhz() method in CoexUtils
200 if (upperEdgeKhz > getLowerFreqKhz(14, band)) { in get2gHighestOverlapChannel()
203 if (upperEdgeKhz > getLowerFreqKhz(13, band)) { in get2gHighestOverlapChannel()
206 final int chan1LowerFreqKhz = getLowerFreqKhz(1, band); in get2gHighestOverlapChannel()
245 if (upperEdgeKhz > getLowerFreqKhz(173, band)) { in get5gHighestOverlap20MhzChannel()
248 final int chan149LowerFreqKhz = getLowerFreqKhz(149, band); in get5gHighestOverlap20MhzChannel()
253 if (upperEdgeKhz > getLowerFreqKhz(144, band)) { in get5gHighestOverlap20MhzChannel()
256 final int chan96LowerFreqKhz = getLowerFreqKhz(96, band); in get5gHighestOverlap20MhzChannel()
261 if (upperEdgeKhz > getLowerFreqKhz(68, band)) { in get5gHighestOverlap20MhzChannel()
264 final int chan32LowerFreqKhz = getLowerFreqKhz(32, band); in get5gHighestOverlap20MhzChannel()
[all …]