Searched refs:actualMetrics (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/java/android/app/admin/ |
D | PasswordMetrics.java | 518 PasswordMetrics actualMetrics = computeForCredential(credential); in validateCredential() local 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() 539 || !bucket.allowsCredType(actualMetrics.credType)) { in validatePasswordMetrics() 542 if (actualMetrics.credType == CREDENTIAL_TYPE_PATTERN) { in validatePasswordMetrics() 546 if (actualMetrics.length != 0 && actualMetrics.length < MIN_LOCK_PATTERN_SIZE) { in validatePasswordMetrics() 552 if (actualMetrics.credType == CREDENTIAL_TYPE_NONE) { in validatePasswordMetrics() 556 if (actualMetrics.credType == CREDENTIAL_TYPE_PIN && actualMetrics.nonNumeric > 0) { in validatePasswordMetrics() 562 if (actualMetrics.length > MAX_PASSWORD_LENGTH) { in validatePasswordMetrics() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/admin/ |
D | PasswordMetricsTest.java | 314 PasswordMetrics actualMetrics = new PasswordMetrics(CREDENTIAL_TYPE_PIN); in testValidatePasswordMetrics_pinAndComplexityHigh() local 315 actualMetrics.length = 6; in testValidatePasswordMetrics_pinAndComplexityHigh() 316 actualMetrics.seqLength = 1; in testValidatePasswordMetrics_pinAndComplexityHigh() 319 validatePasswordMetrics(adminMetrics, PASSWORD_COMPLEXITY_HIGH, actualMetrics), in testValidatePasswordMetrics_pinAndComplexityHigh() 326 PasswordMetrics actualMetrics = new PasswordMetrics(CREDENTIAL_TYPE_PASSWORD); in testValidatePasswordMetrics_nonAllNumberPasswordAndComplexityHigh() local 327 actualMetrics.length = 5; in testValidatePasswordMetrics_nonAllNumberPasswordAndComplexityHigh() 328 actualMetrics.nonNumeric = 1; in testValidatePasswordMetrics_nonAllNumberPasswordAndComplexityHigh() 329 actualMetrics.seqLength = 1; in testValidatePasswordMetrics_nonAllNumberPasswordAndComplexityHigh() 332 validatePasswordMetrics(adminMetrics, PASSWORD_COMPLEXITY_HIGH, actualMetrics), in testValidatePasswordMetrics_nonAllNumberPasswordAndComplexityHigh() 339 PasswordMetrics actualMetrics = new PasswordMetrics(CREDENTIAL_TYPE_PASSWORD); in testValidatePasswordMetrics_allNumberPasswordAndComplexityHigh() local [all …]
|