/cts/hostsidetests/appsearch/src/android/appsearch/cts/ |
D | AppSearchPackageTest.java | 44 private int mPrimaryUserId; field in AppSearchPackageTest 48 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUp() 49 installPackageAsUser(TARGET_APK_A, /* grantPermission= */true, mPrimaryUserId); in setUp() 50 installPackageAsUser(TARGET_APK_B, /* grantPermission= */true, mPrimaryUserId); in setUp() 51 runDeviceTestAsUserInPkgA("clearTestData", mPrimaryUserId); in setUp() 63 runDeviceTestAsUserInPkgA("testPutDocuments", mPrimaryUserId); in testPackageRemove() 65 runDeviceTestAsUserInPkgB("testGlobalGetDocuments_exist", mPrimaryUserId); in testPackageRemove() 74 runDeviceTestAsUserInPkgB("testGlobalGetDocuments_nonexist", mPrimaryUserId); in testPackageRemove() 87 runDeviceTestAsUserInPkgA("testPutDocuments", mPrimaryUserId); in testPackageUninstall_immediatelyReboot() 88 runDeviceTestAsUserInPkgA("closeAndFlush", mPrimaryUserId); in testPackageUninstall_immediatelyReboot() [all …]
|
D | AppSearchInstantAppTest.java | 50 private int mPrimaryUserId; field in AppSearchInstantAppTest 61 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUp() 63 installPackageAsUser(TARGET_APK_A, /* grantPermission= */true, mPrimaryUserId, "--instant"); in setUp() 73 runDeviceTestAsUserInPkgA("testInstantAppDoesntHaveAccess", mPrimaryUserId); in testInstantAppDoesntHaveAccess()
|
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/ |
D | BlobStoreMultiUserTest.java | 41 private static int mPrimaryUserId; field in BlobStoreMultiUserTest 49 mPrimaryUserId = testInfo.getDevice().getPrimaryUserId(); in setUpClass() 57 installPackageAsUser(apk, true /* grantPermissions */, mPrimaryUserId, "-t"); in setUp() 62 installPackageAsUser(TARGET_APK_ASSIST, false /* grantPermissions */, mPrimaryUserId); in setUp() 66 revokePermission(TARGET_PKG_ASSIST, PERM_ACCESS_BLOBS_ACROSS_USERS, mPrimaryUserId); in setUp() 81 mPrimaryUserId); in testCreateAndOpenSession() 85 mPrimaryUserId); in testCreateAndOpenSession() 96 mPrimaryUserId); in testCommitAndOpenBlob() 100 mPrimaryUserId); in testCommitAndOpenBlob() 111 mPrimaryUserId); in testBlobAccessAcrossUsers_withTestOnlyApp() [all …]
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | UserRestrictionsTest.java | 63 boolean removed = removeAdmin(componentName, mPrimaryUserId); in tearDown() 65 CLog.e("Failed to remove %s on user %d", componentName, mPrimaryUserId); in tearDown() 109 setPoAsUser(mPrimaryUserId); in testUserRestrictions_primaryProfileOwnerOnly() 113 "testDefaultRestrictions", mPrimaryUserId); in testUserRestrictions_primaryProfileOwnerOnly() 115 "testSetAllRestrictions", mPrimaryUserId); in testUserRestrictions_primaryProfileOwnerOnly() 117 "testBroadcast", mPrimaryUserId); in testUserRestrictions_primaryProfileOwnerOnly() 121 "testClearAllRestrictions", mPrimaryUserId); in testUserRestrictions_primaryProfileOwnerOnly() 154 final int profileUserId = createManagedProfile(mPrimaryUserId /* parentUserId */); in testUserRestrictions_managedProfileOwnerOnly() 235 setPoAsUser(mPrimaryUserId); in testUserRestrictions_layering_profileOwnerNoLeaking() 244 "testSetAllRestrictions", mPrimaryUserId); in testUserRestrictions_layering_profileOwnerNoLeaking() [all …]
|
D | LauncherAppsMultiUserTest.java | 46 installTestApps(mPrimaryUserId); in setUp() 63 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testGetActivitiesForNonProfileFails() 67 mPrimaryUserId, in testGetActivitiesForNonProfileFails() 73 startCallbackService(mPrimaryUserId); in testNoLauncherCallbackPackageAddedSecondaryUser() 74 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testNoLauncherCallbackPackageAddedSecondaryUser() 78 mPrimaryUserId, in testNoLauncherCallbackPackageAddedSecondaryUser()
|
D | DeviceOwnerTest.java | 466 installAppAsUser(WIFI_CONFIG_CREATOR_APK, mPrimaryUserId); in testWifiConfigLockdown() 490 DEVICE_OWNER_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mPrimaryUserId, in testCannotSetDeviceOwnerAgain() 495 installAppAsUser(MANAGED_PROFILE_APK, mPrimaryUserId); in testCannotSetDeviceOwnerAgain() 497 MANAGED_PROFILE_PKG + "/" + MANAGED_PROFILE_ADMIN, mPrimaryUserId, in testCannotSetDeviceOwnerAgain() 501 removeAdmin(MANAGED_PROFILE_PKG + "/" + MANAGED_PROFILE_ADMIN, mPrimaryUserId); in testCannotSetDeviceOwnerAgain() 597 changeUserRestrictionOrFail("no_factory_reset", true, mPrimaryUserId, DEVICE_OWNER_PKG); in testDisallowFactoryReset() 598 int adminUserId = mPrimaryUserId; in testDisallowFactoryReset() 635 "testPackageInstall", mPrimaryUserId); in testPackageInstallCache() 638 "testKeepPackageCache", mPrimaryUserId); in testPackageInstallCache() 647 "testPackageUninstall", mPrimaryUserId); in testPackageInstallCache() [all …]
|
D | ManagedProfileTest.java | 347 mPrimaryUserId, params); in testCanGetWorkShortcutIconDrawableFromPersonalProfile() 358 "addDynamicShortcuts", mPrimaryUserId); in testCanGetPersonalShortcutIconDrawableFromWorkProfile() 361 params.put("otherProfileUserId", String.valueOf(mPrimaryUserId)); in testCanGetPersonalShortcutIconDrawableFromWorkProfile() 370 "removeAllDynamicShortcuts", mPrimaryUserId); in testCanGetPersonalShortcutIconDrawableFromWorkProfile() 378 "testGetAllProfiles", mPrimaryUserId); in testCanGetProfiles() 384 "testIsProfileReturnsFalse_runAsPrimary", mPrimaryUserId); in testCanGetProfiles() 397 "testCreateProfile_managedProfile", mPrimaryUserId); in testCanCreateProfile() 403 installAppAsUser(SHARING_APP_1_APK, mPrimaryUserId); in testResolverActivityLaunchedFromPersonalProfileWithSelectedWorkTab() 404 installAppAsUser(SHARING_APP_2_APK, mPrimaryUserId); in testResolverActivityLaunchedFromPersonalProfileWithSelectedWorkTab() 411 "startSwitchToOtherProfileIntent", mPrimaryUserId); in testResolverActivityLaunchedFromPersonalProfileWithSelectedWorkTab() [all …]
|
D | OrgOwnedProfileOwnerTest.java | 92 mUserId = createManagedProfile(mPrimaryUserId); in createManagedProfile() 93 switchUser(mPrimaryUserId); in createManagedProfile() 170 installAppAsUser(DEVICE_ADMIN_APK, mPrimaryUserId); in testUserRestrictionsSetOnParentAreNotPersisted() 174 "testHasUserRestrictionDisallowConfigDateTime", mPrimaryUserId); in testUserRestrictionsSetOnParentAreNotPersisted() 180 "testUserRestrictionDisallowConfigDateTimeIsNotPersisted", mPrimaryUserId); in testUserRestrictionsSetOnParentAreNotPersisted() 197 installAppAsUser(DEVICE_ADMIN_APK, mPrimaryUserId); in testCameraDisabledOnParentIsEnforced() 202 "testCannotOpenCamera", mPrimaryUserId); in testCameraDisabledOnParentIsEnforced() 207 "testCanOpenCamera", mPrimaryUserId); in testCameraDisabledOnParentIsEnforced() 230 installAppAsUser(DEVICE_ADMIN_APK, mPrimaryUserId); in testSecurityLogging() 237 installAppAsUser(DEVICE_ADMIN_APK, mPrimaryUserId); in testSecurityLoggingDelegate() [all …]
|
D | ManagedProfilePasswordTest.java | 125 changeUserCredential(TEST_PASSWORD, /* oldCredential= */ null, mPrimaryUserId); in testUnlockWorkProfile_deviceWidePassword() 129 verifyUserCredential(TEST_PASSWORD, mPrimaryUserId); in testUnlockWorkProfile_deviceWidePassword() 136 changeUserCredential(/* newCredential= */ null, TEST_PASSWORD, mPrimaryUserId); in testUnlockWorkProfile_deviceWidePassword() 149 changeUserCredential(TEST_PASSWORD, /* oldCredential= */ null, mPrimaryUserId); in testRebootDevice_unifiedPassword() 152 verifyUserCredential(TEST_PASSWORD, mPrimaryUserId); in testRebootDevice_unifiedPassword() 157 changeUserCredential(/* newCredential= */ null, TEST_PASSWORD, mPrimaryUserId); in testRebootDevice_unifiedPassword() 177 changeUserCredential(primaryPassword, /* oldCredential= */ null, mPrimaryUserId); in testRebootDevice_separatePasswords() 181 verifyUserCredential(primaryPassword, mPrimaryUserId); in testRebootDevice_separatePasswords() 187 changeUserCredential(/* newCredential= */ null, primaryPassword, mPrimaryUserId); in testRebootDevice_separatePasswords()
|
D | DeviceOwnerPlusProfileOwnerTest.java | 109 assertCannotCreateManagedProfile(mPrimaryUserId); in testCannotAddManagedProfileWithDeviceOwner() 197 installAppAsUser(COMP_DPC_APK2, mPrimaryUserId); in verifyBindDeviceAdminServiceAsUser() 214 installAppAsUser(COMP_DPC_APK2, mPrimaryUserId); in verifyBindDeviceAdminServiceAsUserFails() 221 mPrimaryUserId); in verifyBindDeviceAdminServiceAsUserFails() 253 mPrimaryUserId); in setDifferentAffiliationId() 270 mPrimaryUserId); in assertProvisionManagedProfileNotAllowed() 276 final int userId = createManagedProfile(mPrimaryUserId); in setupManagedProfile() 310 mPrimaryUserId); in provisionCorpOwnedManagedProfile() 341 mPrimaryUserId); in assertOtherProfilesEqualsBindTargetUsers()
|
D | MixedManagedProfileOwnerTest.java | 53 mParentUserId = mPrimaryUserId; in setUp() 97 mPrimaryUserId); in testScreenCaptureDisabled_assist_allowedPrimaryUser() 302 installAppAsUser(DEVICE_ADMIN_APK, mPrimaryUserId); in testNetworkLogging() 309 installAppAsUser(DEVICE_ADMIN_APK, mPrimaryUserId); in testNetworkLoggingDelegate() 338 "testConnectToWebsites_shouldNotBeLogged", mPrimaryUserId); in testNetworkLoggingOnWorkProfile()
|
D | LauncherAppsProfileTest.java | 54 mParentUserId = mPrimaryUserId; in setUp() 122 startCallbackService(mPrimaryUserId); in testLauncherCallbackPackageAddedProfile() 134 startCallbackService(mPrimaryUserId); in testLauncherCallbackPackageRemovedProfile() 146 startCallbackService(mPrimaryUserId); in testLauncherCallbackPackageChangedProfile()
|
D | MixedProfileOwnerTest.java | 42 mUserId = mPrimaryUserId; in setUp() 45 + "mDeviceOwnerUserId=%d", getClass(), mUserId, mPrimaryUserId, mInitialUserId, in setUp()
|
D | ManagedProfileTimeoutTest.java | 41 startTestActivity(mPrimaryUserId, true); in testWorkProfileTimeoutBackground() 104 runProfileTimeoutTest("testDeviceNotLocked", mPrimaryUserId); in verifyOnlyProfileLocked()
|
D | BaseDeviceOwnerTest.java | 81 executeDeviceOwnerTestOnSpecificUser(testClassName, mPrimaryUserId); in executeDeviceOwnerTest() 102 executeDeviceOwnerPackageTestMethod(className, testName, mPrimaryUserId); in executeDeviceTestMethod()
|
D | DeviceAndProfileOwnerHostSideTransferTest.java | 42 final boolean hasManagedProfile = (mUserId != mPrimaryUserId); in testTransferOwnership() 108 final int userId = createManagedProfile(mPrimaryUserId); in setupManagedProfile()
|
D | MixedDeviceOwnerTestApi25.java | 32 mUserId = mPrimaryUserId; in setUp()
|
D | MixedProfileOwnerTestApi25.java | 35 mUserId = mPrimaryUserId; in setUp()
|
D | MixedManagedProfileOwnerTestApi30.java | 39 mParentUserId = mPrimaryUserId; in setUp()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | PackageVisibilityTest.java | 62 installTestAppForUser(TEST_APK, mPrimaryUserId); in setUpPackage() 92 installTestAppForUser(TEST_APK, mPrimaryUserId); in testUninstalledPackageVisibility() 94 installTestAppForUser(TINY_APK, mPrimaryUserId); in testUninstalledPackageVisibility() 97 assertTrue(isAppVisibleForUser(TINY_PKG, mPrimaryUserId, MATCH_NORMAL)); in testUninstalledPackageVisibility() 98 assertTrue(isAppVisibleForUser(TINY_PKG, mPrimaryUserId, MATCH_UNINSTALLED)); in testUninstalledPackageVisibility() 102 ".PackageAccessTest", "testPackageAccess_inUser", mPrimaryUserId); in testUninstalledPackageVisibility() local 104 ".PackageAccessTest", "testPackageAccess_inUserUninstalled", mPrimaryUserId); in testUninstalledPackageVisibility() local 129 assertFalse(isAppVisibleForUser(TINY_PKG, mPrimaryUserId, MATCH_NORMAL)); in testUninstalledPackageVisibility() 130 assertFalse(isAppVisibleForUser(TINY_PKG, mPrimaryUserId, MATCH_UNINSTALLED)); in testUninstalledPackageVisibility() 149 mPrimaryUserId); in testUninstalledPackageVisibility() local [all …]
|
D | BaseAppSecurityTest.java | 35 protected int mPrimaryUserId; field in BaseAppSecurityTest 44 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUpBaseAppSecurityTest() 46 mFixedUsers.add(mPrimaryUserId); in setUpBaseAppSecurityTest() 47 if (mPrimaryUserId != Utils.USER_SYSTEM) { in setUpBaseAppSecurityTest() 58 userId = mPrimaryUserId; in installTestAppForUser()
|
D | InstantAppUserTest.java | 65 private int mPrimaryUserId; field in InstantAppUserTest 77 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUp() 174 runDeviceTestsAsUser(USER_TEST_PKG, TEST_CLASS, "testQueryInstant", mPrimaryUserId); in testInstallInstant() 184 runDeviceTestsAsUser(USER_TEST_PKG, TEST_CLASS, "testQueryFull", mPrimaryUserId); in testInstallFull() 193 installAppAsUser(USER_APK, mPrimaryUserId); in testInstallMultiple() 195 runDeviceTestsAsUser(USER_TEST_PKG, TEST_CLASS, "testQueryFull", mPrimaryUserId); in testInstallMultiple() 205 runDeviceTestsAsUser(USER_TEST_PKG, TEST_CLASS, "testQueryInstant", mPrimaryUserId); in testUpgradeExisting() 209 runDeviceTestsAsUser(USER_TEST_PKG, TEST_CLASS, "testQueryInstant", mPrimaryUserId); in testUpgradeExisting() 219 runDeviceTestsAsUser(USER_TEST_PKG, TEST_CLASS, "testQueryInstant", mPrimaryUserId); in testReplaceExisting() 223 runDeviceTestsAsUser(USER_TEST_PKG, TEST_CLASS, "testQueryInstant", mPrimaryUserId); in testReplaceExisting()
|
D | PackageSetInstallerTest.kt | 128 .forUser(mPrimaryUserId) in runTest() 139 .forUser(mPrimaryUserId) in runTest() 151 "setTargetInstallerPackage", mPrimaryUserId, in runTest() 167 "removeWhitelistRestrictedPermission", mPrimaryUserId, whitelistArgs) in runTest() 181 "setSelfAsInstallerAndWhitelistPermission", mPrimaryUserId, in runTest() 242 .dropWhile { !it.trim().startsWith("User $mPrimaryUserId:") } // Find user in <lambda>()
|
/cts/hostsidetests/content/src/android/content/cts/ |
D | BaseContextCrossProfileTest.java | 45 protected int mPrimaryUserId; field in BaseContextCrossProfileTest 55 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUp() 65 mFixedUsers.add(mPrimaryUserId); in setFixedUsers() 72 if (mPrimaryUserId != USER_SYSTEM) { in setFixedUsers() 76 if (getDevice().getCurrentUser() != mPrimaryUserId) { in setFixedUsers()
|
/cts/hostsidetests/accounts/src/android/host/accounts/ |
D | BaseMultiUserTest.java | 52 protected int mPrimaryUserId; field in BaseMultiUserTest 65 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUp()
|