Home
last modified time | relevance | path

Searched refs:PRIMARY_USER_ID (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DSyntheticPasswordTests.java120 initializeCredentialUnderSP(password, PRIMARY_USER_ID); in testSyntheticPasswordChangeCredential()
121 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredential()
123 PASSWORD_QUALITY_ALPHABETIC, PRIMARY_USER_ID, false); in testSyntheticPasswordChangeCredential()
125 newPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testSyntheticPasswordChangeCredential()
127 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordChangeCredential()
135 initializeCredentialUnderSP(password, PRIMARY_USER_ID); in testSyntheticPasswordVerifyCredential()
137 password, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testSyntheticPasswordVerifyCredential()
141 badPassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testSyntheticPasswordVerifyCredential()
150 initializeCredentialUnderSP(password, PRIMARY_USER_ID); in testSyntheticPasswordClearCredential()
151 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordClearCredential()
[all …]
DCachedSyntheticPasswordTests.java71 initializeCredentialUnderSP(password, PRIMARY_USER_ID); in testSyntheticPasswordClearCredentialUntrusted()
72 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordClearCredentialUntrusted()
75 PASSWORD_QUALITY_UNSPECIFIED, PRIMARY_USER_ID, true); in testSyntheticPasswordClearCredentialUntrusted()
76 assertEquals(0, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredentialUntrusted()
80 PASSWORD_QUALITY_ALPHABETIC, PRIMARY_USER_ID, false); in testSyntheticPasswordClearCredentialUntrusted()
82 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testSyntheticPasswordClearCredentialUntrusted()
84 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredentialUntrusted()
92 initializeCredentialUnderSP(password, PRIMARY_USER_ID); in testSyntheticPasswordChangeCredentialUntrusted()
93 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredentialUntrusted()
96 PASSWORD_QUALITY_ALPHABETIC, PRIMARY_USER_ID, true); in testSyntheticPasswordChangeCredentialUntrusted()
[all …]
DLockSettingsServiceTests.java65 testCreateCredential(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, in testCreatePasswordPrimaryUser()
71 testCreateCredentialFailsWithoutLockScreen(PRIMARY_USER_ID, "password", in testCreatePasswordFailsWithoutLockScreen()
77 testCreateCredential(PRIMARY_USER_ID, "123456789", CREDENTIAL_TYPE_PATTERN, in testCreatePatternPrimaryUser()
83 testCreateCredentialFailsWithoutLockScreen(PRIMARY_USER_ID, "123456789", in testCreatePatternFailsWithoutLockScreen()
89 testChangeCredentials(PRIMARY_USER_ID, "78963214", CREDENTIAL_TYPE_PATTERN, in testChangePasswordPrimaryUser()
95 testChangeCredentials(PRIMARY_USER_ID, "!£$%^&*(())", CREDENTIAL_TYPE_PASSWORD, in testChangePatternPrimaryUser()
103 initializeStorageWithCredential(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, sid); in testChangePasswordFailPrimaryUser()
107 "badpwd".getBytes(), PASSWORD_QUALITY_ALPHABETIC, PRIMARY_USER_ID, false); in testChangePasswordFailPrimaryUser()
112 assertVerifyCredentials(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, sid); in testChangePasswordFailPrimaryUser()
118 initializeStorageWithCredential(PRIMARY_USER_ID, PASSWORD, CREDENTIAL_TYPE_PASSWORD, 1234); in testClearPasswordPrimaryUser()
[all …]
DBaseLockSettingsServiceTests.java68 protected static final int PRIMARY_USER_ID = 0; field in BaseLockSettingsServiceTests
73 private static final UserInfo PRIMARY_USER_INFO = new UserInfo(PRIMARY_USER_ID, null, null,
153 when(mUserManager.getUserInfo(eq(PRIMARY_USER_ID))).thenReturn(PRIMARY_USER_INFO); in setUp_baseServices()
186 userInfo.profileGroupId = PRIMARY_USER_ID; in installChildProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DTestSystemImpl.java43 public static final int PRIMARY_USER_ID = 0; field in TestSystemImpl
51 mUsers.add(PRIMARY_USER_ID); in TestSystemImpl()
115 PackageInfo ret = userPackages.get(PRIMARY_USER_ID); in getPackageInfoForProvider()
141 setPackageInfoForUser(PRIMARY_USER_ID, pi); in setPackageInfo()
158 mPackages.get(packageName).remove(PRIMARY_USER_ID); in removePackageInfo()
167 pi = userPackages.get(PRIMARY_USER_ID); in getFactoryPackageVersion()
DWebViewUpdateServiceTest.java107 setEnabledAndValidPackageInfosForUser(TestSystemImpl.PRIMARY_USER_ID, providers); in setEnabledAndValidPackageInfos()
355 WebViewUpdateService.PACKAGE_ADDED, TestSystemImpl.PRIMARY_USER_ID); in testFailListingEmptyWebviewPackages()
364 WebViewUpdateService.PACKAGE_ADDED, TestSystemImpl.PRIMARY_USER_ID); in testFailListingEmptyWebviewPackages()
394 WebViewUpdateService.PACKAGE_ADDED_REPLACED, TestSystemImpl.PRIMARY_USER_ID); in testFailListingInvalidWebviewPackage()
490 … secondPackage, WebViewUpdateService.PACKAGE_CHANGED, TestSystemImpl.PRIMARY_USER_ID); in checkChangingProviderDuringRelroCreation()
500 … firstPackage, WebViewUpdateService.PACKAGE_CHANGED, TestSystemImpl.PRIMARY_USER_ID); in checkChangingProviderDuringRelroCreation()
552 WebViewUpdateService.PACKAGE_CHANGED, TestSystemImpl.PRIMARY_USER_ID); in testFallbackLogicMigration()
592 WebViewUpdateService.PACKAGE_ADDED_REPLACED, TestSystemImpl.PRIMARY_USER_ID); in testInstallingPrimaryPackage()
635 int userIdToChangePackageFor = multiUser ? secondaryUserId : TestSystemImpl.PRIMARY_USER_ID; in checkRemovingPrimarySelectsSecondary()
640 setEnabledAndValidPackageInfosForUser(TestSystemImpl.PRIMARY_USER_ID, packages); in checkRemovingPrimarySelectsSecondary()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java131 final int PRIMARY_USER_ID = 0; in testWorkAccount() local
133 List<UserInfo> profiles = Arrays.asList(new UserInfo(PRIMARY_USER_ID, "Primary", in testWorkAccount()