Home
last modified time | relevance | path

Searched refs:LockPatternUtils (Results 1 – 25 of 72) 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;
40 import com.android.internal.widget.LockPatternUtils;
80 password, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, authToken, in testPasswordBasedSyntheticPassword()
109 mService.setLockCredential(password, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testPasswordMigration()
116 password, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testPasswordMigration()
123 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testPasswordMigration()
133 int type = password != null ? LockPatternUtils.CREDENTIAL_TYPE_PASSWORD in initializeCredentialUnderSP()
134 : LockPatternUtils.CREDENTIAL_TYPE_NONE; in initializeCredentialUnderSP()
[all …]
DCachedSyntheticPasswordTests.java33 import com.android.internal.widget.LockPatternUtils;
68 mService.setLockCredential(null, LockPatternUtils.CREDENTIAL_TYPE_NONE, null, in testSyntheticPasswordClearCredentialUntrusted()
73 mService.setLockCredential(newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testSyntheticPasswordClearCredentialUntrusted()
76 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testSyntheticPasswordClearCredentialUntrusted()
88 mService.setLockCredential(newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testSyntheticPasswordChangeCredentialUntrusted()
95 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID).getResponseCode()); in testSyntheticPasswordChangeCredentialUntrusted()
106 mService.setLockCredential(newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testUntrustedCredentialChangeMaintainsAuthSecret()
111 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testUntrustedCredentialChangeMaintainsAuthSecret()
136 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testUntrustedCredentialChangeBlockedIfSpNotCached()
142 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;
41 import com.android.internal.widget.LockPatternUtils;
122 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in testManagedProfileUnifiedChallenge()
141 firstUnifiedPassword.getBytes(), LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, in testManagedProfileUnifiedChallenge()
158 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, firstUnifiedPassword.getBytes(), in testManagedProfileUnifiedChallenge()
165 mService.setLockCredential(null, LockPatternUtils.CREDENTIAL_TYPE_NONE, in testManagedProfileUnifiedChallenge()
177 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testManagedProfileSeparateChallenge()
185 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testManagedProfileSeparateChallenge()
[all …]
DLockSettingsStorageTests.java41 import com.android.internal.widget.LockPatternUtils;
211 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_NONE, mStorage.readCredentialHash(0).type); in testRemoveUser()
216 assertEquals(mStorage.readCredentialHash(0).type, LockPatternUtils.CREDENTIAL_TYPE_NONE); in testCredential_Default()
242 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in testLockType_WriteProfileWritesParent()
244 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in testLockType_WriteProfileWritesParent()
247 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in testLockType_WriteProfileWritesParent()
249 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in testLockType_WriteProfileWritesParent()
440 PAYLOAD, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD).toBytes(); in testCredentialHash_serializeUnserialize()
444 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, deserialized.type); in testCredentialHash_serializeUnserialize()
461 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;
45 protected LockPatternUtils mLockPatternUtils;
72 public void setLockPatternUtils(LockPatternUtils utils) { in setLockPatternUtils()
102 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
DEmergencyButton.java40 import com.android.internal.widget.LockPatternUtils;
82 private LockPatternUtils mLockPatternUtils;
117 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
DKeyguardHostView.java34 import com.android.internal.widget.LockPatternUtils;
56 protected LockPatternUtils mLockPatternUtils;
146 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
440 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_ENABLED_KEY;
29 import static com.android.internal.widget.LockPatternUtils.SYNTHETIC_PASSWORD_HANDLE_KEY;
30 import static com.android.internal.widget.LockPatternUtils.StrongAuthTracker.STRONG_AUTH_REQUIRED_A…
31 import static com.android.internal.widget.LockPatternUtils.USER_FRP;
32 import static com.android.internal.widget.LockPatternUtils.frpCredentialEnabled;
33 import static com.android.internal.widget.LockPatternUtils.userOwnsFrpCredential;
[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;
106 if (type != LockPatternUtils.CREDENTIAL_TYPE_NONE) { in CredentialHash()
122 return new CredentialHash(hash, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in createBaseZeroPattern()
127 if (type == LockPatternUtils.CREDENTIAL_TYPE_NONE) { in create()
134 return new CredentialHash(null, LockPatternUtils.CREDENTIAL_TYPE_NONE, in createEmptyHash()
270 return new CredentialHash(stored, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in readPasswordHashIfExists()
276 return new CredentialHash(stored, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in readPasswordHashIfExists()
285 return new CredentialHash(stored, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in readPatternHashIfExists()
296 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.java28 import com.android.internal.widget.LockPatternUtils;
53 private final LockPatternUtils mLockPatternUtils;
59 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()
/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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUnlockMethodCache.java31 import com.android.internal.widget.LockPatternUtils;
48 private final LockPatternUtils mLockPatternUtils;
60 mLockPatternUtils = new LockPatternUtils(ctx); in UnlockMethodCache()
/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/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()
DTestOnlyInsecureCertificateHelper.java29 import com.android.internal.widget.LockPatternUtils;
100 if (credentialType != LockPatternUtils.CREDENTIAL_TYPE_PASSWORD) { in doesCredentialSupportInsecureMode()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/
DCarSystemUIFactory.java21 import com.android.internal.widget.LockPatternUtils;
59 ViewMediatorCallback viewMediatorCallback, LockPatternUtils lockPatternUtils) { in createStatusBarKeyguardViewManager()

123