Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/
DLockSettingsShellCommandTest.java71 private @Mock LockPatternUtils mLockPatternUtils; field in LockSettingsShellCommandTest
83 mCommand = new LockSettingsShellCommand(context, mLockPatternUtils); in setUp()
88 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testWrongPassword()
89 when(mLockPatternUtils.isLockPasswordEnabled(mUserId)).thenReturn(true); in testWrongPassword()
90 when(mLockPatternUtils.checkPassword("1234", mUserId)).thenReturn(false); in testWrongPassword()
94 verify(mLockPatternUtils, never()).saveLockPassword(any(), any(), anyInt(), anyInt()); in testWrongPassword()
99 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testChangePin()
100 when(mLockPatternUtils.isLockPasswordEnabled(mUserId)).thenReturn(true); in testChangePin()
101 when(mLockPatternUtils.checkPassword("1234", mUserId)).thenReturn(true); in testChangePin()
105 verify(mLockPatternUtils).saveLockPassword("4321", "1234", PASSWORD_QUALITY_NUMERIC, in testChangePin()
[all …]
DLockSettingsServiceTestable.java41 private LockPatternUtils mLockPatternUtils; field in LockSettingsServiceTestable.MockInjector
52 mLockPatternUtils = lockPatternUtils; in MockInjector()
84 return mLockPatternUtils; in getLockPatternUtils()
DBaseLockSettingsServiceTests.java65 LockPatternUtils mLockPatternUtils; field in BaseLockSettingsServiceTests
78 mLockPatternUtils = mock(LockPatternUtils.class); in setUp()
96 mService = new LockSettingsServiceTestable(mContext, mLockPatternUtils, in setUp()
116 when(mLockPatternUtils.getLockSettings()).thenReturn(mService); in setUp()
/frameworks/base/services/core/java/com/android/server/
DLockSettingsShellCommand.java41 private final LockPatternUtils mLockPatternUtils; field in LockSettingsShellCommand
48 mLockPatternUtils = lockPatternUtils; in LockSettingsShellCommand()
112 mLockPatternUtils.enableSyntheticPassword(); in runEnableSp()
116 mLockPatternUtils.isSyntheticPasswordEnabled())); in runEnableSp()
120 mLockPatternUtils.saveLockPattern(stringToPattern(mNew), mOld, mCurrentUserId); in runSetPattern()
125 mLockPatternUtils.saveLockPassword(mNew, mOld, PASSWORD_QUALITY_ALPHABETIC, mCurrentUserId); in runSetPassword()
130 mLockPatternUtils.saveLockPassword(mNew, mOld, PASSWORD_QUALITY_NUMERIC, mCurrentUserId); in runSetPin()
135 mLockPatternUtils.clearLock(mOld, mCurrentUserId); in runClear()
141 mLockPatternUtils.setLockScreenDisabled(disabled, mCurrentUserId); in runSetDisabled()
146 final boolean havePassword = mLockPatternUtils.isLockPasswordEnabled(mCurrentUserId); in checkCredential()
[all …]
DLockSettingsService.java148 private final LockPatternUtils mLockPatternUtils; field in LockSettingsService
239 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(managedUserId)) { in tieManagedProfileLockIfNecessary()
376 mLockPatternUtils = injector.getLockPatternUtils(); in LockSettingsService()
815 return mLockPatternUtils.isLockPatternEnabled(userId) ? "1" : "0"; in getStringUnchecked()
963 && !mLockPatternUtils.isSeparateProfileChallengeEnabled(pi.id) in unlockUser()
988 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(managedUserId)) { in getDecryptedPasswordsForAllTiedProfiles()
1027 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(managedUserId)) { in synchronizeUnifiedWorkChallengeForProfiles()
1053 && !mLockPatternUtils.isSeparateProfileChallengeEnabled(userId); in isManagedProfileWithUnifiedLock()
1058 && mLockPatternUtils.isSeparateProfileChallengeEnabled(userId); in isManagedProfileWithSeparatedLock()
1345 && !mLockPatternUtils.isSeparateProfileChallengeEnabled(pi.id) in resetKeyStore()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityModel.java44 private LockPatternUtils mLockPatternUtils; field in KeyguardSecurityModel
48 mLockPatternUtils = new LockPatternUtils(context); in KeyguardSecurityModel()
54 mLockPatternUtils = utils; in setLockPatternUtils()
70 final int security = mLockPatternUtils.getActivePasswordQuality(userId); in getSecurityMode()
DKeyguardAbsKeyInputView.java41 protected LockPatternUtils mLockPatternUtils; field in KeyguardAbsKeyInputView
68 mLockPatternUtils = utils; in setLockPatternUtils()
69 mEnableHaptics = mLockPatternUtils.isTactileFeedbackEnabled(); in setLockPatternUtils()
78 long deadline = mLockPatternUtils.getLockoutAttemptDeadline( in reset()
97 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
144 mLockPatternUtils, in verifyPasswordAndUnlock()
198 long deadline = mLockPatternUtils.setLockoutAttemptDeadline( in onPasswordChecked()
DKeyguardPatternView.java70 private LockPatternUtils mLockPatternUtils; field in KeyguardPatternView
134 mLockPatternUtils = utils; in setLockPatternUtils()
140 mLockPatternUtils = mLockPatternUtils == null in onFinishInflate()
141 ? new LockPatternUtils(mContext) : mLockPatternUtils; in onFinishInflate()
148 mLockPatternView.setTactileFeedbackEnabled(mLockPatternUtils.isTactileFeedbackEnabled()); in onFinishInflate()
186 mLockPatternView.setInStealthMode(!mLockPatternUtils.isVisiblePatternEnabled( in reset()
193 long deadline = mLockPatternUtils.getLockoutAttemptDeadline( in reset()
213 mLockPatternUtils = null; in cleanUp()
253 mLockPatternUtils, in onPatternDetected()
311 long deadline = mLockPatternUtils.setLockoutAttemptDeadline( in onPatternChecked()
DKeyguardSecurityContainer.java45 private LockPatternUtils mLockPatternUtils; field in KeyguardSecurityContainer
81 mLockPatternUtils = new LockPatternUtils(context); in KeyguardSecurityContainer()
159 ksv.setLockPatternUtils(mLockPatternUtils); in updateSecurityView()
167 mSecurityViewFlipper.setLockPatternUtils(mLockPatternUtils); in onFinishInflate()
171 mLockPatternUtils = utils; in setLockPatternUtils()
173 mSecurityViewFlipper.setLockPatternUtils(mLockPatternUtils); in setLockPatternUtils()
263 final DevicePolicyManager dpm = mLockPatternUtils.getDevicePolicyManager(); in reportFailedUnlockAttempt()
294 mLockPatternUtils.reportFailedPasswordAttempt(userId); in reportFailedUnlockAttempt()
296 mLockPatternUtils.reportPasswordLockout(timeoutMs, userId); in reportFailedUnlockAttempt()
347 || !mLockPatternUtils.isLockScreenDisabled( in showNextSecurityScreenOrFinish()
[all …]
DKeyguardStatusView.java48 private final LockPatternUtils mLockPatternUtils; field in KeyguardStatusView
106 mLockPatternUtils = new LockPatternUtils(getContext()); in KeyguardStatusView()
225 if (mLockPatternUtils.isDeviceOwnerInfoEnabled()) { in getOwnerInfo()
228 info = mLockPatternUtils.getDeviceOwnerInfo(); in getOwnerInfo()
231 final boolean ownerInfoEnabled = mLockPatternUtils.isOwnerInfoEnabled( in getOwnerInfo()
234 info = mLockPatternUtils.getOwnerInfo(KeyguardUpdateMonitor.getCurrentUser()); in getOwnerInfo()
DKeyguardHostView.java61 protected LockPatternUtils mLockPatternUtils; field in KeyguardHostView
147 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
148 mSecurityContainer.setLockPatternUtils(mLockPatternUtils); in onFinishInflate()
432 mLockPatternUtils = utils; in setLockPatternUtils()
DEmergencyButton.java79 private LockPatternUtils mLockPatternUtils; field in EmergencyButton
114 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
206 visible = mLockPatternUtils.isSecure(KeyguardUpdateMonitor.getCurrentUser()); in updateEmergencyCallButton()
DKeyguardUpdateMonitor.java198 private LockPatternUtils mLockPatternUtils; field in KeyguardUpdateMonitor
514 mLockPatternUtils.requireStrongAuth( in handleFingerprintError()
1098 mLockPatternUtils = new LockPatternUtils(context); in KeyguardUpdateMonitor()
1099 mLockPatternUtils.registerStrongAuthTracker(mStrongAuthTracker); in KeyguardUpdateMonitor()
/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/statusbar/phone/
DUnlockMethodCache.java37 private final LockPatternUtils mLockPatternUtils; field in UnlockMethodCache
49 mLockPatternUtils = new LockPatternUtils(ctx); in UnlockMethodCache()
91 boolean secure = mLockPatternUtils.isSecure(user); in update()
DKeyguardBouncer.java55 protected final LockPatternUtils mLockPatternUtils; field in KeyguardBouncer
78 mLockPatternUtils = lockPatternUtils; in KeyguardBouncer()
248 mKeyguardView.setLockPatternUtils(mLockPatternUtils); in inflateView()
DStatusBarKeyguardViewManager.java74 protected LockPatternUtils mLockPatternUtils; field in StatusBarKeyguardViewManager
119 mLockPatternUtils = lockPatternUtils; in StatusBarKeyguardViewManager()
134 mViewMediatorCallback, mLockPatternUtils, container, dismissCallbackRegistry); in registerStatusBar()
614 return mBouncer.isSecure() || mLockPatternUtils.isSecure(userId); in isSecure()
DKeyguardBottomAreaView.java134 private LockPatternUtils mLockPatternUtils; field in KeyguardBottomAreaView
229 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
462 mLockPatternUtils.requireCredentialEntry(KeyguardUpdateMonitor.getCurrentUser()); in handleTrustCircleClick()
882 boolean secure = mLockPatternUtils.isSecure(KeyguardUpdateMonitor.getCurrentUser()); in getIntent()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java116 private final LockPatternUtils mLockPatternUtils; field in TrustManagerService
139 mLockPatternUtils = new LockPatternUtils(context); in TrustManagerService()
157 mLockPatternUtils.registerStrongAuthTracker(mStrongAuthTracker); in onBootPhase()
163 maybeEnableFactoryTrustAgents(mLockPatternUtils, UserHandle.USER_SYSTEM); in onBootPhase()
231 return mLockPatternUtils.addEscrowToken(token, userId); in addEscrowToken()
235 return mLockPatternUtils.removeEscrowToken(handle, userId); in removeEscrowToken()
239 return mLockPatternUtils.isEscrowTokenActive(handle, userId); in isEscrowTokenActive()
243 mLockPatternUtils.unlockUserWithToken(handle, token, userId); in unlockUserWithToken()
265 LockPatternUtils lockPatternUtils = mLockPatternUtils; in refreshAgentList()
430 boolean secure = mLockPatternUtils.isSecure(id); in refreshDeviceLockedForUser()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java296 private LockPatternUtils mLockPatternUtils; field in KeyguardViewMediator
515 if (mLockPatternUtils.isSecure(currentUser)) {
516 mLockPatternUtils.getDevicePolicyManager().reportFailedFingerprintAttempt(
523 if (mLockPatternUtils.isSecure(userId)) {
524 mLockPatternUtils.getDevicePolicyManager().reportSuccessfulFingerprintAttempt(
682 mLockPatternUtils = new LockPatternUtils(mContext); in setupLocked()
690 && !mLockPatternUtils.isLockScreenDisabled( in setupLocked()
696 mViewMediatorCallback, mLockPatternUtils); in setupLocked()
773 mLockPatternUtils.getPowerButtonInstantlyLocks(currentUser) in onStartedGoingToSleep()
774 || !mLockPatternUtils.isSecure(currentUser); in onStartedGoingToSleep()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPreviewInflater.java46 private LockPatternUtils mLockPatternUtils; field in PreviewInflater
50 mLockPatternUtils = lockPatternUtils; in PreviewInflater()
/frameworks/base/services/tests/servicestests/src/com/android/server/retaildemo/
DRetailDemoModeServiceTest.java103 private @Mock LockPatternUtils mLockPatternUtils; field in RetailDemoModeServiceTest
274 verify(mLockPatternUtils).setLockScreenDisabled(true, TEST_DEMO_USER); in testSwitchToDemoUser()
449 return mLockPatternUtils; in getLockPatternUtils()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java177 private final LockPatternUtils mLockPatternUtils; field in UserController
192 mLockPatternUtils = mInjector.getLockPatternUtils(); in UserController()
393 || !mLockPatternUtils.isSeparateProfileChallengeEnabled(userId); in finishUserUnlocked()
1598 if (!mLockPatternUtils.isSeparateProfileChallengeEnabled(userId)) {
1606 return mLockPatternUtils.isLockScreenDisabled(userId);
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java367 private final LockPatternUtils mLockPatternUtils; field in DevicePolicyManagerService
1824 mLockPatternUtils = injector.newLockPatternUtils(); in DevicePolicyManagerService()
3526 return mLockPatternUtils.isSeparateProfileChallengeEnabled(userHandle); in isSeparateProfileChallengeEnabled()
4408 mLockPatternUtils.saveLockPassword(password, null, quality, userHandle); in resetPasswordInternal()
4410 mLockPatternUtils.clearLock(null, userHandle); in resetPasswordInternal()
4414 result = mLockPatternUtils.setLockCredentialWithToken(password, in resetPasswordInternal()
4421 mLockPatternUtils.requireStrongAuth(STRONG_AUTH_REQUIRED_AFTER_DPM_LOCK_NOW, in resetPasswordInternal()
4440 return mLockPatternUtils.isSecure(userId); in isLockScreenSecureUnchecked()
4702 mLockPatternUtils.requireStrongAuth( in lockNow()
4763 boolean isSecure = mLockPatternUtils.isSecure(userInfo.id); in removeCaApprovalsIfNeeded()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java369 private final LockPatternUtils mLockPatternUtils; field in UserManagerService
473 mLockPatternUtils = new LockPatternUtils(mContext); in UserManagerService()
674 if (!mLockPatternUtils.isSeparateProfileChallengeEnabled(userHandle)) { in getCredentialOwnerProfile()
809 || !mLockPatternUtils.isSecure(userHandle)) { in trySetQuietModeDisabled()

12