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
301 newCredential, in testSetLockCredential_forPrimaryUserWithUnifiedChallengeProfile_updatesBothCredentials()
306 .lockScreenSecretChanged(CREDENTIAL_TYPE_PASSWORD, newCredential.getCredential(), in testSetLockCredential_forPrimaryUserWithUnifiedChallengeProfile_updatesBothCredentials()
309 .lockScreenSecretChanged(CREDENTIAL_TYPE_PASSWORD, newCredential.getCredential(), in testSetLockCredential_forPrimaryUserWithUnifiedChallengeProfile_updatesBothCredentials()
477 private void testChangeCredentials(int userId, LockscreenCredential newCredential, in testChangeCredentials() argument
481 assertTrue(mService.setLockCredential(newCredential, oldCredential, userId)); in testChangeCredentials()
482 assertVerifyCredentials(userId, newCredential, sid); in testChangeCredentials()
/frameworks/base/core/java/android/app/
DKeyguardManager.java839 LockscreenCredential newCredential = createLockscreenCredential( in setLock() local
841 return lockPatternUtils.setLockCredential(newCredential, currentCredential, userId); in setLock()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java685 public boolean setLockCredential(@NonNull LockscreenCredential newCredential, in setLockCredential() argument
687 if (!hasSecureLockScreen() && newCredential.getType() != CREDENTIAL_TYPE_NONE) { in setLockCredential()
691 newCredential.checkLength(); in setLockCredential()
694 if (!getLockSettings().setLockCredential(newCredential, savedCredential, userHandle)) { in setLockCredential()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java1763 private void onPostPasswordChanged(LockscreenCredential newCredential, int userHandle) { in onPostPasswordChanged() argument
1764 updateEncryptionPasswordIfNeeded(newCredential, userHandle); in onPostPasswordChanged()
1765 if (newCredential.isPattern()) { in onPostPasswordChanged()
1768 updatePasswordHistory(newCredential, userHandle); in onPostPasswordChanged()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java5125 final LockscreenCredential newCredential;
5127 newCredential = LockscreenCredential.createPin(password);
5129 newCredential = LockscreenCredential.createPasswordOrNone(password);
5133 if (!mLockPatternUtils.setLockCredential(newCredential,
5138 if (!mLockPatternUtils.setLockCredentialWithToken(newCredential, tokenHandle,