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.java110 PASSWORD_QUALITY_ALPHABETIC, PRIMARY_USER_ID, false); in testPasswordMigration()
111 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testPasswordMigration()
112 final byte[] primaryStorageKey = mStorageManager.getUserUnlockToken(PRIMARY_USER_ID); in testPasswordMigration()
116 password, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testPasswordMigration()
118 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testPasswordMigration()
119 assertTrue(hasSyntheticPassword(PRIMARY_USER_ID)); in testPasswordMigration()
123 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testPasswordMigration()
126 mStorageManager.getUserUnlockToken(PRIMARY_USER_ID)); in testPasswordMigration()
142 initializeCredentialUnderSP(password, PRIMARY_USER_ID); in testSyntheticPasswordChangeCredential()
143 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredential()
[all …]
DCachedSyntheticPasswordTests.java65 initializeCredentialUnderSP(password, PRIMARY_USER_ID); in testSyntheticPasswordClearCredentialUntrusted()
66 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordClearCredentialUntrusted()
69 PASSWORD_QUALITY_UNSPECIFIED, PRIMARY_USER_ID, true); in testSyntheticPasswordClearCredentialUntrusted()
70 assertEquals(0, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredentialUntrusted()
74 PASSWORD_QUALITY_ALPHABETIC, PRIMARY_USER_ID, false); in testSyntheticPasswordClearCredentialUntrusted()
76 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID) in testSyntheticPasswordClearCredentialUntrusted()
78 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredentialUntrusted()
85 initializeCredentialUnderSP(password, PRIMARY_USER_ID); in testSyntheticPasswordChangeCredentialUntrusted()
86 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredentialUntrusted()
89 PASSWORD_QUALITY_ALPHABETIC, PRIMARY_USER_ID, true); in testSyntheticPasswordChangeCredentialUntrusted()
[all …]
DLockSettingsServiceTests.java64 testCreateCredential(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, in testCreatePasswordPrimaryUser()
69 testCreateCredentialFailsWithoutLockScreen(PRIMARY_USER_ID, "password", in testCreatePasswordFailsWithoutLockScreen()
74 testCreateCredential(PRIMARY_USER_ID, "123456789", CREDENTIAL_TYPE_PATTERN, in testCreatePatternPrimaryUser()
79 testCreateCredentialFailsWithoutLockScreen(PRIMARY_USER_ID, "123456789", in testCreatePatternFailsWithoutLockScreen()
84 testChangeCredentials(PRIMARY_USER_ID, "78963214", CREDENTIAL_TYPE_PATTERN, in testChangePasswordPrimaryUser()
89 testChangeCredentials(PRIMARY_USER_ID, "!£$%^&*(())", CREDENTIAL_TYPE_PASSWORD, in testChangePatternPrimaryUser()
96 initializeStorageWithCredential(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, sid); in testChangePasswordFailPrimaryUser()
100 "badpwd".getBytes(), PASSWORD_QUALITY_ALPHABETIC, PRIMARY_USER_ID, false); in testChangePasswordFailPrimaryUser()
105 assertVerifyCredentials(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, sid); in testChangePasswordFailPrimaryUser()
110 initializeStorageWithCredential(PRIMARY_USER_ID, PASSWORD, CREDENTIAL_TYPE_PASSWORD, 1234); in testClearPasswordPrimaryUser()
[all …]
DBaseLockSettingsServiceTests.java61 protected static final int PRIMARY_USER_ID = 0; field in BaseLockSettingsServiceTests
66 private static final UserInfo PRIMARY_USER_INFO = new UserInfo(PRIMARY_USER_ID, null, null,
148 when(mUserManager.getUserInfo(eq(PRIMARY_USER_ID))).thenReturn(PRIMARY_USER_INFO); in setUp()
181 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()