Home
last modified time | relevance | path

Searched refs:installPackageAsUser (Results 1 – 18 of 18) sorted by relevance

/cts/hostsidetests/appsearch/src/android/appsearch/cts/
DAppSearchPackageTest.java49 installPackageAsUser(TARGET_APK_A, /* grantPermission= */true, mPrimaryUserId); in setUp()
50 installPackageAsUser(TARGET_APK_B, /* grantPermission= */true, mPrimaryUserId); in setUp()
100 installPackageAsUser(TARGET_APK_A, /* grantPermission= */true, mPrimaryUserId); in testPackageUninstall_immediatelyReboot()
DAppSearchMultiUserTest.java68 installPackageAsUser(TARGET_APK_A, /* grantPermission= */true, sInitialUserId); in setUp()
69 installPackageAsUser(TARGET_APK_A, /* grantPermission= */true, sSecondaryUserId); in setUp()
119 installPackageAsUser(TARGET_APK_B, /* grantPermission= */true, sSecondaryUserId); in testPackageUninstall_onLockedUser()
DEnterpriseContactsMultiUserTest.java74 installPackageAsUser(testInfo, sMainUserId); in setUpClass()
75 installPackageAsUser(testInfo, sSecondaryUserId); in setUpClass()
76 installPackageAsUser(testInfo, sEnterpriseUserId); in setUpClass()
127 private static void installPackageAsUser(TestInformation testInfo, int userId) in installPackageAsUser() method in EnterpriseContactsMultiUserTest
DAppSearchInstantAppTest.java63 installPackageAsUser(TARGET_APK_A, /* grantPermission= */true, mPrimaryUserId, "--instant"); in setUp()
DContactsIndexerMultiUserTest.java137 installPackageAsUser(TARGET_APK_A, /*grantPermission=*/ true, sSecondaryUserId); in startUserAndInstallPackage()
/cts/hostsidetests/backup/src/android/cts/backup/
DProfileKeyValueBackupRestoreHostSideTest.java67 installPackageAsUser(KEY_VALUE_APK, profileUserId); in setUp()
109 installPackageAsUser(KEY_VALUE_APK, profileUserId); in testKeyValueBackupAndRestore()
141 installPackageAsUser(KEY_VALUE_APK, mParentUserId); in testKeyValueBackupAndRestoreForInstallExistingPackage()
184 installPackageAsUser(KEY_VALUE_APK, mParentUserId); in testKeyValueBackupAndRestoreForInstallExistingPackageWaitTillComplete()
DProfileFullBackupRestoreHostSideTest.java59 installPackageAsUser(FULL_BACKUP_APK, profileUserId); in setUp()
130 installPackageAsUser(FULL_BACKUP_APK, profileUserId); in testFullBackupAndRestoreAtInstall()
DBaseMultiUserBackupHostSideTest.java183 void installPackageAsUser(String apk, int userId) in installPackageAsUser() method in BaseMultiUserBackupHostSideTest
185 installPackageAsUser(apk, false, userId, "-r", "-d"); in installPackageAsUser()
DProfileSerialNumberHostSideTest.java57 installPackageAsUser(APK_NAME, profileUserId); in setUp()
DProfileScheduledJobHostSideTest.java120 installPackageAsUser(KEY_VALUE_APK, profileUserId); in testKeyValueBackupJobRunsSuccessfully()
179 installPackageAsUser(FULL_BACKUP_APK, profileUserId); in testFullBackupJobRunsSuccessfully()
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/
DBlobStoreMultiUserTest.java57 installPackageAsUser(apk, true /* grantPermissions */, mPrimaryUserId, "-t"); in setUp()
58 installPackageAsUser(apk, true /* grantPermissions */, mSecondaryUserId, "-t"); in setUp()
62 installPackageAsUser(TARGET_APK_ASSIST, false /* grantPermissions */, mPrimaryUserId); in setUp()
63 installPackageAsUser(TARGET_APK_ASSIST, false /* grantPermissions */, mSecondaryUserId); in setUp()
/cts/hostsidetests/os/test-apps/StaticSharedLibTestApp/src/android/os/lib/app/
DStaticSharedLibsMultiUserTests.java77 private boolean installPackageAsUser(String apkPath, String installerName, UserReference user) { in installPackageAsUser() method in StaticSharedLibsMultiUserTests
111 assertThat(installPackageAsUser(STATIC_LIB_PROVIDER3_APK, in testStaticSharedLibInstallOnSecondaryUser_broadcastReceivedByAllUsers()
142 assertThat(installPackageAsUser(STATIC_LIB_PROVIDER3_APK, in testStaticSharedLibUninstallOnAllUsers_broadcastReceivedByAllUsers()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2022_20112.java54 installPackageAsUser( in testPocCVE_2022_20112()
DCVE_2021_0595.java57 installPackageAsUser("CVE-2021-0595-test.apk", true, workUserId, "-t"); in testPocCVE_2021_0595()
/cts/hostsidetests/packagemanager/multiuser/src/com/android/tests/packagemanager/multiuser/host/
DUninstallExistingPackageTest.java44 installPackageAsUser(EMPTY_TEST_APP_APK, true, mUserId); in setUp()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandMultiUserTest.kt210 installPackageAsUser(TEST_HW5, primaryUser) in testGetFirstInstallTime()
230 installPackageAsUser(TEST_HW5, secondaryUser) in testGetFirstInstallTime()
283 installPackageAsUser(TEST_HW_SYSTEM_USER_ONLY, primaryUser) in testInstallAppHavingSystemUserOnlyComponents()
288 installPackageAsUser(TEST_HW_SYSTEM_USER_ONLY, secondaryUser) in testInstallAppHavingSystemUserOnlyComponents()
559 installPackageAsUser(TEST_HW5, primaryUser) in testListPackageDefaultAllUsers()
598 installPackageAsUser(TEST_HW5, secondaryUser) in testGrantPermissionToSecondaryUser()
616 installPackageAsUser(TEST_HW5, primaryUser) in testUninstallSetup()
617 installPackageAsUser(TEST_HW5, secondaryUser) in testUninstallSetup()
1011 installPackageAsUser(TEST_HW5, primaryUser) in testInstallArchived()
1036 installPackageAsUser(TEST_HW_MIME_GROUP, primaryUser) in testUpdateMimeGroup_changed_onlyInstalledUserReceivedBroadcast()
[all …]
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DEphemeralTest.java87 installPackageAsUser( in testRebootAndRemoveEphemeralUser_withAccount()
/cts/hostsidetests/car/src/android/car/cts/
DPreCreateUsersHostTest.java83 installPackageAsUser(APP_APK, /* grantPermission= */ false, initialUserId); in appsAreNotInstalledOnPreCreatedUserTest()