Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/
DCoexUtilsTest.java30 import static com.android.server.wifi.coex.CoexUtils.getUpperFreqKhz;
75 assertThat(getNeighboringCoexUnsafeChannels(getUpperFreqKhz(14, WIFI_BAND_24_GHZ) + 100_000, in testGetNeighboringCoexUnsafeChannels_noOverlap_returnsEmptySet()
83 assertThat(getNeighboringCoexUnsafeChannels(getUpperFreqKhz(173, WIFI_BAND_5_GHZ) + 100_000, in testGetNeighboringCoexUnsafeChannels_noOverlap_returnsEmptySet()
186 assertThat(getUpperFreqKhz(1, WIFI_BAND_24_GHZ)).isEqualTo(2423_000); in testGetUpperFreqKhz_returnsCorrectValues()
187 assertThat(getUpperFreqKhz(4, WIFI_BAND_24_GHZ)).isEqualTo(2438_000); in testGetUpperFreqKhz_returnsCorrectValues()
188 assertThat(getUpperFreqKhz(6, WIFI_BAND_24_GHZ)).isEqualTo(2448_000); in testGetUpperFreqKhz_returnsCorrectValues()
189 assertThat(getUpperFreqKhz(9, WIFI_BAND_24_GHZ)).isEqualTo(2463_000); in testGetUpperFreqKhz_returnsCorrectValues()
190 assertThat(getUpperFreqKhz(14, WIFI_BAND_24_GHZ)).isEqualTo(2495_000); in testGetUpperFreqKhz_returnsCorrectValues()
191 assertThat(getUpperFreqKhz(32, WIFI_BAND_5_GHZ)).isEqualTo(5170_000); in testGetUpperFreqKhz_returnsCorrectValues()
192 assertThat(getUpperFreqKhz(50, WIFI_BAND_5_GHZ)).isEqualTo(5330_000); in testGetUpperFreqKhz_returnsCorrectValues()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/coex/
DCoexUtils.java186 /* package */ static int getUpperFreqKhz(int channel, @WifiAnnotations.WifiBandBasic int band) { in getUpperFreqKhz() method in CoexUtils
222 if (lowerEdgeKhz < getUpperFreqKhz(1, band)) { in get2gLowestOverlapChannel()
225 final int chan13UpperFreqKhz = getUpperFreqKhz(13, band); in get2gLowestOverlapChannel()
229 if (lowerEdgeKhz < getUpperFreqKhz(14, band)) { in get2gLowestOverlapChannel()
281 if (lowerEdgeKhz < getUpperFreqKhz(32, band)) { in get5gLowestOverlap20MhzChannel()
284 final int chan68UpperFreqKhz = getUpperFreqKhz(68, band); in get5gLowestOverlap20MhzChannel()
289 if (lowerEdgeKhz < getUpperFreqKhz(96, band)) { in get5gLowestOverlap20MhzChannel()
292 final int chan144UpperFreqKhz = getUpperFreqKhz(144, band); in get5gLowestOverlap20MhzChannel()
297 if (lowerEdgeKhz < getUpperFreqKhz(149, band)) { in get5gLowestOverlap20MhzChannel()
300 final int chan173UpperFreqKhz = getUpperFreqKhz(173, band); in get5gLowestOverlap20MhzChannel()
[all …]