Searched refs:PasswordHelper (Results 1 – 8 of 8) sorted by relevance
34 private PasswordHelper mPasswordHelper;35 private PasswordHelper mPinHelper;39 mPasswordHelper = new PasswordHelper(/* isPin= */ false); in initObjects()40 mPinHelper = new PasswordHelper(/* isPin= */ true); in initObjects()51 .isEqualTo(PasswordHelper.TOO_SHORT); in testValidatePasswordTooShort()61 .isEqualTo(PasswordHelper.NO_ERROR); in testValidatePasswordWhiteSpace()72 .isEqualTo(PasswordHelper.CONTAINS_INVALID_CHARACTERS); in testValidatePasswordNonAscii()82 .isEqualTo(PasswordHelper.CONTAINS_NON_DIGITS); in testValidatePinContainingNonDigits()92 .isEqualTo(PasswordHelper.TOO_SHORT); in testValidatePinWithTooFewDigits()
28 import com.android.car.settings.security.PasswordHelper;112 return new LockConfig(/* enabled= */true, PasswordHelper.MIN_LENGTH); in getLockConfig()120 PasswordHelper passwordHelper; in checkValidLock()123 passwordHelper = new PasswordHelper(/* isPin= */ false); in checkValidLock()126 passwordHelper = new PasswordHelper(/* isPin= */ true); in checkValidLock()
67 private int mErrorCode = PasswordHelper.NO_ERROR;89 private PasswordHelper mPasswordHelper;138 mExistingPassword = args.getByteArray(PasswordHelper.EXTRA_CURRENT_SCREEN_LOCK); in onCreate()141 mPasswordHelper = new PasswordHelper(mIsPin); in onCreate()301 && getEnteredPassword().length >= PasswordHelper.MIN_LENGTH in shouldEnableSubmit()339 if (mErrorCode == PasswordHelper.NO_ERROR) { in handlePrimaryButtonClick()577 mErrorCode = PasswordHelper.NO_ERROR; in handleMessage()
33 public class PasswordHelper { class45 private static final Logger LOG = new Logger(PasswordHelper.class);48 public PasswordHelper(boolean isPin) { in PasswordHelper() method in PasswordHelper
51 mCurrPassword = args.getByteArray(PasswordHelper.EXTRA_CURRENT_SCREEN_LOCK); in onAttach()
105 args.putByteArray(PasswordHelper.EXTRA_CURRENT_SCREEN_LOCK, mCurrentPassword); in handlePreferenceClicked()
84 bundle.putByteArray(PasswordHelper.EXTRA_CURRENT_SCREEN_LOCK, lock); in onLockVerified()
168 mCurrentPattern = args.getByteArray(PasswordHelper.EXTRA_CURRENT_SCREEN_LOCK); in onCreate()