/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | WifiNetworkAgentSpecifier.java | 137 return ns.getBand() == ScanResult.WIFI_BAND_5_GHZ_LOW in satisfiesNetworkSpecifier() 138 || ns.getBand() == ScanResult.WIFI_BAND_5_GHZ; in satisfiesNetworkSpecifier() 140 return ns.getBand() == ScanResult.WIFI_BAND_5_GHZ_HIGH in satisfiesNetworkSpecifier() 141 || ns.getBand() == ScanResult.WIFI_BAND_5_GHZ; in satisfiesNetworkSpecifier() 143 return ns.getBand() == mBand; in satisfiesNetworkSpecifier() 146 if (ns.getBand() != ScanResult.UNSPECIFIED && ns.getBand() != mBand) { in satisfiesNetworkSpecifier()
|
D | CoexUnsafeChannel.java | 82 public @WifiAnnotations.WifiBandBasic int getBand() { in getBand() method in CoexUnsafeChannel
|
D | WifiNetworkSpecifier.java | 73 @WifiBand public static int getBand(final int freqMHz) { in getBand() method in WifiNetworkSpecifier 747 @WifiBand public int getBand() { in getBand() method in WifiNetworkSpecifier
|
D | SoftApConfiguration.java | 847 public @BandType int getBand() { in getBand() method in SoftApConfiguration 1259 switch (getBand()) { in toWifiConfiguration() 1273 Log.e(TAG, "Convert fail, unsupported band setting :" + getBand()); in toWifiConfiguration()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | SoftApStoreDataTest.java | 507 assertEquals(softApConfig.getBand(), TEST_BAND_2G); in deserializeSoftAp() 510 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeSoftAp() 551 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeOldSoftApXMLWhichShutdownTimeoutIsInt() 579 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeOldSsidSoftAp() 601 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeOldBandSoftAp() 623 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeNewBandSoftApButNoNewConfig() 658 assertEquals(softApConfig.getBand(), softApConfigDeserialized.getBand()); in serializeDeserializeSoftAp() 695 assertEquals(softApConfig.getBand(), softApConfigDeserialized.getBand()); in serializeDeserializeSoftApWpa3Sae() 732 assertEquals(softApConfig.getBand(), softApConfigDeserialized.getBand()); in serializeDeserializeSoftApWpa3SaeTransition() 788 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeSoftApWithNoBssidTag() [all …]
|
D | WifiApConfigStoreTest.java | 230 assertEquals(config1.getBand(), config2.getBand()); in verifyApConfig() 245 assertEquals(SoftApConfiguration.BAND_2GHZ, config.getBand()); in verifyDefaultApConfig() 273 assertEquals(config.getBand(), SoftApConfiguration.BAND_2GHZ); in verifyDefaultApConfig() 293 assertEquals(expectedApBand, config.getBand()); in verifyDefaultLocalOnlyApConfig() 675 assertThat(softApConfig.getBand()).isEqualTo(SoftApConfiguration.BAND_5GHZ); in generateLohsConfig_forwardsCustomBand() 681 assertThat(softApConfig.getBand()).isEqualTo(SoftApConfiguration.BAND_6GHZ); in generateLohsConfig_forwardsCustomBand() 1100 assertEquals(resetedConfig.getBand(), SoftApConfiguration.BAND_2GHZ); in testResetToDefaultForUnsupportedConfig() 1106 assertEquals(resetedConfig.getBand(), SoftApConfiguration.BAND_2GHZ); in testResetToDefaultForUnsupportedConfig() 1112 assertEquals(resetedConfig.getBand(), SoftApConfiguration.BAND_2GHZ); in testResetToDefaultForUnsupportedConfig() 1119 assertEquals(resetedConfig.getBand(), SoftApConfiguration.BAND_2GHZ); in testResetToDefaultForUnsupportedConfig() [all …]
|
D | SoftApBackupRestoreTest.java | 102 restore.getBand()); in assertWifiConfigurationEqualSoftApConfiguration() 424 out.writeInt(config.getBand()); in retrieveSpecificVersionBackupDataFromSoftApConfiguration()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | MultiInternetWifiNetworkFactory.java | 105 && wns.getBand() != ScanResult.UNSPECIFIED in isWifiMultiInternetRequest() 161 final int band = wns.getBand(); in acceptRequest() 176 final int band = wns.getBand(); in needNetworkFor() 184 wns.ssidPatternMatcher, wns.bssidPatternMatcher, wns.getBand(), in needNetworkFor() 219 final int band = ((WifiNetworkSpecifier) networkRequest.getNetworkSpecifier()).getBand(); in releaseNetworkFor()
|
D | HostapdHalHidlImp.java | 503 Log.e(TAG, "Unrecognized apBand: " + config.getBand()); in addAccessPoint() 819 ifaceParamsV1_0.channelParams.band = getHalBand(config.getBand()); in prepareIfaceParamsV1_0() 830 ifaceParamsV10.channelParams.band = getHalBand(config.getBand()); in prepareIfaceParamsV1_1() 833 if ((config.getBand() & SoftApConfiguration.BAND_2GHZ) != 0) { in prepareIfaceParamsV1_1() 838 if ((config.getBand() & SoftApConfiguration.BAND_5GHZ) != 0) { in prepareIfaceParamsV1_1() 858 ifaceParamsV1_2.channelParams.bandMask = getHalBandMask(config.getBand()); in prepareIfaceParamsV1_2() 862 config.getBand(), mContext, config)) { in prepareIfaceParamsV1_2() 863 prepareAcsChannelFreqRangesMhz(ifaceParamsV1_2.channelParams, config.getBand(), config); in prepareIfaceParamsV1_2()
|
D | WifiApConfigStore.java | 312 config.getBand(), mContext)); in resetToDefaultForUnsupportedConfig() 333 int newBand = ApConfigUtil.removeUnsupportedBands(mContext, config.getBand()); in resetToDefaultForUnsupportedConfig() 334 if (newBand != config.getBand()) { in resetToDefaultForUnsupportedConfig() 336 Log.i(TAG, "Reset band from " + config.getBand() + " to " in resetToDefaultForUnsupportedConfig()
|
D | WifiConfigurationUtil.java | 863 private static int getBand(WifiNetworkSpecifier s) { in getBand() method in WifiConfigurationUtil 864 return s.getBand(); in getBand() 903 if (!WifiNetworkSpecifier.validateBand(getBand(specifier))) { in validateNetworkSpecifier()
|
D | SoftApManager.java | 806 int band = mCurrentSoftApConfiguration.getBand(); in setCountryCode() 841 Log.d(getTag(), "startSoftAp: band " + mCurrentSoftApConfiguration.getBand()); in startSoftAp() 1318 mCurrentSoftApConfiguration.getBand(), isBridgeRequired(), in processMessageImpl() 1459 mCurrentSoftApConfiguration.getBand(), isBridgeRequired(), in processMessageImpl() 1929 int band = mCurrentSoftApConfiguration.getBand(); in updateUserBandPreferenceViolationMetricsIfNeeded()
|
D | SoftApBackupRestore.java | 118 out.writeInt(config.getBand()); in retrieveBackupDataFromSoftApConfiguration()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/ |
D | WifiTetherApBandPreferenceControllerTest.java | 133 assertThat(mCarWifiManager.getSoftApConfig().getBand()) in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz() 148 assertThat(mCarWifiManager.getSoftApConfig().getBand()) in onPreferenceChangedTo2Ghz_updatesApBandConfigTo2Ghz() 175 assertThat(mCarWifiManager.getSoftApConfig().getBand()) in onPreferenceChangedTo5Ghz_defaultToApBandAny()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | SoftApConfigurationTest.java | 111 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in testBasicSettings() 187 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in testWpa2() 237 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_5GHZ); in testWpa2WithAllFieldCustomized() 286 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_5GHZ); in testWpa3Sae() 313 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_5GHZ); in testWpa3SaeTransition() 341 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_5GHZ); in testWpa3OweTransition() 373 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_5GHZ); in testWpa3Owe() 641 assertThat(dual_bands_config.getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in testDualBands() 658 assertThat(dual_channels_config.getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in testDualChannels() 673 assertThat(dual_channels_config.getBand()).isEqualTo(SoftApConfiguration.BAND_5GHZ); in testDualChannels()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/coex/ |
D | CoexUtils.java | 693 config.getBand(), in CoexCellChannel() 705 public int getBand() { in getBand() method in CoexUtils.CoexCellChannel 747 return getRat() == that.getRat() && getBand() == that.getBand() in equals() 757 return Objects.hash(getRat(), getBand(), getDownlinkFreqKhz(), in hashCode()
|
D | CoexManager.java | 477 entry = mLteTableEntriesByBand.get(cellChannel.getBand()); in updateCoexUnsafeChannels() 480 entry = mNrTableEntriesByBand.get(cellChannel.getBand()); in updateCoexUnsafeChannels() 701 && cellChannel.getBand() == AccessNetworkConstants.EutranBand.BAND_46) { in updateCoexUnsafeChannels() 739 final int band = unsafeChannel.getBand(); in updateCoexUnsafeChannels() 831 mLteTableEntriesByBand.put(entry.getBand(), entry); in readTableFromXml() 833 mNrTableEntriesByBand.put(entry.getBand(), entry); in readTableFromXml()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | ApConfigUtilTest.java | 625 .getBand()); in updateBandMask6gSecurityRestriction() 633 .getBand()); in updateBandMask6gSecurityRestriction() 641 .getBand()); in updateBandMask6gSecurityRestriction() 650 .getBand()); in updateBandMask6gSecurityRestriction() 659 .getBand()); in updateBandMask6gSecurityRestriction() 747 .getBand()); in verifyThatBand6GIsUpdatedWhenHalCanConvertRestrictedSecurityType() 780 assertEquals(ApConfigUtil.DEFAULT_AP_BAND, configBuilder.build().getBand()); in updateApChannelConfigWithoutHal() 809 assertEquals(SoftApConfiguration.BAND_5GHZ, configBuilder.build().getBand()); in updateApChannelConfigWithChannelSpecified() 858 assertEquals(SoftApConfiguration.BAND_5GHZ, configBuilder.build().getBand()); in updateApChannelConfigWithAcsDisabledOemConfigured() 883 configBuilder.build().getBand()); in updateApChannelConfigWithAcsEnabled() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | ApConfigUtil.java | 374 unsafeChannel.getChannel(), unsafeChannel.getBand())); in getUnsafeChannelFreqsFromCoex() 653 int configuredBand = config.getBand(); in removeUnavailableBandsFromConfig() 775 int configuredBand = config.getBand(); in remove6gBandForUnsupportedSecurity() 891 if (config.getBand() == SoftApConfiguration.BAND_5GHZ in updateApChannelConfig() 899 int freq = chooseApChannel(config.getBand(), coexManager, resources, in updateApChannelConfig() 1311 || currentConfig.getBand() != newConfig.getBand()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/ |
D | WifiTetherMaximizeCompatibilityPreferenceControllerTest.java | 226 assertThat(builder.build().getBand()) in setupMaximizeCompatibility_noConcurrencyAndSetDisabled_setBand2gOnly() 238 assertThat(builder.build().getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in setupMaximizeCompatibility_noConcurrencyAndSetEnabled_setBand2gAnd5g()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/repository/ |
D | WifiHotspotRepositoryTest.java | 475 assertThat(mSoftApConfigCaptor.getValue().getBand()).isEqualTo(BAND_2GHZ_5GHZ_6GHZ); in setSpeedType_2g5ghzTo6ghz_setConfigBandTo6ghzPreferred() 511 assertThat(mSoftApConfigCaptor.getValue().getBand()).isEqualTo(WIFI_5GHZ_BAND_PREFERRED); in setSpeedType_2ghzTo5ghz_setConfigBandTo5ghzPreferred() 521 assertThat(mSoftApConfigCaptor.getValue().getBand()).isEqualTo(WIFI_6GHZ_BAND_PREFERRED); in setSpeedType_5ghzTo6ghz_setConfigBandTo6ghzPreferred() 531 assertThat(mSoftApConfigCaptor.getValue().getBand()).isEqualTo(BAND_2GHZ); in setSpeedType_6ghzTo2ghz_setConfigBandTo2ghz()
|
/packages/apps/Settings/src/com/android/settings/wifi/tether/ |
D | WifiTetherMaximizeCompatibilityPreferenceController.java | 121 final int band = config.getBand(); in isMaximizeCompatibilityEnabled()
|
/packages/apps/Settings/src/com/android/settings/wifi/repository/ |
D | WifiHotspotRepository.java | 296 int keyBand = config.getBand(); in updateSpeedType() 360 if ((config.getBand() & BAND_6GHZ) != 0) { in setSpeedType()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/ |
D | WifiTetherSettingsTest.java | 461 assertThat(newConfig.getBand()).isEqualTo(currentConfig.getBand()); in buildNewConfig_speedFeatureIsAvailableAndPasswordChanged_bandShouldNotBeLost()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/ |
D | CoexManagerTest.java | 152 when(config.getBand()).thenReturn(band); in createMockPhysicalChannelConfig() 733 .filter(unsafeChannel -> unsafeChannel.getBand() == WIFI_BAND_5_GHZ) in testGetCoexUnsafeChannels_LAA_restrict5gSoftApAndWifiDirect() 774 .filter(unsafeChannel -> unsafeChannel.getBand() == WIFI_BAND_5_GHZ) in testGetCoexUnsafeChannels_carrierConfigsChanged_updatesUnsafeChannels()
|