Searched refs:PRIMARY_USER_ID (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | SyntheticPasswordTests.java | 78 disableSyntheticPassword(PRIMARY_USER_ID); in testPasswordMigration() 79 …vice.setLockCredential(PASSWORD, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, PRIMARY_USER_ID); in testPasswordMigration() 80 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testPasswordMigration() 81 final byte[] primaryStorageKey = mStorageManager.getUserUnlockToken(PRIMARY_USER_ID); in testPasswordMigration() 82 enableSyntheticPassword(PRIMARY_USER_ID); in testPasswordMigration() 85 …fyCredential(PASSWORD, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID).getResponseC… in testPasswordMigration() 86 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testPasswordMigration() 87 assertTrue(hasSyntheticPassword(PRIMARY_USER_ID)); in testPasswordMigration() 91 …fyCredential(PASSWORD, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, PRIMARY_USER_ID).getResponseC… in testPasswordMigration() 92 assertArrayNotSame(primaryStorageKey, mStorageManager.getUserUnlockToken(PRIMARY_USER_ID)); in testPasswordMigration() [all …]
|
D | LockSettingsServiceTests.java | 47 testCreateCredential(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD); in testCreatePasswordPrimaryUser() 51 testCreateCredential(PRIMARY_USER_ID, "123456789", CREDENTIAL_TYPE_PATTERN); in testCreatePatternPrimaryUser() 55 testChangeCredentials(PRIMARY_USER_ID, "78963214", CREDENTIAL_TYPE_PATTERN, in testChangePasswordPrimaryUser() 60 testChangeCredentials(PRIMARY_USER_ID, "!£$%^&*(())", CREDENTIAL_TYPE_PASSWORD, in testChangePatternPrimaryUser() 67 initializeStorageWithCredential(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, sid); in testChangePasswordFailPrimaryUser() 71 PRIMARY_USER_ID); in testChangePasswordFailPrimaryUser() 77 mService.setLockCredential("newpwd", CREDENTIAL_TYPE_PASSWORD, null, PRIMARY_USER_ID); in testChangePasswordFailPrimaryUser() 82 assertVerifyCredentials(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, sid); in testChangePasswordFailPrimaryUser() 87 initializeStorageWithCredential(PRIMARY_USER_ID, PASSWORD, CREDENTIAL_TYPE_PASSWORD, 1234); in testClearPasswordPrimaryUser() 88 mService.setLockCredential(null, CREDENTIAL_TYPE_NONE, PASSWORD, PRIMARY_USER_ID); in testClearPasswordPrimaryUser() [all …]
|
D | BaseLockSettingsServiceTests.java | 48 protected static final int PRIMARY_USER_ID = 0; field in BaseLockSettingsServiceTests 53 private static final UserInfo PRIMARY_USER_INFO = new UserInfo(PRIMARY_USER_ID, null, null, 98 when(mUserManager.getUserInfo(eq(PRIMARY_USER_ID))).thenReturn(PRIMARY_USER_INFO); in setUp() 102 when(mUserManager.getProfiles(eq(PRIMARY_USER_ID))).thenReturn(mPrimaryUserProfiles); in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/ |
D | TestSystemImpl.java | 43 public static final int PRIMARY_USER_ID = 0; field in TestSystemImpl 51 mUsers.add(PRIMARY_USER_ID); in TestSystemImpl() 121 PackageInfo ret = userPackages.get(PRIMARY_USER_ID); in getPackageInfoForProvider() 147 setPackageInfoForUser(PRIMARY_USER_ID, pi); in setPackageInfo() 164 mPackages.get(packageName).remove(PRIMARY_USER_ID); in removePackageInfo() 173 pi = userPackages.get(PRIMARY_USER_ID); in getFactoryPackageVersion()
|
D | WebViewUpdateServiceTest.java | 105 setEnabledAndValidPackageInfosForUser(TestSystemImpl.PRIMARY_USER_ID, providers); in setEnabledAndValidPackageInfos() 354 WebViewUpdateService.PACKAGE_ADDED, TestSystemImpl.PRIMARY_USER_ID); in testFailListingEmptyWebviewPackages() 363 WebViewUpdateService.PACKAGE_ADDED, TestSystemImpl.PRIMARY_USER_ID); in testFailListingEmptyWebviewPackages() 393 WebViewUpdateService.PACKAGE_ADDED_REPLACED, TestSystemImpl.PRIMARY_USER_ID); in testFailListingInvalidWebviewPackage() 489 … secondPackage, WebViewUpdateService.PACKAGE_CHANGED, TestSystemImpl.PRIMARY_USER_ID); in checkChangingProviderDuringRelroCreation() 499 … firstPackage, WebViewUpdateService.PACKAGE_CHANGED, TestSystemImpl.PRIMARY_USER_ID); in checkChangingProviderDuringRelroCreation() 553 … fallbackPackage, WebViewUpdateService.PACKAGE_CHANGED, TestSystemImpl.PRIMARY_USER_ID); in checkFallbackLogicBeingRun() 598 WebViewUpdateService.PACKAGE_ADDED_REPLACED, TestSystemImpl.PRIMARY_USER_ID); in testInstallingNonFallbackPackage() 642 int userIdToChangePackageFor = multiUser ? secondaryUserId : TestSystemImpl.PRIMARY_USER_ID; in checkFallbackChangesEnabledState() 647 setEnabledAndValidPackageInfosForUser(TestSystemImpl.PRIMARY_USER_ID, packages); in checkFallbackChangesEnabledState() [all …]
|