/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsShellCommandTest.java | 77 private @Mock LockPatternUtils mLockPatternUtils; field in LockSettingsShellCommandTest 89 mCommand = new LockSettingsShellCommand(mLockPatternUtils); in setUp() 90 when(mLockPatternUtils.hasSecureLockScreen()).thenReturn(true); in setUp() 95 when(mLockPatternUtils.isSecure(mUserId)).thenReturn(true); in testWrongPassword() 96 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testWrongPassword() 97 when(mLockPatternUtils.isLockPasswordEnabled(mUserId)).thenReturn(true); in testWrongPassword() 98 when(mLockPatternUtils.checkCredential( in testWrongPassword() 103 verify(mLockPatternUtils, never()).setLockCredential(any(), any(), anyInt()); in testWrongPassword() 108 when(mLockPatternUtils.isSecure(mUserId)).thenReturn(true); in testChangePin() 109 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testChangePin() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsShellCommand.java | 51 private final LockPatternUtils mLockPatternUtils; field in LockSettingsShellCommand 56 mLockPatternUtils = lockPatternUtils; in LockSettingsShellCommand() 68 if (!mLockPatternUtils.hasSecureLockScreen()) { in onCommand() 197 mLockPatternUtils.enableSyntheticPassword(); in runChangeSp() 200 mLockPatternUtils.disableSyntheticPassword(); in runChangeSp() 205 mLockPatternUtils.isSyntheticPasswordEnabled())); in runChangeSp() 212 if (mLockPatternUtils.isLockPasswordEnabled(mCurrentUserId)) { in getOldCredential() 213 final int quality = mLockPatternUtils.getKeyguardStoredPasswordQuality(mCurrentUserId); in getOldCredential() 220 if (mLockPatternUtils.isLockPatternEnabled(mCurrentUserId)) { in getOldCredential() 236 mLockPatternUtils.setLockCredential(pattern, getOldCredential(), mCurrentUserId); in runSetPattern() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | LockPatternUtilsTest.java | 53 private LockPatternUtils mLockPatternUtils; field in LockPatternUtilsTest 71 mLockPatternUtils = spy(new LockPatternUtils(context)); in configureTest() 72 when(mLockPatternUtils.getLockSettings()).thenReturn(ils); in configureTest() 73 doReturn(true).when(mLockPatternUtils).hasSecureLockScreen(); in configureTest() 85 assertTrue(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isDemoUser_true() 91 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isSecureAndDemoUser_false() 97 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isNotDemoUser_false() 103 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isNotInDemoMode_false()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityModel.java | 51 private LockPatternUtils mLockPatternUtils; field in KeyguardSecurityModel 56 mLockPatternUtils = new LockPatternUtils(context); in KeyguardSecurityModel() 62 mLockPatternUtils = utils; in setLockPatternUtils() 79 mLockPatternUtils.getActivePasswordQuality(userId)); in getSecurityMode()
|
D | KeyguardPatternView.java | 82 private LockPatternUtils mLockPatternUtils; field in KeyguardPatternView 146 mLockPatternUtils = utils; in setLockPatternUtils() 152 mLockPatternUtils = mLockPatternUtils == null in onFinishInflate() 153 ? new LockPatternUtils(mContext) : mLockPatternUtils; in onFinishInflate() 158 mLockPatternView.setInStealthMode(!mLockPatternUtils.isVisiblePatternEnabled( in onFinishInflate() 162 mLockPatternView.setTactileFeedbackEnabled(mLockPatternUtils.isTactileFeedbackEnabled()); in onFinishInflate() 222 mLockPatternView.setInStealthMode(!mLockPatternUtils.isVisiblePatternEnabled( in reset() 233 long deadline = mLockPatternUtils.getLockoutAttemptDeadline( in reset() 261 mLockPatternUtils = null; in cleanUp() 303 mLockPatternUtils, in onPatternDetected() [all …]
|
D | KeyguardAbsKeyInputView.java | 46 protected LockPatternUtils mLockPatternUtils; field in KeyguardAbsKeyInputView 76 mLockPatternUtils = utils; in setLockPatternUtils() 77 mEnableHaptics = mLockPatternUtils.isTactileFeedbackEnabled(); in setLockPatternUtils() 86 long deadline = mLockPatternUtils.getLockoutAttemptDeadline( in reset() 105 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate() 160 mLockPatternUtils, in verifyPasswordAndUnlock() 217 long deadline = mLockPatternUtils.setLockoutAttemptDeadline( in onPasswordChecked()
|
D | KeyguardSecurityContainer.java | 115 private LockPatternUtils mLockPatternUtils; field in KeyguardSecurityContainer 255 mLockPatternUtils = new LockPatternUtils(context); in KeyguardSecurityContainer() 496 ksv.setLockPatternUtils(mLockPatternUtils); in updateSecurityView() 506 mSecurityViewFlipper.setLockPatternUtils(mLockPatternUtils); in onFinishInflate() 510 mLockPatternUtils = utils; in setLockPatternUtils() 512 mSecurityViewFlipper.setLockPatternUtils(mLockPatternUtils); in setLockPatternUtils() 573 mLockPatternUtils.getCurrentFailedPasswordAttempts(userId), in showTimeoutDialog() 619 final int failedAttempts = mLockPatternUtils.getCurrentFailedPasswordAttempts(userId) + 1; in reportFailedUnlockAttempt() 623 final DevicePolicyManager dpm = mLockPatternUtils.getDevicePolicyManager(); in reportFailedUnlockAttempt() 653 mLockPatternUtils.reportFailedPasswordAttempt(userId); in reportFailedUnlockAttempt() [all …]
|
D | NumPadKey.java | 40 private final LockPatternUtils mLockPatternUtils; field in NumPadKey 95 mLockPatternUtils = new LockPatternUtils(context); in NumPadKey() 166 if (mLockPatternUtils.isTactileFeedbackEnabled()) { in doHapticKeyClick()
|
D | KeyguardHostView.java | 59 protected LockPatternUtils mLockPatternUtils; field in KeyguardHostView 151 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate() 152 mSecurityContainer.setLockPatternUtils(mLockPatternUtils); in onFinishInflate() 440 mLockPatternUtils = utils; in setLockPatternUtils()
|
D | KeyguardStatusView.java | 56 private final LockPatternUtils mLockPatternUtils; field in KeyguardStatusView 136 mLockPatternUtils = new LockPatternUtils(getContext()); in KeyguardStatusView() 301 String info = mLockPatternUtils.getDeviceOwnerInfo(); in updateOwnerInfo() 304 final boolean ownerInfoEnabled = mLockPatternUtils.isOwnerInfoEnabled( in updateOwnerInfo() 307 info = mLockPatternUtils.getOwnerInfo(KeyguardUpdateMonitor.getCurrentUser()); in updateOwnerInfo()
|
D | EmergencyButton.java | 78 private LockPatternUtils mLockPatternUtils; field in EmergencyButton 116 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate() 220 visible = mLockPatternUtils.isSecure(KeyguardUpdateMonitor.getCurrentUser()); in updateEmergencyCallButton()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | KeyguardStateControllerTest.java | 50 private LockPatternUtils mLockPatternUtils; field in KeyguardStateControllerTest 57 mKeyguardUpdateMonitor, mLockPatternUtils); in setup() 76 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in testIsMethodSecure() 94 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in testCanSkipLockScreen() 115 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in testIsUnlocked()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardHostViewTest.java | 47 private LockPatternUtils mLockPatternUtils; field in KeyguardHostViewTest 60 mLockPatternUtils = KeyguardHostViewTest.this.mLockPatternUtils; in setup()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | AuthCredentialPatternView.java | 70 mLockPatternUtils, in onPatternDetected() 104 !mLockPatternUtils.isVisiblePatternEnabled(mUserId)); in onAttachedToWindow() 105 mLockPatternView.setTactileFeedbackEnabled(mLockPatternUtils.isTactileFeedbackEnabled()); in onAttachedToWindow()
|
D | AuthCredentialView.java | 69 protected final LockPatternUtils mLockPatternUtils; field in AuthCredentialView 145 mLockPatternUtils = new LockPatternUtils(mContext); in AuthCredentialView() 292 mLockPatternUtils.userPresent(mEffectiveUserId); in onCredentialVerified() 297 long deadline = mLockPatternUtils.setLockoutAttemptDeadline( in onCredentialVerified() 334 mLockPatternUtils.getCurrentFailedPasswordAttempts(mEffectiveUserId) + 1); in reportFailedAttempt() 335 mLockPatternUtils.reportFailedPasswordAttempt(mEffectiveUserId); in reportFailedAttempt() 341 final int maxAttempts = mLockPatternUtils.getMaximumFailedPasswordsForWipe( in updateErrorMessage()
|
/frameworks/base/services/core/java/com/android/server/policy/keyguard/ |
D | KeyguardStateMonitor.java | 51 private final LockPatternUtils mLockPatternUtils; field in KeyguardStateMonitor 55 mLockPatternUtils = new LockPatternUtils(context); in KeyguardStateMonitor() 71 return mLockPatternUtils.isSecure(userId) || mSimSecure; in isSecure()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardViewMediator.java | 322 private final LockPatternUtils mLockPatternUtils; field in KeyguardViewMediator 403 if (mLockPatternUtils.isLockScreenDisabled(userId)) { 418 if (info == null || mLockPatternUtils.isSecure(userId)) { 548 if (mLockPatternUtils.isSecure(currentUser)) { 549 mLockPatternUtils.getDevicePolicyManager().reportFailedBiometricAttempt( 557 if (mLockPatternUtils.isSecure(userId)) { 558 mLockPatternUtils.getDevicePolicyManager().reportSuccessfulBiometricAttempt( 729 mLockPatternUtils = lockPatternUtils; in KeyguardViewMediator() 789 && !mLockPatternUtils.isLockScreenDisabled( in setupLocked() 888 mLockPatternUtils.getPowerButtonInstantlyLocks(currentUser) in onStartedGoingToSleep() [all …]
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustManagerService.java | 132 private final LockPatternUtils mLockPatternUtils; field in TrustManagerService 191 mLockPatternUtils = new LockPatternUtils(context); in TrustManagerService() 211 mLockPatternUtils.registerStrongAuthTracker(mStrongAuthTracker); in onBootPhase() 217 maybeEnableFactoryTrustAgents(mLockPatternUtils, UserHandle.USER_SYSTEM); in onBootPhase() 449 return mLockPatternUtils.addEscrowToken(token, userId, in addEscrowToken() 456 return mLockPatternUtils.removeEscrowToken(handle, userId); in removeEscrowToken() 460 return mLockPatternUtils.isEscrowTokenActive(handle, userId); in isEscrowTokenActive() 464 mLockPatternUtils.unlockUserWithToken(handle, token, userId); in unlockUserWithToken() 490 LockPatternUtils lockPatternUtils = mLockPatternUtils; in refreshAgentList() 660 boolean secure = mLockPatternUtils.isSecure(id); in refreshDeviceLockedForUser() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | LockscreenIconControllerTest.java | 57 private LockPatternUtils mLockPatternUtils; field in LockscreenIconControllerTest 89 mLockscreenGestureLogger, mKeyguardUpdateMonitor, mLockPatternUtils, in setUp() 114 verify(mLockPatternUtils).requireCredentialEntry(anyInt()); in lockIcon_click()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardViewMediatorTest.java | 65 private @Mock LockPatternUtils mLockPatternUtils; field in KeyguardViewMediatorTest 84 when(mLockPatternUtils.getDevicePolicyManager()).thenReturn(mDevicePolicyManager); in setUp() 88 mContext, mFalsingManager, mLockPatternUtils, mBroadcastDispatcher, in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyguardStateControllerImpl.java | 53 private final LockPatternUtils mLockPatternUtils; field in KeyguardStateControllerImpl 79 mLockPatternUtils = lockPatternUtils; in KeyguardStateControllerImpl() 183 boolean secure = mLockPatternUtils.isSecure(user); in update()
|
D | PreviewInflater.java | 47 private LockPatternUtils mLockPatternUtils; field in PreviewInflater 52 mLockPatternUtils = lockPatternUtils; in PreviewInflater()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/keyguard/ |
D | CarKeyguardViewController.java | 72 private final LockPatternUtils mLockPatternUtils; field in CarKeyguardViewController 133 mLockPatternUtils = lockPatternUtils; in CarKeyguardViewController() 146 mViewMediatorCallback, mLockPatternUtils, in onFinishInflate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarNotificationActivityStarter.java | 119 private final LockPatternUtils mLockPatternUtils; field in StatusBarNotificationActivityStarter 193 mLockPatternUtils = lockPatternUtils; in StatusBarNotificationActivityStarter() 338 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(userId) in handleNotificationClickAfterPanelCollapsed() 663 private final LockPatternUtils mLockPatternUtils; 732 mLockPatternUtils = lockPatternUtils; 789 mLockPatternUtils,
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/ |
D | GlobalActionsDialogTest.java | 99 @Mock private LockPatternUtils mLockPatternUtils; field in GlobalActionsDialogTest 153 mLockPatternUtils, in setUp() 488 when(mLockPatternUtils.getStrongAuthForUser(anyInt())).thenReturn(STRONG_AUTH_NOT_REQUIRED); in testShouldShowLockScreenMessage() 511 when(mLockPatternUtils.getStrongAuthForUser(anyInt())).thenReturn(STRONG_AUTH_NOT_REQUIRED); in testShouldNotShowLockScreenMessage_whenWalletOrControlsShownOnLockScreen() 535 when(mLockPatternUtils.getStrongAuthForUser(anyInt())).thenReturn(STRONG_AUTH_NOT_REQUIRED); in testShouldNotShowLockScreenMessage_whenControlsAndWalletBothDisabled()
|