/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
H A D | LockSettingsShellCommandTest.java | 106 when(mLockPatternUtils.checkCredential( in testWrongPassword() 121 when(mLockPatternUtils.checkCredential( in testChangePin() 141 when(mLockPatternUtils.checkCredential( in testChangePin_nonCompliant() 168 when(mLockPatternUtils.checkCredential( in testChangePassword() 188 when(mLockPatternUtils.checkCredential( in testChangePassword_nonCompliant() 213 when(mLockPatternUtils.checkCredential( in testChangePattern() 232 when(mLockPatternUtils.checkCredential( in testChangePattern_nonCompliant() 258 when(mLockPatternUtils.checkCredential( in testClear() 277 when(mLockPatternUtils.checkCredential( in testClear_nonCompliant() 295 when(mLockPatternUtils.checkCredential( in testSetPin_nonCompliantWithComplexity() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/ |
H A D | LockSettingsShellCommand.java | 57 private final LockPatternUtils mLockPatternUtils; field in LockSettingsShellCommand 67 mLockPatternUtils = lockPatternUtils; in LockSettingsShellCommand() 82 if (!mLockPatternUtils.hasSecureLockScreen()) { in onCommand() 223 if (mLockPatternUtils.isLockPasswordEnabled(mCurrentUserId)) { in getOldCredential() 231 if (mLockPatternUtils.isLockPatternEnabled(mCurrentUserId)) { in getOldCredential() 295 mLockPatternUtils.requireStrongAuth(strongAuthReason, mCurrentUserId); in runRequireStrongAuth() 313 mLockPatternUtils.getRequestedPasswordMetrics(mCurrentUserId); in isNewCredentialSufficient() 315 mLockPatternUtils.getRequestedPasswordComplexity(mCurrentUserId); in isNewCredentialSufficient() 336 mLockPatternUtils.setLockScreenDisabled(disabled, mCurrentUserId); in runSetDisabled() 346 if (mLockPatternUtils.isSecure(mCurrentUserId)) { in checkCredential() [all …]
|
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | LockPatternUtilsTest.java | 75 private LockPatternUtils mLockPatternUtils; field in LockPatternUtilsTest 93 mLockPatternUtils = spy(new LockPatternUtils(context)); in configureTest() 94 when(mLockPatternUtils.getLockSettings()).thenReturn(ils); in configureTest() 95 doReturn(true).when(mLockPatternUtils).hasSecureLockScreen(); in configureTest() 107 assertTrue(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isDemoUser_true() 113 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isSecureAndDemoUser_false() 119 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isNotDemoUser_false() 125 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isNotInDemoMode_false() 159 mLockPatternUtils.removeWeakEscrowToken(testHandle, testUserId); in testRemoveAutoEscrowToken() 281 mLockPatternUtils = spy(new LockPatternUtils(context)); in createTestLockSettings() [all …]
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/trust/ |
H A D | TrustManagerServiceTest.java | 98 private final LockPatternUtils mLockPatternUtils = new LockPatternUtils(mMockContext); field in TrustManagerServiceTest 147 assertThat(mLockPatternUtils.getKnownTrustAgents(TEST_USER_ID)).containsExactly( in firstBootCompleted_systemTrustAgentsEnabled() 167 assertThat(mLockPatternUtils.getKnownTrustAgents(TEST_USER_ID)).containsExactly( in firstBootCompleted_defaultTrustAgentEnabled() 185 assertThat(mLockPatternUtils.getKnownTrustAgents(TEST_USER_ID)).containsExactly( in serviceBooted_knownAgentsNotSet_enabledAgentsNotUpdated() 204 assertThat(mLockPatternUtils.getKnownTrustAgents(TEST_USER_ID)).containsExactly( in serviceBooted_knownAgentsSet_enabledAgentsUpdated() 219 assertThat(mLockPatternUtils.getKnownTrustAgents(TEST_USER_ID)).containsExactly( in newSystemTrustAgent_setToEnabledAndKnown() 240 assertThat(mLockPatternUtils.getKnownTrustAgents(TEST_USER_ID)).containsExactly( in newSystemTrustAgent_notEnabledWhenDefaultAgentIsSet() 253 assertThat(mLockPatternUtils.getEnabledTrustAgents(TEST_USER_ID)).isEmpty(); in newNonSystemTrustAgent_notEnabledButMarkedAsKnown() 254 assertThat(mLockPatternUtils.getKnownTrustAgents(TEST_USER_ID)).containsExactly( in newNonSystemTrustAgent_notEnabledButMarkedAsKnown() 349 mLockPatternUtils.setEnabledTrustAgents(Collections.emptyList(), TEST_USER_ID); in resetTrustAgentLockSettings() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | KeyguardPinViewController.java | 36 private LockPatternUtils mLockPatternUtils; field in KeyguardPinViewController 62 mLockPatternUtils = lockPatternUtils; in KeyguardPinViewController() 65 mPinLength = mLockPatternUtils.getPinLength(KeyguardUpdateMonitor.getCurrentUser()); in KeyguardPinViewController() 123 mDisabledAutoConfirmation = mLockPatternUtils.getCurrentFailedPasswordAttempts( in updateAutoConfirmationState() 179 return mLockPatternUtils.isAutoPinConfirmEnabled(KeyguardUpdateMonitor.getCurrentUser()) in isAutoPinConfirmEnabledInSettings()
|
H A D | KeyguardInputViewController.java | 197 private final LockPatternUtils mLockPatternUtils; field in KeyguardInputViewController.Factory 224 mLockPatternUtils = lockPatternUtils; in Factory() 248 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 254 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 261 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 267 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 273 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create()
|
H A D | EmergencyButtonController.java | 67 private LockPatternUtils mLockPatternUtils; field in EmergencyButtonController 109 mLockPatternUtils = lockPatternUtils; in EmergencyButtonController() 144 boolean isSecure = mLockPatternUtils in updateEmergencyCallButton() 218 private final LockPatternUtils mLockPatternUtils; field in EmergencyButtonController.Factory 240 mLockPatternUtils = lockPatternUtils; in Factory() 249 mShadeController, mTelecomManager, mMetricsLogger, mLockPatternUtils, in create()
|
H A D | KeyguardSecurityModel.java | 50 private final LockPatternUtils mLockPatternUtils; field in KeyguardSecurityModel 58 mLockPatternUtils = lockPatternUtils; in KeyguardSecurityModel() 76 mLockPatternUtils.getActivePasswordQuality(userId)); in getSecurityMode()
|
H A D | KeyguardPatternViewController.java | 58 private final LockPatternUtils mLockPatternUtils; field in KeyguardPatternViewController 127 mLockPatternUtils, in onPatternDetected() 178 long deadline = mLockPatternUtils.setLockoutAttemptDeadline( in onPatternChecked() 204 mLockPatternUtils = lockPatternUtils; in KeyguardPatternViewController() 222 mLockPatternView.setInStealthMode(!mLockPatternUtils.isVisiblePatternEnabled( in onViewAttached() 242 long deadline = mLockPatternUtils.getLockoutAttemptDeadline( in onViewAttached() 265 mLockPatternView.setInStealthMode(!mLockPatternUtils.isVisiblePatternEnabled( in reset()
|
H A D | KeyguardAbsKeyInputViewController.java | 48 protected final LockPatternUtils mLockPatternUtils; field in KeyguardAbsKeyInputViewController 87 mLockPatternUtils = lockPatternUtils; in KeyguardAbsKeyInputViewController() 106 long deadline = mLockPatternUtils.getLockoutAttemptDeadline( in onViewAttached() 191 long deadline = mLockPatternUtils.setLockoutAttemptDeadline( in onPasswordChecked() 230 mLockPatternUtils, in verifyPasswordAndUnlock()
|
H A D | KeyguardSecurityContainerController.java | 113 private final LockPatternUtils mLockPatternUtils; field in KeyguardSecurityContainerController 255 mLockPatternUtils.reportSuccessfulPasswordAttempt(userId); 456 mLockPatternUtils = lockPatternUtils; in KeyguardSecurityContainerController() 868 boolean isLockscreenDisabled = mLockPatternUtils.isLockScreenDisabled( in showNextSecurityScreenOrFinish() 1090 final int failedAttempts = mLockPatternUtils.getCurrentFailedPasswordAttempts(userId) + 1; in reportFailedUnlockAttempt() 1094 final DevicePolicyManager dpm = mLockPatternUtils.getDevicePolicyManager(); in reportFailedUnlockAttempt() 1124 mLockPatternUtils.reportFailedPasswordAttempt(userId); in reportFailedUnlockAttempt() 1126 mLockPatternUtils.reportPasswordLockout(timeoutMs, userId); in reportFailedUnlockAttempt() 1128 mView.showTimeoutDialog(userId, timeoutMs, mLockPatternUtils, in reportFailedUnlockAttempt()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | KeyguardStateControllerTest.java | 63 private LockPatternUtils mLockPatternUtils; field in KeyguardStateControllerTest 83 mLockPatternUtils, in setup() 123 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in testIsMethodSecure() 141 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in testCanSkipLockScreen() 162 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in testIsUnlocked() 212 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in testOnEnabledTrustAgentsChangedCallback()
|
/aosp14/frameworks/base/services/core/java/com/android/server/policy/keyguard/ |
H A D | KeyguardStateMonitor.java | 50 private final LockPatternUtils mLockPatternUtils; field in KeyguardStateMonitor 54 mLockPatternUtils = new LockPatternUtils(context); in KeyguardStateMonitor() 70 return mLockPatternUtils.isSecure(userId) || mSimSecure; in isSecure()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | KeyguardManager.java | 83 private final LockPatternUtils mLockPatternUtils; field in KeyguardManager 613 mLockPatternUtils = new LockPatternUtils(context); in KeyguardManager() 959 success = mLockPatternUtils.setLockCredential( in setLock() 1011 return mLockPatternUtils.addWeakEscrowToken(token, userId, internalListener); in addWeakEscrowToken() 1026 return mLockPatternUtils.removeWeakEscrowToken(handle, user.getIdentifier()); in removeWeakEscrowToken() 1038 return mLockPatternUtils.isWeakEscrowTokenActive(handle, user.getIdentifier()); in isWeakEscrowTokenActive() 1084 if (mLockPatternUtils.registerWeakEscrowTokenRemovedListener(internalListener)) { in registerWeakEscrowTokenRemovedListener() 1107 if (mLockPatternUtils.unregisterWeakEscrowTokenRemovedListener(internalListener)) { in unregisterWeakEscrowTokenRemovedListener() 1162 final VerifyCredentialResponse response = mLockPatternUtils.verifyCredential( in checkLock() 1187 return mLockPatternUtils.startRemoteLockscreenValidation(); in startRemoteLockscreenValidation() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
H A D | KeyguardAbsKeyInputViewControllerTest.java | 70 private LockPatternUtils mLockPatternUtils; field in KeyguardAbsKeyInputViewControllerTest 106 mKeyguardUpdateMonitor, mSecurityMode, mLockPatternUtils, mKeyguardSecurityCallback, in createTestObject() 184 reset(mLockPatternUtils); 186 verify(mLockPatternUtils).getLockoutAttemptDeadline(anyInt());
|
H A D | KeyguardPatternViewControllerTest.kt | 64 @Mock private lateinit var mLockPatternUtils: LockPatternUtils 103 mLockPatternUtils, 180 reset(mLockPatternUtils) 184 verify(mLockPatternUtils).getLockoutAttemptDeadline(anyInt())
|
H A D | KeyguardPinBasedInputViewControllerTest.java | 64 private LockPatternUtils mLockPatternUtils; field in KeyguardPinBasedInputViewControllerTest 109 mKeyguardUpdateMonitor, mSecurityMode, mLockPatternUtils, mKeyguardSecurityCallback, in setup()
|
/aosp14/frameworks/base/services/core/java/com/android/server/trust/ |
H A D | TrustManagerService.java | 160 private final LockPatternUtils mLockPatternUtils; field in TrustManagerService 244 private final LockPatternUtils mLockPatternUtils; field in TrustManagerService.Injector 248 mLockPatternUtils = lockPatternUtils; in Injector() 253 return mLockPatternUtils; in getLockPatternUtils() 271 mLockPatternUtils = injector.getLockPatternUtils(); in TrustManagerService() 729 return mLockPatternUtils.addEscrowToken(token, userId, in addEscrowToken() 752 mLockPatternUtils.requireStrongAuth( in lockUser() 784 LockPatternUtils lockPatternUtils = mLockPatternUtils; in refreshAgentList() 973 boolean secure = mLockPatternUtils.isSecure(id); in refreshDeviceLockedForUser() 1753 return mLockPatternUtils.isSecure(userId); [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/ |
H A D | BouncerSwipeTouchHandler.java | 81 private final LockPatternUtils mLockPatternUtils; field in BouncerSwipeTouchHandler 159 if (!mLockPatternUtils.isSecure(mUserTracker.getUserId())) { 227 mLockPatternUtils = lockPatternUtils; in BouncerSwipeTouchHandler() 364 if (!mLockPatternUtils.isSecure(mUserTracker.getUserId())) { in flingToExpansion()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
H A D | KeyguardViewMediator.java | 462 private final LockPatternUtils mLockPatternUtils; field in KeyguardViewMediator 743 if (mLockPatternUtils.isSecure(currentUser)) { 752 if (mLockPatternUtils.isSecure(userId)) { 1398 mLockPatternUtils = lockPatternUtils; 1496 && !mLockPatternUtils.isLockScreenDisabled( 1622 || !mLockPatternUtils.isSecure(currentUser); 1912 if (mSystemReady && mLockPatternUtils.isLockScreenDisabled( 2384 return mLockPatternUtils.isSecure(userId) 2603 if (mLockPatternUtils.isSecure(currentUser)) { 2638 mLockPatternUtils.userPresent(currentUserId); [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
H A D | KeyguardViewMediatorTest.java | 145 private @Mock LockPatternUtils mLockPatternUtils; field in KeyguardViewMediatorTest 208 when(mLockPatternUtils.getDevicePolicyManager()).thenReturn(mDevicePolicyManager); in setUp() 252 when(mLockPatternUtils.isUserInLockdown(anyInt())).thenReturn(true); in onLockdown_showKeyguard_evenIfKeyguardIsNotEnabledExternally() 268 when(mLockPatternUtils.isUserInLockdown(anyInt())).thenReturn(true); in doNotHideKeyguard_whenLockdown_onKeyguardNotEnabledExternally() 290 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false); in testOnStartedWakingUp_whileSleeping_ifWakeAndUnlocking_doesNotShowKeyguard() 291 when(mLockPatternUtils.getPowerButtonInstantlyLocks(anyInt())).thenReturn(true); in testOnStartedWakingUp_whileSleeping_ifWakeAndUnlocking_doesNotShowKeyguard() 310 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false); in testOnStartedWakingUp_whileSleeping_ifNotWakeAndUnlocking_showsKeyguard() 311 when(mLockPatternUtils.getPowerButtonInstantlyLocks(anyInt())).thenReturn(true); in testOnStartedWakingUp_whileSleeping_ifNotWakeAndUnlocking_showsKeyguard() 589 when(mLockPatternUtils.isSecure(currentUserId)).thenReturn(true); in lockAfterSpecifiedAfterDreamStarted() 981 mLockPatternUtils, in createAndStartViewMediator()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserManagerServiceShellCommandTest.java | 67 private @Mock LockPatternUtils mLockPatternUtils; field in UserManagerServiceShellCommandTest 97 userSystemPackageInstaller, mLockPatternUtils, context); in setUp()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | KeyguardStateControllerImpl.java | 66 private final LockPatternUtils mLockPatternUtils; field in KeyguardStateControllerImpl 127 mLockPatternUtils = lockPatternUtils; in KeyguardStateControllerImpl() 254 boolean secure = mLockPatternUtils.isSecure(user); in update()
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | LockTaskControllerTest.java | 122 @Mock private LockPatternUtils mLockPatternUtils; field in LockTaskControllerTest 155 mLockTaskController.mLockPatternUtils = mLockPatternUtils; in setUp() 422 verify(mLockPatternUtils).requireCredentialEntry(eq(UserHandle.USER_ALL)); in testStopLockTaskMode_pinned() 454 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(anyInt())) in testClearLockedTasks_noLockSetting_noPassword_deviceIsUnlocked() 474 when(mLockPatternUtils.isSecure(TEST_USER_ID)) in testClearLockedTasks_noLockSetting_password_deviceIsLocked()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserManagerServiceShellCommand.java | 62 private final LockPatternUtils mLockPatternUtils; field in UserManagerServiceShellCommand 72 mLockPatternUtils = lockPatternUtils; in UserManagerServiceShellCommand() 301 if (mLockPatternUtils.isSecure(UserHandle.USER_SYSTEM)) { in runSetSystemUserModeEmulation()
|