/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | SoftApConfigurationTest.java | 45 private SoftApConfiguration parcelUnparcel(SoftApConfiguration configIn) { in parcelUnparcel() 49 SoftApConfiguration configOut = in parcelUnparcel() 50 parcel.readParcelable(SoftApConfiguration.class.getClassLoader()); in parcelUnparcel() 77 SoftApConfiguration original = new SoftApConfiguration.Builder() in testBasicSettings() 84 assertThat(original.getSecurityType()).isEqualTo(SoftApConfiguration.SECURITY_TYPE_OPEN); in testBasicSettings() 85 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in testBasicSettings() 91 .isEqualTo(SoftApConfiguration.RANDOMIZATION_PERSISTENT); in testBasicSettings() 100 SoftApConfiguration unparceled = parcelUnparcel(original); in testBasicSettings() 105 SoftApConfiguration copy = new SoftApConfiguration.Builder(original).build(); in testBasicSettings() 113 SoftApConfiguration original = new SoftApConfiguration.Builder() in testWpa2() [all …]
|
D | SoftApCapabilityTest.java | 45 capability.setSupportedChannelList(SoftApConfiguration.BAND_2GHZ, testSupported2Glist); in testCopyOperator() 46 capability.setSupportedChannelList(SoftApConfiguration.BAND_5GHZ, testSupported5Glist); in testCopyOperator() 47 capability.setSupportedChannelList(SoftApConfiguration.BAND_60GHZ, testSupported60Glist); in testCopyOperator() 68 capability.setSupportedChannelList(SoftApConfiguration.BAND_2GHZ, testSupported2Glist); in testParcelOperation() 69 capability.setSupportedChannelList(SoftApConfiguration.BAND_5GHZ, testSupported5Glist); in testParcelOperation() 70 capability.setSupportedChannelList(SoftApConfiguration.BAND_60GHZ, testSupported60Glist); in testParcelOperation() 92 SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ, new int[0]); in testSetSupportedChannelListWithInvalidBand() 102 SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ); in testGetSupportedChannelListWithInvalidBand()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | ApConfigUtilTest.java | 34 import android.net.wifi.SoftApConfiguration; 35 import android.net.wifi.SoftApConfiguration.Builder; 71 2412, SoftApConfiguration.BAND_2GHZ, 1, 72 2417, SoftApConfiguration.BAND_2GHZ, 2, 73 2422, SoftApConfiguration.BAND_2GHZ, 3, 74 2427, SoftApConfiguration.BAND_2GHZ, 4, 75 2432, SoftApConfiguration.BAND_2GHZ, 5, 76 2437, SoftApConfiguration.BAND_2GHZ, 6, 77 2442, SoftApConfiguration.BAND_2GHZ, 7, 78 2447, SoftApConfiguration.BAND_2GHZ, 8, [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiApConfigStoreTest.java | 19 import static android.net.wifi.SoftApConfiguration.SECURITY_TYPE_WPA2_PSK; 20 import static android.net.wifi.SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION; 40 import android.net.wifi.SoftApConfiguration; 41 import android.net.wifi.SoftApConfiguration.Builder; 85 private final int mBand25G = SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ; 86 private final int mBand256G = SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ 87 | SoftApConfiguration.BAND_6GHZ; 88 private final int mBand25660G = SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ 89 | SoftApConfiguration.BAND_6GHZ | SoftApConfiguration.BAND_60GHZ; 169 private SoftApConfiguration setupApConfig( in setupApConfig() [all …]
|
D | SoftApBackupRestoreTest.java | 27 import android.net.wifi.SoftApConfiguration; 72 private static final int TEST_SECURITY = SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION; 73 private static final int TEST_BAND = SoftApConfiguration.BAND_5GHZ; 78 private static final int TEST_BAND_2G = SoftApConfiguration.BAND_2GHZ; 79 private static final int TEST_BAND_5G = SoftApConfiguration.BAND_5GHZ; 82 SoftApConfiguration.RANDOMIZATION_NONE; 95 WifiConfiguration backup, SoftApConfiguration restore) { in assertWifiConfigurationEqualSoftApConfiguration() 104 assertEquals(SoftApConfiguration.SECURITY_TYPE_WPA2_PSK, restore.getSecurityType()); in assertWifiConfigurationEqualSoftApConfiguration() 106 assertEquals(SoftApConfiguration.SECURITY_TYPE_OPEN, restore.getSecurityType()); in assertWifiConfigurationEqualSoftApConfiguration() 147 SoftApConfiguration.Builder configBuilder = new SoftApConfiguration.Builder(); in testSoftApConfigBackupAndRestoreWithWpa2Config() [all …]
|
D | SoftApStoreDataTest.java | 33 import android.net.wifi.SoftApConfiguration; 73 private static final int TEST_BAND = SoftApConfiguration.BAND_2GHZ 74 | SoftApConfiguration.BAND_5GHZ; 75 private static final int TEST_BAND_2G = SoftApConfiguration.BAND_2GHZ; 76 private static final int TEST_BAND_5G = SoftApConfiguration.BAND_5GHZ; 78 private static final int TEST_SECURITY = SoftApConfiguration.SECURITY_TYPE_WPA2_PSK; 89 SoftApConfiguration.RANDOMIZATION_NONE; 334 SoftApConfiguration.Builder softApConfigBuilder = new SoftApConfiguration.Builder(); in serializeSoftAp() 338 SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in serializeSoftAp() 379 ArgumentCaptor<SoftApConfiguration> softapConfigCaptor = in deserializeSoftAp() [all …]
|
D | SoftApManagerTest.java | 62 import android.net.wifi.SoftApConfiguration; 63 import android.net.wifi.SoftApConfiguration.Builder; 144 private SoftApConfiguration mDefaultApConfig = createDefaultApConfig(); 145 private final int mBand256G = SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ 146 | SoftApConfiguration.BAND_6GHZ; 301 SoftApConfiguration.BAND_2GHZ, TEST_SUPPORTED_24G_CHANNELS); in setUp() 303 SoftApConfiguration.BAND_5GHZ, TEST_SUPPORTED_5G_CHANNELS); in setUp() 313 private SoftApConfiguration createDefaultApConfig() { in createDefaultApConfig() 314 Builder defaultConfigBuilder = new SoftApConfiguration.Builder(); in createDefaultApConfig() 359 Builder configBuilder = new SoftApConfiguration.Builder(); in startSoftApWithConfig() [all …]
|
D | HostapdHalTest.java | 38 import android.net.wifi.SoftApConfiguration; 39 import android.net.wifi.SoftApConfiguration.Builder; 74 private final int mBand256G = SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ 75 | SoftApConfiguration.BAND_6GHZ; 278 Builder configurationBuilder = new SoftApConfiguration.Builder(); in testAddAccessPointSuccess_Psk_Band2G() 282 SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in testAddAccessPointSuccess_Psk_Band2G() 283 configurationBuilder.setChannel(apChannel, SoftApConfiguration.BAND_2GHZ); in testAddAccessPointSuccess_Psk_Band2G() 313 Builder configurationBuilder = new SoftApConfiguration.Builder(); in testAddAccessPointSuccess_Open_Band5G() 316 configurationBuilder.setChannel(apChannel, SoftApConfiguration.BAND_5GHZ); in testAddAccessPointSuccess_Open_Band5G() 346 Builder configurationBuilder = new SoftApConfiguration.Builder(); in testAddAccessPointSuccess_Psk_Band5G_Hidden() [all …]
|
D | LocalOnlyHotspotRequestInfoTest.java | 23 import android.net.wifi.SoftApConfiguration; 138 SoftApConfiguration config = new SoftApConfiguration.Builder() in verifyCustomConfig() 165 SoftApConfiguration config = mock(SoftApConfiguration.class); in verifySendStartedMessage() 167 ArgumentCaptor<SoftApConfiguration> mSoftApConfigCaptor = in verifySendStartedMessage() 168 ArgumentCaptor.forClass(SoftApConfiguration.class); in verifySendStartedMessage()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiApConfigStore.java | 23 import android.net.wifi.SoftApConfiguration; 24 import android.net.wifi.SoftApConfiguration.BandType; 69 private SoftApConfiguration mPersistentWifiApConfig = null; 88 public SoftApConfiguration toSerialize() { in toSerialize() 93 public void fromDeserialized(SoftApConfiguration config) { in fromDeserialized() 94 mPersistentWifiApConfig = new SoftApConfiguration.Builder(config).build(); in fromDeserialized() 133 public synchronized SoftApConfiguration getApConfiguration() { in getApConfiguration() 139 SoftApConfiguration sanitizedPersistentconfig = in getApConfiguration() 149 ? new SoftApConfiguration.Builder(mPersistentWifiApConfig) in getApConfiguration() 151 : new SoftApConfiguration.Builder(mPersistentWifiApConfig) in getApConfiguration() [all …]
|
D | HostapdHal.java | 31 import android.net.wifi.SoftApConfiguration; 32 import android.net.wifi.SoftApConfiguration.BandType; 406 public boolean addAccessPoint(@NonNull String ifaceName, @NonNull SoftApConfiguration config, in addAccessPoint() 740 ApConfigUtil.isBandSupported(SoftApConfiguration.BAND_6GHZ, mContext); in updateIfaceParams_1_2FromResource() 755 prepareIfaceParamsV1_0(String ifaceName, SoftApConfiguration config) { in prepareIfaceParamsV1_0() 775 SoftApConfiguration config) { 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() 799 SoftApConfiguration config) { in prepareIfaceParamsV1_2() 820 SoftApConfiguration config) { in prepareIfaceParamsV1_3() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | ApConfigUtil.java | 26 import android.net.wifi.SoftApConfiguration; 27 import android.net.wifi.SoftApConfiguration.BandType; 59 public static final int DEFAULT_AP_BAND = SoftApConfiguration.BAND_2GHZ; 78 sBandToOperatingClass.append(SoftApConfiguration.BAND_2GHZ, new int[]{81, 82, 83, 84}); in sBandToOperatingClass.append() 79 sBandToOperatingClass.append(SoftApConfiguration.BAND_5GHZ, new int[]{115, 116, 117, 118, in sBandToOperatingClass.append() 81 sBandToOperatingClass.append(SoftApConfiguration.BAND_6GHZ, new int[]{131, 132, 133, 134, in sBandToOperatingClass.append() 113 case SoftApConfiguration.BAND_2GHZ: in apConfig2wifiScannerBand() 115 case SoftApConfiguration.BAND_5GHZ: in apConfig2wifiScannerBand() 117 case SoftApConfiguration.BAND_6GHZ: in apConfig2wifiScannerBand() 119 case SoftApConfiguration.BAND_60GHZ: in apConfig2wifiScannerBand() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/ |
D | WifiTetherPasswordPreferenceControllerTest.java | 26 import android.net.wifi.SoftApConfiguration; 82 SoftApConfiguration config = new SoftApConfiguration.Builder() in onStart_securityTypeIsNotNone_visibilityIsSetToTrue() 83 .setPassphrase(TEST_PASSWORD, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK) in onStart_securityTypeIsNotNone_visibilityIsSetToTrue() 93 SoftApConfiguration config = new SoftApConfiguration.Builder() in onStart_securityTypeIsNotNone_wifiConfigHasPassword_setsPasswordAsSummary() 94 .setPassphrase(TEST_PASSWORD, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK) in onStart_securityTypeIsNotNone_wifiConfigHasPassword_setsPasswordAsSummary() 104 SoftApConfiguration config = new SoftApConfiguration.Builder() in onStart_securityTypeIsNotNone_wifiConfigHasPassword_obscuresSummary() 105 .setPassphrase(TEST_PASSWORD, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK) in onStart_securityTypeIsNotNone_wifiConfigHasPassword_obscuresSummary() 116 SoftApConfiguration config = new SoftApConfiguration.Builder() in onStart_securityTypeIsNone_visibilityIsSetToFalse() 117 .setPassphrase(null, SoftApConfiguration.SECURITY_TYPE_OPEN) in onStart_securityTypeIsNone_visibilityIsSetToFalse() 130 SoftApConfiguration config = new SoftApConfiguration.Builder() in onChangePassword_updatesPassword() [all …]
|
D | WifiTetherApBandPreferenceControllerTest.java | 25 import android.net.wifi.SoftApConfiguration; 99 SoftApConfiguration config = new SoftApConfiguration.Builder() in onStart_wifiConfigApBandSetTo2Ghz_valueIsSetTo2Ghz() 100 .setBand(SoftApConfiguration.BAND_2GHZ) in onStart_wifiConfigApBandSetTo2Ghz_valueIsSetTo2Ghz() 106 .isEqualTo(Integer.toString(SoftApConfiguration.BAND_2GHZ)); in onStart_wifiConfigApBandSetTo2Ghz_valueIsSetTo2Ghz() 112 SoftApConfiguration config = new SoftApConfiguration.Builder() in onStart_wifiConfigApBandSetTo5Ghz_valueIsSetTo5Ghz() 113 .setBand(SoftApConfiguration.BAND_5GHZ) in onStart_wifiConfigApBandSetTo5Ghz_valueIsSetTo5Ghz() 119 .isEqualTo(Integer.toString(SoftApConfiguration.BAND_5GHZ)); in onStart_wifiConfigApBandSetTo5Ghz_valueIsSetTo5Ghz() 125 SoftApConfiguration config = new SoftApConfiguration.Builder() in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz() 126 .setBand(SoftApConfiguration.BAND_2GHZ) in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz() 131 Integer.toString(SoftApConfiguration.BAND_5GHZ)); in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz() [all …]
|
D | WifiTetherSecurityPreferenceControllerTest.java | 26 import android.net.wifi.SoftApConfiguration; 79 SoftApConfiguration config = new SoftApConfiguration.Builder() in onStart_securityTypeSetToNone_setsValueToNone() 80 .setPassphrase(null, SoftApConfiguration.SECURITY_TYPE_OPEN) in onStart_securityTypeSetToNone_setsValueToNone() 87 .isEqualTo(SoftApConfiguration.SECURITY_TYPE_OPEN); in onStart_securityTypeSetToNone_setsValueToNone() 93 SoftApConfiguration config = new SoftApConfiguration.Builder() in onStart_securityTypeSetToWPA2PSK_setsValueToWPA2PSK() 94 .setPassphrase(testPassword, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK) in onStart_securityTypeSetToWPA2PSK_setsValueToWPA2PSK() 100 .isEqualTo(SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in onStart_securityTypeSetToWPA2PSK_setsValueToWPA2PSK() 106 SoftApConfiguration config = new SoftApConfiguration.Builder() in onPreferenceChangedToNone_updatesSharedSecurityTypeToNone() 107 .setPassphrase(testPassword, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK) in onPreferenceChangedToNone_updatesSharedSecurityTypeToNone() 113 Integer.toString(SoftApConfiguration.SECURITY_TYPE_OPEN)); in onPreferenceChangedToNone_updatesSharedSecurityTypeToNone() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/ |
D | WifiTetherSecurityPreferenceControllerTest.java | 25 import android.net.wifi.SoftApConfiguration; 48 String.valueOf(SoftApConfiguration.SECURITY_TYPE_WPA3_SAE); 50 String.valueOf(SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION); 52 String.valueOf(SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); 53 private static final String NONE = String.valueOf(SoftApConfiguration.SECURITY_TYPE_OPEN); 64 private SoftApConfiguration mConfig; 69 mConfig = new SoftApConfiguration.Builder().setSsid("test_1234") in setUp() 70 .setPassphrase(null, SoftApConfiguration.SECURITY_TYPE_OPEN).build(); in setUp() 91 .isEqualTo(SoftApConfiguration.SECURITY_TYPE_WPA3_SAE); in onPreferenceChange_toWpa3Sae_shouldUpdateSecurityValue() 100 .isEqualTo(SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION); in onPreferenceChange_toWpa3SaeTransition_shouldUpdateSecurityValue() [all …]
|
D | WifiTetherMaximizeCompatibilityPreferenceControllerTest.java | 27 import android.net.wifi.SoftApConfiguration; 60 private SoftApConfiguration mConfig; 65 mConfig = new SoftApConfiguration.Builder() in setUp() 67 .setPassphrase(null, SoftApConfiguration.SECURITY_TYPE_OPEN) in setUp() 155 SoftApConfiguration config = new SoftApConfiguration.Builder() in isMaximizeCompatibilityEnabled_concurrencySupportedAndDisabled_returnTrue() 166 SoftApConfiguration config = new SoftApConfiguration.Builder() in isMaximizeCompatibilityEnabled_noConcurrencyAndGetBand2gOnly_returnFalse() 167 .setBand(SoftApConfiguration.BAND_2GHZ) in isMaximizeCompatibilityEnabled_noConcurrencyAndGetBand2gOnly_returnFalse() 177 SoftApConfiguration config = new SoftApConfiguration.Builder() in isMaximizeCompatibilityEnabled_noConcurrencyAndGetBand5gOnly_returnTrue() 178 .setBand(SoftApConfiguration.BAND_5GHZ) in isMaximizeCompatibilityEnabled_noConcurrencyAndGetBand5gOnly_returnTrue() 188 SoftApConfiguration config = new SoftApConfiguration.Builder() in isMaximizeCompatibilityEnabled_noConcurrencyAndGetBand2gAnd5g_returnTrue() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiTetherApBandPreferenceController.java | 22 import android.net.wifi.SoftApConfiguration; 63 SoftApConfiguration config = getCarSoftApConfig(); in updateState() 65 mBand = SoftApConfiguration.BAND_2GHZ; in updateState() 66 } else if (!is5GhzBandSupported() && config.getBand() == SoftApConfiguration.BAND_5GHZ) { in updateState() 67 SoftApConfiguration newConfig = new SoftApConfiguration.Builder(config) in updateState() 68 .setBand(SoftApConfiguration.BAND_2GHZ) in updateState() 92 case SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ: in getSummary() 94 case SoftApConfiguration.BAND_2GHZ: in getSummary() 96 case SoftApConfiguration.BAND_5GHZ: in getSummary() 121 if (SoftApConfiguration.BAND_5GHZ == band) { in validateSelection() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/ |
D | WifiUtilsTest.java | 24 import android.net.wifi.SoftApConfiguration; 51 SoftApConfiguration.SECURITY_TYPE_WPA2_PSK)).isFalse(); in testPassword() 53 SoftApConfiguration.SECURITY_TYPE_WPA2_PSK)).isTrue(); in testPassword() 55 SoftApConfiguration.SECURITY_TYPE_WPA2_PSK)).isTrue(); in testPassword() 57 SoftApConfiguration.SECURITY_TYPE_WPA2_PSK)).isFalse(); in testPassword() 59 SoftApConfiguration.SECURITY_TYPE_WPA2_PSK)).isFalse(); in testPassword() 61 SoftApConfiguration.SECURITY_TYPE_WPA2_PSK)).isFalse(); in testPassword() 65 SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION)).isFalse(); in testPassword() 67 SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION)).isTrue(); in testPassword() 69 SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION)).isTrue(); in testPassword() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/ |
D | WifiTetherPasswordPreferenceControllerTest.java | 31 import android.net.wifi.SoftApConfiguration; 69 private SoftApConfiguration mConfig; 75 mConfig = new SoftApConfiguration.Builder().setSsid("test_1234") in setUp() 76 .setPassphrase(INITIAL_PASSWORD, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK) in setUp() 102 assertThat(mController.getPasswordValidated(SoftApConfiguration.SECURITY_TYPE_WPA2_PSK)) in changePreference_shouldUpdateValue() 106 assertThat(mController.getPasswordValidated(SoftApConfiguration.SECURITY_TYPE_WPA2_PSK)) in changePreference_shouldUpdateValue() 133 assertThat(mController.getPasswordValidated(SoftApConfiguration.SECURITY_TYPE_WPA2_PSK)) in updateDisplay_shouldUpdateValue() 137 final SoftApConfiguration config = new SoftApConfiguration.Builder() in updateDisplay_shouldUpdateValue() 138 .setPassphrase(VALID_PASS2, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK).build(); in updateDisplay_shouldUpdateValue() 143 assertThat(mController.getPasswordValidated(SoftApConfiguration.SECURITY_TYPE_WPA2_PSK)) in updateDisplay_shouldUpdateValue() [all …]
|
D | WifiTetherSSIDPreferenceControllerTest.java | 31 import android.net.wifi.SoftApConfiguration; 91 final SoftApConfiguration config = new SoftApConfiguration.Builder() in displayPreference_hasCustomWifiConfig_shouldDisplayCustomSSID() 136 final SoftApConfiguration config = new SoftApConfiguration.Builder() in updateDisplay_shouldUpdateValue() 149 final SoftApConfiguration config = new SoftApConfiguration.Builder() in displayPreference_wifiApDisabled_shouldHideQrCodeIcon() 151 SoftApConfiguration.SECURITY_TYPE_WPA2_PSK).build(); in displayPreference_wifiApDisabled_shouldHideQrCodeIcon() 161 final SoftApConfiguration config = new SoftApConfiguration.Builder() in displayPreference_wifiApEnabled_shouldShowQrCodeIcon() 163 SoftApConfiguration.SECURITY_TYPE_WPA2_PSK).build(); in displayPreference_wifiApEnabled_shouldShowQrCodeIcon()
|
/packages/apps/Settings/src/com/android/settings/wifi/tether/ |
D | WifiTetherApBandPreferenceController.java | 23 import android.net.wifi.SoftApConfiguration; 51 final SoftApConfiguration config = mWifiManager.getSoftApConfiguration(); in updateDisplay() 53 mBandIndex = SoftApConfiguration.BAND_2GHZ; in updateDisplay() 60 new SoftApConfiguration.Builder(config).setBand(SoftApConfiguration.BAND_2GHZ) in updateDisplay() 62 mBandIndex = SoftApConfiguration.BAND_2GHZ; in updateDisplay() 81 case SoftApConfiguration.BAND_2GHZ: in getConfigSummary() 83 case SoftApConfiguration.BAND_5GHZ: in getConfigSummary() 109 if (SoftApConfiguration.BAND_5GHZ == band) { in validateSelection() 111 return SoftApConfiguration.BAND_2GHZ; in validateSelection() 113 return SoftApConfiguration.BAND_5GHZ | SoftApConfiguration.BAND_2GHZ; in validateSelection()
|
D | WifiTetherMaximizeCompatibilityPreferenceController.java | 20 import android.net.wifi.SoftApConfiguration; 87 final SoftApConfiguration config = mWifiManager.getSoftApConfiguration(); in isMaximizeCompatibilityEnabled() 105 return band == SoftApConfiguration.BAND_2GHZ; in isMaximizeCompatibilityEnabled() 113 public void setupMaximizeCompatibility(SoftApConfiguration.Builder builder) { in setupMaximizeCompatibility() 120 SoftApConfiguration.BAND_2GHZ, in setupMaximizeCompatibility() 121 SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ}; in setupMaximizeCompatibility() 131 ? SoftApConfiguration.BAND_2GHZ in setupMaximizeCompatibility() 132 : SoftApConfiguration.BAND_2GHZ | SoftApConfiguration.BAND_5GHZ; in setupMaximizeCompatibility()
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | SoftApCapability.java | 24 import android.net.wifi.SoftApConfiguration.BandType; 205 case SoftApConfiguration.BAND_2GHZ: in setSupportedChannelList() 208 case SoftApConfiguration.BAND_5GHZ: in setSupportedChannelList() 211 case SoftApConfiguration.BAND_6GHZ: in setSupportedChannelList() 214 case SoftApConfiguration.BAND_60GHZ: in setSupportedChannelList() 239 case SoftApConfiguration.BAND_2GHZ: in getSupportedChannelList() 241 case SoftApConfiguration.BAND_5GHZ: in getSupportedChannelList() 243 case SoftApConfiguration.BAND_6GHZ: in getSupportedChannelList() 245 case SoftApConfiguration.BAND_60GHZ: in getSupportedChannelList() 302 capability.setSupportedChannelList(SoftApConfiguration.BAND_2GHZ, in.createIntArray()); [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowCarWifiManager.java | 20 import android.net.wifi.SoftApConfiguration; 43 private static SoftApConfiguration sSoftApConfiguration = 44 new SoftApConfiguration.Builder().build(); 55 sSoftApConfiguration = new SoftApConfiguration.Builder().build(); in reset() 81 public void setSoftApConfig(SoftApConfiguration config) { in setSoftApConfig() 86 public SoftApConfiguration getSoftApConfig() { in getSoftApConfig()
|