Home
last modified time | relevance | path

Searched refs:USER_FRP (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockscreenFrpTest.java23 import static com.android.internal.widget.LockPatternUtils.USER_FRP;
53 assertEquals(CREDENTIAL_TYPE_PIN, mService.getCredentialType(USER_FRP)); in testFrpCredential_setPin()
55 mService.verifyCredential(newPin("1234"), USER_FRP, 0 /* flags */) in testFrpCredential_setPin()
63 assertEquals(CREDENTIAL_TYPE_PATTERN, mService.getCredentialType(USER_FRP)); in testFrpCredential_setPattern()
65 mService.verifyCredential(newPattern("4321"), USER_FRP, 0 /* flags */) in testFrpCredential_setPattern()
73 assertEquals(CREDENTIAL_TYPE_PASSWORD, mService.getCredentialType(USER_FRP)); in testFrpCredential_setPassword()
75 mService.verifyCredential(newPassword("4321"), USER_FRP, 0 /* flags */) in testFrpCredential_setPassword()
84 assertEquals(CREDENTIAL_TYPE_PATTERN, mService.getCredentialType(USER_FRP)); in testFrpCredential_changeCredential()
86 mService.verifyCredential(newPattern("5678"), USER_FRP, 0 /* flags */) in testFrpCredential_changeCredential()
93 assertEquals(CREDENTIAL_TYPE_PASSWORD, mService.getCredentialType(USER_FRP)); in testFrpCredential_removeCredential()
[all …]
/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/
DLockPatternUtils.java143 public static final int USER_FRP = UserHandle.USER_NULL + 1; field in LockPatternUtils
349 if (userId == USER_FRP && frpCredentialEnabled(mContext)) { in reportFailedPasswordAttempt()
358 if (userId == USER_FRP && frpCredentialEnabled(mContext)) { in reportSuccessfulPasswordAttempt()
366 if (userId == USER_FRP && frpCredentialEnabled(mContext)) { in reportPasswordLockout()
373 if (userId == USER_FRP && frpCredentialEnabled(mContext)) { in getCurrentFailedPasswordAttempts()
380 if (userId == USER_FRP && frpCredentialEnabled(mContext)) { in getMaximumFailedPasswordsForWipe()
1054 if (userId == USER_FRP) { in setLockoutAttemptDeadline()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStorage.java23 import static com.android.internal.widget.LockPatternUtils.USER_FRP;
615 Preconditions.checkArgument(userId != USER_FRP, "cannot store lock settings for FRP user"); in setString()
640 if (userId == USER_FRP) { in getString()
DLockSettingsService.java38 import static com.android.internal.widget.LockPatternUtils.USER_FRP;
1253 if (userId == USER_FRP) { in getCredentialTypeInternal()
1548 if (userId == USER_FRP) { in sendCredentialsOnUnlockIfRequired()
2222 if (userId == USER_FRP && mInjector.settingsGlobalGetInt(mContext.getContentResolver(), in doVerifyCredential()
2239 if (userId == USER_FRP) { in doVerifyCredential()
2884 if (userId == USER_FRP) { in isSyntheticPasswordBasedCredentialLocked()
2913 if (userId == USER_FRP) { in spBasedDoVerifyCredential()