/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/ |
D | CoexUtilsTest.java | 20 import static android.net.wifi.WifiScanner.WIFI_BAND_24_GHZ; 73 assertThat(getNeighboringCoexUnsafeChannels(getLowerFreqKhz(1, WIFI_BAND_24_GHZ) - 100_000, in testGetNeighboringCoexUnsafeChannels_noOverlap_returnsEmptySet() 75 assertThat(getNeighboringCoexUnsafeChannels(getUpperFreqKhz(14, WIFI_BAND_24_GHZ) + 100_000, in testGetNeighboringCoexUnsafeChannels_noOverlap_returnsEmptySet() 96 lowerCoexUnsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_24_GHZ, i)); in testGetNeighboringCoexUnsafeChannels_2g_returnsCorrectOverlap() 105 upperCoexUnsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_24_GHZ, i)); in testGetNeighboringCoexUnsafeChannels_2g_returnsCorrectOverlap() 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() [all …]
|
D | CoexManagerTest.java | 23 import static android.net.wifi.WifiScanner.WIFI_BAND_24_GHZ; 208 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_24_GHZ, 6)); in testSetCoexUnsafeChannels_nonNullChannels_returnedInGetters() 227 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_24_GHZ, 6)); in testSetCoexUnsafeChannels_nullChannels_setsEmptySet() 247 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_24_GHZ, 6)); in testSetCoexUnsafeChannels_undefinedRestrictions_setsEmptySet() 266 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_24_GHZ, 6)); in testSetCoexUnsafeChannels_notifiesWifiVendorHal() 287 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_24_GHZ, 6)); in testRegisteredCoexListener_setCoexUnsafeChannels_listenerIsNotified() 312 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_24_GHZ, 6)); in testUnregisteredCoexListener_setCoexUnsafeChannels_listenerIsNotNotified() 340 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_24_GHZ, 6)); in testRegisteredRemoteCoexCallback_setCoexUnsafeChannels_callbackIsNotified() 371 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_24_GHZ, 6)); in testUnregisteredRemoteCoexCallback_setCoexUnsafeChannels_callbackIsNotNotified() 444 new CoexUnsafeChannel(WIFI_BAND_24_GHZ, 1, -50), in testGetCoexUnsafeChannels_neighboringLte40_returns2gNeighboringChannels() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | ScanResultTest.java | 68 2412, WifiScanner.WIFI_BAND_24_GHZ, 1, 69 2417, WifiScanner.WIFI_BAND_24_GHZ, 2, 70 2422, WifiScanner.WIFI_BAND_24_GHZ, 3, 71 2427, WifiScanner.WIFI_BAND_24_GHZ, 4, 72 2432, WifiScanner.WIFI_BAND_24_GHZ, 5, 73 2437, WifiScanner.WIFI_BAND_24_GHZ, 6, 74 2442, WifiScanner.WIFI_BAND_24_GHZ, 7, 75 2447, WifiScanner.WIFI_BAND_24_GHZ, 8, 76 2452, WifiScanner.WIFI_BAND_24_GHZ, 9, 77 2457, WifiScanner.WIFI_BAND_24_GHZ, 10, [all …]
|
D | CoexUnsafeChannelTest.java | 20 import static android.net.wifi.WifiScanner.WIFI_BAND_24_GHZ; 50 CoexUnsafeChannel unsafeChannel = new CoexUnsafeChannel(WIFI_BAND_24_GHZ, 6); in testGetPowerCapDbm_noPowerCap_returnsPowerCapNone() 60 CoexUnsafeChannel unsafeChannel = new CoexUnsafeChannel(WIFI_BAND_24_GHZ, 6, -50); in testGetPowerCapDbm_powerCapSet_returnsSetPowerCap() 71 new CoexUnsafeChannel(WIFI_BAND_24_GHZ, 6); in testParcelReadWrite_withOrWithoutCap_readEqualsWritten() 73 new CoexUnsafeChannel(WIFI_BAND_24_GHZ, 6, -50); in testParcelReadWrite_withOrWithoutCap_readEqualsWritten()
|
D | WifiNetworkSelectionConfigTest.java | 19 import static android.net.wifi.ScanResult.WIFI_BAND_24_GHZ; 65 .setRssiThresholds(WIFI_BAND_24_GHZ, rssi2Thresholds) in testWifiNetworkSelectionConfigParcel() 88 assertArrayEquals(rssi2Thresholds, parcelConfig.getRssiThresholds(WIFI_BAND_24_GHZ)); in testWifiNetworkSelectionConfigParcel() 109 .setRssiThresholds(WIFI_BAND_24_GHZ, null)); in testInvalidRssiThresholdArrayThrowsException() 112 .setRssiThresholds(WIFI_BAND_24_GHZ, new int[] {-200, -100, -50, 50})); in testInvalidRssiThresholdArrayThrowsException() 158 assertArrayEquals(new int[4], config.getRssiThresholds(WIFI_BAND_24_GHZ)); in testDefaultBuilder()
|
D | WifiNetworkAgentSpecifierTest.java | 93 wifiConfiguration1, ScanResult.WIFI_BAND_24_GHZ, true); in testWifiNetworkAgentSpecifierDoesNotEqualsWhenKeyMgmtDifferent() 99 wifiConfiguration2, ScanResult.WIFI_BAND_24_GHZ, true); in testWifiNetworkAgentSpecifierDoesNotEqualsWhenKeyMgmtDifferent() 137 wifiConfiguration1, ScanResult.WIFI_BAND_24_GHZ, false); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenBssidDifferent() 143 wifiConfiguration2, ScanResult.WIFI_BAND_24_GHZ, false); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenBssidDifferent() 275 wifiConfigurationNetworkAgent, ScanResult.WIFI_BAND_24_GHZ, true); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidPattern() 287 ScanResult.WIFI_BAND_24_GHZ, in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidPattern() 327 ScanResult.WIFI_BAND_24_GHZ, in testWifiNetworkAgentSpecifierBandMatching() 456 ScanResult.WIFI_BAND_24_GHZ, in testWifiNetworkAgentSpecifierLocalOnlyMatching() 518 wifiConfigurationNetworkAgent, ScanResult.WIFI_BAND_24_GHZ, true); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidAndBssidPattern() 531 ScanResult.WIFI_BAND_24_GHZ, in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidAndBssidPattern()
|
D | WifiNetworkSpecifierTest.java | 743 ScanResult.WIFI_BAND_24_GHZ, in testWifiNetworkSpecifierDoesNotSatisfyWhenKeyMgmtDifferent() 752 ScanResult.WIFI_BAND_24_GHZ, in testWifiNetworkSpecifierDoesNotSatisfyWhenKeyMgmtDifferent() 803 ScanResult.WIFI_BAND_24_GHZ, in testWifiNetworkSpecifierDoesNotSatisfyWhenBssidDifferent() 810 ScanResult.WIFI_BAND_24_GHZ, in testWifiNetworkSpecifierDoesNotSatisfyWhenBssidDifferent() 829 ScanResult.WIFI_BAND_24_GHZ, in testWifiNetworkSpecifierBandMatching() 836 ScanResult.WIFI_BAND_24_GHZ, in testWifiNetworkSpecifierBandMatching()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | BaseWifiScannerImplTest.java | 121 WifiScanner.WIFI_BAND_24_GHZ) in singleScanSuccess() 126 expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ), in singleScanSuccess() 128 ScanResults.create(0, WifiScanner.WIFI_BAND_24_GHZ, in singleScanSuccess() 171 WifiScanner.WIFI_BAND_24_GHZ) in singleScanSuccessWithFullResults() 174 doSuccessfulSingleScanTest(settings, expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ), in singleScanSuccessWithFullResults() 176 ScanResults.create(0, WifiScanner.WIFI_BAND_24_GHZ, in singleScanSuccessWithFullResults() 239 WifiScanner.WIFI_BAND_24_GHZ) in overlappingSingleScanFails() 266 WifiScanner.WIFI_BAND_24_GHZ) in singleScanFailOnExecute() 295 WifiScanner.WIFI_BAND_24_GHZ) in singleScanFailOnTimeout() 328 WifiScanner.WIFI_BAND_24_GHZ) in singleScanFailOnFailedEvent() [all …]
|
D | KnownBandsChannelHelperTest.java | 98 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_24_GHZ, in band() 150 testBand(CHANNELS_24_GHZ, WifiScanner.WIFI_BAND_24_GHZ); in channels24Ghz() 259 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_24_GHZ, in settingsWithBand() 377 mChannelCollection.addBand(WifiScanner.WIFI_BAND_24_GHZ); in clear() 399 mChannelCollection.addBand(WifiScanner.WIFI_BAND_24_GHZ); in addBand() 403 assertThat(bucketSettings, bandIs(WifiScanner.WIFI_BAND_24_GHZ)); in addBand() 463 mChannelCollection.addBand(WifiScanner.WIFI_BAND_24_GHZ); in addChannel_and_addBand_sameBand() 468 assertThat(bucketSettings, bandIs(WifiScanner.WIFI_BAND_24_GHZ)); in addChannel_and_addBand_sameBand() 485 mChannelCollection.addBand(WifiScanner.WIFI_BAND_24_GHZ); in addChannel_and_addBand_withDifferentBandChannel()
|
D | WificondScannerTest.java | 158 WifiScanner.WIFI_BAND_24_GHZ) in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash() 162 expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ), in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash() 164 ScanResults.create(0, WifiScanner.WIFI_BAND_24_GHZ, in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash() 183 WifiScanner.WIFI_BAND_24_GHZ) in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash() 249 WifiScanner.WIFI_BAND_24_GHZ) in testDumpWithCorrectFormatWithScanResult() 292 Set<Integer> expectedScan = expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ); in testDumpWithCorrectFormatWithScanResult() 318 WifiScanner.WIFI_BAND_24_GHZ) in testUnwantedScanResultsExcept6GhzGetFiltered() 333 Set<Integer> expectedScan = expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ); in testUnwantedScanResultsExcept6GhzGetFiltered()
|
D | ScanScheduleUtilFilterTest.java | 63 WifiScanner.WIFI_BAND_24_GHZ, 30000, 0, 20, in reportFullResultTrueForBandsWithNoBucketInfo() 74 WifiScanner.WIFI_BAND_24_GHZ, 30000, 0, 20, in reportFullResultFalseForBandsWithNoBucketInfo()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/coex/ |
D | CoexUtils.java | 20 import static android.net.wifi.WifiScanner.WIFI_BAND_24_GHZ; 158 if (band == WIFI_BAND_24_GHZ) { in getChannelEdgeKhz() 199 final int band = WIFI_BAND_24_GHZ; in get2gHighestOverlapChannel() 221 final int band = WIFI_BAND_24_GHZ; in get2gLowestOverlapChannel() 371 new CoexUnsafeChannel(WIFI_BAND_24_GHZ, channel, powerCapDbm)); in getNeighboringCoexUnsafeChannels() 426 getLowerFreqKhz(lowest2gChannel, WIFI_BAND_24_GHZ), in get2gHarmonicCoexUnsafeChannels() 427 getUpperFreqKhz(lowest2gChannel, WIFI_BAND_24_GHZ)) in get2gHarmonicCoexUnsafeChannels() 433 getLowerFreqKhz(highest2gChannel, WIFI_BAND_24_GHZ), in get2gHarmonicCoexUnsafeChannels() 434 getUpperFreqKhz(highest2gChannel, WIFI_BAND_24_GHZ)) in get2gHarmonicCoexUnsafeChannels() 441 new CoexUnsafeChannel(WIFI_BAND_24_GHZ, channel, powerCapDbm)); in get2gHarmonicCoexUnsafeChannels() [all …]
|
D | CoexManager.java | 23 import static android.net.wifi.WifiScanner.WIFI_BAND_24_GHZ; 591 WIFI_BAND_24_GHZ, in updateCoexUnsafeChannels() 666 WIFI_BAND_24_GHZ, channel, powerCapDbm)); in updateCoexUnsafeChannels() 756 if (band == WIFI_BAND_24_GHZ) { in updateCoexUnsafeChannels() 774 new Pair<>(WIFI_BAND_24_GHZ, default2gChannel)); in updateCoexUnsafeChannels()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | MultiInternetManagerTest.java | 292 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_24_GHZ, in testSetMultiInternetConnectionWorksourceOnTwoBands() 296 .contains(ScanResult.WIFI_BAND_24_GHZ)); in testSetMultiInternetConnectionWorksourceOnTwoBands() 309 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_24_GHZ, in testSetMultiInternetConnectionWorksourceOnTwoBands() 341 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_24_GHZ, in testOnInternetValidatedSecondaryCmmConnection() 356 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_24_GHZ, in testOnL3ConnectedSecondaryCmmConnection() 374 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_24_GHZ, in testOnConnectionEndPrimaryCmmConnection() 399 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_24_GHZ, in testStartConnectivityScan() 419 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_24_GHZ, in testNotifyBssidAssociatedEvent() 442 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_24_GHZ, in testGetSpecifiedBssids() 448 assertEquals(TEST_BSSID1, specifiedBssids.get(ScanResult.WIFI_BAND_24_GHZ)); in testGetSpecifiedBssids() [all …]
|
D | MultiInternetWifiNetworkFactoryTest.java | 96 .setBand(ScanResult.WIFI_BAND_24_GHZ) in setUp() 187 ScanResult.WIFI_BAND_24_GHZ, null, TEST_WORKSOURCE); in testMultiInternetHandleNetworkRequest() 237 ScanResult.WIFI_BAND_24_GHZ, null, TEST_WORKSOURCE); in testMultiInternetHandleDualBandNetworkRequest() 264 ScanResult.WIFI_BAND_24_GHZ, null, TEST_WORKSOURCE); in testHandleMultiInternetNetworkRelease() 268 ScanResult.WIFI_BAND_24_GHZ, null, null); in testHandleMultiInternetNetworkRelease()
|
D | WifiNetworkSelectorTest.java | 3441 new ArrayList(Arrays.asList(WifiScanner.WIFI_BAND_24_GHZ)), in testUpdateMultiLinkCandidatesThroughputLegacy() 3444 Arrays.asList(WifiScanner.WIFI_BAND_24_GHZ, WifiScanner.WIFI_BAND_5_GHZ)), in testUpdateMultiLinkCandidatesThroughputLegacy() 3446 Arrays.asList(WifiScanner.WIFI_BAND_24_GHZ, WifiScanner.WIFI_BAND_6_GHZ)), in testUpdateMultiLinkCandidatesThroughputLegacy() 3481 new ArrayList(Arrays.asList(WifiScanner.WIFI_BAND_24_GHZ)), in testUpdateMultiLinkCandidatesThroughputDualBand() 3484 Arrays.asList(WifiScanner.WIFI_BAND_24_GHZ, WifiScanner.WIFI_BAND_5_GHZ)), in testUpdateMultiLinkCandidatesThroughputDualBand() 3486 Arrays.asList(WifiScanner.WIFI_BAND_24_GHZ, WifiScanner.WIFI_BAND_6_GHZ)), in testUpdateMultiLinkCandidatesThroughputDualBand() 3526 new ArrayList(Arrays.asList(WifiScanner.WIFI_BAND_24_GHZ)), in testUpdateMultiLinkCandidatesThroughputTriBand() 3529 Arrays.asList(WifiScanner.WIFI_BAND_24_GHZ, WifiScanner.WIFI_BAND_5_GHZ)), in testUpdateMultiLinkCandidatesThroughputTriBand() 3531 Arrays.asList(WifiScanner.WIFI_BAND_24_GHZ, WifiScanner.WIFI_BAND_6_GHZ)), in testUpdateMultiLinkCandidatesThroughputTriBand() 3535 Arrays.asList(WifiScanner.WIFI_BAND_24_GHZ, WifiScanner.WIFI_BAND_5_GHZ, in testUpdateMultiLinkCandidatesThroughputTriBand() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | ApConfigUtilTest.java | 424 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ)) in chooseApChannel2GBandWithNoAllowedChannel() 442 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ)) in chooseApChannel2GBandWithAllowedChannels() 497 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ)) in chooseApChannelWillHighBandPrefer() 520 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ)) in chooseApChannelWithUnsafeChannelsPreferSafe() 559 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ)) in chooseApChannelWithAllSoftUnsafePreferHighBand() 566 new CoexUnsafeChannel(WifiScanner.WIFI_BAND_24_GHZ, 1), in chooseApChannelWithAllSoftUnsafePreferHighBand() 567 new CoexUnsafeChannel(WifiScanner.WIFI_BAND_24_GHZ, 6), in chooseApChannelWithAllSoftUnsafePreferHighBand() 568 new CoexUnsafeChannel(WifiScanner.WIFI_BAND_24_GHZ, 11), in chooseApChannelWithAllSoftUnsafePreferHighBand() 589 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ)) in chooseApChannelWithAllHardUnsafeSelectDefault() 596 new CoexUnsafeChannel(WifiScanner.WIFI_BAND_24_GHZ, 1), in chooseApChannelWithAllHardUnsafeSelectDefault() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | CoexUnsafeChannel.java | 19 import static android.net.wifi.WifiScanner.WIFI_BAND_24_GHZ; 117 if (mBand == WIFI_BAND_24_GHZ) { in toString()
|
D | ScanResult.java | 526 public static final int WIFI_BAND_24_GHZ = WifiScanner.WIFI_BAND_24_GHZ; field in ScanResult 563 WIFI_BAND_24_GHZ, 999 if (band1 == WIFI_BAND_24_GHZ || band2 == WIFI_BAND_24_GHZ) { in isValidCombinedBandForDual5GHz() 1029 if (band == WIFI_BAND_24_GHZ) { in convertChannelToFrequencyMhzIfSupported() 1083 return WifiScanner.WIFI_BAND_24_GHZ; in getBandFromOpClass() 1133 return ScanResult.WIFI_BAND_24_GHZ; in toBand()
|
D | WifiNetworkSelectionConfig.java | 166 case ScanResult.WIFI_BAND_24_GHZ: in isValidBand() 235 case ScanResult.WIFI_BAND_24_GHZ: in getRssiThresholds() 446 case ScanResult.WIFI_BAND_24_GHZ: in setRssiThresholds()
|
D | WifiScanner.java | 109 public static final int WIFI_BAND_24_GHZ = 1 << WIFI_BAND_INDEX_24_GHZ; field in WifiScanner 136 public static final int WIFI_BAND_BOTH = WIFI_BAND_24_GHZ | WIFI_BAND_5_GHZ; 142 WIFI_BAND_24_GHZ | WIFI_BAND_5_GHZ_DFS_ONLY; 147 WIFI_BAND_24_GHZ | WIFI_BAND_5_GHZ | WIFI_BAND_5_GHZ_DFS_ONLY; 164 WIFI_BAND_24_GHZ, 947 return (mScannedBands & WifiScanner.WIFI_BAND_24_GHZ) != 0 in isFullBandScanResults()
|
D | MloLink.java | 19 import static android.net.wifi.WifiScanner.WIFI_BAND_24_GHZ; 509 if (mBand == WIFI_BAND_24_GHZ) { in toString()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/ |
D | ChannelHelper.java | 345 if ((band & WifiScanner.WIFI_BAND_24_GHZ) != 0) { in bandToString() 348 band &= ~WifiScanner.WIFI_BAND_24_GHZ; in bandToString()
|
D | KnownBandsChannelHelper.java | 19 import static android.net.wifi.WifiScanner.WIFI_BAND_24_GHZ; 191 return WIFI_BAND_24_GHZ; in getBandFromChannel() 209 case WIFI_BAND_24_GHZ: in getIndexForBand()
|
D | WificondChannelHelper.java | 43 mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ); in updateChannels()
|