/aosp_15_r20/frameworks/base/tests/TrustTests/src/android/trust/test/lib/ |
H A D | ScreenLockRule.kt | 46 private val lockPatternUtils = LockPatternUtils(context) in <lambda>() constant 70 strongAuthSavedValue = lockPatternUtils.getStrongAuthForUser(userId) in <lambda>() 73 lockPatternUtils.requireStrongAuth(STRONG_AUTH_REQUIRED_AFTER_USER_LOCKDOWN, userId) in <lambda>() 75 lockPatternUtils.getStrongAuthForUser(userId) == in <lambda>() 82 lockPatternUtils.requireStrongAuth(strongAuthSavedValue, userId) in <lambda>() 87 .that(lockPatternUtils.isSecure(context.userId)) in <lambda>() 111 lockPatternUtils.verifyCredential(LockscreenCredential.createPin(PIN), context.userId, 0) in <lambda>() 112 lockPatternUtils.userPresent(context.userId) in <lambda>() 114 lockPatternUtils.getStrongAuthForUser(context.userId) == STRONG_AUTH_NOT_REQUIRED in <lambda>() 119 lockPatternUtils.verifyCredential( in <lambda>() [all …]
|
H A D | TrustAgentRule.kt | 47 private val lockPatternUtils = LockPatternUtils(context) constant in android.trust.test.lib.TrustAgentRule 97 .plus(lockPatternUtils.getEnabledTrustAgents(userId)) in enableTrustAgent() 99 lockPatternUtils.setEnabledTrustAgents(agents, userId) in enableTrustAgent() 118 val agents = lockPatternUtils.getEnabledTrustAgents(userId).toMutableList() in disableTrustAgent() 121 lockPatternUtils.setEnabledTrustAgents(agents, userId) in disableTrustAgent()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/domain/interactor/ |
H A D | CredentialInteractorImplTest.kt | 50 @Mock private lateinit var lockPatternUtils: LockPatternUtils variable in com.android.systemui.biometrics.domain.interactor.CredentialInteractorImplTest 62 whenever(lockPatternUtils.getMaximumFailedPasswordsForWipe(anyInt())) in setup() 71 lockPatternUtils, in setup() 81 whenever(lockPatternUtils.isVisiblePatternEnabled(eq(USER_ID))).thenReturn(value) in testStealthMode() 138 whenever(lockPatternUtils.getCurrentFailedPasswordAttempts(eq(USER_ID))) in pinCredentialWhenGood() 140 whenever(lockPatternUtils.verifyCredential(any(), eq(USER_ID), anyInt())) in pinCredentialWhenGood() 142 whenever(lockPatternUtils.verifyTiedProfileChallenge(any(), eq(USER_ID), anyInt())) in pinCredentialWhenGood() 145 lockPatternUtils.verifyGatekeeperPasswordHandle( in pinCredentialWhenGood() 152 whenever(lockPatternUtils.setLockoutAttemptDeadline(anyInt(), anyInt())).thenAnswer { in pinCredentialWhenGood() 173 verify(lockPatternUtils).userPresent(eq(USER_ID)) in pinCredentialWhenGood() [all …]
|
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/authentication/data/repository/ |
H A D | AuthenticationRepository.kt | 202 private val lockPatternUtils: LockPatternUtils, constant in com.android.systemui.authentication.data.repository.AuthenticationRepositoryImpl 213 getFreshValue = lockPatternUtils::isVisiblePatternEnabled, 219 getFreshValue = lockPatternUtils::isAutoPinConfirmEnabled, 250 getFreshValue = { userId -> lockPatternUtils.isPinEnhancedPrivacyEnabled(userId) }, in userId() 259 lockPatternUtils.getLockoutAttemptDeadline(selectedUserId).takeIf { in <lambda>() 283 val matched = lockPatternUtils.checkCredential(credential, selectedUserId) {} in checkCredential() 295 return withContext(backgroundDispatcher) { lockPatternUtils.getPinLength(selectedUserId) } in getAuthenticationMethod() 301 lockPatternUtils.userPresent(selectedUserId) in reportAuthenticationAttempt() 302 lockPatternUtils.reportSuccessfulPasswordAttempt(selectedUserId) in reportAuthenticationAttempt() 305 lockPatternUtils.reportFailedPasswordAttempt(selectedUserId) in reportAuthenticationAttempt() [all …]
|
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/authentication/data/repository/ |
H A D | AuthenticationRepositoryTest.kt | 58 @Mock private lateinit var lockPatternUtils: LockPatternUtils variable in com.android.systemui.authentication.data.repository.AuthenticationRepositoryTest 87 lockPatternUtils = lockPatternUtils, in setUp() 122 whenever(lockPatternUtils.isAutoPinConfirmEnabled(USER_INFOS[0].id)).thenReturn(true) in isAutoConfirmFeatureEnabled() 123 whenever(lockPatternUtils.isAutoPinConfirmEnabled(USER_INFOS[1].id)).thenReturn(false) in isAutoConfirmFeatureEnabled() 136 whenever(lockPatternUtils.isVisiblePatternEnabled(USER_INFOS[0].id)).thenReturn(false) in isPatternVisible() 137 whenever(lockPatternUtils.isVisiblePatternEnabled(USER_INFOS[1].id)).thenReturn(true) in isPatternVisible() 150 whenever(lockPatternUtils.isPinEnhancedPrivacyEnabled(USER_INFOS[0].id)) in isPinEnhancedPrivacyEnabled() 152 whenever(lockPatternUtils.isPinEnhancedPrivacyEnabled(USER_INFOS[1].id)) in isPinEnhancedPrivacyEnabled() 167 whenever(lockPatternUtils.getLockoutAttemptDeadline(USER_INFOS[0].id)) in lockoutEndTimestamp() 169 whenever(lockPatternUtils.getLockoutAttemptDeadline(USER_INFOS[1].id)).thenReturn(0) in lockoutEndTimestamp()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/keyguard/ |
H A D | KeyguardPinViewControllerTest.kt | 80 @Mock private lateinit var lockPatternUtils: LockPatternUtils variable in com.android.keyguard.KeyguardPinViewControllerTest 130 `when`(lockPatternUtils.getPinLength(anyInt())).thenReturn(6) in setup() 146 lockPatternUtils, in constructPinViewController() 236 `when`(lockPatternUtils.getPinLength(anyInt())).thenReturn(6) in testOnViewAttached_withAutoPinConfirmationFailedPasswordAttemptsLessThan5() 237 `when`(lockPatternUtils.isAutoPinConfirmEnabled(anyInt())).thenReturn(true) in testOnViewAttached_withAutoPinConfirmationFailedPasswordAttemptsLessThan5() 238 `when`(lockPatternUtils.getCurrentFailedPasswordAttempts(anyInt())).thenReturn(3) in testOnViewAttached_withAutoPinConfirmationFailedPasswordAttemptsLessThan5() 253 `when`(lockPatternUtils.getPinLength(anyInt())).thenReturn(6) in testOnViewAttached_withAutoPinConfirmationFailedPasswordAttemptsMoreThan5() 254 `when`(lockPatternUtils.isAutoPinConfirmEnabled(anyInt())).thenReturn(true) in testOnViewAttached_withAutoPinConfirmationFailedPasswordAttemptsMoreThan5() 255 `when`(lockPatternUtils.getCurrentFailedPasswordAttempts(anyInt())).thenReturn(6) in testOnViewAttached_withAutoPinConfirmationFailedPasswordAttemptsMoreThan5() 272 verify(lockPatternUtils).getCurrentFailedPasswordAttempts(anyInt()) in handleLockout_readsNumberOfErrorAttempts() [all …]
|
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/ |
H A D | CredentialInteractor.kt | 53 private val lockPatternUtils: LockPatternUtils, in isStealthModeActive() constant in com.android.systemui.biometrics.domain.interactor.CredentialInteractorImpl 60 !lockPatternUtils.isVisiblePatternEnabled(userId) in isStealthModeActive() 79 lockPatternUtils.verifyTiedProfileChallenge( in isStealthModeActive() 85 lockPatternUtils.verifyCredential( in isStealthModeActive() 93 lockPatternUtils.userPresent(effectiveUserId) in isStealthModeActive() 101 lockPatternUtils.verifyGatekeeperPasswordHandle( in isStealthModeActive() 107 lockPatternUtils.removeGatekeeperPasswordHandle(pwHandle) in isStealthModeActive() 113 lockPatternUtils.setLockoutAttemptDeadline(effectiveUserId, response.timeout) in isStealthModeActive() 130 val numAttempts = lockPatternUtils.getCurrentFailedPasswordAttempts(effectiveUserId) + 1 in isStealthModeActive() 131 val maxAttempts = lockPatternUtils.getMaximumFailedPasswordsForWipe(effectiveUserId) in isStealthModeActive() [all …]
|
H A D | PromptSelectorInteractor.kt | 108 private val lockPatternUtils: LockPatternUtils, constant 151 getCredentialType(lockPatternUtils, prompt.userInfo.deviceCredentialOwnerId) in isAllowed() 199 kind = getCredentialType(lockPatternUtils, effectiveUserId) in setPrompt() 219 kind = getCredentialType(lockPatternUtils, effectiveUserId) in setPrompt()
|
/aosp_15_r20/packages/apps/Settings/src/com/android/settings/security/ |
D | ScreenPinningSettings.java | 139 LockPatternUtils lockPatternUtils = new LockPatternUtils(getActivity()); in setScreenLockUsed() local 140 final int passwordQuality = lockPatternUtils in setScreenLockUsed() 172 LockPatternUtils lockPatternUtils = new LockPatternUtils(getActivity()); in onActivityResult() local 173 boolean validPassQuality = lockPatternUtils.getKeyguardStoredPasswordQuality( in onActivityResult() 184 private static int getCurrentSecurityTitle(LockPatternUtils lockPatternUtils) { in getCurrentSecurityTitle() argument 185 int quality = lockPatternUtils.getKeyguardStoredPasswordQuality(UserHandle.myUserId()); in getCurrentSecurityTitle() 196 if (lockPatternUtils.isLockPatternEnabled(UserHandle.myUserId())) { in getCurrentSecurityTitle() 279 final LockPatternUtils lockPatternUtils = new LockPatternUtils(context); 281 raw.title = res.getString(getCurrentSecurityTitle(lockPatternUtils));
|
/aosp_15_r20/packages/apps/Settings/src/com/android/settings/security/screenlock/ |
D | ScreenLockSettings.java | 78 DashboardFragment parent, LockPatternUtils lockPatternUtils) { in buildPreferenceControllers() argument 82 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers() 84 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers() 86 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers() 88 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers() 90 context, MY_USER_ID, lockPatternUtils, parent)); in buildPreferenceControllers()
|
D | PinPrivacyPreferenceController.kt | 31 private val lockPatternUtils: LockPatternUtils constant 40 val credentialType = lockPatternUtils.getCredentialTypeForUser(userId) in isAvailable() 49 lockPatternUtils.setPinEnhancedPrivacyEnabled((value as Boolean), userId) in onPreferenceChange() 58 return lockPatternUtils.isPinEnhancedPrivacyEnabled(userId) in getCurrentPreferenceState()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/controls/dagger/ |
H A D | ControlsComponentTest.kt | 56 @Mock private lateinit var lockPatternUtils: LockPatternUtils variable in com.android.systemui.controls.dagger.ControlsComponentTest 109 `when`(lockPatternUtils.getStrongAuthForUser(anyInt())) in testFeatureEnabledAfterBootVisibility() 118 `when`(lockPatternUtils.getStrongAuthForUser(anyInt())).thenReturn(STRONG_AUTH_NOT_REQUIRED) in testFeatureEnabledAndCannotShowOnLockScreenVisibility() 128 `when`(lockPatternUtils.getStrongAuthForUser(anyInt())).thenReturn(STRONG_AUTH_NOT_REQUIRED) in testFeatureEnabledAndCanShowOnLockScreenVisibility() 139 `when`(lockPatternUtils.getStrongAuthForUser(anyInt())).thenReturn(STRONG_AUTH_NOT_REQUIRED) in testFeatureEnabledAndCanShowWhileUnlockedVisibility() 178 lockPatternUtils, in setupComponent()
|
/aosp_15_r20/packages/apps/Settings/src/com/android/settings/password/ |
D | ChooseLockGenericController.java | 64 ManagedLockPasswordProvider managedPasswordProvider, LockPatternUtils lockPatternUtils, in ChooseLockGenericController() argument 70 mLockPatternUtils = lockPatternUtils; in ChooseLockGenericController() 94 LockPatternUtils lockPatternUtils) { in Builder() argument 99 lockPatternUtils); in Builder() 107 LockPatternUtils lockPatternUtils) { in Builder() argument 111 mLockPatternUtils = lockPatternUtils; in Builder()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/ |
H A D | KeyguardWakeDirectlyToGoneInteractorTest.kt | 31 import com.android.internal.widget.lockPatternUtils in <lambda>() 78 private val lockPatternUtils = kosmos.lockPatternUtils in <lambda>() constant in com.android.systemui.keyguard.domain.interactor.KeyguardWakeDirectlyToGoneInteractorTest 125 whenever(lockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(true) in <lambda>() 157 whenever(lockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false) in <lambda>() 177 whenever(lockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(true) in <lambda>() 201 whenever(lockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false) in <lambda>()
|
H A D | KeyguardLockWhileAwakeInteractorTest.kt | 21 import com.android.internal.widget.lockPatternUtils 130 whenever(kosmos.lockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(true) in doesNotEmit_keyguardNoLongerSuppressed() 136 whenever(kosmos.lockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false) in doesNotEmit_keyguardNoLongerSuppressed() 152 whenever(kosmos.lockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(true) in doesNotEmit_fromLockdown_orFromLockNow_ifEnabledButSuppressed()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/deviceentry/data/repository/ |
H A D | DeviceEntryRepositoryTest.kt | 33 @Mock private lateinit var lockPatternUtils: LockPatternUtils variable in com.android.systemui.deviceentry.data.repository.DeviceEntryRepositoryTest 53 lockPatternUtils = lockPatternUtils, in setUp() 61 whenever(lockPatternUtils.isLockScreenDisabled(USER_INFOS[0].id)).thenReturn(false) in isLockscreenEnabled() 62 whenever(lockPatternUtils.isLockScreenDisabled(USER_INFOS[1].id)).thenReturn(true) in isLockscreenEnabled()
|
/aosp_15_r20/packages/apps/Car/Settings/src/com/android/car/settings/setupservice/ |
D | InitialLockSetupService.java | 73 LockPatternUtils lockPatternUtils = new LockPatternUtils(getApplicationContext()); in onBind() local 75 if (lockPatternUtils.getKeyguardStoredPasswordQuality(userId) in onBind() 157 LockPatternUtils lockPatternUtils = new LockPatternUtils( in setLock() local 159 int currentPassword = lockPatternUtils.getKeyguardStoredPasswordQuality(userId); in setLock() 173 if (!lockPatternUtils.setLockCredential(credential, in setLock()
|
/aosp_15_r20/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsBackupAgent.java | 784 final LockPatternUtils lockPatternUtils = new LockPatternUtils(this); in getLockSettings() local 785 final boolean ownerInfoEnabled = lockPatternUtils.isOwnerInfoEnabled(userId); in getLockSettings() 786 final String ownerInfo = lockPatternUtils.getOwnerInfo(userId); in getLockSettings() 787 final boolean lockPatternEnabled = lockPatternUtils.isLockPatternEnabled(userId); in getLockSettings() 788 final boolean visiblePatternEnabled = lockPatternUtils.isVisiblePatternEnabled(userId); in getLockSettings() 790 lockPatternUtils.getPowerButtonInstantlyLocks(userId); in getLockSettings() 801 if (lockPatternUtils.isVisiblePatternEverChosen(userId)) { in getLockSettings() 805 if (lockPatternUtils.isPowerButtonInstantlyLocksEverChosen(userId)) { in getLockSettings() 809 if (lockPatternUtils.isPinEnhancedPrivacyEverChosen(userId)) { in getLockSettings() 811 out.writeUTF(lockPatternUtils.isPinEnhancedPrivacyEnabled(userId) ? "1" : "0"); in getLockSettings() [all …]
|
/aosp_15_r20/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/biometrics/domain/interactor/ |
H A D | PromptSelectorInteractorKosmos.kt | 19 import com.android.internal.widget.lockPatternUtils 31 lockPatternUtils = lockPatternUtils, in <lambda>()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/domain/interactor/ |
H A D | KeyguardQuickAffordanceInteractorKosmos.kt | 21 import com.android.internal.widget.lockPatternUtils 43 lockPatternUtils = lockPatternUtils, in <lambda>()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/ |
H A D | KeyguardWakeDirectlyToGoneInteractor.kt | 88 private val lockPatternUtils: LockPatternUtils, in <lambda>() constant in com.android.systemui.keyguard.domain.interactor.KeyguardWakeDirectlyToGoneInteractor 312 return lockPatternUtils.getPowerButtonInstantlyLocks(userId) || in <lambda>() 313 !lockPatternUtils.isSecure(userId) in <lambda>() 338 lockPatternUtils.devicePolicyManager.getMaximumTimeToLock(null, userId) in <lambda>()
|
/aosp_15_r20/packages/apps/Car/SystemUI/src/com/android/systemui/car/keyguard/passenger/ |
D | PassengerKeyguardPatternViewController.java | 54 LockPatternUtils lockPatternUtils, in PassengerKeyguardPatternViewController() argument 59 super(view, lockPatternUtils, userTracker, trustManager, mainHandler, carServiceProvider, in PassengerKeyguardPatternViewController() 61 mLockPatternUtils = lockPatternUtils; in PassengerKeyguardPatternViewController()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | EmergencyButtonController.java | 105 LockPatternUtils lockPatternUtils, in EmergencyButtonController() argument 117 mLockPatternUtils = lockPatternUtils; in EmergencyButtonController() 244 LockPatternUtils lockPatternUtils, in Factory() argument 257 mLockPatternUtils = lockPatternUtils; in Factory()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/systemui/keyguard/domain/interactor/ |
H A D | KeyguardQuickAffordanceInteractorSceneContainerTest.kt | 229 @Mock private lateinit var lockPatternUtils: LockPatternUtils in data() variable in com.android.systemui.keyguard.domain.interactor.KeyguardQuickAffordanceInteractorSceneContainerTest 324 lockPatternUtils = lockPatternUtils, in data() 399 whenever(lockPatternUtils.getStrongAuthForUser(any())) in setUpMocks()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/ |
H A D | KeyguardQuickAffordanceInteractorParameterizedTest.kt | 222 @Mock private lateinit var lockPatternUtils: LockPatternUtils in data() variable in com.android.systemui.keyguard.domain.interactor.KeyguardQuickAffordanceInteractorParameterizedTest 309 lockPatternUtils = lockPatternUtils, in data() 382 whenever(lockPatternUtils.getStrongAuthForUser(any())) in setUpMocks()
|