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.java86 LockPatternUtils mLockPatternUtils; field in BaseLockSettingsServiceTests
136 mLockPatternUtils = new LockPatternUtils(mContext) { in setUp_baseServices()
150 mService = new LockSettingsServiceTestable(mContext, mLockPatternUtils, mStorage, in setUp_baseServices()
/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.java202 private final LockPatternUtils mLockPatternUtils; field in LockSettingsService
316 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(managedUserId)) { in tieManagedProfileLockIfNecessary()
474 mLockPatternUtils = injector.getLockPatternUtils(); in LockSettingsService()
992 if (!mLockPatternUtils.hasSecureLockScreen()) { in setSeparateProfileChallengeEnabled()
1080 return mLockPatternUtils.isLockPatternEnabled(userId) ? "1" : "0"; in getStringUnchecked()
1305 && !mLockPatternUtils.isSeparateProfileChallengeEnabled(userInfo.id) in tiedManagedProfileReadyToUnlock()
1323 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(managedUserId)) { in getDecryptedPasswordsForAllTiedProfiles()
1363 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(managedUserId)) { in synchronizeUnifiedWorkChallengeForProfiles()
1392 && !mLockPatternUtils.isSeparateProfileChallengeEnabled(userId); in isManagedProfileWithUnifiedLock()
1397 && 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()
DKeyguardAbsKeyInputView.java46 protected LockPatternUtils mLockPatternUtils; field in KeyguardAbsKeyInputView
74 mLockPatternUtils = utils; in setLockPatternUtils()
75 mEnableHaptics = mLockPatternUtils.isTactileFeedbackEnabled(); in setLockPatternUtils()
84 long deadline = mLockPatternUtils.getLockoutAttemptDeadline( in reset()
103 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
156 mLockPatternUtils, in verifyPasswordAndUnlock()
213 long deadline = mLockPatternUtils.setLockoutAttemptDeadline( in onPasswordChecked()
DKeyguardPatternView.java80 private LockPatternUtils mLockPatternUtils; field in KeyguardPatternView
144 mLockPatternUtils = utils; in setLockPatternUtils()
150 mLockPatternUtils = mLockPatternUtils == null in onFinishInflate()
151 ? new LockPatternUtils(mContext) : mLockPatternUtils; in onFinishInflate()
156 mLockPatternView.setInStealthMode(!mLockPatternUtils.isVisiblePatternEnabled( in onFinishInflate()
160 mLockPatternView.setTactileFeedbackEnabled(mLockPatternUtils.isTactileFeedbackEnabled()); in onFinishInflate()
220 mLockPatternView.setInStealthMode(!mLockPatternUtils.isVisiblePatternEnabled( in reset()
231 long deadline = mLockPatternUtils.getLockoutAttemptDeadline( in reset()
259 mLockPatternUtils = null; in cleanUp()
300 mLockPatternUtils, in onPatternDetected()
[all …]
DKeyguardSecurityContainer.java81 private LockPatternUtils mLockPatternUtils; field in KeyguardSecurityContainer
131 mLockPatternUtils = new LockPatternUtils(context); in KeyguardSecurityContainer()
313 ksv.setLockPatternUtils(mLockPatternUtils); in updateSecurityView()
321 mSecurityViewFlipper.setLockPatternUtils(mLockPatternUtils); in onFinishInflate()
325 mLockPatternUtils = utils; in setLockPatternUtils()
327 mSecurityViewFlipper.setLockPatternUtils(mLockPatternUtils); in setLockPatternUtils()
379 mLockPatternUtils.getCurrentFailedPasswordAttempts(userId), in showTimeoutDialog()
425 final int failedAttempts = mLockPatternUtils.getCurrentFailedPasswordAttempts(userId) + 1; in reportFailedUnlockAttempt()
429 final DevicePolicyManager dpm = mLockPatternUtils.getDevicePolicyManager(); in reportFailedUnlockAttempt()
459 mLockPatternUtils.reportFailedPasswordAttempt(userId); in reportFailedUnlockAttempt()
[all …]
DEmergencyButton.java83 private LockPatternUtils mLockPatternUtils; field in EmergencyButton
121 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
213 visible = mLockPatternUtils.isSecure(KeyguardUpdateMonitor.getCurrentUser()); in updateEmergencyCallButton()
DKeyguardHostView.java57 protected LockPatternUtils mLockPatternUtils; field in KeyguardHostView
147 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
148 mSecurityContainer.setLockPatternUtils(mLockPatternUtils); in onFinishInflate()
442 mLockPatternUtils = utils; in setLockPatternUtils()
DKeyguardStatusView.java57 private final LockPatternUtils mLockPatternUtils; field in KeyguardStatusView
137 mLockPatternUtils = new LockPatternUtils(getContext()); in KeyguardStatusView()
302 String info = mLockPatternUtils.getDeviceOwnerInfo(); in updateOwnerInfo()
305 final boolean ownerInfoEnabled = mLockPatternUtils.isOwnerInfoEnabled( in updateOwnerInfo()
308 info = mLockPatternUtils.getOwnerInfo(KeyguardUpdateMonitor.getCurrentUser()); in updateOwnerInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java314 private LockPatternUtils mLockPatternUtils; field in KeyguardViewMediator
381 if (mLockPatternUtils.isLockScreenDisabled(userId)) {
396 if (info == null || mLockPatternUtils.isSecure(userId)) {
525 if (mLockPatternUtils.isSecure(currentUser)) {
526 mLockPatternUtils.getDevicePolicyManager().reportFailedBiometricAttempt(
533 if (mLockPatternUtils.isSecure(userId)) {
534 mLockPatternUtils.getDevicePolicyManager().reportSuccessfulBiometricAttempt(
712 mLockPatternUtils = new LockPatternUtils(mContext); in setupLocked()
719 && !mLockPatternUtils.isLockScreenDisabled( in setupLocked()
728 mViewMediatorCallback, mLockPatternUtils); in setupLocked()
[all …]
/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/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/src/com/android/systemui/statusbar/phone/
DUnlockMethodCache.java45 private final LockPatternUtils mLockPatternUtils; field in UnlockMethodCache
58 mLockPatternUtils = new LockPatternUtils(ctx); in UnlockMethodCache()
121 boolean secure = mLockPatternUtils.isSecure(user); in update()
DKeyguardBouncer.java64 protected final LockPatternUtils mLockPatternUtils; field in KeyguardBouncer
105 mLockPatternUtils = lockPatternUtils; in KeyguardBouncer()
441 mKeyguardView.setLockPatternUtils(mLockPatternUtils); in inflateView()
DStatusBarNotificationActivityStarter.java96 private final LockPatternUtils mLockPatternUtils; field in StatusBarNotificationActivityStarter
156 mLockPatternUtils = lockPatternUtils; in StatusBarNotificationActivityStarter()
293 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(userId) in handleNotificationClickAfterPanelCollapsed()
DStatusBarKeyguardViewManager.java132 protected LockPatternUtils mLockPatternUtils; field in StatusBarKeyguardViewManager
197 mLockPatternUtils = lockPatternUtils; in StatusBarKeyguardViewManager()
226 mViewMediatorCallback, mLockPatternUtils, container, dismissCallbackRegistry, in registerStatusBar()
896 return mBouncer.isSecure() || mLockPatternUtils.isSecure(userId); in isSecure()
/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/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.java92 private LockPatternUtils mLockPatternUtils; field in NotificationLockscreenUserManagerImpl
188 mLockPatternUtils = new LockPatternUtils(context); in NotificationLockscreenUserManagerImpl()
518 boolean needsSeparateChallenge = mLockPatternUtils.isSeparateProfileChallengeEnabled( in updatePublicMode()
569 return mKeyguardMonitor.isSecure() || mLockPatternUtils.isSecure(userId); in isSecure()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarKeyguardViewManagerTest.java63 private LockPatternUtils mLockPatternUtils; field in StatusBarKeyguardViewManagerTest
95 mViewMediatorCallback, mLockPatternUtils); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java91 private LockPatternUtils mLockPatternUtils; field in KeyguardIndicationControllerTest
144 mLockPatternUtils, mWakeLock, mShadeController, mAccessibilityController, in createController()
405 verify(mLockPatternUtils).requireCredentialEntry(anyInt()); in lockIcon_click()

12