Home
last modified time | relevance | path

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

/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
H A DShadowLockPatternUtils.java95 public boolean setLockCredential(LockscreenCredential newCredential, in setLockCredential() argument
97 if (newCredential.isPassword() || newCredential.isPin()) { in setLockCredential()
98 sSavedPassword = newCredential.duplicate().getCredential(); in setLockCredential()
99 } else if (newCredential.isPattern()) { in setLockCredential()
100 sSavedPattern = newCredential.duplicate().getCredential(); in setLockCredential()
101 } else if (newCredential.isNone()) { in setLockCredential()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A 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()
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternUtils.java686 public boolean setLockCredential(@NonNull LockscreenCredential newCredential, in setLockCredential() argument
688 if (!hasSecureLockScreen() && newCredential.getType() != CREDENTIAL_TYPE_NONE) { in setLockCredential()
692 newCredential.checkLength(); in setLockCredential()
695 if (!getLockSettings().setLockCredential(newCredential, savedCredential, userHandle)) { in setLockCredential()
/aosp12/frameworks/base/core/java/android/app/
H A DKeyguardManager.java839 LockscreenCredential newCredential = createLockscreenCredential( in setLock() local
841 return lockPatternUtils.setLockCredential(newCredential, currentCredential, userId); in setLock()
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/
H A 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()
/aosp12/packages/services/Car/tests/BugReportApp/libs/
H A Dgoogle-oauth-client-1.30.1.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
/aosp12/packages/apps/Car/DebuggingRestrictionController/libs/
H A Dgoogle-oauth-client-1.31.0.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java5183 final LockscreenCredential newCredential;
5185 newCredential = LockscreenCredential.createPin(password);
5187 newCredential = LockscreenCredential.createPasswordOrNone(password);
5191 if (!mLockPatternUtils.setLockCredential(newCredential,
5196 if (!mLockPatternUtils.setLockCredentialWithToken(newCredential, tokenHandle,