/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsShellCommandTest.java | 70 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 …]
|
D | LockSettingsServiceTestable.java | 44 private LockPatternUtils mLockPatternUtils; field in LockSettingsServiceTestable.MockInjector 60 mLockPatternUtils = lockPatternUtils; in MockInjector() 94 return mLockPatternUtils; in getLockPatternUtils()
|
D | BaseLockSettingsServiceTests.java | 86 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/ |
D | LockSettingsShellCommand.java | 45 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 …]
|
D | LockSettingsService.java | 202 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/ |
D | LockPatternUtilsTest.java | 53 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/ |
D | KeyguardSecurityModel.java | 44 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()
|
D | KeyguardAbsKeyInputView.java | 46 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()
|
D | KeyguardPatternView.java | 80 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 …]
|
D | KeyguardSecurityContainer.java | 81 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 …]
|
D | EmergencyButton.java | 83 private LockPatternUtils mLockPatternUtils; field in EmergencyButton 121 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate() 213 visible = mLockPatternUtils.isSecure(KeyguardUpdateMonitor.getCurrentUser()); in updateEmergencyCallButton()
|
D | KeyguardHostView.java | 57 protected LockPatternUtils mLockPatternUtils; field in KeyguardHostView 147 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate() 148 mSecurityContainer.setLockPatternUtils(mLockPatternUtils); in onFinishInflate() 442 mLockPatternUtils = utils; in setLockPatternUtils()
|
D | KeyguardStatusView.java | 57 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/ |
D | KeyguardViewMediator.java | 314 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/ |
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/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/src/com/android/systemui/statusbar/phone/ |
D | UnlockMethodCache.java | 45 private final LockPatternUtils mLockPatternUtils; field in UnlockMethodCache 58 mLockPatternUtils = new LockPatternUtils(ctx); in UnlockMethodCache() 121 boolean secure = mLockPatternUtils.isSecure(user); in update()
|
D | KeyguardBouncer.java | 64 protected final LockPatternUtils mLockPatternUtils; field in KeyguardBouncer 105 mLockPatternUtils = lockPatternUtils; in KeyguardBouncer() 441 mKeyguardView.setLockPatternUtils(mLockPatternUtils); in inflateView()
|
D | StatusBarNotificationActivityStarter.java | 96 private final LockPatternUtils mLockPatternUtils; field in StatusBarNotificationActivityStarter 156 mLockPatternUtils = lockPatternUtils; in StatusBarNotificationActivityStarter() 293 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(userId) in handleNotificationClickAfterPanelCollapsed()
|
D | StatusBarKeyguardViewManager.java | 132 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/ |
D | PreviewInflater.java | 47 private LockPatternUtils mLockPatternUtils; field in PreviewInflater 52 mLockPatternUtils = lockPatternUtils; in PreviewInflater()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LockTaskControllerTest.java | 112 @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/ |
D | NotificationLockscreenUserManagerImpl.java | 92 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/ |
D | StatusBarKeyguardViewManagerTest.java | 63 private LockPatternUtils mLockPatternUtils; field in StatusBarKeyguardViewManagerTest 95 mViewMediatorCallback, mLockPatternUtils); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationControllerTest.java | 91 private LockPatternUtils mLockPatternUtils; field in KeyguardIndicationControllerTest 144 mLockPatternUtils, mWakeLock, mShadeController, mAccessibilityController, in createController() 405 verify(mLockPatternUtils).requireCredentialEntry(anyInt()); in lockIcon_click()
|