/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | ApConfigUtilTest.java | 93 2412, SoftApConfiguration.BAND_2GHZ, 1, 94 2417, SoftApConfiguration.BAND_2GHZ, 2, 95 2422, SoftApConfiguration.BAND_2GHZ, 3, 96 2427, SoftApConfiguration.BAND_2GHZ, 4, 97 2432, SoftApConfiguration.BAND_2GHZ, 5, 98 2437, SoftApConfiguration.BAND_2GHZ, 6, 99 2442, SoftApConfiguration.BAND_2GHZ, 7, 100 2447, SoftApConfiguration.BAND_2GHZ, 8, 101 2452, SoftApConfiguration.BAND_2GHZ, 9, 102 2457, SoftApConfiguration.BAND_2GHZ, 10, [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiTetherApBandPreferenceController.java | 19 import static android.net.wifi.SoftApConfiguration.BAND_2GHZ; 46 static final int BAND_2GHZ_5GHZ = BAND_2GHZ | BAND_5GHZ; 51 BAND_2GHZ, 97 mBand = BAND_2GHZ; in updateState() 98 } else if (!is5GhzBandSupported() && configBand > BAND_2GHZ) { in updateState() 100 .setBand(BAND_2GHZ) in updateState() 103 mBand = BAND_2GHZ; in updateState() 139 mHotspotBandMap.keySet().removeIf(key -> key > BAND_2GHZ); in updatePreferenceEntries() 179 return mHotspotBandMap.containsKey(band) ? band : BAND_2GHZ; in validateSelection() 193 configBuilder.setBand(BAND_2GHZ); in updateApBand()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/ |
D | WifiTetherApBandPreferenceControllerTest.java | 100 .setBand(SoftApConfiguration.BAND_2GHZ) in onStart_wifiConfigApBandSetTo2Ghz_valueIsSetTo2Ghz() 106 .isEqualTo(Integer.toString(SoftApConfiguration.BAND_2GHZ)); in onStart_wifiConfigApBandSetTo2Ghz_valueIsSetTo2Ghz() 126 .setBand(SoftApConfiguration.BAND_2GHZ) in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz() 134 .isEqualTo(SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ); in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz() 146 Integer.toString(SoftApConfiguration.BAND_2GHZ)); in onPreferenceChangedTo2Ghz_updatesApBandConfigTo2Ghz() 149 .isEqualTo(SoftApConfiguration.BAND_2GHZ); in onPreferenceChangedTo2Ghz_updatesApBandConfigTo2Ghz() 168 .setBand(SoftApConfiguration.BAND_2GHZ) in onPreferenceChangedTo5Ghz_defaultToApBandAny() 176 .isEqualTo(SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ); in onPreferenceChangedTo5Ghz_defaultToApBandAny()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiApConfigStoreTest.java | 97 private final int mBand25G = SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ; 98 private final int mBand256G = SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ 100 private final int mBand25660G = SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ 245 assertEquals(SoftApConfiguration.BAND_2GHZ, config.getBand()); in verifyDefaultApConfig() 269 SoftApConfiguration.BAND_2GHZ, in verifyDefaultApConfig() 270 SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ}; in verifyDefaultApConfig() 273 assertEquals(config.getBand(), SoftApConfiguration.BAND_2GHZ); in verifyDefaultApConfig() 386 SoftApConfiguration.BAND_2GHZ, /* AP band */ in updateApConfiguration() 427 SoftApConfiguration.BAND_2GHZ in convertDevice5GhzToAny() 573 SoftApConfiguration.BAND_2GHZ); in generateLocalOnlyHotspotConfigIsValid() [all …]
|
D | SoftApManagerTest.java | 173 private final int mBand256G = SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ 443 SoftApConfiguration.BAND_2GHZ, TEST_SUPPORTED_24G_CHANNELS); in setUp() 499 configBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in startSoftApWithConfig() 511 configBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in startSoftApWithUserApproval() 523 configBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in startSoftApWithUserRejection() 547 configBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in startSoftApWithUserApprovalSkippedForTethering() 564 configBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in startSoftApWithHiddenSsidTrueInConfig() 580 configBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in startSoftApWithPassphraseInConfig() 669 configBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in testStartSoftApNotPossibleToCreateApInterfaceIncrementsMetrics() 882 configBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in startSoftApOn24GhzNoFailForNoCountryCode() [all …]
|
D | HostapdHalAidlImpTest.java | 105 private final int mBand256G = SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ 265 configurationBuilder.setChannel(apChannel, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointSuccess_Psk_Band2G() 372 configurationBuilder.setChannel(apChannel, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointSuccess_Psk_Band2G_WithACS() 412 configurationBuilder.setChannel(apChannel, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointSuccess_Psk_Band2G_WithIeee80211AC() 516 configurationBuilder.setChannel(6, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointFailure() 535 configurationBuilder.setChannel(6, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointRemoteException() 588 configurationBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in testOnFailureCallbackHandling() 873 configurationBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in testHostapdCallbackEvent() 1013 1, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointSuccess_DualBandConfig() 1015 6, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointSuccess_DualBandConfig() [all …]
|
D | HostapdHalHidlImpTest.java | 75 private final int mBand256G = SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ 285 configurationBuilder.setChannel(apChannel, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointSuccess_Psk_Band2G() 392 configurationBuilder.setChannel(apChannel, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointSuccess_Psk_Band2G_WithACS() 432 configurationBuilder.setChannel(apChannel, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointSuccess_Psk_Band2G_WithIeee80211AC() 611 configurationBuilder.setChannel(6, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointFailure() 630 configurationBuilder.setChannel(6, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointRemoteException() 689 configurationBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in testOnFailureCallbackHandling() 1292 configurationBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in testHostapdCallbackEventAfter1_3() 1463 1, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointSuccess_DualBandConfig() 1465 6, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointSuccess_DualBandConfig() [all …]
|
D | WifiVendorHalTest.java | 409 SoftApConfiguration.BAND_2GHZ, false, mSoftApManager, new ArrayList<>())); in testStopHalInApMode() 472 externalLister, TEST_WORKSOURCE, SoftApConfiguration.BAND_2GHZ, false, in testApInterfaceDestroyedHandling() 631 SoftApConfiguration.BAND_2GHZ, false, mSoftApManager, new ArrayList<>())); in testLinkLayerStatsNotEnabledAndHarmlessInApMode() 828 SoftApConfiguration.BAND_2GHZ, false, mSoftApManager, new ArrayList<>())); in testStartLoggingRingBufferOnAp() 1140 SoftApConfiguration.BAND_2GHZ, false, mSoftApManager, new ArrayList<>())); in testGetWlanWakeReasonCountFailure() 1170 SoftApConfiguration.BAND_2GHZ, false, mSoftApManager, new ArrayList<>())); in testGetDriverStateDump() 1467 null, TEST_WORKSOURCE, SoftApConfiguration.BAND_2GHZ, false, mSoftApManager, in testCreateApIfaceFailureInIfaceName() 1496 null, TEST_WORKSOURCE, SoftApConfiguration.BAND_2GHZ, false, mSoftApManager, in testCreateRemoveApIface() 1812 SoftApConfiguration.BAND_2GHZ, false, mSoftApManager, new ArrayList<>())); in testSetAfcChannelAllowance()
|
D | SoftApBackupRestoreTest.java | 80 private static final int TEST_BAND_2G = SoftApConfiguration.BAND_2GHZ; 173 configBuilder.setChannel(12, SoftApConfiguration.BAND_2GHZ); in testSoftApConfigBackupAndRestoreWithOpenSecurityConfig()
|
D | SoftApStoreDataTest.java | 81 private static final int TEST_BAND = SoftApConfiguration.BAND_2GHZ 83 private static final int TEST_BAND_2G = SoftApConfiguration.BAND_2GHZ;
|
/packages/apps/Settings/src/com/android/settings/wifi/tether/ |
D | WifiTetherMaximizeCompatibilityPreferenceController.java | 123 return band == SoftApConfiguration.BAND_2GHZ; in isMaximizeCompatibilityEnabled() 138 SoftApConfiguration.BAND_2GHZ, in setupMaximizeCompatibility() 139 SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ}; in setupMaximizeCompatibility() 149 ? SoftApConfiguration.BAND_2GHZ in setupMaximizeCompatibility() 150 : SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ; in setupMaximizeCompatibility()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/ |
D | WifiTetherApBandPreferenceControllerTest.java | 19 import static android.net.wifi.SoftApConfiguration.BAND_2GHZ; 119 Integer.toString(SoftApConfiguration.BAND_2GHZ)); in onStart_dualBandNotSupported_defaultTo2Ghz() 160 new SoftApConfiguration.Builder().setBand(BAND_2GHZ).build()); in onStart_wifiConfigApBandSetTo2Ghz_valueIsSetTo2Ghz() 166 Integer.toString(SoftApConfiguration.BAND_2GHZ)); in onStart_wifiConfigApBandSetTo2Ghz_valueIsSetTo2Ghz() 173 new SoftApConfiguration.Builder().setBand(BAND_2GHZ).build()); in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz() 193 mPreferenceController.handlePreferenceChanged(mPreference, Integer.toString(BAND_2GHZ)); in onPreferenceChangedTo2Ghz_updatesApBandConfigTo2Ghz() 196 assertThat(getBandFromConfig(actualConfig)).isEqualTo(BAND_2GHZ); in onPreferenceChangedTo2Ghz_updatesApBandConfigTo2Ghz() 206 new SoftApConfiguration.Builder().setBand(BAND_2GHZ).build()); in onPreferenceChangedToDualBand_updatesApBandConfigToDualBand()
|
/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() 582 .setChannel(11, SoftApConfiguration.BAND_2GHZ) in testToWifiConfigurationWithSupportedParameter() 608 .setBand(SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ) in testToWifiConfigurationWithSupportedParameter() 634 dual_bands[0] = SoftApConfiguration.BAND_2GHZ; in testDualBands() 641 assertThat(dual_bands_config.getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in testDualBands() 648 expected_dual_bands[0] = SoftApConfiguration.BAND_2GHZ; in testDualChannels() 652 dual_channels.put(SoftApConfiguration.BAND_2GHZ, 2); in testDualChannels() 658 assertThat(dual_channels_config.getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in testDualChannels() 665 dual_channels.put(SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ, 0); in testDualChannels() [all …]
|
D | SoftApCapabilityTest.java | 48 capability.setSupportedChannelList(SoftApConfiguration.BAND_2GHZ, testSupported2Glist); in testCopyOperator() 71 capability.setSupportedChannelList(SoftApConfiguration.BAND_2GHZ, testSupported2Glist); in testParcelOperation() 97 SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ, new int[0]); in testSetSupportedChannelListWithInvalidBand() 107 SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ); in testGetSupportedChannelListWithInvalidBand()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | ApConfigUtil.java | 85 public static final int DEFAULT_AP_BAND = SoftApConfiguration.BAND_2GHZ; 107 sBandToOperatingClass.append(SoftApConfiguration.BAND_2GHZ, new int[]{81, 82, 83, 84}); in sBandToOperatingClass.append() argument 120 if ((band & SoftApConfiguration.BAND_2GHZ) != 0) { in bandToString() 123 band &= ~SoftApConfiguration.BAND_2GHZ; in bandToString() 173 case SoftApConfiguration.BAND_2GHZ: in apConfig2wifiScannerBand() 206 return SoftApConfiguration.BAND_2GHZ; in convertFrequencyToBand() 227 return SoftApConfiguration.BAND_2GHZ; in convertWifiConfigBandToSoftApConfigBand() 231 return SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ; in convertWifiConfigBandToSoftApConfigBand() 233 return SoftApConfiguration.BAND_2GHZ; in convertWifiConfigBandToSoftApConfigBand() 245 if (isBandSupported(SoftApConfiguration.BAND_2GHZ, context)) { in append24GToBandIf24GSupported() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/repository/ |
D | WifiHotspotRepository.java | 20 import static android.net.wifi.SoftApConfiguration.BAND_2GHZ; 65 public static final int BAND_2GHZ_5GHZ = BAND_2GHZ | BAND_5GHZ; 67 public static final int BAND_2GHZ_5GHZ_6GHZ = BAND_2GHZ | BAND_5GHZ | BAND_6GHZ; 84 sSpeedMap.put(BAND_2GHZ, SPEED_2GHZ); in sSpeedMap.put() argument 310 } else if ((keyBand & BAND_2GHZ) != 0) { in updateSpeedType() 311 keyBand = BAND_2GHZ; in updateSpeedType() 353 int[] bands = {BAND_2GHZ, BAND_2GHZ_5GHZ}; in setSpeedType() 357 configBuilder.setBand(BAND_2GHZ); in setSpeedType()
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | SoftApConfiguration.java | 80 public static final int BAND_2GHZ = 1 << 0; field in SoftApConfiguration 114 public static final int BAND_ANY = BAND_2GHZ | BAND_5GHZ | BAND_6GHZ; 129 BAND_2GHZ, 140 public static int[] BAND_TYPES = {BAND_2GHZ, BAND_5GHZ, BAND_6GHZ, BAND_60GHZ}; 143 int bandAny = BAND_2GHZ | BAND_5GHZ | BAND_6GHZ | BAND_60GHZ; in isBandValid() 175 case BAND_2GHZ: in isChannelBandPairValid() 485 mChannels.put(BAND_2GHZ, 0); in SoftApConfiguration() 1110 case BAND_2GHZ: in getAllowedAcsChannels() 1260 case BAND_2GHZ: in toWifiConfiguration() 1266 case BAND_2GHZ | BAND_5GHZ: in toWifiConfiguration() [all …]
|
D | SoftApCapability.java | 266 case SoftApConfiguration.BAND_2GHZ: in setSupportedChannelList() 302 case SoftApConfiguration.BAND_2GHZ: in getSupportedChannelList() 367 capability.setSupportedChannelList(SoftApConfiguration.BAND_2GHZ, in.createIntArray());
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/ |
D | WifiTetherMaximizeCompatibilityPreferenceControllerTest.java | 167 .setBand(SoftApConfiguration.BAND_2GHZ) in isMaximizeCompatibilityEnabled_noConcurrencyAndGetBand2gOnly_returnFalse() 189 .setBand(SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ) in isMaximizeCompatibilityEnabled_noConcurrencyAndGetBand2gAnd5g_returnTrue() 227 .isEqualTo(SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ); in setupMaximizeCompatibility_noConcurrencyAndSetDisabled_setBand2gOnly() 238 assertThat(builder.build().getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in setupMaximizeCompatibility_noConcurrencyAndSetEnabled_setBand2gAnd5g()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiApConfigStore.java | 246 SoftApConfiguration.BAND_2GHZ, in upgradeSoftApConfiguration() 247 SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ}; in upgradeSoftApConfiguration() 385 if ((newBand & SoftApConfiguration.BAND_2GHZ) == 0) { in sanitizePersistentApConfig() 451 SoftApConfiguration.BAND_2GHZ, in getDefaultApConfiguration() 452 SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ}; in getDefaultApConfiguration() 531 int desiredBand = SoftApConfiguration.BAND_2GHZ; in generateLocalOnlyHotspotConfig() 738 return SoftApConfiguration.BAND_2GHZ; in generateDefaultBand()
|
D | HostapdHalHidlImp.java | 833 if ((config.getBand() & SoftApConfiguration.BAND_2GHZ) != 0) { in prepareIfaceParamsV1_1() 965 if (ApConfigUtil.containsBand(apBand, SoftApConfiguration.BAND_2GHZ)) { in getHalBandMask() 987 case SoftApConfiguration.BAND_2GHZ: in getHalBand() 1042 if ((band & SoftApConfiguration.BAND_2GHZ) != 0) { in prepareAcsChannelFreqRangesMhz() 1044 toAcsFreqRanges(SoftApConfiguration.BAND_2GHZ, config)); in prepareAcsChannelFreqRangesMhz() 1072 case SoftApConfiguration.BAND_2GHZ: in toAcsFreqRanges()
|
D | HostapdHalAidlImp.java | 641 if (ApConfigUtil.containsBand(apBand, SoftApConfiguration.BAND_2GHZ)) { in getHalBandMask() 663 if ((band & SoftApConfiguration.BAND_2GHZ) != 0) { in prepareAcsChannelFreqRangesMhz() 664 ranges.addAll(toAcsFreqRanges(SoftApConfiguration.BAND_2GHZ, config)); in prepareAcsChannelFreqRangesMhz() 690 case SoftApConfiguration.BAND_2GHZ: in toAcsFreqRanges()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/repository/ |
D | WifiHotspotRepositoryTest.java | 20 import static android.net.wifi.SoftApConfiguration.BAND_2GHZ; 353 SoftApConfiguration config = new SoftApConfiguration.Builder().setBand(BAND_2GHZ).build(); in getSpeedType_shouldNotReturnNull() 362 SoftApConfiguration config = new SoftApConfiguration.Builder().setBand(BAND_2GHZ).build(); in updateSpeedType_singleBand2g_get2gSpeedType() 498 assertThat(channels.get(BAND_2GHZ, CHANNEL_NOT_FOUND)).isNotEqualTo(CHANNEL_NOT_FOUND); in setSpeedType_6ghzTo2g5ghz_setConfigBandsTo2g5ghz() 531 assertThat(mSoftApConfigCaptor.getValue().getBand()).isEqualTo(BAND_2GHZ); in setSpeedType_6ghzTo2ghz_setConfigBandTo2ghz() 806 configBuilder.setBand(BAND_2GHZ); in mockConfig() 811 int[] bands = {BAND_2GHZ, BAND_2GHZ_5GHZ}; in mockConfig()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarProjectionServiceTest.java | 543 int[] dualBands = {SoftApConfiguration.BAND_2GHZ, SoftApConfiguration.BAND_5GHZ}; in startProjectionTetheredAccessPoint_ensure2GhzAnd5GhzAdded() 552 int[] singleBand = {SoftApConfiguration.BAND_2GHZ}; in startProjectionTetheredAccessPoint_ensure2GhzAnd5GhzAdded() 579 int[] dualBands = {SoftApConfiguration.BAND_2GHZ, SoftApConfiguration.BAND_5GHZ}; in startProjectionTetheredAccessPoint_ensureNotCalled2Ghz5Ghz() 632 int[] dualBands = {SoftApConfiguration.BAND_2GHZ, SoftApConfiguration.BAND_5GHZ}; in startProjectionTetheredAccessPoint_ensure5GhzOnlyNoConcurrency()
|
/packages/modules/Connectivity/tests/cts/multidevices/snippet/ |
D | ConnectivityMultiDevicesSnippet.kt | 152 .setBand(SoftApConfiguration.BAND_2GHZ) in startHotspot()
|