Home
last modified time | relevance | path

Searched refs:installAppAsUser (Results 1 – 25 of 39) sorted by relevance

12

/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DShortcutManagerBackupTest.java243 installAppAsUser(LAUNCHER1_APK, getPrimaryUserId()); in testBackupAndRestore()
244 installAppAsUser(LAUNCHER2_APK, getPrimaryUserId()); in testBackupAndRestore()
245 installAppAsUser(LAUNCHER3_APK, getPrimaryUserId()); in testBackupAndRestore()
247 installAppAsUser(PUBLISHER1_APK, getPrimaryUserId()); in testBackupAndRestore()
248 installAppAsUser(PUBLISHER2_APK, getPrimaryUserId()); in testBackupAndRestore()
249 installAppAsUser(PUBLISHER3_APK, getPrimaryUserId()); in testBackupAndRestore()
289 installAppAsUser(LAUNCHER1_APK, getPrimaryUserId()); in testBackupAndRestore()
296 installAppAsUser(PUBLISHER1_APK, getPrimaryUserId()); in testBackupAndRestore()
297 installAppAsUser(PUBLISHER2_APK, getPrimaryUserId()); in testBackupAndRestore()
298 installAppAsUser(PUBLISHER3_APK, getPrimaryUserId()); in testBackupAndRestore()
[all …]
DShortcutManagerMultiuserTest.java46 installAppAsUser(TARGET_APK, getPrimaryUserId()); in testManagedUser()
52 installAppAsUser(TARGET_APK, profileId); in testManagedUser()
74 installAppAsUser(TARGET_APK, secondUserID); in testSecondaryUser()
DShortcutManagerUpgradeTest.java45 installAppAsUser(VERSION1_APK, getPrimaryUserId()); in testUpgrade()
49 installAppAsUser(VERSION2_APK, getPrimaryUserId()); in testUpgrade()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DLauncherAppsSingleUserTest.java66 installAppAsUser(SIMPLE_APP_APK, mCurrentUserId); in testInstallAppMainUser()
93 installAppAsUser(SIMPLE_APP_APK, mCurrentUserId); in testLauncherCallbackPackageAddedMainUser()
107 installAppAsUser(SIMPLE_APP_APK, mCurrentUserId); in testLauncherCallbackPackageRemovedMainUser()
127 installAppAsUser(SIMPLE_APP_APK, mCurrentUserId); in testLauncherCallbackPackageChangedMainUser()
129 installAppAsUser(SIMPLE_APP_APK, mCurrentUserId); in testLauncherCallbackPackageChangedMainUser()
141 installAppAsUser(SIMPLE_APP_APK, mCurrentUserId); in testLauncherNonExportedAppFails()
152 installAppAsUser(SIMPLE_APP_APK, mCurrentUserId); in testLaunchNonExportActivityFails()
163 installAppAsUser(SIMPLE_APP_APK, mCurrentUserId); in testLaunchMainActivity()
DLauncherAppsProfileTest.java56 installAppAsUser(MANAGED_PROFILE_APK, mProfileUserId); in setUp()
79 installAppAsUser(SIMPLE_APP_APK, mParentUserId); in testGetActivitiesWithProfile()
80 installAppAsUser(SIMPLE_APP_APK, mProfileUserId); in testGetActivitiesWithProfile()
123 installAppAsUser(SIMPLE_APP_APK, mProfileUserId); in testLauncherCallbackPackageAddedProfile()
133 installAppAsUser(SIMPLE_APP_APK, mProfileUserId); in testLauncherCallbackPackageRemovedProfile()
145 installAppAsUser(SIMPLE_APP_APK, mProfileUserId); in testLauncherCallbackPackageChangedProfile()
147 installAppAsUser(SIMPLE_APP_APK, /* grantPermissions */ true, /* dontKillApp */ true, in testLauncherCallbackPackageChangedProfile()
157 installAppAsUser(SIMPLE_APP_APK, mProfileUserId); in testReverseAccessNoThrow()
DManagedProfileTest.java170 installAppAsUser(DEVICE_OWNER_APK, mProfileUserId); in testCannotSetProfileOwnerAgain()
179 installAppAsUser(DEVICE_OWNER_APK, mParentUserId); in testCannotSetDeviceOwnerWhenProfilePresent()
403 installAppAsUser(SHARING_APP_1_APK, mPrimaryUserId); in testResolverActivityLaunchedFromPersonalProfileWithSelectedWorkTab()
404 installAppAsUser(SHARING_APP_2_APK, mPrimaryUserId); in testResolverActivityLaunchedFromPersonalProfileWithSelectedWorkTab()
405 installAppAsUser(SHARING_APP_1_APK, mProfileUserId); in testResolverActivityLaunchedFromPersonalProfileWithSelectedWorkTab()
406 installAppAsUser(SHARING_APP_2_APK, mProfileUserId); in testResolverActivityLaunchedFromPersonalProfileWithSelectedWorkTab()
423 installAppAsUser(SHARING_APP_1_APK, mPrimaryUserId); in testResolverActivityLaunchedFromWorkProfileWithSelectedPersonalTab()
424 installAppAsUser(SHARING_APP_2_APK, mPrimaryUserId); in testResolverActivityLaunchedFromWorkProfileWithSelectedPersonalTab()
425 installAppAsUser(SHARING_APP_1_APK, mProfileUserId); in testResolverActivityLaunchedFromWorkProfileWithSelectedPersonalTab()
426 installAppAsUser(SHARING_APP_2_APK, mProfileUserId); in testResolverActivityLaunchedFromWorkProfileWithSelectedPersonalTab()
[all …]
DDeviceAndProfileOwnerTest.java201 installAppAsUser(DELEGATE_APP_APK, mUserId); in testApplicationRestrictionIsRestricted()
211 installAppAsUser(DELEGATE_APP_APK, mUserId); in installDelegateApp()
216 installAppAsUser(CERT_INSTALLER_APK, mUserId); in testDelegationCertSelection()
241 installAppAsUser(VPN_APP_APK, userId); in testAlwaysOnVpn()
254 installAppAsUser(VPN_APP_APK, userId); in testAlwaysOnVpnLockDown()
270 installAppAsUser(VPN_APP_APK, userId); in testAlwaysOnVpnAcrossReboot()
289 installAppAsUser(VPN_APP_APK, userId); in testAlwaysOnVpnPackageUninstalled()
309 installAppAsUser(VPN_APP_API23_APK, userId); in testAlwaysOnVpnUnsupportedPackage()
314 installAppAsUser(VPN_APP_API24_APK, userId); in testAlwaysOnVpnUnsupportedPackage()
320 installAppAsUser(VPN_APP_NOT_ALWAYS_ON_APK, userId); in testAlwaysOnVpnUnsupportedPackage()
[all …]
DOrgOwnedProfileOwnerTest.java96 installAppAsUser(DEVICE_ADMIN_APK, mUserId); in createManagedProfile()
123 installAppAsUser(DEVICE_ADMIN_APK, /* userId= */ 0); in testCanRelinquishControlOverDevice()
170 installAppAsUser(DEVICE_ADMIN_APK, mPrimaryUserId); in testUserRestrictionsSetOnParentAreNotPersisted()
197 installAppAsUser(DEVICE_ADMIN_APK, mPrimaryUserId); in testCameraDisabledOnParentIsEnforced()
230 installAppAsUser(DEVICE_ADMIN_APK, mPrimaryUserId); in testSecurityLogging()
236 installAppAsUser(DELEGATE_APP_APK, mUserId); in testSecurityLoggingDelegate()
237 installAppAsUser(DEVICE_ADMIN_APK, mPrimaryUserId); in testSecurityLoggingDelegate()
324 installAppAsUser(DEVICE_ADMIN_APK, mPrimaryUserId); in testIsDeviceOrganizationOwnedWithManagedProfile()
364 installAppAsUser(TEST_IME_APK, mPrimaryUserId); in testPersonalAppsSuspensionIme()
420 installAppAsUser(DEVICE_ADMIN_APK, true, true, userId); in setPoAsUser()
[all …]
DDeviceOwnerPlusProfileOwnerTest.java84 installAppAsUser(COMP_DPC_APK, mDeviceOwnerUserId); in setUp()
149 installAppAsUser(COMP_DPC_APK2, mDeviceOwnerUserId); in testBindDeviceAdminServiceAsUser_secondaryUser()
150 installAppAsUser(COMP_DPC_APK2, secondaryUserId); in testBindDeviceAdminServiceAsUser_secondaryUser()
197 installAppAsUser(COMP_DPC_APK2, mPrimaryUserId); in verifyBindDeviceAdminServiceAsUser()
198 installAppAsUser(COMP_DPC_APK2, profileOwnerUserId); in verifyBindDeviceAdminServiceAsUser()
214 installAppAsUser(COMP_DPC_APK2, mPrimaryUserId); in verifyBindDeviceAdminServiceAsUserFails()
215 installAppAsUser(COMP_DPC_APK2, profileOwnerUserId); in verifyBindDeviceAdminServiceAsUserFails()
277 installAppAsUser(apkName, userId); in setupManagedProfile()
DManagedProfileCrossProfileTest.java91 installAppAsUser(INTENT_SENDER_APK, false /* grantPermissions */, USER_ALL); in testCrossProfileContent()
92 installAppAsUser(INTENT_RECEIVER_APK, USER_ALL); in testCrossProfileContent()
113 installAppAsUser(NOTIFICATION_APK, USER_ALL); in testCrossProfileNotificationListeners_EmptyAllowlist()
128 installAppAsUser(NOTIFICATION_APK, USER_ALL); in testCrossProfileNotificationListeners_NullAllowlist()
143 installAppAsUser(NOTIFICATION_APK, USER_ALL); in testCrossProfileNotificationListeners_InAllowlist()
157 installAppAsUser(NOTIFICATION_APK, USER_ALL); in testCrossProfileNotificationListeners_setAndGet()
167 installAppAsUser(INTENT_RECEIVER_APK, USER_ALL); in testCrossProfileCopyPaste()
168 installAppAsUser(INTENT_SENDER_APK, USER_ALL); in testCrossProfileCopyPaste()
212 installAppAsUser(WIDGET_PROVIDER_APK, USER_ALL); in testCrossProfileWidgets()
257 installAppAsUser(WIDGET_PROVIDER_APK, USER_ALL); in testCrossProfileWidgetsLogged()
[all …]
DMixedManagedProfileOwnerTest.java62 installAppAsUser(DEVICE_ADMIN_APK, mUserId); in createManagedProfile()
83 installAppAsUser(ASSIST_APP_APK, mParentUserId); in testScreenCaptureDisabled_assist_allowedPrimaryUser()
88 installAppAsUser(DEVICE_ADMIN_APK, mParentUserId); in testScreenCaptureDisabled_assist_allowedPrimaryUser()
302 installAppAsUser(DEVICE_ADMIN_APK, mPrimaryUserId); in testNetworkLogging()
308 installAppAsUser(DELEGATE_APP_APK, mUserId); in testNetworkLoggingDelegate()
309 installAppAsUser(DEVICE_ADMIN_APK, mPrimaryUserId); in testNetworkLoggingDelegate()
DLimitAppIconHidingTest.java63 installAppAsUser(LAUNCHER_TESTS_HAS_LAUNCHER_ACTIVITY_APK, mCurrentUserId); in installTestApps()
64 installAppAsUser(LAUNCHER_TESTS_NO_LAUNCHER_ACTIVITY_APK, mCurrentUserId); in installTestApps()
65 installAppAsUser(LAUNCHER_TESTS_NO_PERMISSION_APK, mCurrentUserId); in installTestApps()
DLauncherAppsMultiUserTest.java63 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testGetActivitiesForNonProfileFails()
74 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testNoLauncherCallbackPackageAddedSecondaryUser()
DBaseLauncherAppsTest.java40 installAppAsUser(LAUNCHER_TESTS_APK, userId); in installTestApps()
41 installAppAsUser(LAUNCHER_TESTS_SUPPORT_APK, userId); in installTestApps()
DDeviceAdminHostSideTestApi24.java34 installAppAsUser(getDeviceAdminApkFileName(), mUserId); in testAdminWithNoProtection()
DDeviceOwnerTest.java466 installAppAsUser(WIFI_CONFIG_CREATOR_APK, mPrimaryUserId); in testWifiConfigLockdown()
495 installAppAsUser(MANAGED_PROFILE_APK, mPrimaryUserId); in testCannotSetDeviceOwnerAgain()
603 installAppAsUser(DeviceAdminHelper.getDeviceAdminApkFileName(adminVersion), in testDisallowFactoryReset()
791 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testSetUserControlDisabledPackages_singleUser_reboot_verifyPackageNotStopped()
819 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testSetUserControlDisabledPackages_singleUser_reboot_verifyPackageNotFgsStopped()
855 installAppAsUser(SIMPLE_APP_APK, userId); in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotStopped()
908 installAppAsUser(SIMPLE_APP_APK, userId); in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotFgsStopped()
1104 installAppAsUser(INTENT_RECEIVER_APK, userId); in createAffiliatedSecondaryUser()
1109 installAppAsUser(DEVICE_OWNER_APK, userId); in createAffiliatedSecondaryUser()
DManagedProfilePasswordTest.java132 installAppAsUser(SIMPLE_APP_APK, mProfileUserId); in testUnlockWorkProfile_deviceWidePassword()
154 installAppAsUser(SIMPLE_APP_APK, mProfileUserId); in testRebootDevice_unifiedPassword()
182 installAppAsUser(SIMPLE_APP_APK, mProfileUserId); in testRebootDevice_separatePasswords()
DDeviceAdminHostSideTestApi23.java37 installAppAsUser(getDeviceAdminApkFileName(), mUserId); in testAdminWithNoProtection()
DMixedProfileOwnerHostSideTransferTest.java43 installAppAsUser(TRANSFER_OWNER_INCOMING_APK, mUserId); in setUp()
DMixedProfileOwnerTestApi25.java37 installAppAsUser(DEVICE_ADMIN_APK, mUserId); in setUp()
DDeviceAndProfileOwnerTestApi25.java56 installAppAsUser(SIMPLE_PRE_M_APP_APK, mUserId); in testPermissionGrantPreMApp()
DProfileOwnerTestApi23.java40 installAppAsUser(DEVICE_ADMIN_APK, mUserId); in setUp()
DMixedManagedProfileOwnerTestApi30.java48 installAppAsUser(DEVICE_ADMIN_APK, mUserId); in createManagedProfile()
DDeviceAdminServiceProfileOwnerTest.java45 installAppAsUser(apk, mUserId); in installOwnerApp()
/cts/hostsidetests/media/src/android/media/session/cts/
DMediaSessionManagerHostTest.java111 installAppAsUser(DEVICE_SIDE_TEST_APK, DEVICE_SIDE_TEST_PKG, userIdForTesting, instant); in testGetActiveSessions_primaryUser()
114 installAppAsUser( in testGetActiveSessions_primaryUser()
153 installAppAsUser(DEVICE_SIDE_TEST_APK, DEVICE_SIDE_TEST_PKG, newUser, instant); in testGetActiveSessions_additionalUser()
189 installAppAsUser(DEVICE_SIDE_TEST_APK, DEVICE_SIDE_TEST_PKG, newUser, instant); in testGetActiveSessions_restrictedProfiles()
226 installAppAsUser(DEVICE_SIDE_TEST_APK, DEVICE_SIDE_TEST_PKG, newUser, instant); in testGetActiveSessions_managedProfiles()
238 installAppAsUser(DEVICE_SIDE_TEST_APK, DEVICE_SIDE_TEST_PKG, userIdForTesting, false); in testGetActiveSessions_noSession2()
241 installAppAsUser( in testGetActiveSessions_noSession2()
259 installAppAsUser(DEVICE_SIDE_TEST_APK, DEVICE_SIDE_TEST_PKG, userIdForTesting, false); in testGetActiveSessions_withSession2()
262 installAppAsUser( in testGetActiveSessions_withSession2()
285 installAppAsUser(DEVICE_SIDE_TEST_APK, DEVICE_SIDE_TEST_PKG, userIdForTesting, false); in testOnMediaKeyEventSessionChangedListener()
[all …]

12