Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTests.java295 final LockscreenCredential newCredential = newPassword("newPassword"); in testSetLockCredential_forPrimaryUserWithUnifiedChallengeProfile_updatesBothCredentials() local
298 setCredential(PRIMARY_USER_ID, newCredential, oldCredential); in testSetLockCredential_forPrimaryUserWithUnifiedChallengeProfile_updatesBothCredentials()
301 .lockScreenSecretChanged(CREDENTIAL_TYPE_PASSWORD, newCredential.getCredential(), in testSetLockCredential_forPrimaryUserWithUnifiedChallengeProfile_updatesBothCredentials()
304 .lockScreenSecretChanged(CREDENTIAL_TYPE_PASSWORD, newCredential.getCredential(), in testSetLockCredential_forPrimaryUserWithUnifiedChallengeProfile_updatesBothCredentials()
591 private void testChangeCredential(int userId, LockscreenCredential newCredential, in testChangeCredential() argument
594 setCredential(userId, newCredential, oldCredential); in testChangeCredential()
595 assertVerifyCredential(userId, newCredential); in testChangeCredential()
625 private void setAndVerifyCredential(int userId, LockscreenCredential newCredential) in setAndVerifyCredential() argument
627 setCredential(userId, newCredential); in setAndVerifyCredential()
628 assertVerifyCredential(userId, newCredential); in setAndVerifyCredential()
[all …]
/frameworks/base/core/java/android/app/
DKeyguardManager.java1216 LockscreenCredential newCredential = createLockscreenCredential( in setLock() argument
1221 DevicePolicyManager.PASSWORD_COMPLEXITY_NONE, newCredential); in setLock()
1226 return mLockPatternUtils.setLockCredential(newCredential, currentCredential, userId); in setLock()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java790 public boolean setLockCredential(@NonNull LockscreenCredential newCredential, in setLockCredential() argument
792 if (!hasSecureLockScreen() && newCredential.getType() != CREDENTIAL_TYPE_NONE) { in setLockCredential()
798 if (!getLockSettings().setLockCredential(newCredential, savedCredential, userHandle)) { in setLockCredential()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java1929 private void onPostPasswordChanged(LockscreenCredential newCredential, int userId) { in onPostPasswordChanged() argument
1930 updatePasswordHistory(newCredential, userId); in onPostPasswordChanged()
2532 private void notifyPasswordChanged(LockscreenCredential newCredential, @UserIdInt int userId) { in notifyPasswordChanged() argument
2535 PasswordMetrics.computeForCredential(newCredential), in notifyPasswordChanged()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java5926 final LockscreenCredential newCredential;
5928 newCredential = LockscreenCredential.createPin(password);
5930 newCredential = LockscreenCredential.createPasswordOrNone(password);
5936 PasswordMetrics.validateCredential(minMetrics, complexity, newCredential);
5962 if (!mLockPatternUtils.setLockCredential(newCredential,
5967 if (!mLockPatternUtils.setLockCredentialWithToken(newCredential, tokenHandle,