Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/
DCoexUtilsTest.java29 import static com.android.server.wifi.coex.CoexUtils.getOffsetChannel;
394 assertThat(getOffsetChannel(10, 1_000, 1)) in testGetOffsetChannel_differentChannelStepSize_returnsChannels()
396 assertThat(getOffsetChannel(10, 5_000, 1)) in testGetOffsetChannel_differentChannelStepSize_returnsChannels()
398 assertThat(getOffsetChannel(10, 5_001, 1)) in testGetOffsetChannel_differentChannelStepSize_returnsChannels()
400 assertThat(getOffsetChannel(10, 12_000, 1)) in testGetOffsetChannel_differentChannelStepSize_returnsChannels()
403 assertThat(getOffsetChannel(10, 21_000, 2)) in testGetOffsetChannel_differentChannelStepSize_returnsChannels()
405 assertThat(getOffsetChannel(10, 21_000, 3)) in testGetOffsetChannel_differentChannelStepSize_returnsChannels()
407 assertThat(getOffsetChannel(10, 21_000, 4)) in testGetOffsetChannel_differentChannelStepSize_returnsChannels()
411 assertThat(getOffsetChannel(10, -1_000, 1)) in testGetOffsetChannel_differentChannelStepSize_returnsChannels()
413 assertThat(getOffsetChannel(10, -5_000, 1)) in testGetOffsetChannel_differentChannelStepSize_returnsChannels()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/coex/
DCoexUtils.java208 return getOffsetChannel(1, upperEdgeKhz - chan1LowerFreqKhz, 1); in get2gHighestOverlapChannel()
227 return getOffsetChannel(13, lowerEdgeKhz - chan13UpperFreqKhz, 1); in get2gLowestOverlapChannel()
250 return getOffsetChannel(149, upperEdgeKhz - chan149LowerFreqKhz, 4); in get5gHighestOverlap20MhzChannel()
258 return getOffsetChannel(96, upperEdgeKhz - chan96LowerFreqKhz, 4); in get5gHighestOverlap20MhzChannel()
266 return getOffsetChannel(32, upperEdgeKhz - chan32LowerFreqKhz, 4); in get5gHighestOverlap20MhzChannel()
286 return getOffsetChannel(68, lowerEdgeKhz - chan68UpperFreqKhz, 4); in get5gLowestOverlap20MhzChannel()
294 return getOffsetChannel(144, lowerEdgeKhz - chan144UpperFreqKhz, 4); in get5gLowestOverlap20MhzChannel()
302 return getOffsetChannel(173, lowerEdgeKhz - chan173UpperFreqKhz, 4); in get5gLowestOverlap20MhzChannel()
319 /* package */ static int getOffsetChannel( in getOffsetChannel() method in CoexUtils