/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsShellCommandTest.java | 84 private @Mock LockPatternUtils mLockPatternUtils; field in LockSettingsShellCommandTest 96 mCommand = new LockSettingsShellCommand(mLockPatternUtils, context, 0, in setUp() 98 when(mLockPatternUtils.hasSecureLockScreen()).thenReturn(true); in setUp() 103 when(mLockPatternUtils.isSecure(mUserId)).thenReturn(true); in testWrongPassword() 104 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testWrongPassword() 105 when(mLockPatternUtils.isLockPasswordEnabled(mUserId)).thenReturn(true); in testWrongPassword() 106 when(mLockPatternUtils.checkCredential( in testWrongPassword() 111 verify(mLockPatternUtils, never()).setLockCredential(any(), any(), anyInt()); in testWrongPassword() 116 when(mLockPatternUtils.isSecure(mUserId)).thenReturn(true); in testChangePin() 117 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testChangePin() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsShellCommand.java | 55 private final LockPatternUtils mLockPatternUtils; field in LockSettingsShellCommand 65 mLockPatternUtils = lockPatternUtils; in LockSettingsShellCommand() 80 if (!mLockPatternUtils.hasSecureLockScreen()) { in onCommand() 223 if (mLockPatternUtils.isLockPasswordEnabled(mCurrentUserId)) { in getOldCredential() 224 final int quality = mLockPatternUtils.getKeyguardStoredPasswordQuality(mCurrentUserId); in getOldCredential() 231 if (mLockPatternUtils.isLockPatternEnabled(mCurrentUserId)) { in getOldCredential() 247 mLockPatternUtils.setLockCredential(pattern, getOldCredential(), mCurrentUserId); in runSetPattern() 257 mLockPatternUtils.setLockCredential(password, getOldCredential(), mCurrentUserId); in runSetPassword() 267 mLockPatternUtils.setLockCredential(pin, getOldCredential(), mCurrentUserId); in runSetPin() 295 mLockPatternUtils.requireStrongAuth(strongAuthReason, mCurrentUserId); in runRequireStrongAuth() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | LockPatternUtilsTest.java | 83 private LockPatternUtils mLockPatternUtils; field in LockPatternUtilsTest 101 mLockPatternUtils = new LockPatternUtils(context, mLockSettings); in configureTest() 118 assertFalse(mLockPatternUtils.isUserInLockdown(USER_ID)); in isUserInLockDown() 125 assertTrue(mLockPatternUtils.isUserInLockdown(USER_ID)); in isUserInLockDown() 132 assertTrue(mLockPatternUtils.isUserInLockdown(USER_ID)); in isUserInLockDown() 138 assertTrue(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isDemoUser_true() 144 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isSecureAndDemoUser_false() 150 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isNotDemoUser_false() 156 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isNotInDemoMode_false() 165 mLockPatternUtils.addWeakEscrowToken(testToken, testUserId, listener); in testAddWeakEscrowToken() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | KeyguardStateControllerTest.java | 63 private LockPatternUtils mLockPatternUtils; field in KeyguardStateControllerTest 85 mLockPatternUtils, in setup() 126 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in testIsMethodSecure() 144 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in testCanSkipLockScreen() 159 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in testCanSkipLockScreen_updateCalledOnFacesCleared() 174 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in testCanSkipLockScreen_updateCalledOnFingerprintssCleared() 195 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in testIsUnlocked() 245 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in testOnEnabledTrustAgentsChangedCallback()
|
/frameworks/base/core/java/android/app/ |
D | KeyguardManager.java | 84 private final LockPatternUtils mLockPatternUtils; field in KeyguardManager 613 mLockPatternUtils = new LockPatternUtils(context); in KeyguardManager() 974 mLockPatternUtils.getRequestedPasswordMetrics(mContext.getUserId()); in isValidLockPasswordComplexity() 998 mLockPatternUtils.getRequestedPasswordMetrics(mContext.getUserId()); in getMinLockLength() 1036 success = mLockPatternUtils.setLockCredential( in setLock() 1088 return mLockPatternUtils.addWeakEscrowToken(token, userId, internalListener); in addWeakEscrowToken() 1103 return mLockPatternUtils.removeWeakEscrowToken(handle, user.getIdentifier()); in removeWeakEscrowToken() 1115 return mLockPatternUtils.isWeakEscrowTokenActive(handle, user.getIdentifier()); in isWeakEscrowTokenActive() 1129 return mLockPatternUtils.isWeakEscrowTokenValid(handle, token, user.getIdentifier()); in isWeakEscrowTokenValid() 1161 if (mLockPatternUtils.registerWeakEscrowTokenRemovedListener(internalListener)) { in registerWeakEscrowTokenRemovedListener() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardInputViewController.java | 201 private final LockPatternUtils mLockPatternUtils; field in KeyguardInputViewController.Factory 233 mLockPatternUtils = lockPatternUtils; in Factory() 260 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 266 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 274 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 282 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 289 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create()
|
D | KeyguardPinViewController.java | 42 private LockPatternUtils mLockPatternUtils; field in KeyguardPinViewController 71 mLockPatternUtils = lockPatternUtils; in KeyguardPinViewController() 75 mPinLength = mLockPatternUtils.getPinLength(selectedUserInteractor.getSelectedUserId()); in KeyguardPinViewController() 135 mDisabledAutoConfirmation = mLockPatternUtils.getCurrentFailedPasswordAttempts( in updateAutoConfirmationState() 191 return mLockPatternUtils.isAutoPinConfirmEnabled( in isAutoPinConfirmEnabledInSettings()
|
D | KeyguardSecurityModel.java | 50 private final LockPatternUtils mLockPatternUtils; field in KeyguardSecurityModel 58 mLockPatternUtils = lockPatternUtils; in KeyguardSecurityModel() 76 mLockPatternUtils.getActivePasswordQuality(userId)); in getSecurityMode()
|
D | EmergencyButtonController.java | 66 private final LockPatternUtils mLockPatternUtils; field in EmergencyButtonController 111 mLockPatternUtils = lockPatternUtils; in EmergencyButtonController() 147 boolean isSecure = mLockPatternUtils in updateEmergencyCallButton() 220 private final LockPatternUtils mLockPatternUtils; field in EmergencyButtonController.Factory 245 mLockPatternUtils = lockPatternUtils; in Factory() 255 mTelecomManager, mMetricsLogger, mLockPatternUtils, mMainExecutor, in create()
|
D | KeyguardPatternViewController.java | 60 private final LockPatternUtils mLockPatternUtils; field in KeyguardPatternViewController 129 mLockPatternUtils, in onPatternDetected() 180 long deadline = mLockPatternUtils.setLockoutAttemptDeadline( in onPatternChecked() 207 mLockPatternUtils = lockPatternUtils; in KeyguardPatternViewController() 227 mLockPatternView.setInStealthMode(!mLockPatternUtils.isVisiblePatternEnabled( in onViewAttached() 247 long deadline = mLockPatternUtils.getLockoutAttemptDeadline( in onViewAttached() 270 mLockPatternView.setInStealthMode(!mLockPatternUtils.isVisiblePatternEnabled( in reset()
|
D | KeyguardAbsKeyInputViewController.java | 49 protected final LockPatternUtils mLockPatternUtils; field in KeyguardAbsKeyInputViewController 88 mLockPatternUtils = lockPatternUtils; in KeyguardAbsKeyInputViewController() 107 long deadline = mLockPatternUtils.getLockoutAttemptDeadline( in onViewAttached() 192 long deadline = mLockPatternUtils.setLockoutAttemptDeadline( in onPasswordChecked() 231 mLockPatternUtils, in verifyPasswordAndUnlock()
|
D | KeyguardSecurityContainerController.java | 119 private final LockPatternUtils mLockPatternUtils; field in KeyguardSecurityContainerController 264 mLockPatternUtils.reportSuccessfulPasswordAttempt(userId); 473 mLockPatternUtils = lockPatternUtils; in KeyguardSecurityContainerController() 877 boolean isLockscreenDisabled = mLockPatternUtils.isLockScreenDisabled( in showNextSecurityScreenOrFinish() 1109 final int failedAttempts = mLockPatternUtils.getCurrentFailedPasswordAttempts(userId) + 1; in reportFailedUnlockAttempt() 1131 mLockPatternUtils.reportFailedPasswordAttempt(userId); in reportFailedUnlockAttempt() 1133 mLockPatternUtils.reportPasswordLockout(timeoutMs, userId); in reportFailedUnlockAttempt() 1135 mView.showTimeoutDialog(userId, timeoutMs, mLockPatternUtils, in reportFailedUnlockAttempt()
|
/frameworks/base/services/core/java/com/android/server/policy/keyguard/ |
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()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/trust/ |
D | TrustManagerServiceTest.java | 157 private @Mock LockPatternUtils mLockPatternUtils; field in TrustManagerServiceTest 176 when(mLockPatternUtils.getDevicePolicyManager()).thenReturn(mDevicePolicyManager); in setUp() 177 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in setUp() 178 when(mLockPatternUtils.getKnownTrustAgents(TEST_USER_ID)).thenReturn(mKnownTrustAgents); in setUp() 179 when(mLockPatternUtils.getEnabledTrustAgents(TEST_USER_ID)).thenReturn(mEnabledTrustAgents); in setUp() 184 }).when(mLockPatternUtils).setKnownTrustAgents(any(), eq(TEST_USER_ID)); in setUp() 189 }).when(mLockPatternUtils).setEnabledTrustAgents(any(), eq(TEST_USER_ID)); in setUp() 244 return mLockPatternUtils; in getLockPatternUtils() 401 mLockPatternUtils.setEnabledTrustAgents(List.of(systemTrustAgent1), TEST_USER_ID); in existingTrustAgentChanged_notEnabled() 580 mLockPatternUtils.setKnownTrustAgents(singleton(agentName), TEST_USER_ID); in setUpTrustAgentWithStrongAuthRequired() [all …]
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustManagerService.java | 162 private final LockPatternUtils mLockPatternUtils; field in TrustManagerService 297 mLockPatternUtils = injector.getLockPatternUtils(); in TrustManagerService() 318 mLockPatternUtils.registerStrongAuthTracker(mStrongAuthTracker); in onBootPhase() 716 return mLockPatternUtils.addEscrowToken(token, userId, in addEscrowToken() 723 return mLockPatternUtils.removeEscrowToken(handle, userId); in removeEscrowToken() 727 return mLockPatternUtils.isEscrowTokenActive(handle, userId); in isEscrowTokenActive() 731 mLockPatternUtils.unlockUserWithToken(handle, token, userId); in unlockUserWithToken() 739 mLockPatternUtils.requireStrongAuth( in lockUser() 772 LockPatternUtils lockPatternUtils = mLockPatternUtils; in refreshAgentList() 1016 boolean secure = mLockPatternUtils.isSecure(id); in refreshDeviceLockedForUser() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardAbsKeyInputViewControllerTest.java | 72 private LockPatternUtils mLockPatternUtils; field in KeyguardAbsKeyInputViewControllerTest 109 mKeyguardUpdateMonitor, mSecurityMode, mLockPatternUtils, mKeyguardSecurityCallback, in createTestObject() 187 reset(mLockPatternUtils); 189 verify(mLockPatternUtils).getLockoutAttemptDeadline(anyInt());
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/keyguard/ |
D | KeyguardPatternViewControllerTest.kt | 66 @Mock private lateinit var mLockPatternUtils: LockPatternUtils variable in com.android.keyguard.KeyguardPatternViewControllerTest 107 mLockPatternUtils, in setup() 185 reset(mLockPatternUtils) in testOnViewAttached() 189 verify(mLockPatternUtils).getLockoutAttemptDeadline(anyInt()) in testOnViewAttached()
|
D | KeyguardPinBasedInputViewControllerTest.java | 70 private LockPatternUtils mLockPatternUtils; field in KeyguardPinBasedInputViewControllerTest 117 mKeyguardUpdateMonitor, mSecurityMode, mLockPatternUtils, mKeyguardSecurityCallback, in setup()
|
/frameworks/base/services/core/java/com/android/server/adaptiveauth/ |
D | AdaptiveAuthService.java | 72 private final LockPatternUtils mLockPatternUtils; field in AdaptiveAuthService 90 mLockPatternUtils = lockPatternUtils; in AdaptiveAuthService() 281 mLockPatternUtils.requireStrongAuth(SOME_AUTH_REQUIRED_AFTER_ADAPTIVE_AUTH_REQUEST, userId); in lockDevice() 289 mLockPatternUtils.requireStrongAuth(SOME_AUTH_REQUIRED_AFTER_ADAPTIVE_AUTH_REQUEST, in lockDevice()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/ |
D | BouncerSwipeTouchHandler.java | 80 private final LockPatternUtils mLockPatternUtils; field in BouncerSwipeTouchHandler 155 && !mLockPatternUtils.isSecure(mUserTracker.getUserId())) { 223 mLockPatternUtils = lockPatternUtils; in BouncerSwipeTouchHandler() 365 if (!mLockPatternUtils.isSecure(mUserTracker.getUserId())) { in flingToExpansion()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/adaptiveauth/ |
D | AdaptiveAuthServiceTest.java | 87 LockPatternUtils mLockPatternUtils; field in AdaptiveAuthServiceTest 127 mAdaptiveAuthService = new AdaptiveAuthService(mContext, mLockPatternUtils); in setUp() 327 verify(mLockPatternUtils).requireStrongAuth( in verifyLockDevice() 332 verify(mLockPatternUtils).requireStrongAuth( in verifyLockDevice()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardViewMediator.java | 472 private final LockPatternUtils mLockPatternUtils; field in KeyguardViewMediator 756 if (mLockPatternUtils.isSecure(currentUser)) { 757 mLockPatternUtils.getDevicePolicyManager().reportFailedBiometricAttempt( 765 if (mLockPatternUtils.isSecure(userId)) { 766 mLockPatternUtils.getDevicePolicyManager().reportSuccessfulBiometricAttempt( 782 if (mLockPatternUtils.isUserInLockdown(mSelectedUserInteractor.getSelectedUserId())) { 1476 mLockPatternUtils = lockPatternUtils; 1583 && !mLockPatternUtils.isLockScreenDisabled( 1706 mLockPatternUtils.getPowerButtonInstantlyLocks(currentUser) 1707 || !mLockPatternUtils.isSecure(currentUser); [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceShellCommandTest.java | 67 private @Mock LockPatternUtils mLockPatternUtils; field in UserManagerServiceShellCommandTest 97 userSystemPackageInstaller, mLockPatternUtils, context); in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyguardStateControllerImpl.java | 68 private final LockPatternUtils mLockPatternUtils; field in KeyguardStateControllerImpl 131 mLockPatternUtils = lockPatternUtils; in KeyguardStateControllerImpl() 257 boolean secure = mLockPatternUtils.isSecure(user); in update()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/ |
D | BouncerSwipeTouchHandlerTest.java | 113 LockPatternUtils mLockPatternUtils; field in BouncerSwipeTouchHandlerTest 145 mLockPatternUtils, in setup() 158 when(mLockPatternUtils.isSecure(CURRENT_USER_INFO.id)).thenReturn(true); in setup() 379 when(mLockPatternUtils.isSecure(CURRENT_USER_INFO.id)).thenReturn(false); in testSwipeUp_keyguardNotSecure_doesNotExpand() 409 when(mLockPatternUtils.isSecure(CURRENT_USER_INFO.id)).thenReturn(false); in testSwipeDown_keyguardNotSecure_doesNotExpand()
|