Home
last modified time | relevance | path

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

12

/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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java106 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
112 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
118 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
125 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
132 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
139 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
146 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
155 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
163 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
170 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSoftApStoreDataTest.java387 assertEquals(softApConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in deserializeSoftAp()
429 assertEquals(softApConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in deserializeOldSoftApXMLWhichShutdownTimeoutIsInt()
457 assertEquals(softApConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in deserializeOldBandSoftAp()
479 assertEquals(softApConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in deserializeNewBandSoftApButNoNewConfig()
513 assertEquals(softApConfig.getSecurityType(), in serializeDeserializeSoftAp()
514 softApConfigDeserialized.getSecurityType()); in serializeDeserializeSoftAp()
550 assertEquals(softApConfig.getSecurityType(), in serializeDeserializeSoftApWpa3Sae()
551 softApConfigDeserialized.getSecurityType()); in serializeDeserializeSoftApWpa3Sae()
587 assertEquals(softApConfig.getSecurityType(), in serializeDeserializeSoftApWpa3SaeTransition()
588 softApConfigDeserialized.getSecurityType()); in serializeDeserializeSoftApWpa3SaeTransition()
[all …]
DSoftApBackupRestoreTest.java104 assertEquals(SoftApConfiguration.SECURITY_TYPE_WPA2_PSK, restore.getSecurityType()); in assertWifiConfigurationEqualSoftApConfiguration()
106 assertEquals(SoftApConfiguration.SECURITY_TYPE_OPEN, restore.getSecurityType()); in assertWifiConfigurationEqualSoftApConfiguration()
355 out.writeInt(config.getSecurityType()); in retrieveVersion5BackupDataFromSoftApConfiguration()
433 out.writeInt(config.getSecurityType()); in retrieveVersion6BackupDataFromSoftApConfiguration()
459 out.writeInt(config.getSecurityType()); in retrieveVersion7BackupDataFromSoftApConfiguration()
DWifiApConfigStoreTest.java187 assertEquals(config1.getSecurityType(), config2.getSecurityType()); in verifyApConfig()
209 assertEquals(SECURITY_TYPE_WPA3_SAE_TRANSITION, config.getSecurityType()); in verifyDefaultApConfig()
211 assertEquals(SECURITY_TYPE_WPA2_PSK, config.getSecurityType()); in verifyDefaultApConfig()
251 assertEquals(SECURITY_TYPE_WPA3_SAE_TRANSITION, config.getSecurityType()); in verifyDefaultLocalOnlyApConfig()
253 assertEquals(SECURITY_TYPE_WPA2_PSK, config.getSecurityType()); in verifyDefaultLocalOnlyApConfig()
919 assertEquals(resetedConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in testResetToDefaultForUnsupportedConfig()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DScanResultMatchInfo.java87 if (securityParams.getSecurityType() == WifiConfiguration.SECURITY_TYPE_SAE in isAutoUpgradeSecurityParamsAllowed()
92 if (securityParams.getSecurityType() == WifiConfiguration.SECURITY_TYPE_OWE in isAutoUpgradeSecurityParamsAllowed()
123 if (!allowedParams.isSecurityType(scanResultParams.getSecurityType())) { in findBestMatchingSecurityParams()
DWifiCandidates.java433 this.securityType = matchInfo.getDefaultSecurityParams().getSecurityType(); in Key()
516 params.getSecurityType()); in keyFromScanDetailAndConfig()
544 key.matchInfo.getDefaultSecurityParams().getSecurityType())); in add()
DWifiApConfigStore.java230 if (!ApConfigUtil.isWpa3SaeSupported(mContext) && (config.getSecurityType() in resetToDefaultForUnsupportedConfig()
232 || config.getSecurityType() in resetToDefaultForUnsupportedConfig()
535 authType = apConfig.getSecurityType(); in validateApWifiConfiguration()
DSoftApStoreData.java132 XmlUtil.writeNextValue(out, XML_TAG_SECURITY_TYPE, softApConfig.getSecurityType()); in serializeData()
133 if (softApConfig.getSecurityType() != SoftApConfiguration.SECURITY_TYPE_OPEN) { in serializeData()
DWifiConfigurationUtil.java986 switch (params.getSecurityType()) { in isSecurityParamsSupported()
1075 params.getSecurityType()); in convertMultiTypeConfigsToLegacyConfigs()
1076 int securityType = params.getSecurityType(); in convertMultiTypeConfigsToLegacyConfigs()
DSoftApBackupRestore.java93 out.writeInt(config.getSecurityType()); in retrieveBackupDataFromSoftApConfiguration()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DSoftApConfigurationTest.java84 assertThat(original.getSecurityType()).isEqualTo(SoftApConfiguration.SECURITY_TYPE_OPEN); in testBasicSettings()
117 assertThat(original.getSecurityType()).isEqualTo( in testWpa2()
160 assertThat(original.getSecurityType()).isEqualTo( in testWpa2WithAllFieldCustomized()
201 assertThat(original.getSecurityType()).isEqualTo( in testWpa3Sae()
227 assertThat(original.getSecurityType()).isEqualTo( in testWpa3SaeTransition()
DSecurityParamsTest.java53 assertEquals(expectedSecurityType, params.getSecurityType()); in verifySecurityParams()
91 SecurityParams.createSecurityParamsBySecurityType(type).getSecurityType()); in testSecurityTypeCreator()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSecurityPreferenceController.java89 final int securityType = mWifiManager.getSoftApConfiguration().getSecurityType(); in updateDisplay()
121 public int getSecurityType() { in getSecurityType() method in WifiTetherSecurityPreferenceController
DWifiTetherPasswordPreferenceController.java75 if (config.getSecurityType() != SoftApConfiguration.SECURITY_TYPE_OPEN in updateDisplay()
81 mSecurityType = config.getSecurityType(); in updateDisplay()
DWifiTetherSettings.java193 mPasswordPreferenceController.setSecurityType(config.getSecurityType()); in onTetherConfigUpdated()
215 final int securityType = mSecurityPreferenceController.getSecurityType(); in buildNewConfig()
/packages/apps/Settings/src/com/android/settings/
DAllInOneTetherSettings.java358 mPasswordPreferenceController.setSecurityType(config.getSecurityType()); in onTetherConfigUpdated()
372 final int securityType = mSecurityPreferenceController.getSecurityType(); in buildNewConfig()
401 return (mSecurityPreferenceController.getSecurityType() in getInitialExpandedChildCount()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java831 || currentConfig.getSecurityType() != newConfig.getSecurityType() in checkConfigurationChangeNeedToRestart()
859 && (config.getSecurityType() in checkSupportAllConfiguration()
861 || config.getSecurityType() == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE)) { in checkSupportAllConfiguration()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DAllInOneTetherSettingsTest.java190 when(mSecurityPreferenceController.getSecurityType()) in getInitialChildCount_withSecurity()
198 when(mSecurityPreferenceController.getSecurityType()) in getInitialChildCount_withoutSecurity()
/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/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java304 final int securityType = softApConfiguration.getSecurityType(); in getHotspotConfiguratorIntentOrNull()
438 final int securityType = softApConfiguration.getSecurityType(); in isSupportHotspotConfiguratorQrCodeGenerator()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiEntrySecurity.java60 public int getSecurityType() { in getSecurityType() method in WifiEntrySecurity
DWifiTetherSecurityPreferenceController.java57 mSecurityType = getCarSoftApConfig().getSecurityType(); in onCreateInternal()
DWifiTetherPasswordPreferenceController.java77 mSecurityType = getCarSoftApConfig().getSecurityType(); in onCreateInternal()
/packages/modules/Wifi/framework/java/android/net/wifi/
DSoftApConfiguration.java400 sbuf.append(" \n SecurityType = ").append(getSecurityType()); in toString()
620 public @SecurityType int getSecurityType() { in getSecurityType() method in SoftApConfiguration

12