Home
last modified time | relevance | path

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

123456789

/aosp_15_r20/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DLockSettingsShellCommandTest.java84 private @Mock LockPatternUtils mLockPatternUtils; field in LockSettingsShellCommandTest
96 mCommand = new LockSettingsShellCommand(mLockPatternUtils, context, 0, in setUp()
98 when(mLockPatternUtils.hasSecureLockScreen()).thenReturn(true); in setUp()
103 when(mLockPatternUtils.isSecure(mUserId)).thenReturn(true); in testWrongPassword()
104 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testWrongPassword()
105 when(mLockPatternUtils.isLockPasswordEnabled(mUserId)).thenReturn(true); in testWrongPassword()
106 when(mLockPatternUtils.checkCredential( in testWrongPassword()
111 verify(mLockPatternUtils, never()).setLockCredential(any(), any(), anyInt()); in testWrongPassword()
116 when(mLockPatternUtils.isSecure(mUserId)).thenReturn(true); in testChangePin()
117 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testChangePin()
[all …]
/aosp_15_r20/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()
/aosp_15_r20/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 …]
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/locksettings/
H A DLockSettingsShellCommand.java55 private final LockPatternUtils mLockPatternUtils; field in LockSettingsShellCommand
65 mLockPatternUtils = lockPatternUtils; in LockSettingsShellCommand()
80 if (!mLockPatternUtils.hasSecureLockScreen()) { in onCommand()
223 if (mLockPatternUtils.isLockPasswordEnabled(mCurrentUserId)) { in getOldCredential()
224 final int quality = mLockPatternUtils.getKeyguardStoredPasswordQuality(mCurrentUserId); in getOldCredential()
231 if (mLockPatternUtils.isLockPatternEnabled(mCurrentUserId)) { in getOldCredential()
247 mLockPatternUtils.setLockCredential(pattern, getOldCredential(), mCurrentUserId); in runSetPattern()
257 mLockPatternUtils.setLockCredential(password, getOldCredential(), mCurrentUserId); in runSetPassword()
267 mLockPatternUtils.setLockCredential(pin, getOldCredential(), mCurrentUserId); in runSetPin()
295 mLockPatternUtils.requireStrongAuth(strongAuthReason, mCurrentUserId); in runRequireStrongAuth()
[all …]
/aosp_15_r20/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 …]
/aosp_15_r20/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A DLockPatternUtilsTest.java84 private LockPatternUtils mLockPatternUtils; field in LockPatternUtilsTest
102 mLockPatternUtils = new LockPatternUtils(context, mLockSettings); in configureTest()
119 assertFalse(mLockPatternUtils.isUserInLockdown(USER_ID)); in isUserInLockDown()
126 assertTrue(mLockPatternUtils.isUserInLockdown(USER_ID)); in isUserInLockDown()
133 assertTrue(mLockPatternUtils.isUserInLockdown(USER_ID)); in isUserInLockDown()
139 assertTrue(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isDemoUser_true()
145 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isSecureAndDemoUser_false()
151 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isNotDemoUser_false()
157 assertFalse(mLockPatternUtils.isLockScreenDisabled(DEMO_USER_ID)); in isLockScreenDisabled_isNotInDemoMode_false()
166 mLockPatternUtils.addWeakEscrowToken(testToken, testUserId, listener); in testAddWeakEscrowToken()
[all …]
/aosp_15_r20/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 …]
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 …]
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 …]
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()
/aosp_15_r20/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()
/aosp_15_r20/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 …]
/aosp_15_r20/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 …]
/aosp_15_r20/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()
/aosp_15_r20/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()
/aosp_15_r20/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()
/aosp_15_r20/packages/apps/Car/SystemUI/multivalentTests/src/com/android/systemui/car/keyguard/passenger/
DPassengerKeyguardLockoutHelperTest.java54 private LockPatternUtils mLockPatternUtils; field in PassengerKeyguardLockoutHelperTest
62 mLockoutHelper = new PassengerKeyguardLockoutHelper(mContext, mLockPatternUtils, in setUp()
69 when(mLockPatternUtils.getLockoutAttemptDeadline(TEST_USER_ID)).thenReturn(1L); in onUIShown_lockedOut_notifiesLockState()
78 when(mLockPatternUtils.getLockoutAttemptDeadline(TEST_USER_ID)).thenReturn(0L); in onUIShown_notLockedOut_notifiesLockState()
88 when(mLockPatternUtils.getLockoutAttemptDeadline(TEST_USER_ID)) in onCheckCompletedWithTimeout_setsTimeout()
93 verify(mLockPatternUtils).setLockoutAttemptDeadline(TEST_USER_ID, TEST_TIMEOUT_LENGTH_MS); in onCheckCompletedWithTimeout_setsTimeout()
100 when(mLockPatternUtils.getLockoutAttemptDeadline(TEST_USER_ID)) in onCountdown_setsErrorMessage()
/aosp_15_r20/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()
/aosp_15_r20/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()
/aosp_15_r20/frameworks/base/core/java/android/app/
H A DKeyguardManager.java87 private final LockPatternUtils mLockPatternUtils; field in KeyguardManager
636 mLockPatternUtils = new LockPatternUtils(context); in KeyguardManager()
997 mLockPatternUtils.getRequestedPasswordMetrics(mContext.getUserId()); in isValidLockPasswordComplexity()
1021 mLockPatternUtils.getRequestedPasswordMetrics(mContext.getUserId()); in getMinLockLength()
1059 success = mLockPatternUtils.setLockCredential( in setLock()
1111 return mLockPatternUtils.addWeakEscrowToken(token, userId, internalListener); in addWeakEscrowToken()
1126 return mLockPatternUtils.removeWeakEscrowToken(handle, user.getIdentifier()); in removeWeakEscrowToken()
1138 return mLockPatternUtils.isWeakEscrowTokenActive(handle, user.getIdentifier()); in isWeakEscrowTokenActive()
1152 return mLockPatternUtils.isWeakEscrowTokenValid(handle, token, user.getIdentifier()); in isWeakEscrowTokenValid()
1184 if (mLockPatternUtils.registerWeakEscrowTokenRemovedListener(internalListener)) { in registerWeakEscrowTokenRemovedListener()
[all …]
/aosp_15_r20/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DChooseLockGenericControllerTest.java73 private LockPatternUtils mLockPatternUtils; field in ChooseLockGenericControllerTest
79 when(mLockPatternUtils.hasSecureLockScreen()).thenReturn(true); in setUp()
205 when(mLockPatternUtils.getRequestedPasswordComplexity(anyInt(), anyBoolean())) in isScreenLockEnabled_NoneComplexity()
216 when(mLockPatternUtils.getRequestedPasswordComplexity(anyInt(), anyBoolean())) in isScreenLockEnabled_lowComplexity()
227 when(mLockPatternUtils.getRequestedPasswordComplexity(anyInt(), anyBoolean())) in isScreenLockEnabled_mediumComplexity()
238 when(mLockPatternUtils.getRequestedPasswordComplexity(anyInt(), anyBoolean())) in isScreenLockEnabled_highComplexity()
339 when(mLockPatternUtils.getRequestedPasswordComplexity(eq(UserHandle.myUserId()), eq(false))) in getAggregatedPasswordComplexity_DevicePolicy()
352 when(mLockPatternUtils.getRequestedPasswordComplexity(eq(UserHandle.myUserId()), eq(false))) in getAggregatedPasswordComplexity_ProfileUnification()
354 when(mLockPatternUtils.getRequestedPasswordComplexity(eq(123))) in getAggregatedPasswordComplexity_ProfileUnification()
365 when(mLockPatternUtils.getRequestedPasswordMetrics(anyInt(), anyBoolean())) in setDevicePolicyPasswordQuality()
[all …]

123456789