Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/
DCoexUtilsTest.java54 private int getHarmonicUlFreqKhz(int unsafeLowerKhz, int unsafeUpperKhz, int harmonicDeg) { in getHarmonicUlFreqKhz() argument
55 return (unsafeLowerKhz + unsafeUpperKhz) / (harmonicDeg * 2); in getHarmonicUlFreqKhz()
58 private int getHarmonicUlBandwidthKhz(int unsafeLowerKhz, int unsafeUpperKhz, int harmonicDeg) { in getHarmonicUlBandwidthKhz() argument
59 return (unsafeUpperKhz - unsafeLowerKhz) / harmonicDeg; in getHarmonicUlBandwidthKhz()
213 int unsafeUpperKhz = getLowerFreqKhz(7, WIFI_BAND_24_GHZ) + 5_000; in testGet2gHarmonicUnsafeChannels_exampleInputs_returnsCorrectOverlap() local
215 getHarmonicUlFreqKhz(unsafeLowerKhz, unsafeUpperKhz, harmonicDeg), in testGet2gHarmonicUnsafeChannels_exampleInputs_returnsCorrectOverlap()
216 getHarmonicUlBandwidthKhz(unsafeLowerKhz, unsafeUpperKhz, harmonicDeg), in testGet2gHarmonicUnsafeChannels_exampleInputs_returnsCorrectOverlap()
227 unsafeUpperKhz = getUpperFreqKhz(14, WIFI_BAND_24_GHZ) + 5_000; in testGet2gHarmonicUnsafeChannels_exampleInputs_returnsCorrectOverlap()
229 getHarmonicUlFreqKhz(unsafeLowerKhz, unsafeUpperKhz, harmonicDeg), in testGet2gHarmonicUnsafeChannels_exampleInputs_returnsCorrectOverlap()
230 getHarmonicUlBandwidthKhz(unsafeLowerKhz, unsafeUpperKhz, harmonicDeg), in testGet2gHarmonicUnsafeChannels_exampleInputs_returnsCorrectOverlap()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/coex/
DCoexUtils.java360 final int unsafeUpperKhz = cellFreqKhz + (cellBandwidthKhz / 2) + thresholdKhz; in getNeighboringCoexUnsafeChannels() local
364 final int highest2gChannel = get2gHighestOverlapChannel(unsafeUpperKhz); in getNeighboringCoexUnsafeChannels()
376 final int highest5gChannel = get5gHighestOverlap20MhzChannel(unsafeUpperKhz); in getNeighboringCoexUnsafeChannels()
418 final int unsafeUpperKhz = (ulFreqKhz + (ulBandwidthKhz / 2)) * harmonicDegree; in get2gHarmonicCoexUnsafeChannels() local
421 int highest2gChannel = get2gHighestOverlapChannel(unsafeUpperKhz); in get2gHarmonicCoexUnsafeChannels()
425 while (lowest2gChannel <= 14 && getOverlapPercent(unsafeLowerKhz, unsafeUpperKhz, in get2gHarmonicCoexUnsafeChannels()
432 while (highest2gChannel >= 1 && getOverlapPercent(unsafeLowerKhz, unsafeUpperKhz, in get2gHarmonicCoexUnsafeChannels()
457 final int unsafeUpperKhz = (ulFreqKhz + (ulBandwidthKhz / 2)) * harmonicDegree; in get5gHarmonicCoexUnsafeChannels() local
460 final int highest5gChannel = get5gHighestOverlap20MhzChannel(unsafeUpperKhz); in get5gHarmonicCoexUnsafeChannels()
465 overlapPercents.put(lowest5gChannel, getOverlapPercent(unsafeLowerKhz, unsafeUpperKhz, in get5gHarmonicCoexUnsafeChannels()
[all …]