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.java155 int passwordHistoryLength = DEF_PASSWORD_HISTORY_LENGTH; field in ActiveAdmin
364 if (passwordHistoryLength != DEF_PASSWORD_HISTORY_LENGTH) { in writeToXml()
366 out, TAG_PASSWORD_HISTORY_LENGTH, passwordHistoryLength); in writeToXml()
653 passwordHistoryLength = parser.getAttributeInt(null, ATTR_VALUE); in readFromXml()
1011 pw.println(passwordHistoryLength); in dump()
DDevicePolicyManagerService.java2122 if (parentAdmin.passwordHistoryLength == ActiveAdmin.DEF_PASSWORD_HISTORY_LENGTH) { in moveDoPoliciesToProfileParentAdminLocked()
2123 parentAdmin.passwordHistoryLength = doAdmin.passwordHistoryLength; in moveDoPoliciesToProfileParentAdminLocked()
4111 if (ap.passwordHistoryLength != length) {
4112 ap.passwordHistoryLength = length;
4130 admin -> admin.passwordHistoryLength, PASSWORD_QUALITY_UNSPECIFIED);
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java552 int passwordHistoryLength = getRequestedPasswordHistoryLength(userId); in checkPasswordHistory() local
553 if(passwordHistoryLength == 0) { in checkPasswordHistory()
562 for (int i = 0; i < Math.min(passwordHistoryLength, history.length); i++) { in checkPasswordHistory()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java1811 int passwordHistoryLength = getRequestedPasswordHistoryLength(userHandle); in updatePasswordHistory() local
1812 if (passwordHistoryLength == 0) { in updatePasswordHistory()
1829 for (int i = 0; i < passwordHistoryLength - 1 && i < history.length; i++) { in updatePasswordHistory()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java915 int passwordHistoryLength = 2; in testSaveAndLoadPasswordHistoryLength_persistedAfterReboot() local
929 dpm.setPasswordHistoryLength(admin1, passwordHistoryLength); in testSaveAndLoadPasswordHistoryLength_persistedAfterReboot()
931 assertThat(passwordHistoryLength).isEqualTo(dpm.getPasswordHistoryLength(admin1)); in testSaveAndLoadPasswordHistoryLength_persistedAfterReboot()
937 assertThat(passwordHistoryLength).isEqualTo(dpm.getPasswordHistoryLength(admin1)); in testSaveAndLoadPasswordHistoryLength_persistedAfterReboot()