/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/ |
D | CoexUtilsTest.java | 21 import static android.net.wifi.WifiScanner.WIFI_BAND_5_GHZ; 81 assertThat(getNeighboringCoexUnsafeChannels(getLowerFreqKhz(32, WIFI_BAND_5_GHZ) - 100_000, in testGetNeighboringCoexUnsafeChannels_noOverlap_returnsEmptySet() 83 assertThat(getNeighboringCoexUnsafeChannels(getUpperFreqKhz(173, WIFI_BAND_5_GHZ) + 100_000, in testGetNeighboringCoexUnsafeChannels_noOverlap_returnsEmptySet() 121 lowerCoexUnsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, i)); in testGetNeighboringCoexUnsafeChannels_5g_returnsCorrectOverlap() 123 lowerCoexUnsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 68)); in testGetNeighboringCoexUnsafeChannels_5g_returnsCorrectOverlap() 124 lowerCoexUnsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 96)); in testGetNeighboringCoexUnsafeChannels_5g_returnsCorrectOverlap() 125 lowerCoexUnsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 100)); in testGetNeighboringCoexUnsafeChannels_5g_returnsCorrectOverlap() 127 lowerCoexUnsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 102)); in testGetNeighboringCoexUnsafeChannels_5g_returnsCorrectOverlap() 128 lowerCoexUnsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 106)); in testGetNeighboringCoexUnsafeChannels_5g_returnsCorrectOverlap() 129 lowerCoexUnsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 114)); in testGetNeighboringCoexUnsafeChannels_5g_returnsCorrectOverlap() [all …]
|
D | CoexManagerTest.java | 24 import static android.net.wifi.WifiScanner.WIFI_BAND_5_GHZ; 209 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 36)); in testSetCoexUnsafeChannels_nonNullChannels_returnedInGetters() 228 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 36)); in testSetCoexUnsafeChannels_nullChannels_setsEmptySet() 248 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 36)); in testSetCoexUnsafeChannels_undefinedRestrictions_setsEmptySet() 267 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 36)); in testSetCoexUnsafeChannels_notifiesWifiVendorHal() 288 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 36)); in testRegisteredCoexListener_setCoexUnsafeChannels_listenerIsNotified() 313 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 36)); in testUnregisteredCoexListener_setCoexUnsafeChannels_listenerIsNotNotified() 341 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 36)); in testRegisteredRemoteCoexCallback_setCoexUnsafeChannels_callbackIsNotified() 372 unsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 36)); in testUnregisteredRemoteCoexCallback_setCoexUnsafeChannels_callbackIsNotNotified() 476 new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 32, -50), in testGetCoexUnsafeChannels_neighboringLte46_returns5gNeighboringChannels() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | ScanResultTest.java | 85 5170, WifiScanner.WIFI_BAND_5_GHZ, 34, 86 5180, WifiScanner.WIFI_BAND_5_GHZ, 36, 87 5190, WifiScanner.WIFI_BAND_5_GHZ, 38, 88 5200, WifiScanner.WIFI_BAND_5_GHZ, 40, 89 5210, WifiScanner.WIFI_BAND_5_GHZ, 42, 90 5220, WifiScanner.WIFI_BAND_5_GHZ, 44, 91 5230, WifiScanner.WIFI_BAND_5_GHZ, 46, 92 5240, WifiScanner.WIFI_BAND_5_GHZ, 48, 93 5260, WifiScanner.WIFI_BAND_5_GHZ, 52, 94 5280, WifiScanner.WIFI_BAND_5_GHZ, 56, [all …]
|
D | WifiNetworkAgentSpecifierTest.java | 115 wifiConfiguration1, ScanResult.WIFI_BAND_5_GHZ, true); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenSsidDifferent() 121 wifiConfiguration2, ScanResult.WIFI_BAND_5_GHZ, true); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenSsidDifferent() 197 ScanResult.WIFI_BAND_5_GHZ, in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern() 226 ScanResult.WIFI_BAND_5_GHZ, in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern() 255 ScanResult.WIFI_BAND_5_GHZ, in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern() 303 wifiConfigurationNetworkAgent, ScanResult.WIFI_BAND_5_GHZ, true); in testWifiNetworkAgentSpecifierBandMatching() 318 ScanResult.WIFI_BAND_5_GHZ, in testWifiNetworkAgentSpecifierBandMatching() 363 wifiConfigurationNetworkAgent, ScanResult.WIFI_BAND_5_GHZ, false); in testWifiNetworkAgentSpecifierDual5GHZBandMatching() 375 ScanResult.WIFI_BAND_5_GHZ, in testWifiNetworkAgentSpecifierDual5GHZBandMatching() 433 wifiConfigurationNetworkAgent, ScanResult.WIFI_BAND_5_GHZ, true); in testWifiNetworkAgentSpecifierLocalOnlyMatching() [all …]
|
D | WifiNetworkSelectionConfigTest.java | 20 import static android.net.wifi.ScanResult.WIFI_BAND_5_GHZ; 66 .setRssiThresholds(WIFI_BAND_5_GHZ, rssi5Thresholds) in testWifiNetworkSelectionConfigParcel() 89 assertArrayEquals(rssi5Thresholds, parcelConfig.getRssiThresholds(WIFI_BAND_5_GHZ)); in testWifiNetworkSelectionConfigParcel() 115 .setRssiThresholds(WIFI_BAND_5_GHZ, new int[] {-100, -60, -70, -50})); in testInvalidRssiThresholdArrayThrowsException() 118 .setRssiThresholds(WIFI_BAND_5_GHZ, new int[] {-60, -60, -50, -40})); in testInvalidRssiThresholdArrayThrowsException() 121 .setRssiThresholds(WIFI_BAND_5_GHZ, new int[] {-127, -60, -50, -1})); in testInvalidRssiThresholdArrayThrowsException() 124 .setRssiThresholds(WIFI_BAND_5_GHZ, new int[] {-126, -60, -50, 0})); in testInvalidRssiThresholdArrayThrowsException() 159 assertArrayEquals(new int[4], config.getRssiThresholds(WIFI_BAND_5_GHZ)); in testDefaultBuilder()
|
D | WifiNetworkSpecifierTest.java | 19 import static android.net.wifi.ScanResult.WIFI_BAND_5_GHZ; 659 WIFI_BAND_5_GHZ, in testWifiNetworkSpecifierParcel() 714 WIFI_BAND_5_GHZ, in testWifiNetworkSpecifierSatisfiesSame() 721 WIFI_BAND_5_GHZ, in testWifiNetworkSpecifierSatisfiesSame() 774 WIFI_BAND_5_GHZ, in testWifiNetworkSpecifierDoesNotSatisfyWhenSsidDifferent() 781 WIFI_BAND_5_GHZ, in testWifiNetworkSpecifierDoesNotSatisfyWhenSsidDifferent() 847 WIFI_BAND_5_GHZ, in testWifiNetworkSpecifierBandMatching() 880 WIFI_BAND_5_GHZ, in testRedact() 886 new WifiNetworkSpecifier.Builder().setBand(WIFI_BAND_5_GHZ).build(), in testRedact() 902 builder.setBand(WIFI_BAND_5_GHZ); in testSetPreferredChannel()
|
D | WifiScannerTest.java | 582 assertFalse(WifiScanner.isFullBandScan(WifiScanner.WIFI_BAND_5_GHZ, true)); in testIsFullBandScan() 585 WifiScanner.WIFI_BAND_6_GHZ | WifiScanner.WIFI_BAND_5_GHZ, true)); in testIsFullBandScan() 587 WifiScanner.WIFI_BAND_24_GHZ | WifiScanner.WIFI_BAND_5_GHZ, true)); in testIsFullBandScan() 589 WifiScanner.WIFI_BAND_24_GHZ | WifiScanner.WIFI_BAND_5_GHZ, false)); in testIsFullBandScan()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | MultiInternetManagerTest.java | 268 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_5_GHZ, in testSetMultiInternetConnectionWorksource() 272 .contains(ScanResult.WIFI_BAND_5_GHZ)); in testSetMultiInternetConnectionWorksource() 301 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_5_GHZ, in testSetMultiInternetConnectionWorksourceOnTwoBands() 304 .contains(ScanResult.WIFI_BAND_5_GHZ)); in testSetMultiInternetConnectionWorksourceOnTwoBands() 311 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_5_GHZ, in testSetMultiInternetConnectionWorksourceOnTwoBands() 322 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_5_GHZ, in testOnInternetValidatedSecondaryCmmConnection() 330 .contains(ScanResult.WIFI_BAND_5_GHZ)); in testOnInternetValidatedSecondaryCmmConnection() 332 .get(ScanResult.WIFI_BAND_5_GHZ).isValidated()); in testOnInternetValidatedSecondaryCmmConnection() 336 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_5_GHZ, in testOnInternetValidatedSecondaryCmmConnection() 346 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_5_GHZ, in testOnInternetValidatedSecondaryCmmConnection() [all …]
|
D | MultiInternetWifiNetworkFactoryTest.java | 99 .setBand(ScanResult.WIFI_BAND_5_GHZ) in setUp() 153 .setBand(ScanResult.WIFI_BAND_5_GHZ) in testIsWifiMultiInternetRequest() 162 .setBand(ScanResult.WIFI_BAND_5_GHZ) in testIsWifiMultiInternetRequest() 205 .setBand(ScanResult.WIFI_BAND_5_GHZ) in testMultiInternetHandleNetworkRequestFromSettingsWithBssid() 214 ScanResult.WIFI_BAND_5_GHZ, TEST_BSSID, TEST_WORKSOURCE); in testMultiInternetHandleNetworkRequestFromSettingsWithBssid() 219 ScanResult.WIFI_BAND_5_GHZ, TEST_BSSID, TEST_WORKSOURCE); in testMultiInternetHandleNetworkRequestFromSettingsWithBssid() 239 ScanResult.WIFI_BAND_5_GHZ, null, TEST_WORKSOURCE); in testMultiInternetHandleDualBandNetworkRequest() 285 ScanResult.WIFI_BAND_5_GHZ, null, TEST_WORKSOURCE); in testHandleMultiInternetNetworkReleaseWithMultiRequests() 293 ScanResult.WIFI_BAND_5_GHZ, null, null); in testHandleMultiInternetNetworkReleaseWithMultiRequests() 297 ScanResult.WIFI_BAND_5_GHZ, null, null); in testHandleMultiInternetNetworkReleaseWithMultiRequests()
|
D | WifiNetworkSelectorTest.java | 3442 new ArrayList(Arrays.asList(WifiScanner.WIFI_BAND_5_GHZ)), in testUpdateMultiLinkCandidatesThroughputLegacy() 3444 Arrays.asList(WifiScanner.WIFI_BAND_24_GHZ, WifiScanner.WIFI_BAND_5_GHZ)), in testUpdateMultiLinkCandidatesThroughputLegacy() 3448 Arrays.asList(WifiScanner.WIFI_BAND_5_GHZ, WifiScanner.WIFI_BAND_6_GHZ))); in testUpdateMultiLinkCandidatesThroughputLegacy() 3482 new ArrayList(Arrays.asList(WifiScanner.WIFI_BAND_5_GHZ)), in testUpdateMultiLinkCandidatesThroughputDualBand() 3484 Arrays.asList(WifiScanner.WIFI_BAND_24_GHZ, WifiScanner.WIFI_BAND_5_GHZ)), in testUpdateMultiLinkCandidatesThroughputDualBand() 3488 Arrays.asList(WifiScanner.WIFI_BAND_5_GHZ, WifiScanner.WIFI_BAND_6_GHZ))); in testUpdateMultiLinkCandidatesThroughputDualBand() 3527 new ArrayList(Arrays.asList(WifiScanner.WIFI_BAND_5_GHZ)), in testUpdateMultiLinkCandidatesThroughputTriBand() 3529 Arrays.asList(WifiScanner.WIFI_BAND_24_GHZ, WifiScanner.WIFI_BAND_5_GHZ)), in testUpdateMultiLinkCandidatesThroughputTriBand() 3533 Arrays.asList(WifiScanner.WIFI_BAND_5_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/java/com/android/server/wifi/coex/ |
D | CoexUtils.java | 21 import static android.net.wifi.WifiScanner.WIFI_BAND_5_GHZ; 160 } else if (band == WIFI_BAND_5_GHZ) { in getChannelEdgeKhz() 243 final int band = WIFI_BAND_5_GHZ; in get5gHighestOverlap20MhzChannel() 279 final int band = WIFI_BAND_5_GHZ; in get5gLowestOverlap20MhzChannel() 394 new CoexUnsafeChannel(WIFI_BAND_5_GHZ, channel, powerCapDbm)); in getNeighboringCoexUnsafeChannels() 402 coexUnsafeChannels.add(new CoexUnsafeChannel(WIFI_BAND_5_GHZ, 34, powerCapDbm)); in getNeighboringCoexUnsafeChannels() 466 getLowerFreqKhz(lowest5gChannel, WIFI_BAND_5_GHZ), in get5gHarmonicCoexUnsafeChannels() 467 getUpperFreqKhz(lowest5gChannel, WIFI_BAND_5_GHZ))); in get5gHarmonicCoexUnsafeChannels() 470 getLowerFreqKhz(highest5gChannel, WIFI_BAND_5_GHZ), in get5gHarmonicCoexUnsafeChannels() 471 getUpperFreqKhz(highest5gChannel, WIFI_BAND_5_GHZ))); in get5gHarmonicCoexUnsafeChannels() [all …]
|
D | CoexManager.java | 24 import static android.net.wifi.WifiScanner.WIFI_BAND_5_GHZ; 617 WIFI_BAND_5_GHZ, in updateCoexUnsafeChannels() 693 WIFI_BAND_5_GHZ, channel, powerCapDbm)); in updateCoexUnsafeChannels() 709 new CoexUnsafeChannel(WIFI_BAND_5_GHZ, channel)); in updateCoexUnsafeChannels() 758 } else if (band == WIFI_BAND_5_GHZ) { in updateCoexUnsafeChannels() 782 new Pair<>(WIFI_BAND_5_GHZ, default5gChannel)); in updateCoexUnsafeChannels()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | ChannelHelperTest.java | 78 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_5_GHZ, in bucketSettings_band() 103 assertEquals("5Ghz (no DFS)", ChannelHelper.bandToString(WifiScanner.WIFI_BAND_5_GHZ)); in bandToString_ShouldReturnApproapriateString() 189 testBucket.band = WifiScanner.WIFI_BAND_5_GHZ; in addChannelsWifiNativeBucket_band() 193 verify(mChannelCollection).addBand(WifiScanner.WIFI_BAND_5_GHZ); in addChannelsWifiNativeBucket_band()
|
D | WificondScannerTest.java | 100 WifiScanner.WIFI_BAND_5_GHZ) in singleScanNotIssuedIfNoAvailableChannels() 124 WifiScanner.WIFI_BAND_5_GHZ) in cleanupReportsFailureIfScanInProgress()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | ApConfigUtilTest.java | 483 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ)) in chooseApChannel5GBandWithNoAllowedChannels() 501 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ)) in chooseApChannelWillHighBandPrefer() 524 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ)) in chooseApChannelWithUnsafeChannelsPreferSafe() 527 new CoexUnsafeChannel(WifiScanner.WIFI_BAND_5_GHZ, 149), in chooseApChannelWithUnsafeChannelsPreferSafe() 528 new CoexUnsafeChannel(WifiScanner.WIFI_BAND_5_GHZ, 153) in chooseApChannelWithUnsafeChannelsPreferSafe() 563 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ)) in chooseApChannelWithAllSoftUnsafePreferHighBand() 569 new CoexUnsafeChannel(WifiScanner.WIFI_BAND_5_GHZ, 149), in chooseApChannelWithAllSoftUnsafePreferHighBand() 570 new CoexUnsafeChannel(WifiScanner.WIFI_BAND_5_GHZ, 153) in chooseApChannelWithAllSoftUnsafePreferHighBand() 593 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ)) in chooseApChannelWithAllHardUnsafeSelectDefault() 599 new CoexUnsafeChannel(WifiScanner.WIFI_BAND_5_GHZ, 149), in chooseApChannelWithAllHardUnsafeSelectDefault() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | CoexUnsafeChannel.java | 20 import static android.net.wifi.WifiScanner.WIFI_BAND_5_GHZ; 119 } else if (mBand == WIFI_BAND_5_GHZ) { in toString()
|
D | WifiNetworkSelectionConfig.java | 167 case ScanResult.WIFI_BAND_5_GHZ: in isValidBand() 237 case ScanResult.WIFI_BAND_5_GHZ: in getRssiThresholds() 449 case ScanResult.WIFI_BAND_5_GHZ: in setRssiThresholds()
|
D | WifiNetworkAgentSpecifier.java | 138 || ns.getBand() == ScanResult.WIFI_BAND_5_GHZ; in satisfiesNetworkSpecifier() 141 || ns.getBand() == ScanResult.WIFI_BAND_5_GHZ; in satisfiesNetworkSpecifier()
|
D | ScanResult.java | 531 public static final int WIFI_BAND_5_GHZ = WifiScanner.WIFI_BAND_5_GHZ; field in ScanResult 564 WIFI_BAND_5_GHZ, 1039 if (band == WIFI_BAND_5_GHZ) { in convertChannelToFrequencyMhzIfSupported() 1087 return WifiScanner.WIFI_BAND_5_GHZ; in getBandFromOpClass() 1135 return ScanResult.WIFI_BAND_5_GHZ; in toBand()
|
D | WifiScanner.java | 111 public static final int WIFI_BAND_5_GHZ = 1 << WIFI_BAND_INDEX_5_GHZ; field in WifiScanner 136 public static final int WIFI_BAND_BOTH = WIFI_BAND_24_GHZ | WIFI_BAND_5_GHZ; 144 public static final int WIFI_BAND_5_GHZ_WITH_DFS = WIFI_BAND_5_GHZ | WIFI_BAND_5_GHZ_DFS_ONLY; 147 WIFI_BAND_24_GHZ | WIFI_BAND_5_GHZ | WIFI_BAND_5_GHZ_DFS_ONLY; 165 WIFI_BAND_5_GHZ, 948 && (mScannedBands & WifiScanner.WIFI_BAND_5_GHZ) != 0; in isFullBandScanResults()
|
D | MloLink.java | 20 import static android.net.wifi.WifiScanner.WIFI_BAND_5_GHZ; 511 } else if (mBand == WIFI_BAND_5_GHZ) { in toString()
|
D | WifiAnnotations.java | 47 WifiScanner.WIFI_BAND_5_GHZ,
|
D | WifiNetworkSpecifier.java | 77 return ScanResult.WIFI_BAND_5_GHZ; in getBand() 112 case ScanResult.WIFI_BAND_5_GHZ: in validateBand()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/ |
D | KnownBandsChannelHelper.java | 20 import static android.net.wifi.WifiScanner.WIFI_BAND_5_GHZ; 196 return WIFI_BAND_5_GHZ; in getBandFromChannel() 211 case WIFI_BAND_5_GHZ: in getIndexForBand()
|
D | WificondChannelHelper.java | 45 int[] channels5G = mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ); in updateChannels()
|