Home
last modified time | relevance | path

Searched refs:getSecurityType (Results 1 – 25 of 61) sorted by relevance

123

/packages/modules/Wifi/framework/tests/src/android/net/wifi/util/
DScanResultUtilTest.java66 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
72 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
78 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
85 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
92 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
99 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
106 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
115 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
123 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
130 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DWifiTetherSecurityPreferenceControllerTest.java90 assertThat(mController.getSecurityType()) in onPreferenceChange_toWpa3Sae_shouldUpdateSecurityValue()
99 assertThat(mController.getSecurityType()) in onPreferenceChange_toWpa3SaeTransition_shouldUpdateSecurityValue()
108 assertThat(mController.getSecurityType()) in onPreferenceChange_toWpa2Psk_shouldUpdateSecurityValue()
117 assertThat(mController.getSecurityType()) in onPreferenceChange_toNone_shouldUpdateSecurityValue()
131 assertThat(mController.getSecurityType()) in updateDisplay_toWpa3Sae_shouldUpdateSecurityValue()
145 assertThat(mController.getSecurityType()) in updateDisplay_toWpa3SaeTransition_shouldUpdateSecurityValue()
159 assertThat(mController.getSecurityType()) in updateDisplay_toWpa2Psk_shouldUpdateSecurityValue()
172 assertThat(mController.getSecurityType()) in updateDisplay_toNone_shouldUpdateSecurityValue()
187 assertThat(mController.getSecurityType()) in updateDisplay_toWpa3SaeButNotSupportWpa3_shouldBeDefaultToWpa2()
202 assertThat(mController.getSecurityType()) in updateDisplay_toWpa3SaeTransitionButNotSupportWpa3_shouldBeDefaultToWpa2()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiTetherSecurityPreferenceControllerTest.java94 when(mConfig.getSecurityType()).thenReturn(SoftApConfiguration.SECURITY_TYPE_OPEN); in onStart_securityTypeSetToNone_setsValueToNone()
106 when(mConfig.getSecurityType()).thenReturn(SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in onStart_securityTypeSetToWPA2PSK_setsValueToWPA2PSK()
118 when(mConfig.getSecurityType()).thenReturn(SoftApConfiguration.SECURITY_TYPE_WPA3_SAE); in onStart_securityTypeSetToWPA3SAE_setsValueForSupportedDevicesToWPA3SAE()
135 when(mConfig.getSecurityType()).thenReturn(SoftApConfiguration.SECURITY_TYPE_WPA3_SAE); in onStart_securityTypeSetToWPA3SAE_setsValueForUnSupportedDevicesToWPA2PSK()
160 when(mConfig.getSecurityType()).thenReturn(SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in onPreferenceChangedToNone_updatesSharedSecurityTypeToNone()
176 when(mConfig.getSecurityType()).thenReturn(SoftApConfiguration.SECURITY_TYPE_OPEN); in onPreferenceChangedToWPA2PSK_updatesSharedSecurityTypeToWPA2PSK()
194 when(mConfig.getSecurityType()).thenReturn(SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in onPreferenceChangedToWPA3SAE_updatesSharedSecurityTypeToWPA3SAE()
217 when(mConfig.getSecurityType()).thenReturn(SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in onPreferenceChangedToWPA3SAE_updatesSharedSecurityTypeToWPA2PSK()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSoftApStoreDataTest.java504 assertEquals(softApConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in deserializeSoftAp()
549 assertEquals(softApConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in deserializeOldSoftApXMLWhichShutdownTimeoutIsInt()
577 assertEquals(softApConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in deserializeOldSsidSoftAp()
599 assertEquals(softApConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in deserializeOldBandSoftAp()
621 assertEquals(softApConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in deserializeNewBandSoftApButNoNewConfig()
655 assertEquals(softApConfig.getSecurityType(), in serializeDeserializeSoftAp()
656 softApConfigDeserialized.getSecurityType()); in serializeDeserializeSoftAp()
692 assertEquals(softApConfig.getSecurityType(), in serializeDeserializeSoftApWpa3Sae()
693 softApConfigDeserialized.getSecurityType()); in serializeDeserializeSoftApWpa3Sae()
729 assertEquals(softApConfig.getSecurityType(), in serializeDeserializeSoftApWpa3SaeTransition()
[all …]
DSoftApBackupRestoreTest.java107 assertEquals(SoftApConfiguration.SECURITY_TYPE_WPA2_PSK, restore.getSecurityType()); in assertWifiConfigurationEqualSoftApConfiguration()
109 assertEquals(SoftApConfiguration.SECURITY_TYPE_OPEN, restore.getSecurityType()); in assertWifiConfigurationEqualSoftApConfiguration()
427 out.writeInt(config.getSecurityType()); in retrieveSpecificVersionBackupDataFromSoftApConfiguration()
DWifiApConfigStoreTest.java229 assertEquals(config1.getSecurityType(), config2.getSecurityType()); in verifyApConfig()
250 assertEquals(SECURITY_TYPE_WPA3_SAE_TRANSITION, config.getSecurityType()); in verifyDefaultApConfig()
252 assertEquals(SECURITY_TYPE_WPA2_PSK, config.getSecurityType()); in verifyDefaultApConfig()
297 assertEquals(SECURITY_TYPE_WPA3_SAE_TRANSITION, config.getSecurityType()); in verifyDefaultLocalOnlyApConfig()
299 assertEquals(SECURITY_TYPE_WPA2_PSK, config.getSecurityType()); in verifyDefaultLocalOnlyApConfig()
1131 assertEquals(resetedConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in testResetToDefaultForUnsupportedConfig()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DScanResultMatchInfo.java88 if (securityParams.getSecurityType() == WifiConfiguration.SECURITY_TYPE_SAE in isAutoUpgradeSecurityParamsAllowed()
93 if (securityParams.getSecurityType() == WifiConfiguration.SECURITY_TYPE_OWE in isAutoUpgradeSecurityParamsAllowed()
124 if (!allowedParams.isSecurityType(scanResultParams.getSecurityType())) { in findBestMatchingSecurityParams()
DWifiCandidates.java554 this.securityType = matchInfo.getDefaultSecurityParams().getSecurityType(); in Key()
688 params.getSecurityType()); in keyFromScanDetailAndConfig()
718 key.matchInfo.getDefaultSecurityParams().getSecurityType())); in add()
DWifiApConfigStore.java294 if (!ApConfigUtil.isWpa3SaeSupported(mContext) && (config.getSecurityType() in resetToDefaultForUnsupportedConfig()
296 || config.getSecurityType() in resetToDefaultForUnsupportedConfig()
641 authType = apConfig.getSecurityType(); in validateApWifiConfiguration()
/packages/apps/Settings/src/com/android/settings/wifi/repository/
DWifiHotspotRepository.java138 if (config.getSecurityType() != SoftApConfiguration.SECURITY_TYPE_OPEN) { in queryLastPasswordIfNeeded()
224 public LiveData<Integer> getSecurityType() { in getSecurityType() method in WifiHotspotRepository
239 int securityType = (config != null) ? config.getSecurityType() : SECURITY_TYPE_OPEN; in updateSecurityType()
252 getSecurityType(); in setSecurityType()
343 if (config.getSecurityType() != SECURITY_TYPE_WPA3_SAE) { in setSpeedType()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/repository/
DWifiHotspotRepositoryTest.java256 assertThat(mRepository.getSecurityType()).isNotNull(); in getSecurityType_shouldNotReturnNull()
311 assertThat(mSoftApConfigCaptor.getValue().getSecurityType()) in setSecurityType_wpa3ToWpa2Wpa3_setConfigCorrectly()
322 assertThat(mSoftApConfigCaptor.getValue().getSecurityType()) in setSecurityType_Wpa2Wpa3ToWpa2_setConfigCorrectly()
333 assertThat(mSoftApConfigCaptor.getValue().getSecurityType()) in setSecurityType_Wpa2ToOpen_setConfigCorrectly()
344 assertThat(mSoftApConfigCaptor.getValue().getSecurityType()) in setSecurityType_OpenToWpa3_setConfigCorrectly()
485 assertThat(mSoftApConfigCaptor.getValue().getSecurityType()) in setSpeedType_2g5ghzTo6ghz_setConfigSecurityToWpa3()
500 assertThat(mSoftApConfigCaptor.getValue().getSecurityType()) in setSpeedType_6ghzTo2g5ghz_setConfigBandsTo2g5ghz()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSecurityPreferenceController.java102 final int securityType = mWifiManager.getSoftApConfiguration().getSecurityType(); in updateDisplay()
134 public int getSecurityType() { in getSecurityType() method in WifiTetherSecurityPreferenceController
DWifiTetherPasswordPreferenceController.java73 if (config.getSecurityType() != SoftApConfiguration.SECURITY_TYPE_OPEN in updateDisplay()
79 mSecurityType = config.getSecurityType(); in updateDisplay()
DWifiHotspotSecurityViewModel.java70 mWifiHotspotRepository.getSecurityType().observeForever(mSecurityTypeObserver); in WifiHotspotSecurityViewModel()
76 mWifiHotspotRepository.getSecurityType().removeObserver(mSecurityTypeObserver); in onCleared()
DWifiTetherSettings.java293 mPasswordPreferenceController.setSecurityType(config.getSecurityType()); in onTetherConfigUpdated()
321 ? currentConfig.getSecurityType() in buildNewConfig()
322 : mSecurityPreferenceController.getSecurityType(); in buildNewConfig()
DWifiTetherViewModel.java109 mWifiHotspotRepository.getSecurityType().removeObserver(mSecurityTypeObserver); in onCleared()
160 mWifiHotspotRepository.getSecurityType().observeForever(mSecurityTypeObserver); in getSecuritySummary()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java773 int securityType = config.getSecurityType(); in remove6gBandForUnsupportedSecurity()
777 && isSecurityTypeRestrictedFor6gBand(config.getSecurityType())) { in remove6gBandForUnsupportedSecurity()
860 if (is11beDisabledForSecurityType(config.getSecurityType())) { in is11beAllowedForThisConfiguration()
1308 || currentConfig.getSecurityType() != newConfig.getSecurityType()
1334 if (config.getSecurityType() == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION
1335 || config.getSecurityType() == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE) {
1383 if (config.getSecurityType() == SoftApConfiguration.SECURITY_TYPE_WPA3_OWE_TRANSITION) {
1389 if (config.getSecurityType() == SoftApConfiguration.SECURITY_TYPE_WPA3_OWE) {
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DSoftApConfigurationTest.java110 assertThat(original.getSecurityType()).isEqualTo(SoftApConfiguration.SECURITY_TYPE_OPEN); in testBasicSettings()
185 assertThat(original.getSecurityType()).isEqualTo( in testWpa2()
235 assertThat(original.getSecurityType()).isEqualTo( in testWpa2WithAllFieldCustomized()
284 assertThat(original.getSecurityType()).isEqualTo( in testWpa3Sae()
310 assertThat(original.getSecurityType()).isEqualTo( in testWpa3SaeTransition()
338 assertThat(original.getSecurityType()).isEqualTo( in testWpa3OweTransition()
370 assertThat(original.getSecurityType()).isEqualTo( in testWpa3Owe()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherUtil.java80 if (softApConfig.getSecurityType() == SoftApConfiguration.SECURITY_TYPE_OPEN) { in getHotspotPassword()
DWifiEntrySecurity.java60 public int getSecurityType() { in getSecurityType() method in WifiEntrySecurity
DWifiTetherQrCodePreferenceController.java116 int securityType = getCarSoftApConfig().getSecurityType(); in updateQrCode()
DWifiTetherPasswordPreferenceController.java77 mSecurityType = getCarSoftApConfig().getSecurityType(); in onCreateInternal()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiTetherPasswordPreferenceControllerTest.java218 assertThat(mCarWifiManager.getSoftApConfig().getSecurityType()) in onSecurityChangedToNone_updatesSecurityTypeToNone()
242 assertThat(mCarWifiManager.getSoftApConfig().getSecurityType()) in onSecurityChangedToWPA2PSK_updatesSecurityTypeToWPA2PSK()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherSettingsTest.java171 when(mSecurityPreferenceController.getSecurityType()).thenReturn(SECURITY_TYPE_WPA3_SAE); in setUp()
475 when(mSecurityPreferenceController.getSecurityType()).thenReturn(SECURITY_TYPE_OPEN); in buildNewConfig_securityTypeChangeToOpen_setSecurityTypeCorrectly()
478 assertThat(newConfig.getSecurityType()).isEqualTo(SECURITY_TYPE_OPEN); in buildNewConfig_securityTypeChangeToOpen_setSecurityTypeCorrectly()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java320 final int securityType = softApConfiguration.getSecurityType(); in getHotspotConfiguratorIntentOrNull()
503 final int securityType = softApConfiguration.getSecurityType(); in isSupportHotspotConfiguratorQrCodeGenerator()

123