Home
last modified time | relevance | path

Searched refs:LockTypes (Results 1 – 5 of 5) sorted by relevance

/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/setupservice/
H A DInitialLockSetupService.java31 import com.android.car.setupwizardlib.InitialLockSetupConstants.LockTypes;
105 public LockConfig getLockConfig(@LockTypes int lockType) { in getLockConfig()
108 case LockTypes.PASSWORD: in getLockConfig()
110 case LockTypes.PIN: in getLockConfig()
112 case LockTypes.PATTERN: in getLockConfig()
123 case LockTypes.PASSWORD: in checkValidLock()
126 case LockTypes.PIN: in checkValidLock()
129 case LockTypes.PATTERN: in checkValidLock()
157 case LockTypes.PASSWORD: in setLock()
168 case LockTypes.PIN: in setLock()
[all …]
/aosp12/frameworks/opt/car/setupwizard/library/utils/src/com/android/car/setupwizardlib/
H A DInitialLockSetupClient.java342 map.put(LockTypes.PASSWORD, passwordConfig); in doInBackground()
343 map.put(LockTypes.PIN, pinConfig); in doInBackground()
344 map.put(LockTypes.PATTERN, patternConfig); in doInBackground()
369 @LockTypes int lockType) { in ValidateLockAsyncTask()
388 case LockTypes.PASSWORD: in doInBackground()
391 case LockTypes.PIN: in doInBackground()
394 case LockTypes.PATTERN: in doInBackground()
447 @LockTypes int lockType) { in SaveLockAsyncTask()
466 case LockTypes.PASSWORD: in doInBackground()
469 case LockTypes.PIN: in doInBackground()
[all …]
H A DInitialLockSetupConstants.java37 LockTypes.PASSWORD,
38 LockTypes.PIN,
39 LockTypes.PATTERN,
40 LockTypes.NONE
42 @interface LockTypes { annotation
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/
H A DInitialLockSetupServiceTest.java30 import com.android.car.setupwizardlib.InitialLockSetupConstants.LockTypes;
91 LockConfig pinConfig = service.getLockConfig(LockTypes.PIN); in testGetLockConfig_returnsCorrectConfig()
94 LockConfig patternConfig = service.getLockConfig(LockTypes.PATTERN); in testGetLockConfig_returnsCorrectConfig()
97 LockConfig passwordConfig = service.getLockConfig(LockTypes.PASSWORD); in testGetLockConfig_returnsCorrectConfig()
124 int result = service.checkValidLock(LockTypes.PIN, "12a3".getBytes()); in testCheckValidLockPin_withLetters()
137 int result = service.checkValidLock(LockTypes.PATTERN, pattern); in testCheckValidLockPattern_tooShort()
150 int result = service.checkValidLock(LockTypes.PATTERN, pattern); in testCheckValidLockPattern_longEnough()
168 int result = service.setLock(LockTypes.PASSWORD, "hi".getBytes()); in testSetLockPassword_doesNotWorkWithInvalidPassword()
179 int result = service.setLock(LockTypes.PASSWORD, password); in testSetLockPassword_setsDevicePassword()
191 int result = service.setLock(LockTypes.PIN, password); in testSetLockPin_setsDevicePin()
[all …]
/aosp12/frameworks/base/core/java/android/app/
H A DKeyguardManager.java173 @interface LockTypes {} annotation in KeyguardManager
725 public boolean isValidLockPasswordComplexity(@LockTypes int lockType, @NonNull byte[] password, in isValidLockPasswordComplexity()
782 public boolean setLock(@LockTypes int lockType, @NonNull byte[] password, in setLock()
833 public boolean setLock(@LockTypes int newLockType, @Nullable byte[] newPassword, in setLock()
834 @LockTypes int currentLockType, @Nullable byte[] currentPassword) { in setLock()
859 public boolean checkLock(@LockTypes int lockType, @Nullable byte[] password) { in checkLock()
872 @LockTypes int lockType, @Nullable byte[] password) { in createLockscreenCredential()