Home
last modified time | relevance | path

Searched refs:LockPatternUtils (Results 1 – 25 of 56) 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;
32 import com.android.internal.widget.LockPatternUtils;
66 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, authToken, PASSWORD_QUALITY_ALPHABETIC, in testPasswordBasedSyntheticPassword()
92 mService.setLockCredential(PASSWORD, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testPasswordMigration()
99 …mService.verifyCredential(PASSWORD, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID)… in testPasswordMigration()
105 …mService.verifyCredential(PASSWORD, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID)… in testPasswordMigration()
113 int type = password != null ? LockPatternUtils.CREDENTIAL_TYPE_PASSWORD in initializeCredentialUnderSP()
114 : LockPatternUtils.CREDENTIAL_TYPE_NONE; in initializeCredentialUnderSP()
[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;
32 import com.android.internal.widget.LockPatternUtils;
100 mService.setLockCredential(firstUnifiedPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in testManagedProfileUnifiedChallenge()
119 firstUnifiedPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testManagedProfileUnifiedChallenge()
135 mService.setLockCredential(secondUnifiedPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in testManagedProfileUnifiedChallenge()
142 mService.setLockCredential(null, LockPatternUtils.CREDENTIAL_TYPE_NONE, in testManagedProfileUnifiedChallenge()
152 mService.setLockCredential(primaryPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testManagedProfileSeparateChallenge()
159 mService.setLockCredential(profilePassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, in testManagedProfileSeparateChallenge()
[all …]
DLockSettingsStorageTests.java33 import com.android.internal.widget.LockPatternUtils;
205 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_NONE, mStorage.readCredentialHash(0).type); in testRemoveUser()
210 assertEquals(mStorage.readCredentialHash(0).type, LockPatternUtils.CREDENTIAL_TYPE_NONE); in testCredential_Default()
236 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in testLockType_WriteProfileWritesParent()
238 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in testLockType_WriteProfileWritesParent()
241 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in testLockType_WriteProfileWritesParent()
243 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in testLockType_WriteProfileWritesParent()
394 PAYLOAD, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD).toBytes(); in testCredentialHash_serializeUnserialize()
398 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, deserialized.type); in testCredentialHash_serializeUnserialize()
415 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, deserialized.type); in testCredentialHash_unserialize_versionGatekeeper()
[all …]
DLockSettingsServiceTestable.java31 import com.android.internal.widget.LockPatternUtils;
42 private LockPatternUtils mLockPatternUtils;
47 IActivityManager activityManager, LockPatternUtils lockPatternUtils, in MockInjector()
84 public LockPatternUtils getLockPatternUtils() { in getLockPatternUtils()
109 protected LockSettingsServiceTestable(Context context, LockPatternUtils lockPatternUtils, in LockSettingsServiceTestable()
DLockSettingsShellCommandTest.java22 import static com.android.internal.widget.LockPatternUtils.stringToPattern;
47 import com.android.internal.widget.LockPatternUtils;
71 private @Mock LockPatternUtils mLockPatternUtils;
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DLockPatternUtilsTest.java35 assertTrue(LockPatternUtils.USER_FRP < 0); in testUserFrp_isNotRegularUser()
40 assertNotEquals(UserHandle.USER_NULL, LockPatternUtils.USER_FRP);
41 assertNotEquals(UserHandle.USER_ALL, LockPatternUtils.USER_FRP);
42 assertNotEquals(UserHandle.USER_CURRENT, LockPatternUtils.USER_FRP);
43 assertNotEquals(UserHandle.USER_CURRENT_OR_SELF, LockPatternUtils.USER_FRP);
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java24 import static com.android.internal.widget.LockPatternUtils.StrongAuthTracker.STRONG_AUTH_REQUIRED_A…
25 import static com.android.internal.widget.LockPatternUtils.SYNTHETIC_PASSWORD_ENABLED_KEY;
26 import static com.android.internal.widget.LockPatternUtils.SYNTHETIC_PASSWORD_HANDLE_KEY;
27 import static com.android.internal.widget.LockPatternUtils.USER_FRP;
28 import static com.android.internal.widget.LockPatternUtils.frpCredentialEnabled;
29 import static com.android.internal.widget.LockPatternUtils.userOwnsFrpCredential;
94 import com.android.internal.widget.LockPatternUtils;
164 private final LockPatternUtils mLockPatternUtils;
225 extends LockPatternUtils.StrongAuthTracker {
293 setLockCredentialInternal(newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in tieManagedProfileLockIfNecessary()
[all …]
DLockSettingsShellCommand.java21 import static com.android.internal.widget.LockPatternUtils.stringToPattern;
28 import com.android.internal.widget.LockPatternUtils;
29 import com.android.internal.widget.LockPatternUtils.RequestThrottledException;
43 private final LockPatternUtils mLockPatternUtils;
48 LockSettingsShellCommand(Context context, LockPatternUtils lockPatternUtils) { in LockSettingsShellCommand()
DLockSettingsStrongAuth.java19 import static com.android.internal.widget.LockPatternUtils.StrongAuthTracker.STRONG_AUTH_NOT_REQUIR…
20 import static com.android.internal.widget.LockPatternUtils.StrongAuthTracker.STRONG_AUTH_REQUIRED_A…
22 import com.android.internal.widget.LockPatternUtils;
23 import com.android.internal.widget.LockPatternUtils.StrongAuthTracker;
DLockSettingsStorage.java40 import com.android.internal.widget.LockPatternUtils;
104 if (type != LockPatternUtils.CREDENTIAL_TYPE_NONE) { in CredentialHash()
120 return new CredentialHash(hash, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in createBaseZeroPattern()
125 if (type == LockPatternUtils.CREDENTIAL_TYPE_NONE) { in create()
132 return new CredentialHash(null, LockPatternUtils.CREDENTIAL_TYPE_NONE, in createEmptyHash()
268 return new CredentialHash(stored, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in readPasswordHashIfExists()
274 return new CredentialHash(stored, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, in readPasswordHashIfExists()
283 return new CredentialHash(stored, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in readPatternHashIfExists()
294 return new CredentialHash(stored, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in readPatternHashIfExists()
437 if (hash.type == LockPatternUtils.CREDENTIAL_TYPE_PASSWORD) { in writeCredentialHash()
[all …]
DSyntheticPasswordManager.java41 import com.android.internal.widget.LockPatternUtils;
405 return LockPatternUtils.CREDENTIAL_TYPE_NONE; in getCredentialType()
577 if (credential == null || credentialType == LockPatternUtils.CREDENTIAL_TYPE_NONE) { in createPasswordBasedSyntheticPassword()
578 credentialType = LockPatternUtils.CREDENTIAL_TYPE_NONE; in createPasswordBasedSyntheticPassword()
653 && LockPatternUtils.userOwnsFrpCredential(mContext, userInfo)) { in migrateFrpPasswordLocked()
656 if (pwd.passwordType != LockPatternUtils.CREDENTIAL_TYPE_NONE) { in migrateFrpPasswordLocked()
670 && LockPatternUtils.userOwnsFrpCredential(mContext, in synchronizeFrpPassword()
672 if (pwd.passwordType != LockPatternUtils.CREDENTIAL_TYPE_NONE) { in synchronizeFrpPassword()
684 && LockPatternUtils.userOwnsFrpCredential(mContext, in synchronizeWeaverFrpPassword()
686 if (pwd.passwordType != LockPatternUtils.CREDENTIAL_TYPE_NONE) { in synchronizeWeaverFrpPassword()
[all …]
/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.java18 import com.android.internal.widget.LockPatternUtils;
61 void setLockPatternUtils(LockPatternUtils utils); in setLockPatternUtils()
DKeyguardAbsKeyInputView.java33 import com.android.internal.widget.LockPatternUtils;
41 protected LockPatternUtils mLockPatternUtils;
67 public void setLockPatternUtils(LockPatternUtils utils) { in setLockPatternUtils()
97 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
DKeyguardHostView.java34 import com.android.internal.widget.LockPatternUtils;
61 protected LockPatternUtils mLockPatternUtils;
147 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
431 public void setLockPatternUtils(LockPatternUtils utils) { in setLockPatternUtils()
DEmergencyButton.java39 import com.android.internal.widget.LockPatternUtils;
79 private LockPatternUtils mLockPatternUtils;
114 mLockPatternUtils = new LockPatternUtils(mContext); in onFinishInflate()
DKeyguardPatternView.java37 import com.android.internal.widget.LockPatternUtils;
70 private LockPatternUtils mLockPatternUtils;
133 public void setLockPatternUtils(LockPatternUtils utils) { in setLockPatternUtils()
141 ? new LockPatternUtils(mContext) : mLockPatternUtils; in onFinishInflate()
242 if (pattern.size() < LockPatternUtils.MIN_PATTERN_REGISTER_FAIL) { in onPatternDetected()
DKeyguardSecurityContainer.java34 import com.android.internal.widget.LockPatternUtils;
46 private LockPatternUtils mLockPatternUtils;
81 mLockPatternUtils = new LockPatternUtils(context); in KeyguardSecurityContainer()
170 public void setLockPatternUtils(LockPatternUtils utils) { in setLockPatternUtils()
270 if (remainingBeforeWipe < LockPatternUtils.FAILED_ATTEMPTS_BEFORE_WIPE_GRACE) { in reportFailedUnlockAttempt()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternChecker.java5 import com.android.internal.widget.LockPatternUtils.RequestThrottledException;
63 public static AsyncTask<?, ?, ?> verifyPattern(final LockPatternUtils utils, in verifyPattern()
106 public static AsyncTask<?, ?, ?> checkPattern(final LockPatternUtils utils, in checkPattern()
154 public static AsyncTask<?, ?, ?> verifyPassword(final LockPatternUtils utils, in verifyPassword()
190 public static AsyncTask<?, ?, ?> verifyTiedProfileChallenge(final LockPatternUtils utils, in verifyTiedProfileChallenge()
226 public static AsyncTask<?, ?, ?> checkPassword(final LockPatternUtils utils, in checkPassword()
/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/SystemUI/src/com/android/systemui/statusbar/phone/
DUnlockMethodCache.java22 import com.android.internal.widget.LockPatternUtils;
37 private final LockPatternUtils mLockPatternUtils;
49 mLockPatternUtils = new LockPatternUtils(ctx); in UnlockMethodCache()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLockPatternUtilsTest.java39 import com.android.internal.widget.LockPatternUtils;
51 private LockPatternUtils mLockPatternUtils;
67 mLockPatternUtils = spy(new LockPatternUtils(context)); in configureTest()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DKeyguardBouncerTest.java29 import com.android.internal.widget.LockPatternUtils;
47 mock(ViewMediatorCallback.class), mock(LockPatternUtils.class), container, mock( in inflateDetached()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIFactory.java25 import com.android.internal.widget.LockPatternUtils;
76 ViewMediatorCallback viewMediatorCallback, LockPatternUtils lockPatternUtils) { in createStatusBarKeyguardViewManager()
81 LockPatternUtils lockPatternUtils, in createKeyguardBouncer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPreviewInflater.java30 import com.android.internal.widget.LockPatternUtils;
46 private LockPatternUtils mLockPatternUtils;
48 public PreviewInflater(Context context, LockPatternUtils lockPatternUtils) { in PreviewInflater()

123