Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/app/admin/
DPasswordMetricsTest.java27 import static android.app.admin.PasswordMetrics.sanitizeComplexityLevel;
190 assertEquals(PASSWORD_COMPLEXITY_NONE, sanitizeComplexityLevel(PASSWORD_COMPLEXITY_NONE)); in testSanitizeComplexityLevel_none()
196 assertEquals(PASSWORD_COMPLEXITY_LOW, sanitizeComplexityLevel(PASSWORD_COMPLEXITY_LOW)); in testSanitizeComplexityLevel_low()
202 PASSWORD_COMPLEXITY_MEDIUM, sanitizeComplexityLevel(PASSWORD_COMPLEXITY_MEDIUM)); in testSanitizeComplexityLevel_medium()
207 assertEquals(PASSWORD_COMPLEXITY_HIGH, sanitizeComplexityLevel(PASSWORD_COMPLEXITY_HIGH)); in testSanitizeComplexityLevel_high()
212 assertEquals(PASSWORD_COMPLEXITY_NONE, sanitizeComplexityLevel(-1)); in testSanitizeComplexityLevel_invalid()
/frameworks/base/core/java/android/app/
DKeyguardManager.java972 complexity = PasswordMetrics.sanitizeComplexityLevel(complexity); in isValidLockPasswordComplexity()
996 complexity = PasswordMetrics.sanitizeComplexityLevel(complexity); in getMinLockLength()
/frameworks/base/core/java/android/app/admin/
DPasswordMetrics.java125 public static int sanitizeComplexityLevel(@PasswordComplexity int complexityLevel) { in sanitizeComplexityLevel() method in PasswordMetrics