Searched refs:sanitizeComplexityLevel (Results 1 – 3 of 3) sorted by relevance
27 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()
972 complexity = PasswordMetrics.sanitizeComplexityLevel(complexity); in isValidLockPasswordComplexity()996 complexity = PasswordMetrics.sanitizeComplexityLevel(complexity); in getMinLockLength()
125 public static int sanitizeComplexityLevel(@PasswordComplexity int complexityLevel) { in sanitizeComplexityLevel() method in PasswordMetrics