Searched refs:newCredential (Results 1 – 8 of 8) sorted by relevance
95 public boolean setLockCredential(LockscreenCredential newCredential, in setLockCredential() argument97 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()
295 final LockscreenCredential newCredential = newPassword("newPassword"); in testSetLockCredential_forPrimaryUserWithUnifiedChallengeProfile_updatesBothCredentials() local301 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() argument481 assertTrue(mService.setLockCredential(newCredential, oldCredential, userId)); in testChangeCredentials()482 assertVerifyCredentials(userId, newCredential, sid); in testChangeCredentials()
686 public boolean setLockCredential(@NonNull LockscreenCredential newCredential, in setLockCredential() argument688 if (!hasSecureLockScreen() && newCredential.getType() != CREDENTIAL_TYPE_NONE) { in setLockCredential()692 newCredential.checkLength(); in setLockCredential()695 if (!getLockSettings().setLockCredential(newCredential, savedCredential, userHandle)) { in setLockCredential()
839 LockscreenCredential newCredential = createLockscreenCredential( in setLock() local841 return lockPatternUtils.setLockCredential(newCredential, currentCredential, userId); in setLock()
1763 private void onPostPasswordChanged(LockscreenCredential newCredential, int userHandle) { in onPostPasswordChanged() argument1764 updateEncryptionPasswordIfNeeded(newCredential, userHandle); in onPostPasswordChanged()1765 if (newCredential.isPattern()) { in onPostPasswordChanged()1768 updatePasswordHistory(newCredential, userHandle); in onPostPasswordChanged()
META-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
5183 final LockscreenCredential newCredential;5185 newCredential = LockscreenCredential.createPin(password);5187 newCredential = LockscreenCredential.createPasswordOrNone(password);5191 if (!mLockPatternUtils.setLockCredential(newCredential,5196 if (!mLockPatternUtils.setLockCredentialWithToken(newCredential, tokenHandle,