Home
last modified time | relevance | path

Searched refs:getBand (Results 1 – 25 of 38) sorted by relevance

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSoftApStoreDataTest.java390 assertEquals(softApConfig.getBand(), TEST_BAND_2G); in deserializeSoftAp()
393 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeSoftAp()
431 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeOldSoftApXMLWhichShutdownTimeoutIsInt()
459 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeOldBandSoftAp()
481 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeNewBandSoftApButNoNewConfig()
516 assertEquals(softApConfig.getBand(), softApConfigDeserialized.getBand()); in serializeDeserializeSoftAp()
553 assertEquals(softApConfig.getBand(), softApConfigDeserialized.getBand()); in serializeDeserializeSoftApWpa3Sae()
590 assertEquals(softApConfig.getBand(), softApConfigDeserialized.getBand()); in serializeDeserializeSoftApWpa3SaeTransition()
646 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeSoftApWithNoBssidTag()
675 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeSoftApWithAllConfigInR()
[all …]
DWifiApConfigStoreTest.java188 assertEquals(config1.getBand(), config2.getBand()); in verifyApConfig()
204 assertEquals(SoftApConfiguration.BAND_2GHZ, config.getBand()); in verifyDefaultApConfig()
227 assertEquals(config.getBand(), SoftApConfiguration.BAND_2GHZ); in verifyDefaultApConfig()
247 assertEquals(expectedApBand, config.getBand()); in verifyDefaultLocalOnlyApConfig()
888 assertEquals(resetedConfig.getBand(), SoftApConfiguration.BAND_2GHZ); in testResetToDefaultForUnsupportedConfig()
894 assertEquals(resetedConfig.getBand(), SoftApConfiguration.BAND_2GHZ); in testResetToDefaultForUnsupportedConfig()
900 assertEquals(resetedConfig.getBand(), SoftApConfiguration.BAND_2GHZ); in testResetToDefaultForUnsupportedConfig()
907 assertEquals(resetedConfig.getBand(), SoftApConfiguration.BAND_2GHZ); in testResetToDefaultForUnsupportedConfig()
927 assertEquals(resetedConfig.getBand(), in testResetToDefaultForUnsupportedConfig()
934 assertEquals(resetedConfig.getBand(), in testResetToDefaultForUnsupportedConfig()
[all …]
DSoftApBackupRestoreTest.java99 restore.getBand()); in assertWifiConfigurationEqualSoftApConfiguration()
352 out.writeInt(config.getBand()); in retrieveVersion5BackupDataFromSoftApConfiguration()
430 out.writeInt(config.getBand()); in retrieveVersion6BackupDataFromSoftApConfiguration()
456 out.writeInt(config.getBand()); in retrieveVersion7BackupDataFromSoftApConfiguration()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherApBandPreferenceController.java66 } else if (!is5GhzBandSupported() && config.getBand() == SoftApConfiguration.BAND_5GHZ) { in updateState()
71 mBand = newConfig.getBand(); in updateState()
73 mBand = validateSelection(config.getBand()); in updateState()
80 preference.setValue(Integer.toString(config.getBand())); in updateState()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DSoftApConfigurationTest.java85 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in testBasicSettings()
119 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in testWpa2()
162 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_5GHZ); in testWpa2WithAllFieldCustomized()
203 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_5GHZ); in testWpa3Sae()
230 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_5GHZ); in testWpa3SaeTransition()
400 assertThat(dual_bands_config.getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in testDualBands()
417 assertThat(dual_channels_config.getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in testDualChannels()
432 assertThat(dual_channels_config.getBand()).isEqualTo(SoftApConfiguration.BAND_5GHZ); in testDualChannels()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiNetworkAgentSpecifier.java136 return ns.getBand() == mBand; in satisfiesNetworkSpecifier()
138 if (ns.getBand() != ScanResult.UNSPECIFIED && ns.getBand() != mBand) { in satisfiesNetworkSpecifier()
DSoftApConfiguration.java548 public @BandType int getBand() { in getBand() method in SoftApConfiguration
826 switch (getBand()) { in toWifiConfiguration()
840 Log.e(TAG, "Convert fail, unsupported band setting :" + getBand()); in toWifiConfiguration()
DWifiNetworkSpecifier.java69 @WifiBand public static int getBand(final int freqMHz) { in getBand() method in WifiNetworkSpecifier
684 @WifiBand public int getBand() { in getBand() method in WifiNetworkSpecifier
DCoexUnsafeChannel.java82 public @WifiAnnotations.WifiBandBasic int getBand() { in getBand() method in CoexUnsafeChannel
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiApConfigStore.java244 config.getBand(), mContext)); in resetToDefaultForUnsupportedConfig()
265 int newBand = ApConfigUtil.removeUnsupportedBands(mContext, config.getBand()); in resetToDefaultForUnsupportedConfig()
266 if (newBand != config.getBand()) { in resetToDefaultForUnsupportedConfig()
268 Log.i(TAG, "Reset band from " + config.getBand() + " to " in resetToDefaultForUnsupportedConfig()
581 if (!ApConfigUtil.isBandSupported(apConfig.getBand(), context)) { in validateApWifiConfiguration()
DHostapdHal.java473 Log.e(TAG, "Unrecognized apBand: " + config.getBand()); in addAccessPoint()
768 ifaceParamsV1_0.channelParams.band = getHalBand(config.getBand()); in prepareIfaceParamsV1_0()
779 ifaceParamsV10.channelParams.band = getHalBand(config.getBand()); in prepareIfaceParamsV1_1()
782 if ((config.getBand() & SoftApConfiguration.BAND_2GHZ) != 0) { in prepareIfaceParamsV1_1()
787 if ((config.getBand() & SoftApConfiguration.BAND_5GHZ) != 0) { in prepareIfaceParamsV1_1()
807 ifaceParamsV1_2.channelParams.bandMask = getHalBandMask(config.getBand()); in prepareIfaceParamsV1_2()
811 config.getBand(), mContext)) { in prepareIfaceParamsV1_2()
812 prepareAcsChannelFreqRangesMhz(ifaceParamsV1_2.channelParams, config.getBand()); in prepareIfaceParamsV1_2()
DSoftApManager.java475 pw.println("mCurrentSoftApConfiguration.mBand: " + mCurrentSoftApConfiguration.getBand()); in dump()
591 int band = mCurrentSoftApConfiguration.getBand(); in setCountryCode()
621 Log.d(getTag(), "band " + mCurrentSoftApConfiguration.getBand() + " iface " in startSoftAp()
896 mCurrentSoftApConfiguration.getBand(), isBridgedMode()); in processMessage()
1343 int band = mCurrentSoftApConfiguration.getBand(); in updateUserBandPreferenceViolationMetricsIfNeeded()
DWifiConfigurationUtil.java773 private static int getBand(WifiNetworkSpecifier s) { in getBand() method in WifiConfigurationUtil
774 return s.getBand(); in getBand()
811 if (!WifiNetworkSpecifier.validateBand(getBand(specifier))) { in validateNetworkSpecifier()
DSoftApBackupRestore.java90 out.writeInt(config.getBand()); in retrieveBackupDataFromSoftApConfiguration()
DSoftApStoreData.java128 XmlUtil.writeNextValue(out, XML_TAG_AP_BAND, softApConfig.getBand()); in serializeData()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiTetherApBandPreferenceControllerTest.java133 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/service/java/com/android/server/wifi/coex/
DCoexUtils.java601 config.getBand(), in CoexCellChannel()
613 public int getBand() { in getBand() method in CoexUtils.CoexCellChannel
655 return getRat() == that.getRat() && getBand() == that.getBand() in equals()
665 return Objects.hash(getRat(), getBand(), getDownlinkFreqKhz(), in hashCode()
DCoexManager.java427 entry = mLteTableEntriesByBand.get(cellChannel.getBand()); in updateCoexUnsafeChannels()
430 entry = mNrTableEntriesByBand.get(cellChannel.getBand()); in updateCoexUnsafeChannels()
651 && cellChannel.getBand() == AccessNetworkConstants.EutranBand.BAND_46) { in updateCoexUnsafeChannels()
679 final int band = unsafeChannel.getBand(); in updateCoexUnsafeChannels()
771 mLteTableEntriesByBand.put(entry.getBand(), entry); in readTableFromXml()
773 mNrTableEntriesByBand.put(entry.getBand(), entry); in readTableFromXml()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java316 unsafeChannel.getChannel(), unsafeChannel.getBand())); in getUnsafeChannelFreqsFromCoex()
558 if (config.getBand() == SoftApConfiguration.BAND_5GHZ in updateApChannelConfig()
566 int freq = chooseApChannel(config.getBand(), wifiNative, coexManager, resources); in updateApChannelConfig()
834 || currentConfig.getBand() != newConfig.getBand() in checkConfigurationChangeNeedToRestart()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherApBandPreferenceController.java56 mBandIndex = validateSelection(config.getBand()); in updateDisplay()
74 preference.setValue(Integer.toString(config.getBand())); in updateDisplay()
DWifiTetherMaximizeCompatibilityPreferenceController.java103 final int band = config.getBand(); in isMaximizeCompatibilityEnabled()
/packages/services/Telephony/src/com/android/phone/settings/
DBandMode.java120 mPhone.setBandMode(mTargetBand.getBand(), msg);
131 public int getBand() { in getBand() method in BandMode.BandListItem
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DWifiTetherMaximizeCompatibilityPreferenceControllerTest.java226 assertThat(builder.build().getBand()) in setupMaximizeCompatibility_noConcurrencyAndSetDisabled_setBand2gOnly()
238 assertThat(builder.build().getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in setupMaximizeCompatibility_noConcurrencyAndSetEnabled_setBand2gAnd5g()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DApConfigUtilTest.java490 assertEquals(ApConfigUtil.DEFAULT_AP_BAND, configBuilder.build().getBand()); in updateApChannelConfigWithoutHal()
519 assertEquals(SoftApConfiguration.BAND_5GHZ, configBuilder.build().getBand()); in updateApChannelConfigWithChannelSpecified()
560 assertEquals(SoftApConfiguration.BAND_5GHZ, configBuilder.build().getBand()); in updateApChannelConfigWithAcsDisabledOemConfigured()
578 configBuilder.build().getBand()); in updateApChannelConfigWithAcsEnabled()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/
DCoexManagerTest.java150 when(config.getBand()).thenReturn(band); in createMockPhysicalChannelConfig()
729 .filter(unsafeChannel -> unsafeChannel.getBand() == WIFI_BAND_5_GHZ) in testGetCoexUnsafeChannels_LAA_restrict5gSoftApAndWifiDirect()
770 .filter(unsafeChannel -> unsafeChannel.getBand() == WIFI_BAND_5_GHZ) in testGetCoexUnsafeChannels_carrierConfigsChanged_updatesUnsafeChannels()

12