Home
last modified time | relevance | path

Searched refs:lockPatternUtils (Results 1 – 25 of 61) sorted by relevance

123

/aosp14/frameworks/base/tests/TrustTests/src/android/trust/test/lib/
H A DScreenLockRule.kt40 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 DTrustAgentRule.kt44 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 DCredentialInteractorImplTest.kt46 @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 DPromptSelectorInteractorImplTest.kt62 @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 DAuthenticationRepository.kt175 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 DCredentialInteractor.kt49 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 DPromptSelectorInteractor.kt99 lockPatternUtils: LockPatternUtils,
137 getCredentialType(lockPatternUtils, prompt.userInfo.deviceCredentialOwnerId)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
H A DKeyguardPinViewControllerTest.kt69 @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 DEmergencyButtonControllerTest.kt60 @Mock lateinit var lockPatternUtils: LockPatternUtils
80 lockPatternUtils,
91 Mockito.`when`(lockPatternUtils.isSecure(anyInt())).thenReturn(true)
H A DKeyguardSimPinViewControllerTest.kt53 @Mock private lateinit var lockPatternUtils: LockPatternUtils
84 lockPatternUtils,
H A DKeyguardSimPukViewControllerTest.kt49 @Mock private lateinit var lockPatternUtils: LockPatternUtils
83 lockPatternUtils,
H A DKeyguardPasswordViewControllerTest.kt55 @Mock lateinit var lockPatternUtils: LockPatternUtils
95 lockPatternUtils,
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/authentication/data/repository/
H A DAuthenticationRepositoryTest.kt52 @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 DControlsComponentTest.kt57 @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 DKeyguardPinViewController.java49 SecurityMode securityMode, LockPatternUtils lockPatternUtils, in KeyguardPinViewController() argument
57 super(view, keyguardUpdateMonitor, securityMode, lockPatternUtils, keyguardSecurityCallback, in KeyguardPinViewController()
62 mLockPatternUtils = lockPatternUtils; in KeyguardPinViewController()
H A DEmergencyButtonController.java98 LockPatternUtils lockPatternUtils, in EmergencyButtonController() argument
109 mLockPatternUtils = lockPatternUtils; in EmergencyButtonController()
228 LockPatternUtils lockPatternUtils, in Factory() argument
240 mLockPatternUtils = lockPatternUtils; in Factory()
H A DKeyguardSecurityModel.java54 KeyguardSecurityModel(@Main Resources resources, LockPatternUtils lockPatternUtils, in KeyguardSecurityModel() argument
58 mLockPatternUtils = lockPatternUtils; in KeyguardSecurityModel()
H A DKeyguardPinBasedInputViewController.java56 LockPatternUtils lockPatternUtils, in KeyguardPinBasedInputViewController() argument
64 super(view, keyguardUpdateMonitor, securityMode, lockPatternUtils, keyguardSecurityCallback, in KeyguardPinBasedInputViewController()
H A DKeyguardAbsKeyInputViewController.java78 LockPatternUtils lockPatternUtils, in KeyguardAbsKeyInputViewController() argument
87 mLockPatternUtils = lockPatternUtils; in KeyguardAbsKeyInputViewController()
H A DKeyguardPasswordViewController.java99 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 DSettingsBackupAgent.java689 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 DKeyguardQuickAffordanceInteractorParameterizedTest.kt219 @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 DControlsComponent.kt51 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 DPromptFingerprintIconViewModelTest.kt40 @Mock private lateinit var lockPatternUtils: LockPatternUtils
56 PromptSelectorInteractorImpl(fingerprintRepository, promptRepository, lockPatternUtils)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
H A DAuthContainerViewTest.kt94 lateinit var lockPatternUtils: LockPatternUtils
124 lockPatternUtils,
372 whenever(lockPatternUtils.getKeyguardStoredPasswordQuality(eq(200))).thenReturn(
451 whenever(lockPatternUtils.getKeyguardStoredPasswordQuality(eq(20))).thenReturn(
526 lockPatternUtils,

123