Home
last modified time | relevance | path

Searched refs:newPassword (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DCachedSyntheticPasswordTests.java63 final byte[] newPassword = "testSyntheticPasswordClearCredential-newpassword".getBytes(); in testSyntheticPasswordClearCredentialUntrusted()
73 mService.setLockCredential(newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testSyntheticPasswordClearCredentialUntrusted()
75 assertEquals(VerifyCredentialResponse.RESPONSE_OK, mService.verifyCredential(newPassword, in testSyntheticPasswordClearCredentialUntrusted()
83 final byte[] newPassword = "testSyntheticPasswordClearCredential-newpassword".getBytes(); in testSyntheticPasswordChangeCredentialUntrusted()
88 mService.setLockCredential(newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testSyntheticPasswordChangeCredentialUntrusted()
94 assertEquals(VerifyCredentialResponse.RESPONSE_OK, mService.verifyCredential(newPassword, in testSyntheticPasswordChangeCredentialUntrusted()
101 final byte[] newPassword = in testUntrustedCredentialChangeMaintainsAuthSecret()
106 mService.setLockCredential(newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testUntrustedCredentialChangeMaintainsAuthSecret()
110 assertEquals(VerifyCredentialResponse.RESPONSE_OK, mService.verifyCredential(newPassword, in testUntrustedCredentialChangeMaintainsAuthSecret()
123 final byte[] newPassword = in testUntrustedCredentialChangeBlockedIfSpNotCached()
[all …]
DSyntheticPasswordTests.java140 final byte[] newPassword = "testSyntheticPasswordChangeCredential-newpassword".getBytes(); in testSyntheticPasswordChangeCredential()
144 mService.setLockCredential(newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, password, in testSyntheticPasswordChangeCredential()
147 newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testSyntheticPasswordChangeCredential()
208 final byte[] newPassword = in testSyntheticPasswordVerifyPassesPrimaryUserAuthSecret()
400 final byte[] newPassword = "password".getBytes(); in testTokenBasedResetPasswordAfterCredentialChanges()
415 mLocalService.setLockCredentialWithToken(newPassword, in testTokenBasedResetPasswordAfterCredentialChanges()
420 newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testTokenBasedResetPasswordAfterCredentialChanges()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupPasswordManager.java112 boolean setBackupPassword(String currentPassword, String newPassword) { in setBackupPassword() argument
129 if (newPassword == null || newPassword.isEmpty()) { in setBackupPassword()
136 PBKDF_CURRENT, newPassword, salt, PasswordUtils.PBKDF2_HASH_ROUNDS); in setBackupPassword()
DBackupManagerService.java762 public boolean setBackupPassword(String currentPassword, String newPassword) { in setBackupPassword() argument
768 && userBackupManagerService.setBackupPassword(currentPassword, newPassword); in setBackupPassword()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccCard.java214 public void changeIccLockPassword(String oldPassword, String newPassword, in changeIccLockPassword() argument
230 public void changeIccFdnPassword(String oldPassword, String newPassword, in changeIccFdnPassword() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccCardApplication.java829 public void changeIccLockPassword(String oldPassword, String newPassword, in changeIccLockPassword() argument
833 mCi.changeIccPinForApp(oldPassword, newPassword, mAid, in changeIccLockPassword()
849 public void changeIccFdnPassword(String oldPassword, String newPassword, in changeIccFdnPassword() argument
853 mCi.changeIccPin2ForApp(oldPassword, newPassword, mAid, in changeIccFdnPassword()
DUiccProfile.java877 public void changeIccLockPassword(String oldPassword, String newPassword, Message onComplete) { in changeIccLockPassword() argument
880 mUiccApplication.changeIccLockPassword(oldPassword, newPassword, onComplete); in changeIccLockPassword()
891 public void changeIccFdnPassword(String oldPassword, String newPassword, Message onComplete) { in changeIccFdnPassword() argument
894 mUiccApplication.changeIccFdnPassword(oldPassword, newPassword, onComplete); in changeIccFdnPassword()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountsDbTest.java321 String newPassword = "newPassword"; in testUpdateCeAccountPassword() local
322 mAccountsDb.updateCeAccountPassword(accId, newPassword); in testUpdateCeAccountPassword()
325 assertEquals(newPassword, actualPassword); in testUpdateCeAccountPassword()
/frameworks/base/keystore/java/android/security/
DKeyStore.java1014 public boolean onUserPasswordChanged(int userId, String newPassword) { in onUserPasswordChanged() argument
1017 if (newPassword == null) { in onUserPasswordChanged()
1018 newPassword = ""; in onUserPasswordChanged()
1021 return mBinder.onUserPasswordChanged(userId, newPassword) == NO_ERROR; in onUserPasswordChanged()
1066 public boolean onUserPasswordChanged(String newPassword) { in onUserPasswordChanged() argument
1067 return onUserPasswordChanged(UserHandle.getUserId(Process.myUid()), newPassword); in onUserPasswordChanged()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java322 byte[] newPassword = new byte[newPasswordChars.length]; in tieManagedProfileLockIfNecessary()
324 newPassword[i] = (byte) newPasswordChars[i]; in tieManagedProfileLockIfNecessary()
328 setLockCredentialInternal(newPassword, CREDENTIAL_TYPE_PASSWORD, managedUserPassword, in tieManagedProfileLockIfNecessary()
334 tieProfileLockToParent(managedUserId, newPassword); in tieManagedProfileLockIfNecessary()
335 Arrays.fill(newPassword, (byte) 0); in tieManagedProfileLockIfNecessary()