Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/app/admin/
DPasswordMetricsTest.java34 import static android.app.admin.PasswordMetrics.sanitizeComplexityLevel;
272 assertEquals(PASSWORD_COMPLEXITY_NONE, sanitizeComplexityLevel(PASSWORD_COMPLEXITY_NONE)); in testSanitizeComplexityLevel_none()
278 assertEquals(PASSWORD_COMPLEXITY_LOW, sanitizeComplexityLevel(PASSWORD_COMPLEXITY_LOW)); in testSanitizeComplexityLevel_low()
284 PASSWORD_COMPLEXITY_MEDIUM, sanitizeComplexityLevel(PASSWORD_COMPLEXITY_MEDIUM)); in testSanitizeComplexityLevel_medium()
289 assertEquals(PASSWORD_COMPLEXITY_HIGH, sanitizeComplexityLevel(PASSWORD_COMPLEXITY_HIGH)); in testSanitizeComplexityLevel_high()
294 assertEquals(PASSWORD_COMPLEXITY_NONE, sanitizeComplexityLevel(-1)); in testSanitizeComplexityLevel_invalid()
/frameworks/base/core/java/android/app/admin/
DPasswordMetrics.java190 public static int sanitizeComplexityLevel(@PasswordComplexity int complexityLevel) { in sanitizeComplexityLevel() method in PasswordMetrics