/aosp14/frameworks/base/tests/TrustTests/src/android/trust/test/lib/ |
H A D | ScreenLockRule.kt | 40 private val lockPatternUtils = LockPatternUtils(context) regex 62 .that(lockPatternUtils.isSecure(context.userId)) 86 lockPatternUtils.setLockCredential( 91 wait("screen lock set") { lockPatternUtils.isSecure(context.userId) } 96 instantLockSavedValue = lockPatternUtils.getPowerButtonInstantlyLocks(context.userId) 97 lockPatternUtils.setPowerButtonInstantlyLocks(true, context.userId) 101 var lockCredentialUnset = lockPatternUtils.setLockCredential( 110 lockPatternUtils.setLockScreenDisabled(true, context.userId) 112 lockPatternUtils.isLockScreenDisabled(context.userId) 114 wait("screen lock insecure") { !lockPatternUtils.isSecure(context.userId) } [all …]
|
H A D | TrustAgentRule.kt | 44 private val lockPatternUtils = LockPatternUtils(context) regex 77 .plus(lockPatternUtils.getEnabledTrustAgents(userId)) 79 lockPatternUtils.setEnabledTrustAgents(agents, userId) 92 val agents = lockPatternUtils.getEnabledTrustAgents(userId).toMutableList() 95 lockPatternUtils.setEnabledTrustAgents(agents, userId)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/ |
H A D | CredentialInteractorImplTest.kt | 46 @Mock private lateinit var lockPatternUtils: LockPatternUtils 58 whenever(lockPatternUtils.getMaximumFailedPasswordsForWipe(anyInt())) 67 lockPatternUtils, 100 whenever(lockPatternUtils.getCurrentFailedPasswordAttempts(eq(USER_ID))) 123 verify(lockPatternUtils).userPresent(eq(USER_ID)) 124 verify(lockPatternUtils) 146 verify(lockPatternUtils).reportFailedPasswordAttempt(eq(USER_ID)) 155 whenever(lockPatternUtils.getCurrentFailedPasswordAttempts(eq(USER_ID))) 169 verify(lockPatternUtils).reportFailedPasswordAttempt(eq(USER_ID)) 176 whenever(lockPatternUtils.getCurrentFailedPasswordAttempts(eq(USER_ID))) [all …]
|
H A D | PromptSelectorInteractorImplTest.kt | 62 @Mock private lateinit var lockPatternUtils: LockPatternUtils 73 PromptSelectorInteractorImpl(fingerprintRepository, promptRepository, lockPatternUtils) 192 whenever(lockPatternUtils.getKeyguardStoredPasswordQuality(any()))
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/authentication/data/repository/ |
H A D | AuthenticationRepository.kt | 175 private val lockPatternUtils: LockPatternUtils, 184 !lockPatternUtils.isLockScreenDisabled(selectedUserId) 191 getFreshValue = lockPatternUtils::isAutoPinConfirmEnabled, 199 getFreshValue = lockPatternUtils::isVisiblePatternEnabled, 239 lockPatternUtils.getPinLength(selectedUserId) 247 lockPatternUtils.reportSuccessfulPasswordAttempt(selectedUserId) 249 lockPatternUtils.reportFailedPasswordAttempt(selectedUserId) 257 lockPatternUtils.getCurrentFailedPasswordAttempts(selectedUserId) 264 lockPatternUtils.getLockoutAttemptDeadline(selectedUserId) 274 lockPatternUtils.setLockoutAttemptDeadline( [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/ |
H A D | CredentialInteractor.kt | 49 private val lockPatternUtils: LockPatternUtils, 56 !lockPatternUtils.isVisiblePatternEnabled(userId) 70 lockPatternUtils.verifyCredential( 77 lockPatternUtils.userPresent(effectiveUserId) 85 lockPatternUtils.verifyGatekeeperPasswordHandle( 91 lockPatternUtils.removeGatekeeperPasswordHandle(pwHandle) 97 lockPatternUtils.setLockoutAttemptDeadline(effectiveUserId, response.timeout) 114 val numAttempts = lockPatternUtils.getCurrentFailedPasswordAttempts(effectiveUserId) + 1 115 val maxAttempts = lockPatternUtils.getMaximumFailedPasswordsForWipe(effectiveUserId) 133 lockPatternUtils.reportFailedPasswordAttempt(effectiveUserId)
|
H A D | PromptSelectorInteractor.kt | 99 lockPatternUtils: LockPatternUtils, 137 getCredentialType(lockPatternUtils, prompt.userInfo.deviceCredentialOwnerId)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
H A D | KeyguardPinViewControllerTest.kt | 69 @Mock private lateinit var lockPatternUtils: LockPatternUtils 113 `when`(lockPatternUtils.getPinLength(anyInt())).thenReturn(6) 127 lockPatternUtils, 211 `when`(lockPatternUtils.getPinLength(anyInt())).thenReturn(6) 212 `when`(lockPatternUtils.isAutoPinConfirmEnabled(anyInt())).thenReturn(true) 213 `when`(lockPatternUtils.getCurrentFailedPasswordAttempts(anyInt())).thenReturn(3) 228 `when`(lockPatternUtils.getPinLength(anyInt())).thenReturn(6) 229 `when`(lockPatternUtils.isAutoPinConfirmEnabled(anyInt())).thenReturn(true) 230 `when`(lockPatternUtils.getCurrentFailedPasswordAttempts(anyInt())).thenReturn(6) 247 verify(lockPatternUtils).getCurrentFailedPasswordAttempts(anyInt())
|
H A D | EmergencyButtonControllerTest.kt | 60 @Mock lateinit var lockPatternUtils: LockPatternUtils 80 lockPatternUtils, 91 Mockito.`when`(lockPatternUtils.isSecure(anyInt())).thenReturn(true)
|
H A D | KeyguardSimPinViewControllerTest.kt | 53 @Mock private lateinit var lockPatternUtils: LockPatternUtils 84 lockPatternUtils,
|
H A D | KeyguardSimPukViewControllerTest.kt | 49 @Mock private lateinit var lockPatternUtils: LockPatternUtils 83 lockPatternUtils,
|
H A D | KeyguardPasswordViewControllerTest.kt | 55 @Mock lateinit var lockPatternUtils: LockPatternUtils 95 lockPatternUtils,
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/authentication/data/repository/ |
H A D | AuthenticationRepositoryTest.kt | 52 @Mock private lateinit var lockPatternUtils: LockPatternUtils 78 lockPatternUtils = lockPatternUtils, 106 whenever(lockPatternUtils.isAutoPinConfirmEnabled(USER_INFOS[0].id)).thenReturn(true) 107 whenever(lockPatternUtils.isAutoPinConfirmEnabled(USER_INFOS[1].id)).thenReturn(false) 120 whenever(lockPatternUtils.isVisiblePatternEnabled(USER_INFOS[0].id)).thenReturn(false) 121 whenever(lockPatternUtils.isVisiblePatternEnabled(USER_INFOS[1].id)).thenReturn(true)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/dagger/ |
H A D | ControlsComponentTest.kt | 57 @Mock private lateinit var lockPatternUtils: LockPatternUtils 110 `when`(lockPatternUtils.getStrongAuthForUser(anyInt())) 119 `when`(lockPatternUtils.getStrongAuthForUser(anyInt())).thenReturn(STRONG_AUTH_NOT_REQUIRED) 129 `when`(lockPatternUtils.getStrongAuthForUser(anyInt())).thenReturn(STRONG_AUTH_NOT_REQUIRED) 140 `when`(lockPatternUtils.getStrongAuthForUser(anyInt())).thenReturn(STRONG_AUTH_NOT_REQUIRED) 180 lockPatternUtils,
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | KeyguardPinViewController.java | 49 SecurityMode securityMode, LockPatternUtils lockPatternUtils, in KeyguardPinViewController() argument 57 super(view, keyguardUpdateMonitor, securityMode, lockPatternUtils, keyguardSecurityCallback, in KeyguardPinViewController() 62 mLockPatternUtils = lockPatternUtils; in KeyguardPinViewController()
|
H A D | EmergencyButtonController.java | 98 LockPatternUtils lockPatternUtils, in EmergencyButtonController() argument 109 mLockPatternUtils = lockPatternUtils; in EmergencyButtonController() 228 LockPatternUtils lockPatternUtils, in Factory() argument 240 mLockPatternUtils = lockPatternUtils; in Factory()
|
H A D | KeyguardSecurityModel.java | 54 KeyguardSecurityModel(@Main Resources resources, LockPatternUtils lockPatternUtils, in KeyguardSecurityModel() argument 58 mLockPatternUtils = lockPatternUtils; in KeyguardSecurityModel()
|
H A D | KeyguardPinBasedInputViewController.java | 56 LockPatternUtils lockPatternUtils, in KeyguardPinBasedInputViewController() argument 64 super(view, keyguardUpdateMonitor, securityMode, lockPatternUtils, keyguardSecurityCallback, in KeyguardPinBasedInputViewController()
|
H A D | KeyguardAbsKeyInputViewController.java | 78 LockPatternUtils lockPatternUtils, in KeyguardAbsKeyInputViewController() argument 87 mLockPatternUtils = lockPatternUtils; in KeyguardAbsKeyInputViewController()
|
H A D | KeyguardPasswordViewController.java | 99 LockPatternUtils lockPatternUtils, in KeyguardPasswordViewController() argument 110 super(view, keyguardUpdateMonitor, securityMode, lockPatternUtils, keyguardSecurityCallback, in KeyguardPasswordViewController()
|
/aosp14/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsBackupAgent.java | 689 final LockPatternUtils lockPatternUtils = new LockPatternUtils(this); in getLockSettings() local 690 final boolean ownerInfoEnabled = lockPatternUtils.isOwnerInfoEnabled(userId); in getLockSettings() 691 final String ownerInfo = lockPatternUtils.getOwnerInfo(userId); in getLockSettings() 695 lockPatternUtils.getPowerButtonInstantlyLocks(userId); in getLockSettings() 706 if (lockPatternUtils.isVisiblePatternEverChosen(userId)) { in getLockSettings() 710 if (lockPatternUtils.isPowerButtonInstantlyLocksEverChosen(userId)) { in getLockSettings() 714 if (lockPatternUtils.isPinEnhancedPrivacyEverChosen(userId)) { in getLockSettings() 965 final LockPatternUtils lockPatternUtils = new LockPatternUtils(this); in restoreLockSettings() local 979 lockPatternUtils.setOwnerInfoEnabled("1".equals(value), userId); in restoreLockSettings() 982 lockPatternUtils.setOwnerInfo(value, userId); in restoreLockSettings() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/ |
H A D | KeyguardQuickAffordanceInteractorParameterizedTest.kt | 219 @Mock private lateinit var lockPatternUtils: LockPatternUtils 313 lockPatternUtils = lockPatternUtils, 386 whenever(lockPatternUtils.getStrongAuthForUser(any()))
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/dagger/ |
H A D | ControlsComponent.kt | 51 private val lockPatternUtils: LockPatternUtils, 92 lockPatternUtils.getStrongAuthForUser(userTracker.userHandle.identifier) ==
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/ |
H A D | PromptFingerprintIconViewModelTest.kt | 40 @Mock private lateinit var lockPatternUtils: LockPatternUtils 56 PromptSelectorInteractorImpl(fingerprintRepository, promptRepository, lockPatternUtils)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
H A D | AuthContainerViewTest.kt | 94 lateinit var lockPatternUtils: LockPatternUtils 124 lockPatternUtils, 372 whenever(lockPatternUtils.getKeyguardStoredPasswordQuality(eq(200))).thenReturn( 451 whenever(lockPatternUtils.getKeyguardStoredPasswordQuality(eq(20))).thenReturn( 526 lockPatternUtils,
|