Home
last modified time | relevance | path

Searched refs:securityType (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherPasswordPreferenceController.java108 public String getPasswordValidated(int securityType) { in getPasswordValidated() argument
110 if (securityType == SoftApConfiguration.SECURITY_TYPE_OPEN) { in getPasswordValidated()
112 } else if (!WifiUtils.isHotspotPasswordValid(mPassword, securityType)) { in getPasswordValidated()
125 public void setSecurityType(int securityType) { in setSecurityType() argument
126 mSecurityType = securityType; in setSecurityType()
127 mPreference.setVisible(securityType != SoftApConfiguration.SECURITY_TYPE_OPEN); in setSecurityType()
DWifiTetherSecurityPreferenceController.java89 final int securityType = mWifiManager.getSoftApConfiguration().getSecurityType(); in updateDisplay() local
90 mSecurityValue = mSecurityMap.get(securityType) != null in updateDisplay()
91 ? securityType : SoftApConfiguration.SECURITY_TYPE_WPA2_PSK; in updateDisplay()
DWifiTetherSettings.java215 final int securityType = mSecurityPreferenceController.getSecurityType(); in buildNewConfig() local
217 if (securityType != SoftApConfiguration.SECURITY_TYPE_OPEN) { in buildNewConfig()
219 mPasswordPreferenceController.getPasswordValidated(securityType), in buildNewConfig()
220 securityType); in buildNewConfig() local
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java304 final int securityType = softApConfiguration.getSecurityType(); in getHotspotConfiguratorIntentOrNull() local
305 if (securityType == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE) { in getHotspotConfiguratorIntentOrNull()
307 } else if (securityType == SoftApConfiguration.SECURITY_TYPE_WPA2_PSK in getHotspotConfiguratorIntentOrNull()
308 || securityType == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION) { in getHotspotConfiguratorIntentOrNull()
438 final int securityType = softApConfiguration.getSecurityType(); in isSupportHotspotConfiguratorQrCodeGenerator() local
439 return securityType == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE in isSupportHotspotConfiguratorQrCodeGenerator()
440 || securityType == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION in isSupportHotspotConfiguratorQrCodeGenerator()
441 || securityType == SoftApConfiguration.SECURITY_TYPE_WPA2_PSK in isSupportHotspotConfiguratorQrCodeGenerator()
442 || securityType == SoftApConfiguration.SECURITY_TYPE_OPEN; in isSupportHotspotConfiguratorQrCodeGenerator()
DWifiDppQrCodeGeneratorFragment.java149 String securityType = wifiNetworkConfig.getSecurity(); in onViewCreated()
154 wifiCredentialBundle.putString(EXTRA_SECURITY_TYPE, securityType); in onViewCreated()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCandidates.java424 public final @WifiConfiguration.SecurityType int securityType; field in WifiCandidates.Key
433 this.securityType = matchInfo.getDefaultSecurityParams().getSecurityType(); in Key()
439 int securityType) { in Key() argument
443 this.securityType = securityType; in Key()
453 && this.securityType == that.securityType); in equals()
458 return Objects.hash(matchInfo, bssid, networkId, securityType); in hashCode()
DSoftApBackupRestore.java158 int securityType = in.readInt(); in retrieveSoftApConfigurationFromBackupData() local
159 if (version < 4 && securityType == WifiConfiguration.KeyMgmt.WPA2_PSK) { in retrieveSoftApConfigurationFromBackupData()
161 } else if (version >= 4 && securityType != SoftApConfiguration.SECURITY_TYPE_OPEN) { in retrieveSoftApConfigurationFromBackupData()
162 configBuilder.setPassphrase(passphrase, securityType); in retrieveSoftApConfigurationFromBackupData()
DSoftApStoreData.java183 int securityType = SoftApConfiguration.SECURITY_TYPE_OPEN; in deserializeData() local
227 securityType = (int) value; in deserializeData()
325 if (securityType != SoftApConfiguration.SECURITY_TYPE_OPEN) { in deserializeData()
326 softApConfigBuilder.setPassphrase(passphrase, securityType); in deserializeData()
DWifiConfigurationUtil.java1076 int securityType = params.getSecurityType(); in convertMultiTypeConfigsToLegacyConfigs() local
1077 if (securityType == SECURITY_TYPE_EAP) { in convertMultiTypeConfigsToLegacyConfigs()
1079 } else if (securityType == SECURITY_TYPE_EAP_WPA3_ENTERPRISE) { in convertMultiTypeConfigsToLegacyConfigs()
1100 @WifiInfo.SecurityType int securityType) { in convertWifiInfoSecurityTypeToWifiConfiguration()
1101 switch (securityType) { in convertWifiInfoSecurityTypeToWifiConfiguration()
1146 int netId, @WifiConfiguration.SecurityType int securityType) { in addSecurityTypeToNetworkId() argument
1151 | ((securityType & NETWORK_ID_SECURITY_MASK) << NETWORK_ID_SECURITY_OFFSET); in addSecurityTypeToNetworkId()
DScanResultMatchInfo.java227 public boolean isSecurityType(@WifiConfiguration.SecurityType int securityType) { in isSecurityType() argument
228 return securityParamsList.stream().anyMatch(p -> p.isSecurityType(securityType)); in isSecurityType()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DWifiInfo.java71 public final String securityType; field in WifiInfo
144 bundle.putString(EXTRA_PROVISIONING_WIFI_SECURITY_TYPE, securityType); in toPersistableBundle()
187 securityType = builder.mSecurityType; in WifiInfo()
242 public Builder setSecurityType(String securityType) { in setSecurityType() argument
243 mSecurityType = securityType; in setSecurityType()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiConfiguration.java583 public void setSecurityParams(@SecurityType int securityType) { in setSecurityParams() argument
586 addSecurityParams(securityType); in setSecurityParams()
653 public void addSecurityParams(@SecurityType int securityType) { in addSecurityParams() argument
655 if (mSecurityParamsList.stream().anyMatch(params -> params.isSecurityType(securityType))) { in addSecurityParams()
656 throw new IllegalArgumentException("duplicate security type " + securityType); in addSecurityParams()
658 addSecurityParams(SecurityParams.createSecurityParamsBySecurityType(securityType)); in addSecurityParams()
750 public void setSecurityParamsEnabled(@SecurityType int securityType, boolean enable) { in setSecurityParamsEnabled() argument
752 .filter(params -> params.isSecurityType(securityType)) in setSecurityParamsEnabled()
775 @SecurityType int securityType, boolean isAddedByAutoUpgrade) { in setSecurityParamsIsAddedByAutoUpgrade()
777 .filter(params -> params.isSecurityType(securityType)) in setSecurityParamsIsAddedByAutoUpgrade()
[all …]
DSoftApConfiguration.java325 @SecurityType int securityType, int maxNumberOfClients, boolean shutdownTimeoutEnabled, in SoftApConfiguration() argument
340 mSecurityType = securityType; in SoftApConfiguration()
1026 public Builder setPassphrase(@Nullable String passphrase, @SecurityType int securityType) { in setPassphrase() argument
1027 if (securityType == SECURITY_TYPE_OPEN) { in setPassphrase()
1034 if (securityType == SECURITY_TYPE_WPA2_PSK in setPassphrase()
1035 || securityType == SECURITY_TYPE_WPA3_SAE_TRANSITION) { in setPassphrase()
1044 mSecurityType = securityType; in setPassphrase()
DWifiInfo.java599 public Builder setCurrentSecurityType(@WifiConfiguration.SecurityType int securityType) { in setCurrentSecurityType() argument
600 mWifiInfo.setCurrentSecurityType(securityType); in setCurrentSecurityType()
1559 public void setCurrentSecurityType(@WifiConfiguration.SecurityType int securityType) { in setCurrentSecurityType() argument
1560 mSecurityType = convertSecurityTypeToWifiInfo(securityType); in setCurrentSecurityType()
1581 @WifiConfiguration.SecurityType int securityType) { in convertSecurityTypeToWifiInfo()
1582 switch (securityType) { in convertSecurityTypeToWifiInfo()
DSecurityParams.java602 @WifiConfiguration.SecurityType int securityType) { in createSecurityParamsBySecurityType()
603 switch (securityType) { in createSecurityParamsBySecurityType()
634 throw new IllegalArgumentException("unknown security type " + securityType); in createSecurityParamsBySecurityType()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareNativeApi.java727 req.baseConfigs.securityConfig.securityType = NanDataPathSecurityType.OPEN; in publish()
804 req.baseConfigs.securityConfig.securityType = NanDataPathSecurityType.OPEN; in subscribe()
1067 req.securityConfig.securityType = NanDataPathSecurityType.OPEN; in initiateDataPath()
1071 req.securityConfig.securityType = NanDataPathSecurityType.PMK; in initiateDataPath()
1077 req.securityConfig.securityType = NanDataPathSecurityType.PASSPHRASE; in initiateDataPath()
1081 if (req.securityConfig.securityType != NanDataPathSecurityType.OPEN && isOutOfBand) { in initiateDataPath()
1144 req.securityConfig.securityType = NanDataPathSecurityType.OPEN; in respondToDataPathRequest()
1148 req.securityConfig.securityType = NanDataPathSecurityType.PMK; in respondToDataPathRequest()
1154 req.securityConfig.securityType = NanDataPathSecurityType.PASSPHRASE; in respondToDataPathRequest()
1158 if (req.securityConfig.securityType != NanDataPathSecurityType.OPEN && isOutOfBand) { in respondToDataPathRequest()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProvider.java112 String securityType = wifiInfo.securityType != null ? wifiInfo.securityType : NONE; in generateWifiConfiguration() local
113 switch (securityType) { in generateWifiConfiguration()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiEntrySecurity.java55 private WifiEntrySecurity(Context context, int securityType) { in WifiEntrySecurity() argument
57 mSecurityType = securityType; in WifiEntrySecurity()
DNetworkSecurityPreferenceController.java138 private void notifySecurityChange(int securityType) { in notifySecurityChange() argument
140 intent.putExtra(KEY_SECURITY_TYPE, securityType); in notifySecurityChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/addappnetworks/
DAddAppNetworksFragmentTest.java501 securityType, in generateRegularWifiConfiguration() argument
505 config.allowedKeyManagement.set(securityType); in generateRegularWifiConfiguration()
514 int securityType, in generateRegularWifiSuggestion() argument
518 switch (securityType) { in generateRegularWifiSuggestion()
/packages/apps/Settings/src/com/android/settings/
DAllInOneTetherSettings.java372 final int securityType = mSecurityPreferenceController.getSecurityType(); in buildNewConfig() local
374 if (securityType == SoftApConfiguration.SECURITY_TYPE_WPA2_PSK) { in buildNewConfig()
376 mPasswordPreferenceController.getPasswordValidated(securityType), in buildNewConfig()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiUtils.java62 public static boolean isHotspotPasswordValid(String password, int securityType) { in isHotspotPasswordValid() argument
65 configBuilder.setPassphrase(password, securityType); in isHotspotPasswordValid()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationUtilTest.java1334 for (@WifiConfiguration.SecurityType int securityType : securityList) { in testAddAndRemoveSecurityTypeForNetworkId()
1337 netId, securityType))); in testAddAndRemoveSecurityTypeForNetworkId()
1340 for (@WifiConfiguration.SecurityType int securityType : securityList) { in testAddAndRemoveSecurityTypeForNetworkId()
1345 netId, securityType)))); in testAddAndRemoveSecurityTypeForNetworkId()
1354 for (@WifiConfiguration.SecurityType int securityType : securityList) { in testAddAndRemoveSecurityTypeForNetworkId()
1355 assertEquals(netId, addSecurityTypeToNetworkId(netId, securityType)); in testAddAndRemoveSecurityTypeForNetworkId()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareNativeApiTest.java693 equalTo(nidpr.securityConfig.securityType)); in validateInitiateDataPath()
704 equalTo(nidpr.securityConfig.securityType)); in validateInitiateDataPath()
756 equalTo(nrtdpir.securityConfig.securityType)); in validateRespondToDataPathRequest()
767 equalTo(nrtdpir.securityConfig.securityType)); in validateRespondToDataPathRequest()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/model/
DWifiInfoRoboTest.java60 assertEquals(TEST_SECURITY_TYPE, wifiInfo.securityType); in testBuilderWriteAndReadBack()

12