Home
last modified time | relevance | path

Searched refs:passwordHistoryLength (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DActiveAdmin.java191 int passwordHistoryLength = DEF_PASSWORD_HISTORY_LENGTH; field in ActiveAdmin
446 if (passwordHistoryLength != DEF_PASSWORD_HISTORY_LENGTH) { in writeToXml()
448 out, TAG_PASSWORD_HISTORY_LENGTH, passwordHistoryLength); in writeToXml()
791 passwordHistoryLength = parser.getAttributeInt(null, ATTR_VALUE); in readFromXml()
1250 pw.println(passwordHistoryLength); in dump()
DDevicePolicyManagerService.java2550 if (parentAdmin.passwordHistoryLength == ActiveAdmin.DEF_PASSWORD_HISTORY_LENGTH) { in moveDoPoliciesToProfileParentAdminLocked()
2551 parentAdmin.passwordHistoryLength = doAdmin.passwordHistoryLength; in moveDoPoliciesToProfileParentAdminLocked()
4675 if (ap.passwordHistoryLength != length) {
4676 ap.passwordHistoryLength = length;
4694 admin -> admin.passwordHistoryLength, PASSWORD_QUALITY_UNSPECIFIED);
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java602 int passwordHistoryLength = getRequestedPasswordHistoryLength(userId); in checkPasswordHistory() local
603 if(passwordHistoryLength == 0) { in checkPasswordHistory()
612 for (int i = 0; i < Math.min(passwordHistoryLength, history.length); i++) { in checkPasswordHistory()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java1956 int passwordHistoryLength = getRequestedPasswordHistoryLength(userHandle); in updatePasswordHistory() local
1957 if (passwordHistoryLength == 0) { in updatePasswordHistory()
1978 for (int i = 0; i < passwordHistoryLength - 1 && i < history.length; i++) { in updatePasswordHistory()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java973 int passwordHistoryLength = 2; in testSaveAndLoadPasswordHistoryLength_persistedAfterReboot() local
987 dpm.setPasswordHistoryLength(admin1, passwordHistoryLength); in testSaveAndLoadPasswordHistoryLength_persistedAfterReboot()
989 assertThat(passwordHistoryLength).isEqualTo(dpm.getPasswordHistoryLength(admin1)); in testSaveAndLoadPasswordHistoryLength_persistedAfterReboot()
995 assertThat(passwordHistoryLength).isEqualTo(dpm.getPasswordHistoryLength(admin1)); in testSaveAndLoadPasswordHistoryLength_persistedAfterReboot()