Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsShellCommandTest.java70 private @Mock LockPatternUtils mLockPatternUtils; field in LockSettingsShellCommandTest
82 mCommand = new LockSettingsShellCommand(mLockPatternUtils); in setUp()
83 when(mLockPatternUtils.hasSecureLockScreen()).thenReturn(true); 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".getBytes(), mUserId)).thenReturn(false); in testWrongPassword()
94 verify(mLockPatternUtils, never()).saveLockPassword(any(byte[].class), any(byte[].class), in testWrongPassword()
100 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testChangePin()
101 when(mLockPatternUtils.isLockPasswordEnabled(mUserId)).thenReturn(true); in testChangePin()
102 when(mLockPatternUtils.checkPassword("1234".getBytes(), mUserId)).thenReturn(true); in testChangePin()
[all …]
DLockSettingsServiceTestable.java44 private LockPatternUtils mLockPatternUtils; field in LockSettingsServiceTestable.MockInjector
60 mLockPatternUtils = lockPatternUtils; in MockInjector()
94 return mLockPatternUtils; in getLockPatternUtils()
DBaseLockSettingsServiceTests.java79 LockPatternUtils mLockPatternUtils; field in BaseLockSettingsServiceTests
131 mLockPatternUtils = new LockPatternUtils(mContext) { in setUp()
145 mService = new LockSettingsServiceTestable(mContext, mLockPatternUtils, mStorage, in setUp()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsShellCommand.java45 private final LockPatternUtils mLockPatternUtils; field in LockSettingsShellCommand
50 mLockPatternUtils = lockPatternUtils; in LockSettingsShellCommand()
62 if (!mLockPatternUtils.hasSecureLockScreen()) { in onCommand()
181 mLockPatternUtils.enableSyntheticPassword(); in runChangeSp()
184 mLockPatternUtils.disableSyntheticPassword(); in runChangeSp()
189 mLockPatternUtils.isSyntheticPasswordEnabled())); in runChangeSp()
194 mLockPatternUtils.saveLockPattern(stringToPattern(mNew), oldBytes, mCurrentUserId); in runSetPattern()
201 mLockPatternUtils.saveLockPassword(newBytes, oldBytes, PASSWORD_QUALITY_ALPHABETIC, in runSetPassword()
209 mLockPatternUtils.saveLockPassword(newBytes, oldBytes, PASSWORD_QUALITY_NUMERIC, in runSetPin()
216 mLockPatternUtils.clearLock(oldBytes, mCurrentUserId); in runClear()
[all …]
DLockSettingsService.java188 private final LockPatternUtils mLockPatternUtils; field in LockSettingsService
293 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(managedUserId)) { in tieManagedProfileLockIfNecessary()
451 mLockPatternUtils = injector.getLockPatternUtils(); in LockSettingsService()
968 if (!mLockPatternUtils.hasSecureLockScreen()) { in setSeparateProfileChallengeEnabled()
1056 return mLockPatternUtils.isLockPatternEnabled(userId) ? "1" : "0"; in getStringUnchecked()
1254 && !mLockPatternUtils.isSeparateProfileChallengeEnabled(userInfo.id) in tiedManagedProfileReadyToUnlock()
1272 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(managedUserId)) { in getDecryptedPasswordsForAllTiedProfiles()
1312 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(managedUserId)) { in synchronizeUnifiedWorkChallengeForProfiles()
1341 && !mLockPatternUtils.isSeparateProfileChallengeEnabled(userId); in isManagedProfileWithUnifiedLock()
1346 && mLockPatternUtils.isSeparateProfileChallengeEnabled(userId); in isManagedProfileWithSeparatedLock()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLockPatternUtilsTest.java53 private LockPatternUtils mLockPatternUtils; field in LockPatternUtilsTest
69 mLockPatternUtils = spy(new LockPatternUtils(context)); in configureTest()
70 when(mLockPatternUtils.getLockSettings()).thenReturn(ils); in configureTest()
71 doReturn(true).when(mLockPatternUtils).hasSecureLockScreen(); in configureTest()
83 assertTrue(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isDemoUser_true()
89 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isSecureAndDemoUser_false()
95 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isNotDemoUser_false()
101 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isNotInDemoMode_false()
/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()
DKeyguardPatternView.java79 private LockPatternUtils mLockPatternUtils; field in KeyguardPatternView
143 mLockPatternUtils = utils; in setLockPatternUtils()
149 mLockPatternUtils = mLockPatternUtils == null in onFinishInflate()
150 ? new LockPatternUtils(mContext) : mLockPatternUtils; in onFinishInflate()
155 mLockPatternView.setInStealthMode(!mLockPatternUtils.isVisiblePatternEnabled( in onFinishInflate()
159 mLockPatternView.setTactileFeedbackEnabled(mLockPatternUtils.isTactileFeedbackEnabled()); in onFinishInflate()
219 mLockPatternView.setInStealthMode(!mLockPatternUtils.isVisiblePatternEnabled( in reset()
230 long deadline = mLockPatternUtils.getLockoutAttemptDeadline( in reset()
257 mLockPatternUtils = null; in cleanUp()
297 mLockPatternUtils, in onPatternDetected()
[all …]
DKeyguardAbsKeyInputView.java45 protected LockPatternUtils mLockPatternUtils; field in KeyguardAbsKeyInputView
73 mLockPatternUtils = utils; in setLockPatternUtils()
74 mEnableHaptics = mLockPatternUtils.isTactileFeedbackEnabled(); in setLockPatternUtils()
83 long deadline = mLockPatternUtils.getLockoutAttemptDeadline( in reset()
102 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
155 mLockPatternUtils, in verifyPasswordAndUnlock()
212 long deadline = mLockPatternUtils.setLockoutAttemptDeadline( in onPasswordChecked()
DKeyguardSecurityContainer.java78 private LockPatternUtils mLockPatternUtils; field in KeyguardSecurityContainer
127 mLockPatternUtils = new LockPatternUtils(context); in KeyguardSecurityContainer()
306 ksv.setLockPatternUtils(mLockPatternUtils); in updateSecurityView()
314 mSecurityViewFlipper.setLockPatternUtils(mLockPatternUtils); in onFinishInflate()
318 mLockPatternUtils = utils; in setLockPatternUtils()
320 mSecurityViewFlipper.setLockPatternUtils(mLockPatternUtils); in setLockPatternUtils()
372 mLockPatternUtils.getCurrentFailedPasswordAttempts(userId), in showTimeoutDialog()
418 final int failedAttempts = mLockPatternUtils.getCurrentFailedPasswordAttempts(userId) + 1; in reportFailedUnlockAttempt()
422 final DevicePolicyManager dpm = mLockPatternUtils.getDevicePolicyManager(); in reportFailedUnlockAttempt()
452 mLockPatternUtils.reportFailedPasswordAttempt(userId); in reportFailedUnlockAttempt()
[all …]
DKeyguardStatusView.java56 private final LockPatternUtils mLockPatternUtils; field in KeyguardStatusView
135 mLockPatternUtils = new LockPatternUtils(getContext()); in KeyguardStatusView()
290 String info = mLockPatternUtils.getDeviceOwnerInfo(); in updateOwnerInfo()
293 final boolean ownerInfoEnabled = mLockPatternUtils.isOwnerInfoEnabled( in updateOwnerInfo()
296 info = mLockPatternUtils.getOwnerInfo(KeyguardUpdateMonitor.getCurrentUser()); in updateOwnerInfo()
DEmergencyButton.java82 private LockPatternUtils mLockPatternUtils; field in EmergencyButton
117 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
209 visible = mLockPatternUtils.isSecure(KeyguardUpdateMonitor.getCurrentUser()); in updateEmergencyCallButton()
DKeyguardHostView.java56 protected LockPatternUtils mLockPatternUtils; field in KeyguardHostView
146 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
147 mSecurityContainer.setLockPatternUtils(mLockPatternUtils); in onFinishInflate()
441 mLockPatternUtils = utils; in setLockPatternUtils()
/frameworks/base/services/core/java/com/android/server/policy/keyguard/
DKeyguardStateMonitor.java53 private final LockPatternUtils mLockPatternUtils; field in KeyguardStateMonitor
59 mLockPatternUtils = new LockPatternUtils(context); in KeyguardStateMonitor()
78 return mLockPatternUtils.isSecure(userId) || mSimSecure; in isSecure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java307 private LockPatternUtils mLockPatternUtils; field in KeyguardViewMediator
374 if (mLockPatternUtils.isLockScreenDisabled(userId)) {
389 if (info == null || mLockPatternUtils.isSecure(userId)) {
518 if (mLockPatternUtils.isSecure(currentUser)) {
519 mLockPatternUtils.getDevicePolicyManager().reportFailedBiometricAttempt(
526 if (mLockPatternUtils.isSecure(userId)) {
527 mLockPatternUtils.getDevicePolicyManager().reportSuccessfulBiometricAttempt(
705 mLockPatternUtils = new LockPatternUtils(mContext); in setupLocked()
713 && !mLockPatternUtils.isLockScreenDisabled( in setupLocked()
723 mViewMediatorCallback, mLockPatternUtils); in setupLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUnlockMethodCache.java48 private final LockPatternUtils mLockPatternUtils; field in UnlockMethodCache
60 mLockPatternUtils = new LockPatternUtils(ctx); in UnlockMethodCache()
116 boolean secure = mLockPatternUtils.isSecure(user); in update()
DKeyguardBouncer.java64 protected final LockPatternUtils mLockPatternUtils; field in KeyguardBouncer
102 mLockPatternUtils = lockPatternUtils; in KeyguardBouncer()
434 mKeyguardView.setLockPatternUtils(mLockPatternUtils); in inflateView()
DStatusBarKeyguardViewManager.java127 protected LockPatternUtils mLockPatternUtils; field in StatusBarKeyguardViewManager
189 mLockPatternUtils = lockPatternUtils; in StatusBarKeyguardViewManager()
217 mViewMediatorCallback, mLockPatternUtils, container, dismissCallbackRegistry, in registerStatusBar()
821 return mBouncer.isSecure() || mLockPatternUtils.isSecure(userId); in isSecure()
DStatusBarNotificationActivityStarter.java96 private final LockPatternUtils mLockPatternUtils; field in StatusBarNotificationActivityStarter
156 mLockPatternUtils = lockPatternUtils; in StatusBarNotificationActivityStarter()
293 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(userId) in handleNotificationClickAfterPanelCollapsed()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java131 private final LockPatternUtils mLockPatternUtils; field in TrustManagerService
163 mLockPatternUtils = new LockPatternUtils(context); in TrustManagerService()
183 mLockPatternUtils.registerStrongAuthTracker(mStrongAuthTracker); in onBootPhase()
189 maybeEnableFactoryTrustAgents(mLockPatternUtils, UserHandle.USER_SYSTEM); in onBootPhase()
421 return mLockPatternUtils.addEscrowToken(token, userId, in addEscrowToken()
428 return mLockPatternUtils.removeEscrowToken(handle, userId); in removeEscrowToken()
432 return mLockPatternUtils.isEscrowTokenActive(handle, userId); in isEscrowTokenActive()
436 mLockPatternUtils.unlockUserWithToken(handle, token, userId); in unlockUserWithToken()
462 LockPatternUtils lockPatternUtils = mLockPatternUtils; in refreshAgentList()
628 boolean secure = mLockPatternUtils.isSecure(id); in refreshDeviceLockedForUser()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPreviewInflater.java47 private LockPatternUtils mLockPatternUtils; field in PreviewInflater
52 mLockPatternUtils = lockPatternUtils; in PreviewInflater()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java84 private LockPatternUtils mLockPatternUtils; field in KeyguardIndicationControllerTest
125 mLockPatternUtils, mWakeLock, mShadeController, mAccessibilityController, in createController()
263 verify(mLockPatternUtils).requireCredentialEntry(anyInt()); in lockIcon_click()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLockTaskControllerTest.java112 @Mock private LockPatternUtils mLockPatternUtils; field in LockTaskControllerTest
144 mLockTaskController.mLockPatternUtils = mLockPatternUtils; in setUp()
397 verify(mLockPatternUtils).requireCredentialEntry(eq(UserHandle.USER_ALL)); in testStopLockTaskMode_pinned()
429 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(anyInt())) in testClearLockedTasks_noLockSetting_noPassword_deviceIsUnlocked()
449 when(mLockPatternUtils.isSecure(anyInt())) in testClearLockedTasks_noLockSetting_password_deviceIsLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManagerImpl.java88 private LockPatternUtils mLockPatternUtils; field in NotificationLockscreenUserManagerImpl
183 mLockPatternUtils = new LockPatternUtils(context); in NotificationLockscreenUserManagerImpl()
513 boolean needsSeparateChallenge = mLockPatternUtils.isSeparateProfileChallengeEnabled( in updatePublicMode()
564 return mKeyguardMonitor.isSecure() || mLockPatternUtils.isSecure(userId); in isSecure()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarKeyguardViewManagerTest.java57 private LockPatternUtils mLockPatternUtils; field in StatusBarKeyguardViewManagerTest
83 mViewMediatorCallback, mLockPatternUtils); in setUp()

12