Searched refs:apBand (Results 1 – 12 of 12) sorted by relevance
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | ApConfigUtil.java | 70 public static int chooseApChannel(int apBand, in chooseApChannel() argument 73 if (apBand != WifiConfiguration.AP_BAND_2GHZ in chooseApChannel() 74 && apBand != WifiConfiguration.AP_BAND_5GHZ in chooseApChannel() 75 && apBand != WifiConfiguration.AP_BAND_ANY) { in chooseApChannel() 76 Log.e(TAG, "Invalid band: " + apBand); in chooseApChannel() 81 if (apBand == WifiConfiguration.AP_BAND_2GHZ in chooseApChannel() 82 || apBand == WifiConfiguration.AP_BAND_ANY) { in chooseApChannel() 121 config.apBand = DEFAULT_AP_BAND; in updateApChannelConfig() 127 if (config.apBand == WifiConfiguration.AP_BAND_5GHZ in updateApChannelConfig() 136 config.apBand, allowed2GChannels, in updateApChannelConfig()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | ApConfigUtilTest.java | 188 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in updateApChannelConfigWithoutHal() 194 assertEquals(ApConfigUtil.DEFAULT_AP_BAND, config.apBand); in updateApChannelConfigWithoutHal() 205 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in updateApChannelConfig5GBandNoCountryCode() 218 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in updateApChannelConfigWithChannelSpecified() 224 assertEquals(WifiConfiguration.AP_BAND_5GHZ, config.apBand); in updateApChannelConfigWithChannelSpecified() 235 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in updateApChannelConfigWith5GBandNoChannelAllowed()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiApConfigStore.java | 236 if (config.apBand == WifiConfiguration.AP_BAND_5GHZ) { in apBandCheckConvert() 239 convertedConfig.apBand = WifiConfiguration.AP_BAND_ANY; in apBandCheckConvert() 245 if (config.apBand == WifiConfiguration.AP_BAND_ANY) { in apBandCheckConvert() 248 convertedConfig.apBand = WifiConfiguration.AP_BAND_5GHZ; in apBandCheckConvert() 281 config.apBand = in.readInt(); in loadApConfiguration() 318 out.writeInt(config.apBand); in writeApConfiguration() 339 config.apBand = WifiConfiguration.AP_BAND_2GHZ; in getDefaultApConfiguration() 358 public static WifiConfiguration generateLocalOnlyHotspotConfig(Context context, int apBand) { in generateLocalOnlyHotspotConfig() argument 364 config.apBand = apBand; in generateLocalOnlyHotspotConfig()
|
D | SoftApManager.java | 203 pw.println("mApConfig.apBand: " + mApConfig.apBand); in dump() 261 if (config.apBand == WifiConfiguration.AP_BAND_5GHZ) { in startSoftAp() 270 if (config.apBand == WifiConfiguration.AP_BAND_5GHZ) { in startSoftAp() 596 if (mApConfig.apBand == WifiConfiguration.AP_BAND_2GHZ in updateUserBandPreferenceViolationMetricsIfNeeded() 599 } else if (mApConfig.apBand == WifiConfiguration.AP_BAND_5GHZ in updateUserBandPreferenceViolationMetricsIfNeeded()
|
D | HostapdHal.java | 341 Log.e(TAG, "Unrecognized apBand " + config.apBand); in addAccessPoint() 606 switch (localConfig.apBand) { in getBand()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | HostapdHalTest.java | 228 configuration.apBand = WifiConfiguration.AP_BAND_2GHZ; in testAddAccessPointSuccess_Psk_Band2G() 261 configuration.apBand = WifiConfiguration.AP_BAND_5GHZ; in testAddAccessPointSuccess_Open_Band5G() 295 configuration.apBand = WifiConfiguration.AP_BAND_5GHZ; in testAddAccessPointSuccess_Psk_Band5G_Hidden() 333 configuration.apBand = WifiConfiguration.AP_BAND_2GHZ; in testAddAccessPointSuccess_Psk_Band2G_WithACS() 371 configuration.apBand = WifiConfiguration.AP_BAND_2GHZ; in testAddAccessPointSuccess_Psk_Band2G_WithIeee80211AC() 408 configuration.apBand = WifiConfiguration.AP_BAND_ANY; in testAddAccessPointSuccess_Psk_BandAny_WithACS() 446 configuration.apBand = WifiConfiguration.AP_BAND_ANY; in testAddAccessPointSuccess_Psk_BandAny_Downgraded_WithoutACS() 511 configuration.apBand = WifiConfiguration.AP_BAND_ANY; in testAddAccessPointSuccess_Psk_BandAny_WithACS_AcsChannels() 544 configuration.apBand = WifiConfiguration.AP_BAND_5GHZ + 1; in testAddAccessPointInvalidBandFailure() 563 configuration.apBand = WifiConfiguration.AP_BAND_2GHZ; in testAddAccessPointFailure() [all …]
|
D | SoftApManagerTest.java | 186 config.apBand = WifiConfiguration.AP_BAND_2GHZ; in startSoftApWithConfig() 200 config.apBand = WifiConfiguration.AP_BAND_2GHZ; in startSoftApWithHiddenSsidTrueInConfig() 215 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in startSoftApWithPassphraseInConfig() 354 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in startSoftApOn5GhzFailGeneralErrorForNoCountryCode() 398 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in startSoftApOn5GhzFailGeneralErrorForCountryCodeSetFailure() 446 config.apBand = WifiConfiguration.AP_BAND_2GHZ; in startSoftApOn24GhzNoFailForNoCountryCode() 462 config.apBand = WifiConfiguration.AP_BAND_ANY; in startSoftApOnAnyGhzNoFailForNoCountryCode() 478 config.apBand = WifiConfiguration.AP_BAND_2GHZ; in startSoftApOn2GhzNoFailForCountryCodeSetFailure() 497 config.apBand = WifiConfiguration.AP_BAND_ANY; in startSoftApOnAnyNoFailForCountryCodeSetFailure() 516 config.apBand = -2; in startSoftApFailNoChannel() [all …]
|
D | WifiApConfigStoreTest.java | 163 config.apBand = band; in setupApConfig() 180 assertEquals(config1.apBand, config2.apBand); in verifyApConfig() 189 assertEquals(WifiConfiguration.AP_BAND_2GHZ, config.apBand); in verifyDefaultApConfig() 201 assertEquals(expectedApBand, config.apBand); in verifyDefaultLocalOnlyApConfig()
|
D | WifiServiceImplTest.java | 1762 assertEquals(expectedBand, configuration.apBand); in verifyLohsBand() 3420 apConfig.apBand = WifiConfiguration.AP_BAND_2GHZ; in createValidSoftApConfiguration()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiConfigurationTest.java | 280 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in testSoftApConfigBackupAndRestore() 294 assertEquals(config.apBand, restoredConfig.apBand); in testSoftApConfigBackupAndRestore()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiConfiguration.java | 490 public int apBand = AP_BAND_2GHZ; field in WifiConfiguration 2377 apBand = source.apBand; in WifiConfiguration() 2454 dest.writeInt(apBand); in writeToParcel() 2527 config.apBand = in.readInt(); 2605 out.writeInt(apBand); in getBytesForBackup() 2628 config.apBand = in.readInt(); in getWifiConfigFromBackup()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsBackupAgent.java | 863 int originalApBand = config.apBand; in restoreSoftApConfiguration() 869 int storedApBand = mWifiManager.getWifiApConfiguration().apBand; in restoreSoftApConfiguration()
|