Home
last modified time | relevance | path

Searched refs:SecurityParams (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DSecurityParamsTest.java44 private void verifySecurityParams(SecurityParams params, in verifySecurityParams()
91 SecurityParams.createSecurityParamsBySecurityType(type).getSecurityType()); in testSecurityTypeCreator()
105 SecurityParams p = SecurityParams.createSecurityParamsBySecurityType( in testEapCreator()
123 SecurityParams p = SecurityParams.createSecurityParamsBySecurityType( in testEapPasspointR1R2Creator()
141 SecurityParams p = SecurityParams.createSecurityParamsBySecurityType( in testEapPasspointR3Creator()
161 SecurityParams p = SecurityParams.createSecurityParamsBySecurityType( in testEnhancedOpenCreator()
179 SecurityParams p = SecurityParams.createSecurityParamsBySecurityType( in testOpenCreator()
197 SecurityParams p = SecurityParams.createSecurityParamsBySecurityType( in testOsenCreator()
215 SecurityParams p = SecurityParams.createSecurityParamsBySecurityType( in testWapiCertCreator()
233 SecurityParams p = SecurityParams.createSecurityParamsBySecurityType( in testWapiPskCreator()
[all …]
DWifiConfigurationTest.java940 List<SecurityParams> paramsList = config.getSecurityParamsList(); in testAddSecurityTypes()
1065 SecurityParams saeParams = config.getSecurityParams(WifiConfiguration.SECURITY_TYPE_SAE); in testSaeTypeMethods()
1192 List<SecurityParams> list = new ArrayList<>(); in testSetSecurityParamsBySecurityParamsList()
1193 list.add(SecurityParams.createSecurityParamsBySecurityType(SECURITY_TYPE_PSK)); in testSetSecurityParamsBySecurityParamsList()
1194 list.add(SecurityParams.createSecurityParamsBySecurityType(SECURITY_TYPE_SAE)); in testSetSecurityParamsBySecurityParamsList()
1206 List<SecurityParams> list = new ArrayList<>(); in testSetSecurityParamsByEmptySecurityParamsList()
1214 List<SecurityParams> list = null; in testSetSecurityParamsByNullSecurityParamsList()
/packages/modules/Wifi/framework/java/android/net/wifi/
DSecurityParams.java40 public class SecurityParams { class
134 private SecurityParams() { in SecurityParams() method in SecurityParams
138 public SecurityParams(@NonNull SecurityParams source) { in SecurityParams() method in SecurityParams
161 if (!(thatObject instanceof SecurityParams)) { in equals()
164 SecurityParams that = (SecurityParams) thatObject; in equals()
219 public boolean isSameSecurityType(SecurityParams params) { in isSameSecurityType()
565 public static final @NonNull SecurityParams createFromParcel(Parcel in) { in createFromParcel()
566 SecurityParams params = new SecurityParams(); in createFromParcel()
601 public static @NonNull SecurityParams createSecurityParamsBySecurityType( in createSecurityParamsBySecurityType()
630 return SecurityParams.createPasspointParams(PASSPOINT_R2); in createSecurityParamsBySecurityType()
[all …]
DWifiConfiguration.java558 private List<SecurityParams> mSecurityParamsList = new ArrayList<>();
612 public void setSecurityParams(SecurityParams params) { in setSecurityParams()
626 public void setSecurityParams(@NonNull List<SecurityParams> securityParamsList) { in setSecurityParams()
631 .map(p -> new SecurityParams(p)).collect(Collectors.toList()); in setSecurityParams()
658 addSecurityParams(SecurityParams.createSecurityParamsBySecurityType(securityType)); in addSecurityParams()
662 public void addSecurityParams(@NonNull SecurityParams newParams) { in addSecurityParams()
688 mSecurityParamsList.add(new SecurityParams(newParams)); in addSecurityParams()
800 public @Nullable SecurityParams getSecurityParams(@SecurityType int securityType) { in getSecurityParams()
801 SecurityParams p = mSecurityParamsList.stream() in getSecurityParams()
805 return (p != null) ? new SecurityParams(p) : null; in getSecurityParams()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DScanResultMatchInfo.java21 import android.net.wifi.SecurityParams;
41 public List<SecurityParams> securityParamsList = new ArrayList<>();
81 private static boolean isAutoUpgradeSecurityParamsAllowed(SecurityParams securityParams) { in isAutoUpgradeSecurityParamsAllowed()
111 private static @Nullable SecurityParams findBestMatchingSecurityParams( in findBestMatchingSecurityParams()
112 List<SecurityParams> allowedParamsList, in findBestMatchingSecurityParams()
113 List<SecurityParams> scanResultParamsList) { in findBestMatchingSecurityParams()
117 SecurityParams allowedParams = allowedParamsList.get(i); in findBestMatchingSecurityParams()
122 for (SecurityParams scanResultParams: scanResultParamsList) { in findBestMatchingSecurityParams()
135 public static @Nullable SecurityParams getBestMatchingSecurityParams( in getBestMatchingSecurityParams()
148 public static @Nullable SecurityParams getBestMatchingSecurityParams( in getBestMatchingSecurityParams()
[all …]
DWakeupConfigStoreData.java20 import android.net.wifi.SecurityParams;
139 for (SecurityParams params: scanResultMatchInfo.securityParamsList) { in writeSecurityParamsList()
248 private SecurityParams parseSecurityParams(XmlPullParser in, int outerTagDepth) in parseSecurityParams()
250 SecurityParams params = null; in parseSecurityParams()
260 params = SecurityParams.createSecurityParamsBySecurityType((int) value); in parseSecurityParams()
291 SecurityParams params = parseSecurityParams(in, outerTagDepth + 1); in parseSecurityParamsList()
339 SecurityParams.createSecurityParamsBySecurityType((int) value)); in parseNetwork()
DWifiConfigurationUtil.java30 import android.net.wifi.SecurityParams;
919 SecurityParams oweParams = SecurityParams.createSecurityParamsBySecurityType( in addOpenUpgradableSecurityTypeIfNecessary()
930 SecurityParams saeParams = SecurityParams.createSecurityParamsBySecurityType( in addPskUpgradableSecurityTypeIfNecessary()
941 SecurityParams wpa3EnterpriseParams = SecurityParams.createSecurityParamsBySecurityType( in addEapUpgradableSecurityTypeIfNecessary()
968 private static boolean shouldOmitAutoUpgradeParams(SecurityParams params) { in shouldOmitAutoUpgradeParams()
982 private static boolean isSecurityParamsSupported(SecurityParams params) { in isSecurityParamsSupported()
1000 public static boolean isSecurityParamsValid(SecurityParams params) { in isSecurityParamsValid()
1068 for (SecurityParams params: config.getSecurityParamsList()) { in convertMultiTypeConfigsToLegacyConfigs()
DWifiNetworkSelector.java27 import android.net.wifi.SecurityParams;
847 SecurityParams params = currentNetwork.getNetworkSelectionStatus() in getCandidatesFromScan()
922 List<SecurityParams> scanResultParamsList, in removeAutoUpgradeSecurityParamsIfNecessary()
940 SecurityParams upgradableParams = config.getSecurityParams(upgradableSecurityType); in removeAutoUpgradeSecurityParamsIfNecessary()
950 List<SecurityParams> scanResultParamsList) { in removeSecurityParamsIfNecessary()
979 ScanResult scanResult, SecurityParams params) { in updateSecurityParamsForTransitionModeIfNecessary()
1014 List<SecurityParams> scanResultParamsList = ScanResultUtil in selectNetwork()
1020 SecurityParams params = ScanResultMatchInfo.getBestMatchingSecurityParams( in selectNetwork()
1294 List<SecurityParams> scanResultParamsList = ScanResultUtil in updateCandidatesSecurityParams()
1298 SecurityParams params = ScanResultMatchInfo.getBestMatchingSecurityParams(network, in updateCandidatesSecurityParams()
DWifiBackupDataV1Parser.java29 import android.net.wifi.SecurityParams;
453 private static SecurityParams parseSecurityParamsFromXml( in parseSecurityParamsFromXml()
455 SecurityParams params = null; in parseSecurityParamsFromXml()
465 params = SecurityParams.createSecurityParamsBySecurityType((int) value); in parseSecurityParamsFromXml()
494 List<SecurityParams> paramsList = new ArrayList<>(); in parseSecurityParamsListFromXml()
498 SecurityParams params = parseSecurityParamsFromXml(in, outerTagDepth + 1); in parseSecurityParamsListFromXml()
DScoredNetworkNominator.java27 import android.net.wifi.SecurityParams;
274 SecurityParams params = ScanResultMatchInfo.getBestMatchingSecurityParams( in trackUntrustedCandidate()
298 SecurityParams params = ScanResultMatchInfo.getBestMatchingSecurityParams( in trackExternallyScoredCandidate()
360 SecurityParams params = ScanResultMatchInfo.getBestMatchingSecurityParams( in getCandidateConfiguration()
DWifiCandidates.java24 import android.net.wifi.SecurityParams;
511 SecurityParams params = ScanResultMatchInfo.fromScanResult(scanResult) in keyFromScanDetailAndConfig()
DSupplicantStaIfaceCallbackImpl.java32 import android.net.wifi.SecurityParams;
317 SecurityParams params = curConfiguration.getNetworkSelectionStatus() in handleAssocRejectEvent()
DWifiNetworkFactory.java47 import android.net.wifi.SecurityParams;
1661 SecurityParams params = fromScanResult.matchForNetworkSelection(fromWifiConfiguration); in addNetworkToUserApprovedAccessPointMap()
1703 SecurityParams params = in triggerConnectIfUserApprovedMatchFound()
DSupplicantStaNetworkHal.java23 import android.net.wifi.SecurityParams;
230 SecurityParams securityParams = config.getDefaultSecurityParams(); in loadWifiConfiguration()
301 SecurityParams securityParams = config.getNetworkSelectionStatus() in saveWifiConfiguration()
620 SecurityParams securityParams = config.getNetworkSelectionStatus() in saveSuiteBConfig()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DScanResultUtil.java22 import android.net.wifi.SecurityParams;
299 List<SecurityParams> list = generateSecurityParamsListFromScanResult(scanResult); in createNetworkFromScanResult()
312 public static @NonNull List<SecurityParams> generateSecurityParamsListFromScanResult( in generateSecurityParamsListFromScanResult()
314 List<SecurityParams> list = new ArrayList<>(); in generateSecurityParamsListFromScanResult()
318 list.add(SecurityParams.createSecurityParamsBySecurityType( in generateSecurityParamsListFromScanResult()
320 list.add(SecurityParams.createSecurityParamsBySecurityType( in generateSecurityParamsListFromScanResult()
324 list.add(SecurityParams.createSecurityParamsBySecurityType( in generateSecurityParamsListFromScanResult()
328 list.add(SecurityParams.createSecurityParamsBySecurityType( in generateSecurityParamsListFromScanResult()
335 list.add(SecurityParams.createSecurityParamsBySecurityType( in generateSecurityParamsListFromScanResult()
342 list.add(SecurityParams.createSecurityParamsBySecurityType( in generateSecurityParamsListFromScanResult()
[all …]
DXmlUtil.java31 import android.net.wifi.SecurityParams;
436 for (SecurityParams params: configuration.getSecurityParamsList()) { in writeSecurityParamsListToXml()
602 private static SecurityParams parseSecurityParamsFromXml( in parseSecurityParamsFromXml()
604 SecurityParams params = null; in parseSecurityParamsFromXml()
614 params = SecurityParams.createSecurityParamsBySecurityType((int) value); in parseSecurityParamsFromXml()
643 List<SecurityParams> paramsList = new ArrayList<>(); in parseSecurityParamsListFromXml()
647 SecurityParams params = parseSecurityParamsFromXml(in, outerTagDepth + 1); in parseSecurityParamsListFromXml()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanResultMatchInfoTest.java31 import android.net.wifi.SecurityParams;
483 SecurityParams params = SecurityParams.createSecurityParamsBySecurityType( in testMatchBehaviorWithWpa3AutoUpgradeFlagStates()
485 List<SecurityParams> securityParamsList = new ArrayList<>(); in testMatchBehaviorWithWpa3AutoUpgradeFlagStates()
521 SecurityParams params = SecurityParams.createSecurityParamsBySecurityType( in testMatchBehaviorWithOweAutoUpgradeFlagStates()
523 List<SecurityParams> securityParamsList = new ArrayList<>(); in testMatchBehaviorWithOweAutoUpgradeFlagStates()
DWakeupConfigStoreDataTest.java27 import android.net.wifi.SecurityParams;
132 SecurityParams.createSecurityParamsBySecurityType( in deserializeSerializedData()
138 SecurityParams.createSecurityParamsBySecurityType( in deserializeSerializedData()
144 SecurityParams.createSecurityParamsBySecurityType( in deserializeSerializedData()
DWakeupLockTest.java24 import android.net.wifi.SecurityParams;
68 SecurityParams.createSecurityParamsBySecurityType( in setUp()
74 SecurityParams.createSecurityParamsBySecurityType( in setUp()
DWifiConfigurationTestUtil.java27 import android.net.wifi.SecurityParams;
313 SecurityParams params = SecurityParams in createOpenOweNetwork()
358 SecurityParams params = SecurityParams in createPskSaeNetwork()
459 SecurityParams params = SecurityParams in createWpa2Wpa3EnterpriseNetwork()
DWifiNetworkSelectorTestUtil.java33 import android.net.wifi.SecurityParams;
373 SecurityParams params) { in prepareConfigStore()
501 SecurityParams params) { in setupEphemeralNetwork()
DWifiConfigurationUtilTest.java34 import android.net.wifi.SecurityParams;
915 SecurityParams.createSecurityParamsBySecurityType( in testIsSameNetworkReturnsTrueOnSameNetworkWithSameCandidateSecurityParams()
919 SecurityParams.createSecurityParamsBySecurityType( in testIsSameNetworkReturnsTrueOnSameNetworkWithSameCandidateSecurityParams()
932 SecurityParams.createSecurityParamsBySecurityType( in testIsSameNetworkReturnsTrueOnSameNetworkWithDifferentCandidateSecurityParams()
936 SecurityParams.createSecurityParamsBySecurityType( in testIsSameNetworkReturnsTrueOnSameNetworkWithDifferentCandidateSecurityParams()
DWifiServiceImplTest.java134 import android.net.wifi.SecurityParams;
8160 private boolean isSecurityParamsSupported(SecurityParams params, long wifiFeatures) { in isSecurityParamsSupported()
8177 SecurityParams.createSecurityParamsBySecurityType( in generateExpectedConfigs()
8183 SecurityParams.createSecurityParamsBySecurityType( in generateExpectedConfigs()
8189 SecurityParams.createSecurityParamsBySecurityType( in generateExpectedConfigs()
8195 SecurityParams.createSecurityParamsBySecurityType( in generateExpectedConfigs()
8201 SecurityParams.createSecurityParamsBySecurityType( in generateExpectedConfigs()
8209 SecurityParams.createSecurityParamsBySecurityType( in generateExpectedConfigs()
DWifiConfigManagerTest.java56 import android.net.wifi.SecurityParams;
3976 notPreferredNetId, mock(ScanResult.class), 54, mock(SecurityParams.class))); in verifySetUserConnectChoice()
4227 SecurityParams.createSecurityParamsBySecurityType( in testRetrieveHiddenList()
5464 for (SecurityParams p: retrievedConfig.getSecurityParamsList()) { in isNetworkInConfigStoreData()
6041 SecurityParams.createSecurityParamsBySecurityType( in testScanComparator()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvider.java26 import android.net.wifi.SecurityParams;
501 List<SecurityParams> paramsList = Arrays.asList( in getWifiConfig()
502 SecurityParams.createSecurityParamsBySecurityType( in getWifiConfig()
504 SecurityParams.createSecurityParamsBySecurityType( in getWifiConfig()

12