Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherPasswordPreferenceController.java106 public String getPasswordValidated(int securityType) { in getPasswordValidated() argument
108 if (securityType == SoftApConfiguration.SECURITY_TYPE_OPEN) { in getPasswordValidated()
110 } else if (!WifiUtils.isHotspotPasswordValid(mPassword, securityType)) { in getPasswordValidated()
123 public void setSecurityType(int securityType) { in setSecurityType() argument
124 mSecurityType = securityType; in setSecurityType()
125 mPreference.setVisible(securityType != SoftApConfiguration.SECURITY_TYPE_OPEN); in setSecurityType()
DWifiTetherSecurityPreferenceController.java102 final int securityType = mWifiManager.getSoftApConfiguration().getSecurityType(); in updateDisplay() local
103 mSecurityValue = mSecurityMap.get(securityType) != null in updateDisplay()
104 ? securityType : SoftApConfiguration.SECURITY_TYPE_WPA2_PSK; in updateDisplay()
DWifiHotspotSecurityViewModel.java80 protected void onSecurityTypeChanged(int securityType) { in onSecurityTypeChanged() argument
81 log("onSecurityTypeChanged(), securityType:" + securityType); in onSecurityTypeChanged()
83 entry.getValue().mIsChecked = entry.getKey().equals(securityType); in onSecurityTypeChanged()
DWifiTetherViewModel.java165 protected void onSecurityTypeChanged(int securityType) { in onSecurityTypeChanged() argument
167 if (sSecuritySummaryResMap.containsKey(securityType)) { in onSecurityTypeChanged()
168 resId = sSecuritySummaryResMap.get(securityType); in onSecurityTypeChanged()
DWifiTetherSettings.java319 int securityType = in buildNewConfig() local
324 securityType == SoftApConfiguration.SECURITY_TYPE_OPEN in buildNewConfig()
326 : mPasswordPreferenceController.getPasswordValidated(securityType); in buildNewConfig()
327 configBuilder.setPassphrase(passphrase, securityType); in buildNewConfig()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java320 final int securityType = softApConfiguration.getSecurityType(); in getHotspotConfiguratorIntentOrNull() local
321 if (securityType == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE) { in getHotspotConfiguratorIntentOrNull()
323 } else if (securityType == SoftApConfiguration.SECURITY_TYPE_WPA2_PSK in getHotspotConfiguratorIntentOrNull()
324 || securityType == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION) { in getHotspotConfiguratorIntentOrNull()
503 final int securityType = softApConfiguration.getSecurityType(); in isSupportHotspotConfiguratorQrCodeGenerator() local
504 return securityType == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE in isSupportHotspotConfiguratorQrCodeGenerator()
505 || securityType == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION in isSupportHotspotConfiguratorQrCodeGenerator()
506 || securityType == SoftApConfiguration.SECURITY_TYPE_WPA2_PSK in isSupportHotspotConfiguratorQrCodeGenerator()
507 || securityType == SoftApConfiguration.SECURITY_TYPE_OPEN; in isSupportHotspotConfiguratorQrCodeGenerator()
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiNanIfaceHidlImpl.java653 req.baseConfigs.securityConfig.securityType = NanDataPathSecurityType.OPEN; in publishInternal()
659 req.baseConfigs.securityConfig.securityType = NanDataPathSecurityType.PMK; in publishInternal()
664 req.baseConfigs.securityConfig.securityType = in publishInternal()
706 req.baseConfigs.securityConfig.securityType = NanDataPathSecurityType.OPEN; in publishInternal()
712 req.baseConfigs.securityConfig.securityType = NanDataPathSecurityType.PMK; in publishInternal()
717 req.baseConfigs.securityConfig.securityType = in publishInternal()
778 req.baseConfigs.securityConfig.securityType = NanDataPathSecurityType.OPEN; in subscribeInternal()
873 req.securityConfig.securityType = NanDataPathSecurityType.OPEN; in initiateDataPathInternal()
879 req.securityConfig.securityType = NanDataPathSecurityType.PMK; in initiateDataPathInternal()
884 req.securityConfig.securityType = NanDataPathSecurityType.PASSPHRASE; in initiateDataPathInternal()
[all …]
DWifiNanIfaceAidlImpl.java844 req.baseConfigs.securityConfig.securityType = NanDataPathSecurityType.OPEN; in createNanPublishRequest()
850 req.baseConfigs.securityConfig.securityType = NanDataPathSecurityType.PMK; in createNanPublishRequest()
855 req.baseConfigs.securityConfig.securityType = NanDataPathSecurityType.PASSPHRASE; in createNanPublishRequest()
928 req.baseConfigs.securityConfig.securityType = NanDataPathSecurityType.OPEN; in createNanSubscribeRequest()
996 req.securityConfig.securityType = NanDataPathSecurityType.OPEN; in createNanInitiateDataPathRequest()
1000 req.securityConfig.securityType = NanDataPathSecurityType.PMK; in createNanInitiateDataPathRequest()
1006 req.securityConfig.securityType = NanDataPathSecurityType.PASSPHRASE; in createNanInitiateDataPathRequest()
1013 if (req.securityConfig.securityType != NanDataPathSecurityType.OPEN && isOutOfBand) { in createNanInitiateDataPathRequest()
1038 request.securityConfig.securityType = NanPairingSecurityType.PMK; in createNanPairingRequest()
1043 request.securityConfig.securityType = NanPairingSecurityType.PASSPHRASE; in createNanPairingRequest()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/repository/
DWifiHotspotRepository.java239 int securityType = (config != null) ? config.getSecurityType() : SECURITY_TYPE_OPEN; in updateSecurityType() local
240 log("updateSecurityType(), securityType:" + securityType); in updateSecurityType()
241 mSecurityType.setValue(securityType); in updateSecurityType()
249 public void setSecurityType(int securityType) { in setSecurityType() argument
250 log("setSecurityType():" + securityType); in setSecurityType()
254 if (securityType == mSecurityType.getValue()) { in setSecurityType()
266 String passphrase = (securityType == SECURITY_TYPE_OPEN) ? null : generatePassword(config); in setSecurityType()
267 configBuilder.setPassphrase(passphrase, securityType); in setSecurityType()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCandidates.java545 public final @WifiConfiguration.SecurityType int securityType; field in WifiCandidates.Key
554 this.securityType = matchInfo.getDefaultSecurityParams().getSecurityType(); in Key()
560 int securityType) { in Key() argument
564 this.securityType = securityType; in Key()
574 && this.securityType == that.securityType); in equals()
579 return Objects.hash(matchInfo, bssid, networkId, securityType); in hashCode()
DSoftApBackupRestore.java201 int securityType = in.readInt(); in retrieveSoftApConfigurationFromBackupData() local
202 if (version < 4 && securityType == WifiConfiguration.KeyMgmt.WPA2_PSK) { in retrieveSoftApConfigurationFromBackupData()
204 } else if (version >= 4 && securityType != SoftApConfiguration.SECURITY_TYPE_OPEN) { in retrieveSoftApConfigurationFromBackupData()
205 configBuilder.setPassphrase(passphrase, securityType); in retrieveSoftApConfigurationFromBackupData()
DScanResultMatchInfo.java228 public boolean isSecurityType(@WifiConfiguration.SecurityType int securityType) { in isSecurityType() argument
229 return securityParamsList.stream().anyMatch(p -> p.isSecurityType(securityType)); in isSecurityType()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DWifiInfo.java72 public final String securityType; field in WifiInfo
145 bundle.putString(EXTRA_PROVISIONING_WIFI_SECURITY_TYPE, securityType); in toPersistableBundle()
188 securityType = builder.mSecurityType; in WifiInfo()
249 public Builder setSecurityType(String securityType) { in setSecurityType() argument
250 mSecurityType = securityType; in setSecurityType()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiUtils.java74 public static boolean isHotspotPasswordValid(String password, int securityType) { in isHotspotPasswordValid() argument
77 if (securityType == SoftApConfiguration.SECURITY_TYPE_WPA2_PSK in isHotspotPasswordValid()
78 || securityType == SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION) { in isHotspotPasswordValid()
84 configBuilder.setPassphrase(password, securityType); in isHotspotPasswordValid()
/packages/modules/Wifi/framework/java/android/net/wifi/
DSoftApConfiguration.java457 @SecurityType int securityType, in SoftApConfiguration() argument
487 mSecurityType = securityType; in SoftApConfiguration()
1607 public Builder setPassphrase(@Nullable String passphrase, @SecurityType int securityType) { in setPassphrase() argument
1609 && (securityType == SECURITY_TYPE_WPA3_OWE_TRANSITION in setPassphrase()
1610 || securityType == SECURITY_TYPE_WPA3_OWE)) { in setPassphrase()
1613 if (securityType == SECURITY_TYPE_OPEN in setPassphrase()
1614 || securityType == SECURITY_TYPE_WPA3_OWE_TRANSITION in setPassphrase()
1615 || securityType == SECURITY_TYPE_WPA3_OWE) { in setPassphrase()
1622 if (!SdkLevel.isAtLeastT() && (securityType == SECURITY_TYPE_WPA2_PSK in setPassphrase()
1623 || securityType == SECURITY_TYPE_WPA3_SAE_TRANSITION)) { in setPassphrase()
[all …]
DWifiConfiguration.java597 public void setSecurityParams(@SecurityType int securityType) { in setSecurityParams() argument
600 addSecurityParams(securityType); in setSecurityParams()
667 public void addSecurityParams(@SecurityType int securityType) { in addSecurityParams() argument
670 if (params.isSecurityType(securityType)) { in addSecurityParams()
671 throw new IllegalArgumentException("duplicate security type " + securityType); in addSecurityParams()
674 addSecurityParams(SecurityParams.createSecurityParamsBySecurityType(securityType)); in addSecurityParams()
806 public void setSecurityParamsEnabled(@SecurityType int securityType, boolean enable) { in setSecurityParamsEnabled() argument
808 if (p.isSecurityType(securityType)) { in setSecurityParamsEnabled()
833 @SecurityType int securityType, boolean isAddedByAutoUpgrade) { in setSecurityParamsIsAddedByAutoUpgrade()
835 if (p.isSecurityType(securityType)) { in setSecurityParamsIsAddedByAutoUpgrade()
[all …]
/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()
DWifiTetherQrCodePreferenceController.java116 int securityType = getCarSoftApConfig().getSecurityType(); in updateQrCode() local
118 if (securityType == SoftApConfiguration.SECURITY_TYPE_OPEN) { in updateQrCode()
DNetworkSecurityPreferenceController.java138 private void notifySecurityChange(int securityType) { in notifySecurityChange() argument
140 intent.putExtra(KEY_SECURITY_TYPE, securityType); in notifySecurityChange()
/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/Settings/tests/unit/src/com/android/settings/wifi/repository/
DWifiHotspotRepositoryTest.java786 private void mockConfigSecurityType(int securityType) { in mockConfigSecurityType() argument
787 mockConfig(securityType, SPEED_2GHZ); in mockConfigSecurityType()
794 private void mockConfig(int securityType, int speedType) { in mockConfig() argument
797 doReturn(securityType).when(mSecurityType).getValue(); in mockConfig()
798 String passphrase = (securityType == SECURITY_TYPE_OPEN) ? null : WIFI_PASSWORD; in mockConfig()
799 configBuilder.setPassphrase(passphrase, securityType).build(); in mockConfig()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DAccessPoint.java263 for (int securityType : result.getSecurityTypes()) { in getSecurity()
264 securityTypes.add(securityType); in getSecurity()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/
DWifiNanIfaceAidlImplTest.java516 assertEquals(NanPairingSecurityType.OPPORTUNISTIC, request.securityConfig.securityType); in testRespondToPairingRequest()
536 assertEquals(NanPairingSecurityType.OPPORTUNISTIC, request.securityConfig.securityType); in testInitiateNanPairingRequest()
692 equalTo(nidpr.securityConfig.securityType)); in validateInitiateDataPath()
703 equalTo(nidpr.securityConfig.securityType)); in validateInitiateDataPath()
766 equalTo(nrtdpir.securityConfig.securityType)); in validateRespondToDataPathRequest()
777 equalTo(nrtdpir.securityConfig.securityType)); in validateRespondToDataPathRequest()
DWifiNanIfaceHidlImplTest.java641 equalTo(nidpr.securityConfig.securityType)); in validateInitiateDataPath()
652 equalTo(nidpr.securityConfig.securityType)); in validateInitiateDataPath()
713 equalTo(nrtdpir.securityConfig.securityType)); in validateRespondToDataPathRequest()
724 equalTo(nrtdpir.securityConfig.securityType)); in validateRespondToDataPathRequest()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/addappnetworks/
DAddAppNetworksFragmentTest.java559 securityType, in generateRegularWifiConfiguration() argument
563 config.allowedKeyManagement.set(securityType); in generateRegularWifiConfiguration()
572 int securityType, in generateRegularWifiSuggestion() argument
576 switch (securityType) { in generateRegularWifiSuggestion()

12