Home
last modified time | relevance | path

Searched refs:mLockPatternUtils (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsShellCommandTest.java77 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/
DLockSettingsShellCommand.java51 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/
DLockPatternUtilsTest.java53 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/
DKeyguardSecurityModel.java51 private LockPatternUtils mLockPatternUtils; field in KeyguardSecurityModel
56 mLockPatternUtils = new LockPatternUtils(context); in KeyguardSecurityModel()
62 mLockPatternUtils = utils; in setLockPatternUtils()
79 mLockPatternUtils.getActivePasswordQuality(userId)); in getSecurityMode()
DKeyguardPatternView.java82 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 …]
DKeyguardAbsKeyInputView.java46 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()
DKeyguardSecurityContainer.java115 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 …]
DNumPadKey.java40 private final LockPatternUtils mLockPatternUtils; field in NumPadKey
95 mLockPatternUtils = new LockPatternUtils(context); in NumPadKey()
166 if (mLockPatternUtils.isTactileFeedbackEnabled()) { in doHapticKeyClick()
DKeyguardHostView.java59 protected LockPatternUtils mLockPatternUtils; field in KeyguardHostView
151 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
152 mSecurityContainer.setLockPatternUtils(mLockPatternUtils); in onFinishInflate()
440 mLockPatternUtils = utils; in setLockPatternUtils()
DKeyguardStatusView.java56 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()
DEmergencyButton.java78 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/
DKeyguardStateControllerTest.java50 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/
DKeyguardHostViewTest.java47 private LockPatternUtils mLockPatternUtils; field in KeyguardHostViewTest
60 mLockPatternUtils = KeyguardHostViewTest.this.mLockPatternUtils; in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthCredentialPatternView.java70 mLockPatternUtils, in onPatternDetected()
104 !mLockPatternUtils.isVisiblePatternEnabled(mUserId)); in onAttachedToWindow()
105 mLockPatternView.setTactileFeedbackEnabled(mLockPatternUtils.isTactileFeedbackEnabled()); in onAttachedToWindow()
DAuthCredentialView.java69 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/
DKeyguardStateMonitor.java51 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/
DKeyguardViewMediator.java322 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/
DTrustManagerService.java132 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/
DLockscreenIconControllerTest.java57 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/
DKeyguardViewMediatorTest.java65 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/
DKeyguardStateControllerImpl.java53 private final LockPatternUtils mLockPatternUtils; field in KeyguardStateControllerImpl
79 mLockPatternUtils = lockPatternUtils; in KeyguardStateControllerImpl()
183 boolean secure = mLockPatternUtils.isSecure(user); in update()
DPreviewInflater.java47 private LockPatternUtils mLockPatternUtils; field in PreviewInflater
52 mLockPatternUtils = lockPatternUtils; in PreviewInflater()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/keyguard/
DCarKeyguardViewController.java72 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/
DStatusBarNotificationActivityStarter.java119 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/
DGlobalActionsDialogTest.java99 @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()

12