Home
last modified time | relevance | path

Searched refs:computeForPasswordOrPin (Results 1 – 3 of 3) sorted by relevance

/aosp14/frameworks/base/core/tests/coretests/src/android/app/admin/
H A DPasswordMetricsTest.java97 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 …]
/aosp14/frameworks/base/core/java/android/app/admin/
H A DPasswordMetrics.java201 return PasswordMetrics.computeForPasswordOrPin(credential.getCredential(), in computeForCredential()
215 public static PasswordMetrics computeForPasswordOrPin(byte[] password, boolean isPin) { in computeForPasswordOrPin() method in PasswordMetrics
534 final PasswordMetrics enteredMetrics = computeForPasswordOrPin(password, isPin); in validatePassword()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDevicePolicyManagerTest.java49 import static android.app.admin.PasswordMetrics.computeForPasswordOrPin;
5482 PasswordMetrics passwordMetricsNoSymbols = computeForPasswordOrPin( in testIsActivePasswordSufficient()
5510 PasswordMetrics passwordMetricsWithSymbols = computeForPasswordOrPin( in testIsActivePasswordSufficient()
5567 .thenReturn(computeForPasswordOrPin("184342".getBytes(), /* isPin */ true)); in testIsPasswordSufficientAfterProfileUnification()
5713 .thenReturn(computeForPasswordOrPin("5156".getBytes(), /* isPin */ true)); in isActivePasswordSufficient_SeparateWorkChallenge_ProfileComplexityRequirementMet()
5761 .thenReturn(computeForPasswordOrPin("1234".getBytes(), /* isPin */ true)); in isActivePasswordSufficient_SeparateWorkChallenge_ParentComplexityRequirementMet()
5857 .thenReturn(computeForPasswordOrPin("5156".getBytes(), /* isPin */ true)); in isActivePasswordSufficient_UnifiedWorkChallenge_ParentComplexityRequirementMet()
6912 .thenReturn(computeForPasswordOrPin("asdf".getBytes(), /* isPin */ false)); in testGetPasswordComplexity_currentUserHasPassword()
6932 .thenReturn(computeForPasswordOrPin("asdf".getBytes(), /* isPin */ false)); in testGetPasswordComplexity_unifiedChallengeReturnsParentUserPassword()
7657 PasswordMetrics passwordMetricsNoSymbols = computeForPasswordOrPin( in testSetRequiredPasswordComplexity_isSufficient()
[all …]