Home
last modified time | relevance | path

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

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DChangeScreenLockPreferenceControllerTest.java62 private LockPatternUtils mLockPatternUtils; field in ChangeScreenLockPreferenceControllerTest
83 .thenReturn(mLockPatternUtils); in setUp()
105 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureDisableKeyguard_shouldNotShowGear()
106 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(true); in updateState_notSecureDisableKeyguard_shouldNotShowGear()
116 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureDisableKeyguard_summaryShouldShowOff()
117 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(true); in updateState_notSecureDisableKeyguard_summaryShouldShowOff()
128 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_shouldNotShowGear()
129 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_shouldNotShowGear()
139 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_summaryShouldShowSwipe()
140 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_summaryShouldShowSwipe()
[all …]
DVisiblePatternProfilePreferenceControllerTest.java63 private LockPatternUtils mLockPatternUtils; field in VisiblePatternProfilePreferenceControllerTest
87 .thenReturn(mLockPatternUtils); in setUp()
99 when(mLockPatternUtils.isSecure(FAKE_PROFILE_USER_ID)).thenReturn(false); in getAvailabilityStatus_notSecure_DISABLED()
100 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(FAKE_PROFILE_USER_ID)) in getAvailabilityStatus_notSecure_DISABLED()
108 when(mLockPatternUtils.isSecure(FAKE_PROFILE_USER_ID)).thenReturn(true); in getAvailabilityStatus_secureWithPassword_DISABLED()
109 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(FAKE_PROFILE_USER_ID)) in getAvailabilityStatus_secureWithPassword_DISABLED()
117 when(mLockPatternUtils.isSecure(FAKE_PROFILE_USER_ID)).thenReturn(true); in getAvailabilityStatus_secureWithPattern_AVAILABLE()
118 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(FAKE_PROFILE_USER_ID)) in getAvailabilityStatus_secureWithPattern_AVAILABLE()
/packages/apps/Settings/tests/unit/src/com/android/settings/security/
DScreenLockPreferenceDetailsUtilsTest.java62 private LockPatternUtils mLockPatternUtils; field in ScreenLockPreferenceDetailsUtilsTest
92 .thenReturn(mLockPatternUtils); in setUp()
115 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(false); in getSummary_unsecureAndDisabledPattern_shouldReturnUnlockModeOff()
116 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(true); in getSummary_unsecureAndDisabledPattern_shouldReturnUnlockModeOff()
126 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(false); in getSummary_unsecurePattern_shouldReturnUnlockModeNone()
127 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false); in getSummary_unsecurePattern_shouldReturnUnlockModeNone()
137 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(true); in getSummary_passwordQualitySomething_shouldUnlockModePattern()
138 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(USER_ID)) in getSummary_passwordQualitySomething_shouldUnlockModePattern()
149 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(true); in getSummary_passwordQualityNumeric_shouldUnlockModePin()
150 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(USER_ID)) in getSummary_passwordQualityNumeric_shouldUnlockModePin()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/screenlock/
DPowerButtonInstantLockPreferenceControllerTest.java48 private LockPatternUtils mLockPatternUtils; field in PowerButtonInstantLockPreferenceControllerTest
67 mContext, TEST_USER_ID, mLockPatternUtils); in setUp()
72 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPattern_shouldReturnTrue()
73 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPattern_shouldReturnTrue()
81 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPin_shouldReturnTrue()
82 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPin_shouldReturnTrue()
90 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPassword_shouldReturnTrue()
91 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPassword_shouldReturnTrue()
99 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(false); in isAvailable_lockSetToNone_shouldReturnFalse()
107 when(mTrustAgentManager.getActiveTrustAgentLabel(mContext, mLockPatternUtils)) in updateState_shouldSetPref()
[all …]
DAutoPinConfirmPreferenceControllerTest.java42 private LockPatternUtils mLockPatternUtils; field in AutoPinConfirmPreferenceControllerTest
53 new AutoPinConfirmPreferenceController(context, TEST_USER_ID, mLockPatternUtils, in setUp()
60 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_featureEnabledAndLockSetToNone_shouldReturnFalse()
67 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_featureEnabledAndLockSetToPassword_shouldReturnFalse()
68 when(mLockPatternUtils.getCredentialTypeForUser(TEST_USER_ID)) in isAvailable_featureEnabledAndLockSetToPassword_shouldReturnFalse()
76 when(mLockPatternUtils.getCredentialTypeForUser(TEST_USER_ID)) in isAvailable_featureEnabledAndLockSetToPIN_lengthLessThanSix_shouldReturnFalse()
78 when(mLockPatternUtils.getPinLength(TEST_USER_ID)).thenReturn(5); in isAvailable_featureEnabledAndLockSetToPIN_lengthLessThanSix_shouldReturnFalse()
85 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_featureEnabledAndLockSetToPIN_lengthMoreThanEqSix_shouldReturnTrue()
86 when(mLockPatternUtils.getCredentialTypeForUser(TEST_USER_ID)) in isAvailable_featureEnabledAndLockSetToPIN_lengthMoreThanEqSix_shouldReturnTrue()
88 when(mLockPatternUtils.getPinLength(TEST_USER_ID)).thenReturn(6); in isAvailable_featureEnabledAndLockSetToPIN_lengthMoreThanEqSix_shouldReturnTrue()
[all …]
DLockScreenPreferenceControllerTest.java58 private LockPatternUtils mLockPatternUtils; field in LockScreenPreferenceControllerTest
79 .thenReturn(mLockPatternUtils); in setUp()
90 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_notSecure_lockscreenDisabled_AVAILABLE()
91 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(true); in getAvailabilityStatus_notSecure_lockscreenDisabled_AVAILABLE()
98 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_notSecure_lockscreenEnabled_AVAILABLE()
99 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false); in getAvailabilityStatus_notSecure_lockscreenEnabled_AVAILABLE()
106 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_secure_hasLockScreen_AVAILABLE()
107 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(anyInt())) in getAvailabilityStatus_secure_hasLockScreen_AVAILABLE()
115 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_secure_noLockScreen_AVAILABLE()
116 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(anyInt())) in getAvailabilityStatus_secure_noLockScreen_AVAILABLE()
[all …]
DPatternVisiblePreferenceControllerTest.java44 private LockPatternUtils mLockPatternUtils; field in PatternVisiblePreferenceControllerTest
54 new PatternVisiblePreferenceController(mContext, TEST_USER_ID, mLockPatternUtils); in setUp()
60 when(mLockPatternUtils.getCredentialTypeForUser(TEST_USER_ID)) in isAvailable_lockSetToPattern_shouldReturnTrue()
68 when(mLockPatternUtils.getCredentialTypeForUser(TEST_USER_ID)).thenReturn( in isAvailable_lockSetToPin_shouldReturnFalse()
76 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(false); in isAvailable_lockSetToNone_shouldReturnFalse()
83 when(mLockPatternUtils.isVisiblePatternEnabled(TEST_USER_ID)).thenReturn(true); in updateState_shouldSetPref()
87 when(mLockPatternUtils.isVisiblePatternEnabled(TEST_USER_ID)).thenReturn(false); in updateState_shouldSetPref()
96 verify(mLockPatternUtils).setVisiblePatternEnabled(true, TEST_USER_ID); in onPreferenceChange_shouldUpdateLockPatternUtils()
DLockAfterTimeoutPreferenceControllerTest.java58 private LockPatternUtils mLockPatternUtils; field in LockAfterTimeoutPreferenceControllerTest
77 mContext, TEST_USER_ID, mLockPatternUtils); in setUp()
82 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPattern_shouldReturnTrue()
83 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPattern_shouldReturnTrue()
91 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPin_shouldReturnTrue()
92 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPin_shouldReturnTrue()
100 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPassword_shouldReturnTrue()
101 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPassword_shouldReturnTrue()
109 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(false); in isAvailable_lockSetToNone_shouldReturnFalse()
DPinPrivacyPreferenceControllerTest.java49 private LockPatternUtils mLockPatternUtils; field in PinPrivacyPreferenceControllerTest
59 new PinPrivacyPreferenceController(mContext, TEST_USER_ID, mLockPatternUtils); in setUp()
65 when(mLockPatternUtils.getCredentialTypeForUser(TEST_USER_ID)).thenReturn( in isAvailable_lockSetToPin_shouldReturnTrue()
72 when(mLockPatternUtils.getCredentialTypeForUser(TEST_USER_ID)).thenReturn( in isAvailable_lockSetToOther_shouldReturnFalse()
79 when(mLockPatternUtils.isPinEnhancedPrivacyEnabled(TEST_USER_ID)).thenReturn(true); in updateState_shouldSetPref()
86 when(mLockPatternUtils.isPinEnhancedPrivacyEnabled(TEST_USER_ID)).thenReturn(false); in updateState_shouldSetPref_false()
94 verify(mLockPatternUtils).setPinEnhancedPrivacyEnabled(true, TEST_USER_ID); in onPreferenceChange_shouldUpdateLockPatternUtils()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/users/
DRestrictedProfilePinStorageTest.java56 private LockPatternUtils mLockPatternUtils; field in RestrictedProfilePinStorageTest
71 when(mLockPatternUtils.getLockSettings()).thenReturn(mLockSettings); in setUp()
74 mPinStorage = new RestrictedProfilePinStorage(mLockPatternUtils, USER_ID, mConnection); in setUp()
94 verify(mLockPatternUtils, never()).setLockCredential( in testSetPinWhenNoPinIsSet_success()
109 verify(mLockPatternUtils, never()).setLockCredential( in testSetPinWhenWrongPinIsInput_fail()
125 verify(mLockPatternUtils, never()).setLockCredential( in testSetPinWhenCorrectPinIsInput_success()
138 verify(mLockPatternUtils, never()).setLockCredential( in testDeletePin_success()
151 verify(mLockPatternUtils, never()).setLockCredential( in testDeletePin_fail()
163 verify(mLockPatternUtils, never()).isSecure(eq(USER_ID)); in testIsPinCorrect()
175 verify(mLockPatternUtils).isSecure(eq(USER_ID)); in testIsPinCorrect_legacy()
[all …]
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DLockPatternUtilsCompat.java26 LockPatternUtils mLockPatternUtils; field in LockPatternUtilsCompat
29 mLockPatternUtils = new LockPatternUtils(context); in LockPatternUtilsCompat()
34 return mLockPatternUtils.setLockCredential(newCredentialCompat.mLockscreenCredential, in setLockCredential()
41 return mLockPatternUtils.checkCredential( in checkCredential()
50 return mLockPatternUtils.isSecure(userId); in isSecure()
54 return mLockPatternUtils.isLockPatternEnabled(userId); in isLockPatternEnabled()
58 return mLockPatternUtils.isLockPasswordEnabled(userId); in isLockPasswordEnabled()
66 return mLockPatternUtils.isSeparateProfileChallengeEnabled(userHandler); in isSeparateProfileChallengeEnabled()
74 return (ILockSettingsCompat) mLockPatternUtils.getLockSettings(); in getLockSettings()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/
DGatekeeperPasswordProviderTest.java53 @Mock private LockPatternUtils mLockPatternUtils; field in GatekeeperPasswordProviderTest
58 mGatekeeperPasswordProvider = new GatekeeperPasswordProvider(mLockPatternUtils); in setUp()
67 when(mLockPatternUtils.verifyGatekeeperPasswordHandle(gkPwHandle, challenge, userId)) in testRequestGatekeeperHatWithHandle_success()
84 when(mLockPatternUtils.verifyGatekeeperPasswordHandle(gkPwHandle, challenge, userId)) in testRequestGatekeeperHatWithHandle_GatekeeperCredentialNotMatchException()
96 when(mLockPatternUtils.verifyGatekeeperPasswordHandle(gkPwHandle, challenge, userId)) in testRequestGatekeeperHatWithIntent_success()
113 when(mLockPatternUtils.verifyGatekeeperPasswordHandle(gkPwHandle, challenge, userId)) in testRequestGatekeeperHatWithIntent_GatekeeperCredentialNotMatchException()
143 doNothing().when(mLockPatternUtils).removeGatekeeperPasswordHandle(gkPwHandle); in testRemoveGatekeeperPasswordHandleAsHandle()
147 verify(mLockPatternUtils, only()).removeGatekeeperPasswordHandle(gkPwHandle); in testRemoveGatekeeperPasswordHandleAsHandle()
154 doNothing().when(mLockPatternUtils).removeGatekeeperPasswordHandle(gkPwHandle); in testRemoveGatekeeperPasswordHandleAsIntent()
158 verify(mLockPatternUtils, only()).removeGatekeeperPasswordHandle(gkPwHandle); in testRemoveGatekeeperPasswordHandleAsIntent()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/privatespace/
DPrivateSpaceLockControllerTest.java57 LockPatternUtils mLockPatternUtils; field in PrivateSpaceLockControllerTest
74 .thenReturn(mLockPatternUtils); in setUp()
75 doReturn(true).when(mLockPatternUtils).isSecure(anyInt()); in setUp()
93 doReturn(false).when(mLockPatternUtils).isSeparateProfileChallengeEnabled(anyInt()); in getSummary_whenScreenLock()
106 .when(mLockPatternUtils).isSeparateProfileChallengeEnabled(anyInt()); in getSummary_whenProfileLockPattern()
108 .when(mLockPatternUtils).getCredentialTypeForUser(anyInt()); in getSummary_whenProfileLockPattern()
120 doReturn(true).when(mLockPatternUtils).isSeparateProfileChallengeEnabled(anyInt()); in getSummary_whenProfileLockPin()
121 doReturn(CREDENTIAL_TYPE_PIN).when(mLockPatternUtils).getCredentialTypeForUser(anyInt()); in getSummary_whenProfileLockPin()
134 .when(mLockPatternUtils).isSeparateProfileChallengeEnabled(anyInt()); in getSummary_whenProfileLockPassword()
136 .when(mLockPatternUtils).getCredentialTypeForUser(anyInt()); in getSummary_whenProfileLockPassword()
DUseOneLockControllerTest.java58 LockPatternUtils mLockPatternUtils; field in UseOneLockControllerTest
70 .thenReturn(mLockPatternUtils); in setUp()
71 doReturn(true).when(mLockPatternUtils).isSecure(anyInt()); in setUp()
91 .when(mLockPatternUtils).isSeparateProfileChallengeEnabled(anyInt()); in getSummary_whenProfileLockPattern()
93 .when(mLockPatternUtils).getCredentialTypeForUser(anyInt()); in getSummary_whenProfileLockPattern()
106 .when(mLockPatternUtils).isSeparateProfileChallengeEnabled(anyInt()); in getSummary_whenProfileLockPin()
107 doReturn(CREDENTIAL_TYPE_PIN).when(mLockPatternUtils).getCredentialTypeForUser(anyInt()); in getSummary_whenProfileLockPin()
120 .when(mLockPatternUtils).isSeparateProfileChallengeEnabled(anyInt()); in getSummary_whenProfileLockPassword()
122 .when(mLockPatternUtils).getCredentialTypeForUser(anyInt()); in getSummary_whenProfileLockPassword()
/packages/apps/Settings/src/com/android/settings/password/
DChooseLockGenericController.java61 private final LockPatternUtils mLockPatternUtils; field in ChooseLockGenericController
70 mLockPatternUtils = lockPatternUtils; in ChooseLockGenericController()
82 private final LockPatternUtils mLockPatternUtils; field in ChooseLockGenericController.Builder
111 mLockPatternUtils = lockPatternUtils; in Builder()
156 mLockPatternUtils, mHideInsecureScreenLockTypes, mAppRequestedMinComplexity, in build()
183 return mLockPatternUtils.hasSecureLockScreen(); in isScreenLockVisible()
193 return !mLockPatternUtils.isCredentialsDisabledForUser(mUserId) in isScreenLockEnabled()
260 PasswordMetrics metrics = mLockPatternUtils.getRequestedPasswordMetrics(mUserId, in getAggregatedPasswordMetrics()
263 metrics.maxWith(mLockPatternUtils.getRequestedPasswordMetrics(mUnificationProfileId)); in getAggregatedPasswordMetrics()
275 mLockPatternUtils.getRequestedPasswordComplexity( in getAggregatedPasswordComplexity()
[all …]
/packages/apps/Settings/src/com/android/settings/security/screenlock/
DPowerButtonInstantLockPreferenceController.java39 private final LockPatternUtils mLockPatternUtils; field in PowerButtonInstantLockPreferenceController
46 mLockPatternUtils = lockPatternUtils; in PowerButtonInstantLockPreferenceController()
53 if (!mLockPatternUtils.isSecure(mUserId)) { in isAvailable()
56 switch (mLockPatternUtils.getKeyguardStoredPasswordQuality(mUserId)) { in isAvailable()
73 mLockPatternUtils.getPowerButtonInstantlyLocks(mUserId)); in updateState()
75 mContext, mLockPatternUtils); in updateState()
92 mLockPatternUtils.setPowerButtonInstantlyLocks((Boolean) newValue, mUserId); in onPreferenceChange()
DAutoPinConfirmPreferenceController.java42 private final LockPatternUtils mLockPatternUtils; field in AutoPinConfirmPreferenceController
50 mLockPatternUtils = lockPatternUtils; in AutoPinConfirmPreferenceController()
77 return mLockPatternUtils.getCredentialTypeForUser(mUserId) in isPinLock()
82 return mLockPatternUtils.getPinLength(mUserId) >= MIN_AUTO_PIN_REQUIREMENT_LENGTH; in isPinLengthEligibleForAutoConfirmation()
86 return mLockPatternUtils.isAutoPinConfirmEnabled(mUserId); in getPinAutoConfirmSettingState()
90 mLockPatternUtils.setAutoPinConfirm(state, mUserId); in setPinAutoConfirmSettingState()
DPatternVisiblePreferenceController.java34 private final LockPatternUtils mLockPatternUtils; field in PatternVisiblePreferenceController
40 mLockPatternUtils = lockPatternUtils; in PatternVisiblePreferenceController()
56 mLockPatternUtils.isVisiblePatternEnabled(mUserId)); in updateState()
60 return mLockPatternUtils.getCredentialTypeForUser(mUserId) in isPatternLock()
66 mLockPatternUtils.setVisiblePatternEnabled((Boolean) newValue, mUserId); in onPreferenceChange()
DScreenLockSettings.java49 private LockPatternUtils mLockPatternUtils; field in ScreenLockSettings
68 mLockPatternUtils = new LockPatternUtils(context); in createPreferenceControllers()
69 return buildPreferenceControllers(context, this /* parent */, mLockPatternUtils); in createPreferenceControllers()
121 mLockPatternUtils.setAutoPinConfirm(newState, MY_USER_ID); in onAutoPinConfirmSettingChange()
123 if (!mLockPatternUtils.refreshStoredPinLength(MY_USER_ID)) { in onAutoPinConfirmSettingChange()
124 mLockPatternUtils.setAutoPinConfirm(!newState, MY_USER_ID); in onAutoPinConfirmSettingChange()
/packages/apps/Settings/src/com/android/settings/security/
DOwnerInfoPreferenceController.java44 private final LockPatternUtils mLockPatternUtils; field in OwnerInfoPreferenceController
56 mLockPatternUtils = new LockPatternUtils(context); in OwnerInfoPreferenceController()
101 mOwnerInfoPref.setEnabled(!mLockPatternUtils.isLockScreenDisabled(MY_USER_ID)); in updateEnableState()
122 return mLockPatternUtils.isDeviceOwnerInfoEnabled(); in isDeviceOwnerInfoEnabled()
127 return mLockPatternUtils.getDeviceOwnerInfo(); in getDeviceOwnerInfo()
132 return mLockPatternUtils.isOwnerInfoEnabled(MY_USER_ID); in isOwnerInfoEnabled()
137 return mLockPatternUtils.getOwnerInfo(MY_USER_ID); in getOwnerInfo()
DScreenLockPreferenceDetailsUtils.java46 private final LockPatternUtils mLockPatternUtils; field in ScreenLockPreferenceDetailsUtils
53 mLockPatternUtils = FeatureFactory.getFeatureFactory() in ScreenLockPreferenceDetailsUtils()
88 return mLockPatternUtils.isSecure(mUserId); in isLockPatternSecure()
150 && !mLockPatternUtils.isSeparateProfileChallengeEnabled(mProfileChallengeUserId) in getQuietModeDialogIntent()
170 if (!mLockPatternUtils.isSecure(userId)) { in getSummaryResId()
172 || mLockPatternUtils.isLockScreenDisabled(userId)) { in getSummaryResId()
179 mLockPatternUtils.getKeyguardStoredPasswordQuality(userId); in getSummaryResId()
DVisiblePatternProfilePreferenceController.java48 private final LockPatternUtils mLockPatternUtils; field in VisiblePatternProfilePreferenceController
69 mLockPatternUtils = FeatureFactory.getFeatureFactory() in VisiblePatternProfilePreferenceController()
83 final boolean isSecure = mLockPatternUtils.isSecure(mProfileChallengeUserId); in getAvailabilityStatus()
84 final boolean hasPassword = mLockPatternUtils in getAvailabilityStatus()
103 return mLockPatternUtils.isVisiblePatternEnabled( in isChecked()
112 mLockPatternUtils.setVisiblePatternEnabled(isChecked, mProfileChallengeUserId); in setChecked()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DWalletPrivacyPreferenceControllerTest.java60 private LockPatternUtils mLockPatternUtils; field in WalletPrivacyPreferenceControllerTest
72 .thenReturn(mLockPatternUtils); in setUp()
73 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in setUp()
121 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getSummary_notSecureLock_lockscreen_privacy_not_secureString()
129 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getSummary_isSecure_lockscreen_privacy_showString()
146 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_noServiceAndIsSecure_returnsUnsupported()
155 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_hasServiceButNotSecure_returnsDisabled()
164 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_hasServiceAndIsSecure_returnsAvailable()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DConfirmLockLockoutHelper.java36 private final LockPatternUtils mLockPatternUtils; field in ConfirmLockLockoutHelper
54 mLockPatternUtils = lockPatternUtils; in ConfirmLockLockoutHelper()
64 return mLockPatternUtils; in getLockPatternUtils()
73 long deadline = mLockPatternUtils.setLockoutAttemptDeadline(mUserId, timeoutMs); in onCheckCompletedWithTimeout()
80 handleAttemptLockout(mLockPatternUtils.getLockoutAttemptDeadline(mUserId)); in onResumeUI()
107 return mLockPatternUtils.getLockoutAttemptDeadline(mUserId) != 0; in isLockedOut()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DManageTrustAgentsPreferenceControllerTest.java52 private LockPatternUtils mLockPatternUtils; field in ManageTrustAgentsPreferenceControllerTest
65 .thenReturn(mLockPatternUtils); in setUp()
86 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_isNotSecure_shouldDisablePreference()
97 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_isSecure_noTrustAgent_shouldShowGenericSummary()
98 when(mTrustAgentManager.getActiveTrustAgents(mContext, mLockPatternUtils, false)) in updateState_isSecure_noTrustAgent_shouldShowGenericSummary()
110 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_isSecure_hasTrustAgent_shouldShowDetailedSummary()
111 when(mTrustAgentManager.getActiveTrustAgents(mContext, mLockPatternUtils, false)) in updateState_isSecure_hasTrustAgent_shouldShowDetailedSummary()

1234