/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 | 79 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/ |
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 | 188 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/ |
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 | KeyguardPatternView.java | 79 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 …]
|
D | KeyguardAbsKeyInputView.java | 45 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()
|
D | KeyguardSecurityContainer.java | 78 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 …]
|
D | KeyguardStatusView.java | 56 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()
|
D | EmergencyButton.java | 82 private LockPatternUtils mLockPatternUtils; field in EmergencyButton 117 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate() 209 visible = mLockPatternUtils.isSecure(KeyguardUpdateMonitor.getCurrentUser()); in updateEmergencyCallButton()
|
D | KeyguardHostView.java | 56 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/ |
D | KeyguardStateMonitor.java | 53 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/ |
D | KeyguardViewMediator.java | 307 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/ |
D | UnlockMethodCache.java | 48 private final LockPatternUtils mLockPatternUtils; field in UnlockMethodCache 60 mLockPatternUtils = new LockPatternUtils(ctx); in UnlockMethodCache() 116 boolean secure = mLockPatternUtils.isSecure(user); in update()
|
D | KeyguardBouncer.java | 64 protected final LockPatternUtils mLockPatternUtils; field in KeyguardBouncer 102 mLockPatternUtils = lockPatternUtils; in KeyguardBouncer() 434 mKeyguardView.setLockPatternUtils(mLockPatternUtils); in inflateView()
|
D | StatusBarKeyguardViewManager.java | 127 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()
|
D | StatusBarNotificationActivityStarter.java | 96 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/ |
D | TrustManagerService.java | 131 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/ |
D | PreviewInflater.java | 47 private LockPatternUtils mLockPatternUtils; field in PreviewInflater 52 mLockPatternUtils = lockPatternUtils; in PreviewInflater()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationControllerTest.java | 84 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/ |
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 | 88 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/ |
D | StatusBarKeyguardViewManagerTest.java | 57 private LockPatternUtils mLockPatternUtils; field in StatusBarKeyguardViewManagerTest 83 mViewMediatorCallback, mLockPatternUtils); in setUp()
|