Searched refs:adminMetrics (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/app/admin/ |
D | PasswordMetricsTest.java | 313 PasswordMetrics adminMetrics = new PasswordMetrics(CREDENTIAL_TYPE_PIN); in testValidatePasswordMetrics_pinAndComplexityHigh() local 319 validatePasswordMetrics(adminMetrics, PASSWORD_COMPLEXITY_HIGH, actualMetrics), in testValidatePasswordMetrics_pinAndComplexityHigh() 325 PasswordMetrics adminMetrics = new PasswordMetrics(CREDENTIAL_TYPE_PASSWORD); in testValidatePasswordMetrics_nonAllNumberPasswordAndComplexityHigh() local 332 validatePasswordMetrics(adminMetrics, PASSWORD_COMPLEXITY_HIGH, actualMetrics), in testValidatePasswordMetrics_nonAllNumberPasswordAndComplexityHigh() 338 PasswordMetrics adminMetrics = new PasswordMetrics(CREDENTIAL_TYPE_PASSWORD); in testValidatePasswordMetrics_allNumberPasswordAndComplexityHigh() local 344 validatePasswordMetrics(adminMetrics, PASSWORD_COMPLEXITY_HIGH, actualMetrics), in testValidatePasswordMetrics_allNumberPasswordAndComplexityHigh() 350 PasswordMetrics adminMetrics = new PasswordMetrics(CREDENTIAL_TYPE_PASSWORD); in testValidatePasswordMetrics_allNumberPasswordAndRequireNonNumeric() local 351 adminMetrics.nonNumeric = 1; in testValidatePasswordMetrics_allNumberPasswordAndRequireNonNumeric() 357 validatePasswordMetrics(adminMetrics, PASSWORD_COMPLEXITY_HIGH, actualMetrics), in testValidatePasswordMetrics_allNumberPasswordAndRequireNonNumeric() 363 PasswordMetrics adminMetrics; in testValidateCredential_none() local [all …]
|
/frameworks/base/core/java/android/app/admin/ |
D | PasswordMetrics.java | 513 PasswordMetrics adminMetrics, int minComplexity, LockscreenCredential credential) { in validateCredential() argument 519 return validatePasswordMetrics(adminMetrics, minComplexity, actualMetrics); in validateCredential() 533 PasswordMetrics adminMetrics, int minComplexity, PasswordMetrics actualMetrics) { in validatePasswordMetrics() argument 538 if (actualMetrics.credType < adminMetrics.credType in validatePasswordMetrics() 566 final PasswordMetrics minMetrics = applyComplexity(adminMetrics, in validatePasswordMetrics() 671 public static PasswordMetrics applyComplexity(PasswordMetrics adminMetrics, boolean isPin, in applyComplexity() argument 673 return applyComplexity(adminMetrics, isPin, ComplexityBucket.forComplexity(complexity)); in applyComplexity() 676 private static PasswordMetrics applyComplexity(PasswordMetrics adminMetrics, boolean isPin, in applyComplexity() argument 678 final PasswordMetrics minMetrics = new PasswordMetrics(adminMetrics); in applyComplexity()
|
/frameworks/base/core/java/android/app/ |
D | KeyguardManager.java | 973 PasswordMetrics adminMetrics = in isValidLockPasswordComplexity() local 976 return PasswordMetrics.validateCredential(adminMetrics, complexity, in isValidLockPasswordComplexity() 997 PasswordMetrics adminMetrics = in getMinLockLength() local 1000 PasswordMetrics.applyComplexity(adminMetrics, isPin, complexity); in getMinLockLength() 1218 PasswordMetrics adminMetrics = in setLock() local 1220 List<PasswordValidationError> errors = PasswordMetrics.validateCredential(adminMetrics, in setLock()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 5230 ArrayList<PasswordMetrics> adminMetrics = new ArrayList<>(); 5240 adminMetrics.add(admin.mPasswordPolicy.getMinMetrics()); 5243 return PasswordMetrics.merge(adminMetrics); 5352 ArrayList<PasswordMetrics> adminMetrics = new ArrayList<>(admins.size()); 5355 adminMetrics.add(admin.mPasswordPolicy.getMinMetrics()); 5363 PasswordMetrics.merge(adminMetrics), 5370 adminMetrics.add(admin.mPasswordPolicy.getMinMetrics()); 5374 return PasswordMetrics.validatePasswordMetrics(PasswordMetrics.merge(adminMetrics),
|