Searched refs:computeForPasswordOrPin (Results 1 – 4 of 4) sorted by relevance
/aosp12/frameworks/base/core/tests/coretests/src/android/app/admin/ |
H A D | PasswordMetricsTest.java | 97 final PasswordMetrics metrics = PasswordMetrics.computeForPasswordOrPin( in testComputeForPassword_metrics() 137 PasswordMetrics.computeForPasswordOrPin("1234".getBytes(), in testDetermineComplexity_lowNumeric() 144 PasswordMetrics.computeForPasswordOrPin("124".getBytes(), in testDetermineComplexity_lowNumericComplex() 151 PasswordMetrics.computeForPasswordOrPin("a!".getBytes(), in testDetermineComplexity_lowAlphabetic() 158 PasswordMetrics.computeForPasswordOrPin("a!1".getBytes(), in testDetermineComplexity_lowAlphanumeric() 165 PasswordMetrics.computeForPasswordOrPin("1238".getBytes(), in testDetermineComplexity_mediumNumericComplex() 172 PasswordMetrics.computeForPasswordOrPin("ab!c".getBytes(), in testDetermineComplexity_mediumAlphabetic() 179 PasswordMetrics.computeForPasswordOrPin("ab!1".getBytes(), in testDetermineComplexity_mediumAlphanumeric() 186 PasswordMetrics.computeForPasswordOrPin("12389647!".getBytes(), in testDetermineComplexity_highNumericComplex() 193 PasswordMetrics.computeForPasswordOrPin("alphabetic!".getBytes(), in testDetermineComplexity_highAlphabetic() [all …]
|
/aosp12/frameworks/base/core/java/android/app/admin/ |
H A D | PasswordMetrics.java | 200 return PasswordMetrics.computeForPasswordOrPin(credential.getCredential(), in computeForCredential() 214 public static PasswordMetrics computeForPasswordOrPin(byte[] password, boolean isPin) { in computeForPasswordOrPin() method in PasswordMetrics 533 final PasswordMetrics enteredMetrics = computeForPasswordOrPin(password, isPin); in validatePassword()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
H A D | PasswordHelper.java | 140 PasswordMetrics metrics = PasswordMetrics.computeForPasswordOrPin(pin, /* isPin */ true); in validatePin()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | DevicePolicyManagerTest.java | 38 import static android.app.admin.PasswordMetrics.computeForPasswordOrPin; 5264 PasswordMetrics passwordMetricsNoSymbols = computeForPasswordOrPin( in testIsActivePasswordSufficient() 5292 PasswordMetrics passwordMetricsWithSymbols = computeForPasswordOrPin( in testIsActivePasswordSufficient() 5349 .thenReturn(computeForPasswordOrPin("184342".getBytes(), /* isPin */ true)); in testIsPasswordSufficientAfterProfileUnification() 5495 .thenReturn(computeForPasswordOrPin("5156".getBytes(), /* isPin */ true)); in isActivePasswordSufficient_SeparateWorkChallenge_ProfileComplexityRequirementMet() 5543 .thenReturn(computeForPasswordOrPin("1234".getBytes(), /* isPin */ true)); in isActivePasswordSufficient_SeparateWorkChallenge_ParentComplexityRequirementMet() 5639 .thenReturn(computeForPasswordOrPin("5156".getBytes(), /* isPin */ true)); in isActivePasswordSufficient_UnifiedWorkChallenge_ParentComplexityRequirementMet() 6689 .thenReturn(computeForPasswordOrPin("asdf".getBytes(), /* isPin */ false)); in testGetPasswordComplexity_currentUserHasPassword() 6709 .thenReturn(computeForPasswordOrPin("asdf".getBytes(), /* isPin */ false)); in testGetPasswordComplexity_unifiedChallengeReturnsParentUserPassword() 7428 PasswordMetrics passwordMetricsNoSymbols = computeForPasswordOrPin( in testSetRequiredPasswordComplexity_isSufficient() [all …]
|