Home
last modified time | relevance | path

Searched refs:LockPatternUtils (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DSyntheticPasswordTests.java23 import static com.android.internal.widget.LockPatternUtils.CREDENTIAL_TYPE_PASSWORD;
24 import static com.android.internal.widget.LockPatternUtils.SYNTHETIC_PASSWORD_ENABLED_KEY;
25 import static com.android.internal.widget.LockPatternUtils.SYNTHETIC_PASSWORD_HANDLE_KEY;
47 import com.android.internal.widget.LockPatternUtils;
81 password, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, authToken, in testPasswordBasedSyntheticPassword()
110 int type = password != null ? LockPatternUtils.CREDENTIAL_TYPE_PASSWORD in initializeCredentialUnderSP()
111 : LockPatternUtils.CREDENTIAL_TYPE_NONE; in initializeCredentialUnderSP()
122 mService.setLockCredential(newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, password, in testSyntheticPasswordChangeCredential()
125 newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testSyntheticPasswordChangeCredential()
137 password, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testSyntheticPasswordVerifyCredential()
[all …]
DCachedSyntheticPasswordTests.java35 import com.android.internal.widget.LockPatternUtils;
74 mService.setLockCredential(null, LockPatternUtils.CREDENTIAL_TYPE_NONE, null, in testSyntheticPasswordClearCredentialUntrusted()
79 mService.setLockCredential(newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testSyntheticPasswordClearCredentialUntrusted()
82 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testSyntheticPasswordClearCredentialUntrusted()
95 mService.setLockCredential(newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testSyntheticPasswordChangeCredentialUntrusted()
102 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID).getResponseCode()); in testSyntheticPasswordChangeCredentialUntrusted()
114 mService.setLockCredential(newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testUntrustedCredentialChangeMaintainsAuthSecret()
119 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testUntrustedCredentialChangeMaintainsAuthSecret()
145 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testUntrustedCredentialChangeBlockedIfSpNotCached()
151 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testUntrustedCredentialChangeBlockedIfSpNotCached()
[all …]
DLockSettingsServiceTests.java24 import static com.android.internal.widget.LockPatternUtils.CREDENTIAL_TYPE_NONE;
25 import static com.android.internal.widget.LockPatternUtils.CREDENTIAL_TYPE_PASSWORD;
26 import static com.android.internal.widget.LockPatternUtils.CREDENTIAL_TYPE_PATTERN;
48 import com.android.internal.widget.LockPatternUtils;
131 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in testManagedProfileUnifiedChallenge()
150 firstUnifiedPassword.getBytes(), LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, in testManagedProfileUnifiedChallenge()
167 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, firstUnifiedPassword.getBytes(), in testManagedProfileUnifiedChallenge()
174 mService.setLockCredential(null, LockPatternUtils.CREDENTIAL_TYPE_NONE, in testManagedProfileUnifiedChallenge()
187 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testManagedProfileSeparateChallenge()
195 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testManagedProfileSeparateChallenge()
[all …]
DLockSettingsStorageTests.java48 import com.android.internal.widget.LockPatternUtils;
229 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_NONE, mStorage.readCredentialHash(0).type); in testRemoveUser()
235 assertEquals(mStorage.readCredentialHash(0).type, LockPatternUtils.CREDENTIAL_TYPE_NONE); in testCredential_Default()
264 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in testLockType_WriteProfileWritesParent()
266 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in testLockType_WriteProfileWritesParent()
269 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in testLockType_WriteProfileWritesParent()
271 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in testLockType_WriteProfileWritesParent()
483 PAYLOAD, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD).toBytes(); in testCredentialHash_serializeUnserialize()
487 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, deserialized.type); in testCredentialHash_serializeUnserialize()
505 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, deserialized.type); in testCredentialHash_unserialize_versionGatekeeper()
[all …]
DLockSettingsServiceTestable.java32 import com.android.internal.widget.LockPatternUtils;
44 private LockPatternUtils mLockPatternUtils;
52 IActivityManager activityManager, LockPatternUtils lockPatternUtils, in MockInjector()
93 public LockPatternUtils getLockPatternUtils() { in getLockPatternUtils()
133 protected LockSettingsServiceTestable(Context context, LockPatternUtils lockPatternUtils, in LockSettingsServiceTestable()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DLockPatternUtilsTest.java36 assertTrue(LockPatternUtils.USER_FRP < 0); in testUserFrp_isNotRegularUser()
41 assertNotEquals(UserHandle.USER_NULL, LockPatternUtils.USER_FRP);
42 assertNotEquals(UserHandle.USER_ALL, LockPatternUtils.USER_FRP);
43 assertNotEquals(UserHandle.USER_CURRENT, LockPatternUtils.USER_FRP);
44 assertNotEquals(UserHandle.USER_CURRENT_OR_SELF, LockPatternUtils.USER_FRP);
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternChecker.java6 import com.android.internal.widget.LockPatternUtils.RequestThrottledException;
64 public static AsyncTask<?, ?, ?> verifyPattern(final LockPatternUtils utils, in verifyPattern()
107 public static AsyncTask<?, ?, ?> checkPattern(final LockPatternUtils utils, in checkPattern()
158 public static AsyncTask<?, ?, ?> verifyPassword(final LockPatternUtils utils, in verifyPassword()
176 public static AsyncTask<?, ?, ?> verifyPassword(final LockPatternUtils utils, in verifyPassword()
212 public static AsyncTask<?, ?, ?> verifyTiedProfileChallenge(final LockPatternUtils utils, in verifyTiedProfileChallenge()
251 public static AsyncTask<?, ?, ?> checkPassword(final LockPatternUtils utils, in checkPassword()
267 public static AsyncTask<?, ?, ?> checkPassword(final LockPatternUtils utils, in checkPassword()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityModel.java23 import com.android.internal.widget.LockPatternUtils;
44 private LockPatternUtils mLockPatternUtils;
48 mLockPatternUtils = new LockPatternUtils(context); in KeyguardSecurityModel()
53 void setLockPatternUtils(LockPatternUtils utils) { in setLockPatternUtils()
DKeyguardSecurityView.java21 import com.android.internal.widget.LockPatternUtils;
64 void setLockPatternUtils(LockPatternUtils utils); in setLockPatternUtils()
DKeyguardAbsKeyInputView.java35 import com.android.internal.widget.LockPatternUtils;
46 protected LockPatternUtils mLockPatternUtils;
73 public void setLockPatternUtils(LockPatternUtils utils) { in setLockPatternUtils()
103 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
DEmergencyButton.java41 import com.android.internal.widget.LockPatternUtils;
83 private LockPatternUtils mLockPatternUtils;
121 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
DKeyguardHostView.java34 import com.android.internal.widget.LockPatternUtils;
57 protected LockPatternUtils mLockPatternUtils;
147 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
441 public void setLockPatternUtils(LockPatternUtils utils) { in setLockPatternUtils()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DTestOnlyInsecureCertificateHelperTest.java11 import com.android.internal.widget.LockPatternUtils;
30 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, "secret12345".getBytes())).isFalse(); in testDoesCredentailSupportInsecureMode_forNonWhitelistedPassword()
32 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, "1234".getBytes())).isFalse(); in testDoesCredentailSupportInsecureMode_forNonWhitelistedPassword()
38 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in testDoesCredentailSupportInsecureMode_forWhitelistedPassword()
42 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in testDoesCredentailSupportInsecureMode_forWhitelistedPassword()
49 LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in testDoesCredentailSupportInsecureMode_Pattern()
52 LockPatternUtils.CREDENTIAL_TYPE_NONE, in testDoesCredentailSupportInsecureMode_Pattern()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java24 import static com.android.internal.widget.LockPatternUtils.CREDENTIAL_TYPE_NONE;
25 import static com.android.internal.widget.LockPatternUtils.CREDENTIAL_TYPE_PASSWORD;
26 import static com.android.internal.widget.LockPatternUtils.CREDENTIAL_TYPE_PATTERN;
27 import static com.android.internal.widget.LockPatternUtils.EscrowTokenStateChangeCallback;
28 import static com.android.internal.widget.LockPatternUtils.SYNTHETIC_PASSWORD_HANDLE_KEY;
29 import static com.android.internal.widget.LockPatternUtils.StrongAuthTracker.STRONG_AUTH_REQUIRED_A…
30 import static com.android.internal.widget.LockPatternUtils.USER_FRP;
31 import static com.android.internal.widget.LockPatternUtils.frpCredentialEnabled;
32 import static com.android.internal.widget.LockPatternUtils.userOwnsFrpCredential;
111 import com.android.internal.widget.LockPatternUtils;
[all …]
DLockSettingsShellCommand.java22 import static com.android.internal.widget.LockPatternUtils.stringToPattern;
27 import com.android.internal.widget.LockPatternUtils;
28 import com.android.internal.widget.LockPatternUtils.RequestThrottledException;
45 private final LockPatternUtils mLockPatternUtils;
49 LockSettingsShellCommand(LockPatternUtils lockPatternUtils) { in LockSettingsShellCommand()
DLockSettingsStorage.java39 import com.android.internal.widget.LockPatternUtils;
40 import com.android.internal.widget.LockPatternUtils.CredentialType;
108 if (type != LockPatternUtils.CREDENTIAL_TYPE_NONE) { in CredentialHash()
124 return new CredentialHash(hash, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in createBaseZeroPattern()
129 if (type == LockPatternUtils.CREDENTIAL_TYPE_NONE) { in create()
136 return new CredentialHash(null, LockPatternUtils.CREDENTIAL_TYPE_NONE, in createEmptyHash()
272 return new CredentialHash(stored, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in readPasswordHashIfExists()
278 return new CredentialHash(stored, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in readPasswordHashIfExists()
287 return new CredentialHash(stored, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in readPatternHashIfExists()
298 return new CredentialHash(stored, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in readPatternHashIfExists()
[all …]
DLockSettingsStrongAuth.java19 import static com.android.internal.widget.LockPatternUtils.StrongAuthTracker
21 import static com.android.internal.widget.LockPatternUtils.StrongAuthTracker
39 import com.android.internal.widget.LockPatternUtils.StrongAuthTracker;
/frameworks/base/services/core/java/com/android/server/policy/keyguard/
DKeyguardStateMonitor.java26 import com.android.internal.widget.LockPatternUtils;
51 private final LockPatternUtils mLockPatternUtils;
55 mLockPatternUtils = new LockPatternUtils(context); in KeyguardStateMonitor()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DCarStatusBarKeyguardViewManager.java22 import com.android.internal.widget.LockPatternUtils;
33 LockPatternUtils lockPatternUtils) { in CarStatusBarKeyguardViewManager()
DFullscreenUserSwitcher.java37 import com.android.internal.widget.LockPatternUtils;
204 LockPatternUtils lockPatternUtils = new LockPatternUtils(mContext); in hasScreenLock()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLockPatternUtilsTest.java41 import com.android.internal.widget.LockPatternUtils;
53 private LockPatternUtils mLockPatternUtils;
69 mLockPatternUtils = spy(new LockPatternUtils(context)); in configureTest()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncTask.java34 import com.android.internal.widget.LockPatternUtils;
167 if (mCredentialType == LockPatternUtils.CREDENTIAL_TYPE_NONE) { in syncKeys()
194 return mCredentialType != LockPatternUtils.CREDENTIAL_TYPE_NONE in isCustomLockScreen()
195 && mCredentialType != LockPatternUtils.CREDENTIAL_TYPE_PATTERN in isCustomLockScreen()
196 && mCredentialType != LockPatternUtils.CREDENTIAL_TYPE_PASSWORD; in isCustomLockScreen()
454 if (credentialType == LockPatternUtils.CREDENTIAL_TYPE_PATTERN) { in getUiFormat()
544 return mCredentialType == LockPatternUtils.CREDENTIAL_TYPE_PASSWORD; in shouldUseScryptToHashCredential()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPreviewInflater.java29 import com.android.internal.widget.LockPatternUtils;
47 private LockPatternUtils mLockPatternUtils;
49 public PreviewInflater(Context context, LockPatternUtils lockPatternUtils, in PreviewInflater()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUnlockMethodCache.java27 import com.android.internal.widget.LockPatternUtils;
45 private final LockPatternUtils mLockPatternUtils;
58 mLockPatternUtils = new LockPatternUtils(ctx); in UnlockMethodCache()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/
DCarSystemUIFactory.java21 import com.android.internal.widget.LockPatternUtils;
66 ViewMediatorCallback viewMediatorCallback, LockPatternUtils lockPatternUtils) { in createStatusBarKeyguardViewManager()

123