Home
last modified time | relevance | path

Searched refs:metricsForPin (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/admin/
DPasswordMetricsTest.java138 assertEquals(PASSWORD_COMPLEXITY_LOW, metricsForPin("1234").determineComplexity()); in testDetermineComplexity_lowNumeric()
143 assertEquals(PASSWORD_COMPLEXITY_LOW, metricsForPin("124").determineComplexity()); in testDetermineComplexity_lowNumericComplex()
158 assertEquals(PASSWORD_COMPLEXITY_MEDIUM, metricsForPin("1238").determineComplexity()); in testDetermineComplexity_mediumNumericComplex()
173 assertEquals(PASSWORD_COMPLEXITY_HIGH, metricsForPin("12389647!").determineComplexity()); in testDetermineComplexity_highNumericComplex()
413 private static PasswordMetrics metricsForPin(String pin) { in metricsForPin() method in PasswordMetricsTest
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java5571 .thenReturn(metricsForPin("184342")); in testIsPasswordSufficientAfterProfileUnification()
5729 .thenReturn(metricsForPin("5156")); in isActivePasswordSufficient_SeparateWorkChallenge_ProfileComplexityRequirementMet()
5777 .thenReturn(metricsForPin("1234")); in isActivePasswordSufficient_SeparateWorkChallenge_ParentComplexityRequirementMet()
5825 .thenReturn(metricsForPin("51567548")); in isActivePasswordSufficient_UnifiedWorkChallenge_ProfileComplexityRequirementMet()
5873 .thenReturn(metricsForPin("5156")); in isActivePasswordSufficient_UnifiedWorkChallenge_ParentComplexityRequirementMet()
7676 PasswordMetrics passwordMetricsNoSymbols = metricsForPin("1234"); in testSetRequiredPasswordComplexity_isSufficient()
8862 private static PasswordMetrics metricsForPin(String pin) {