Lines Matching refs:quality

606         int quality = getKeyguardStoredPasswordQuality(userId);
608 if (isLockPasswordEnabled(quality, userId)) {
609 // Quality is a password and a password exists. Return the quality.
610 return quality;
613 if (isLockPatternEnabled(quality, userId)) {
614 // Quality is a pattern and a pattern exists. Return the quality.
615 return quality;
853 PasswordMetrics.computeForPassword(password).quality, userHandle);
862 private void updateEncryptionPasswordIfNeeded(String password, int quality, int userHandle) {
869 boolean numeric = quality == PASSWORD_QUALITY_NUMERIC;
870 boolean numericComplex = quality == PASSWORD_QUALITY_NUMERIC_COMPLEX;
944 * Retrieves the quality mode for {@param userHandle}.
947 * @return stored password quality
953 private void setKeyguardStoredPasswordQuality(int quality, int userHandle) {
954 setLong(PASSWORD_TYPE_KEY, quality, userHandle);
958 * Returns the password quality of the given credential, promoting it to a higher level
959 * if DevicePolicyManager has a stronger quality requirement. This value will be written
963 final int quality;
965 int computedQuality = PasswordMetrics.computeForPassword(credential).quality;
966 quality = Math.max(requestedQuality, computedQuality);
968 quality = PASSWORD_QUALITY_SOMETHING;
970 quality = PASSWORD_QUALITY_UNSPECIFIED;
972 return quality;
1606 * @param requestedQuality the requested password quality by DevicePolicyManager.
1621 final int quality = computePasswordQuality(type, credential, requestedQuality);
1623 token, quality, userId)) {
1626 setKeyguardStoredPasswordQuality(quality, userId);
1628 updateEncryptionPasswordIfNeeded(credential, quality, userId);