Home
last modified time | relevance | path

Searched refs:installPackage (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/intent/
DIntentRedirectionTest.java83 installPackage(INTENT_REDIRECTION_TEST_APK, "--user all"); in setUp()
94 installPackage(CLONE_PROFILE_APP, "--user " + Integer.valueOf(sCloneUserId)); in testActionViewRedirectionInBothProfiles()
95 installPackage(OWNER_PROFILE_APP, "--user " + Integer.valueOf(OWNER_USER_ID)); in testActionViewRedirectionInBothProfiles()
118 installPackage(CLONE_PROFILE_APP, "--user " + Integer.valueOf(sCloneUserId)); in testActionViewRedirectionInBothProfilesFlagOff()
119 installPackage(OWNER_PROFILE_APP, "--user " + Integer.valueOf(OWNER_USER_ID)); in testActionViewRedirectionInBothProfilesFlagOff()
147 installPackage(CLONE_PROFILE_APP, "--user " + Integer.valueOf(sCloneUserId)); in testActionSendRedirectionInBothProfiles()
148 installPackage(OWNER_PROFILE_APP, "--user " + Integer.valueOf(OWNER_USER_ID)); in testActionSendRedirectionInBothProfiles()
170 installPackage(INTENT_REDIRECTION_TEST_APK, "--user all"); in testActionSendToRedirectionInBothProfiles()
171 installPackage(CLONE_PROFILE_APP, "--user " + Integer.valueOf(sCloneUserId)); in testActionSendToRedirectionInBothProfiles()
172 installPackage(OWNER_PROFILE_APP, "--user " + Integer.valueOf(OWNER_USER_ID)); in testActionSendToRedirectionInBothProfiles()
[all …]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DInstantCookieHostTest.java62 assertNull(installPackage(INSTANT_COOKIE_APP_APK, false, true)); in testCookieUpdateAndRetrieval()
69 assertNull(installPackage(INSTANT_COOKIE_APP_APK, false, true)); in testCookiePersistedAcrossInstantInstalls()
73 assertNull(installPackage(INSTANT_COOKIE_APP_APK, false, true)); in testCookiePersistedAcrossInstantInstalls()
80 assertNull(installPackage(INSTANT_COOKIE_APP_APK, false, true)); in testCookiePersistedUpgradeFromInstant()
83 assertNull(installPackage(INSTANT_COOKIE_APP_APK, true, false)); in testCookiePersistedUpgradeFromInstant()
90 assertNull(installPackage(INSTANT_COOKIE_APP_APK, false, false)); in testCookieResetOnNonInstantReinstall()
94 assertNull(installPackage(INSTANT_COOKIE_APP_APK, true, false)); in testCookieResetOnNonInstantReinstall()
101 assertNull(installPackage(INSTANT_COOKIE_APP_APK, false, true)); in testCookieValidWhenSignedWithTwoCerts()
105 assertNull(installPackage(INSTANT_COOKIE_APP_APK_2, true, true)); in testCookieValidWhenSignedWithTwoCerts()
110 private String installPackage(String apk, boolean replace, boolean instant) throws Exception { in installPackage() method in InstantCookieHostTest
[all …]
DExternalStorageHostTest.java172 installPackage(WRITE_APK); in testExternalStorageRename()
195 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageNone29()
218 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options)); in testExternalStorageRead29()
241 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageWrite()
267 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageNoGifts()
268 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageNoGifts()
269 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options)); in testExternalStorageNoGifts()
301 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK_2), false, options)); in testCanAccessOtherObbDirs()
317 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testCanAccessOtherObbDirs()
349 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageUnsharedObb()
[all …]
DPermissionEscalationTest.java59 assertNull(getDevice().installPackage(mBuildHelper.getTestFile( in testNoPermissionEscalation()
61 assertNull(getDevice().installPackage(mBuildHelper.getTestFile( in testNoPermissionEscalation()
70 assertNull(getDevice().installPackage(mBuildHelper.getTestFile( in testNoPermissionEscalationAfterReboot()
72 assertNull(getDevice().installPackage(mBuildHelper.getTestFile( in testNoPermissionEscalationAfterReboot()
DPrivilegedUpdateTests.java86 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(TEST_APK), false)); in setUp()
101 assertEquals(RESTRICTED_UPGRADE_FAILURE, getDevice().installPackage( in testPrivilegedAppUpgradeRestricted()
122 assertNull(getDevice().installPackage( in testPrivilegedAppUpgradePrioritiesPreservedOnReboot()
150 assertNull(getDevice().installPackage( in testDisableUpdatedSystemApp()
170 assertNull(getDevice().installPackage( in testUpdatedSystemAppPreservedOnReboot()
192 assertNull(getDevice().installPackage( in testUninstallDisabledUpdatedSystemApp_remainingDisabled()
/cts/hostsidetests/signedconfig/hostside/src/com/android/cts/signedconfig/
DSignedConfigHostTest.java141 private void installPackage(String apkName, String... extraArgs) in installPackage() method in SignedConfigHostTest
143 assertThat(getDevice().installPackage(getTestApk(apkName), false, extraArgs)).isNull(); in installPackage()
148 installPackage(TEST_APP_APK_NAME_V1); in testConfigAppliedOnInstall()
156 installPackage(TEST_APP_APK_NAME_V1_INSTANT, ARG_INSTANT); in testConfigAppliedOnInstallInstant()
164 installPackage(TEST_APP_APK_NAME_V1); in testConfigUpgradedOnInstall()
166 installPackage(TEST_APP_APK_NAME_V2); in testConfigUpgradedOnInstall()
174 installPackage(TEST_APP_APK_NAME_PACKAGE2_V1); in testConfigUpgradedOnInstallInstant()
176 installPackage(TEST_APP_APK_NAME_V2_INSTANT, ARG_INSTANT); in testConfigUpgradedOnInstallInstant()
184 installPackage(TEST_APP_APK_NAME_V1_INSTANT, ARG_INSTANT); in testConfigUpgradedOnInstallAfterInstant()
186 installPackage(TEST_APP_APK_NAME_V2); in testConfigUpgradedOnInstallAfterInstant()
[all …]
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/
DDataCleanupTest.java31 installPackage(TARGET_APK); in testPackageUninstall_openSession()
37 installPackage(TARGET_APK); in testPackageUninstall_openSession()
44 installPackage(TARGET_APK); in testPackageUninstall_openBlob()
50 installPackage(TARGET_APK); in testPackageUninstall_openBlob()
57 installPackage(TARGET_APK); in testPackageUninstallAndReboot_openSession()
65 installPackage(TARGET_APK); in testPackageUninstallAndReboot_openSession()
72 installPackage(TARGET_APK); in testPackageUninstallAndReboot_openBlob()
80 installPackage(TARGET_APK); in testPackageUninstallAndReboot_openBlob()
/cts/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/
DCompatChangesOverrideOnReleaseBuildTest.java39 installPackage(TEST_APK, true); in setUp()
56 installPackage("appcompat_preinstall_override_versioncode1_release.apk", false); in testPutPackageOverridesSecurityExceptionNonOverridableChangeId()
71 installPackage("appcompat_preinstall_override_versioncode1_release.apk", false); in testPutPackageOverridesSecurityExceptionMissingPermission()
86 installPackage("appcompat_preinstall_override_versioncode1_release.apk", false); in testPutPackageOverridesWhenChangeIdUnknown()
99 installPackage("appcompat_preinstall_override_versioncode1_release.apk", false); in testPutPackageOverridesForAllVersions()
115 installPackage("appcompat_preinstall_override_versioncode2_release.apk", false); in testPutPackageOverridesForAllVersions()
127 installPackage("appcompat_preinstall_override_versioncode1_release.apk", false); in testPutPackageOverridesForNewerVersion()
143 installPackage("appcompat_preinstall_override_versioncode2_release.apk", false); in testPutPackageOverridesForNewerVersion()
156 installPackage("appcompat_preinstall_override_versioncode1_release.apk", false); in testPutPackageOverridesForOlderVersion()
173 installPackage("appcompat_preinstall_override_versioncode2_release.apk", false); in testPutPackageOverridesForOlderVersion()
[all …]
DCompatChangesPreInstallOverrideTest.java67 installPackage("appcompat_preinstall_override_versioncode1_debuggable.apk", false); in testDeferredOverrideBecomesRegularOverridePostInstall()
84 installPackage("appcompat_preinstall_override_versioncode1_release.apk", false); in testDeferredOverrideRemainsDeferredPostInstall()
101 installPackage("appcompat_preinstall_override_versioncode1_release.apk", false); in testDeferredOverrideBecomesRegularOverridePostUpdate()
102 installPackage("appcompat_preinstall_override_versioncode2_debuggable.apk", false); in testDeferredOverrideBecomesRegularOverridePostUpdate()
117 installPackage("appcompat_preinstall_override_versioncode1_debuggable.apk", false); in testOverrideBecomesDeferredPostUpdate()
120 installPackage("appcompat_preinstall_override_versioncode2_release.apk", false); in testOverrideBecomesDeferredPostUpdate()
DAppCompatOverridesServiceTest.java65 installPackage(TEST_APK, true); in setUp()
94 installPackage(OVERRIDE_PKG_VERSION_1_FILENAME, false); in testPackageOverrideFlagPackageInstalledAfterFlagAdded()
114 installPackage(OVERRIDE_PKG_VERSION_1_FILENAME, false); in testPackageOverrideFlagForAllVersions()
127 installPackage(OVERRIDE_PKG_VERSION_2_FILENAME, false); in testPackageOverrideFlagForAllVersions()
139 installPackage(OVERRIDE_PKG_VERSION_1_FILENAME, false); in testPackageOverrideFlagForNewerVersion()
151 installPackage(OVERRIDE_PKG_VERSION_2_FILENAME, false); in testPackageOverrideFlagForNewerVersion()
164 installPackage(OVERRIDE_PKG_VERSION_1_FILENAME, false); in testPackageOverrideFlagForOlderVersion()
178 installPackage(OVERRIDE_PKG_VERSION_2_FILENAME, false); in testPackageOverrideFlagForOlderVersion()
189 installPackage(OVERRIDE_PKG_VERSION_1_FILENAME, false); in testPackageOverrideFlagWithMultipleVersionRanges()
203 installPackage(OVERRIDE_PKG_VERSION_2_FILENAME, false); in testPackageOverrideFlagWithMultipleVersionRanges()
[all …]
/cts/hostsidetests/sample/src/android/sample/cts/
DSampleHostJUnit4DeviceTest.java56 installPackage(true); in testRunDeviceTestsPassesInstant()
63 installPackage(false); in testRunDeviceTestsPassesFull()
70 installPackage(true); in testRunDeviceTestsFailsInstant()
77 installPackage(false); in testRunDeviceTestsFailsFull()
84 installPackage(true); in testRunDeviceTestsAssumeFailsInstant()
91 installPackage(false); in testRunDeviceTestsAssumeFailsFull()
100 private void installPackage(boolean instant) throws Exception { in installPackage() method in SampleHostJUnit4DeviceTest
101 installPackage(TEST_APP, instant ? new String[]{"--instant"} : new String[0]); in installPackage()
/cts/hostsidetests/backup/src/android/cts/backup/
DFullBackupOnlyHostSideTest.java94 installPackage(FULLBACKUPONLY_FALSE_WITH_AGENT_APP_APK, "-d", "-r"); in testFullBackupOnlyFalse_WithAgent()
102 installPackage(FULLBACKUPONLY_FALSE_WITH_AGENT_APP_APK, "-d", "-r"); in testFullBackupOnlyFalse_WithAgent()
115 installPackage(FULLBACKUPONLY_FALSE_NO_AGENT_APP_APK, "-d", "-r"); in testFullBackupOnlyFalse_NoAgent()
123 installPackage(FULLBACKUPONLY_FALSE_NO_AGENT_APP_APK, "-d", "-r"); in testFullBackupOnlyFalse_NoAgent()
136 installPackage(FULLBACKUPONLY_TRUE_WITH_AGENT_APP_APK, "-d", "-r"); in testFullBackupOnlyTrue_WithAgent()
144 installPackage(FULLBACKUPONLY_TRUE_WITH_AGENT_APP_APK, "-d", "-r"); in testFullBackupOnlyTrue_WithAgent()
DFullbackupRulesHostSideTest.java114 installPackage(FULL_BACKUP_CONTENT_APP_APK); in testFullBackupContentIncludeExcludeRules()
126 installPackage(DATA_EXTRACTION_RULES_APP_APK); in testDataExtractionRulesIncludeExcludeRules()
145 installPackage(DATA_EXTRACTION_RULES_APPLICABILITY_APP_APK); in testBackup_onlyBackupDataExtractionRulesAreApplied()
166 installPackage(DATA_EXTRACTION_RULES_APPLICABILITY_APP_APK); in testDeviceTransfer_onlyDeviceTransferDataExtractionRulesAreApplied()
180 installPackage(ENCRYPTION_ATTRIBUTE_APP_APK); in testDisableIfNoEncryptionCapabilities_encryptedTransport_doesBackUp()
194 installPackage(ENCRYPTION_ATTRIBUTE_APP_APK); in testDisableIfNoEncryptionCapabilities_unencryptedTransport_doesNotBackUp()
207 installPackage(FULL_BACKUP_CONTENT_APP_APK); in testRequireFakeEncryptionFlag_includesFileIfFakeEncryptionEnabled()
234 installPackage(FULL_BACKUP_CONTENT_APP_APK); in testRequireFakeEncryptionFlag_excludesFileIfFakeEncryptionDisabled()
DBackupEligibilityHostSideTest.java99 installPackage(ALLOWBACKUP_FALSE_APP_APK, "-d", "-r"); in testAllowBackup_False()
108 installPackage(ALLOWBACKUP_FALSE_APP_APK, "-d", "-r"); in testAllowBackup_False()
124 installPackage(ALLOWBACKUP_APP_APK, "-d", "-r"); in testAllowBackup_True()
134 installPackage(ALLOWBACKUP_APP_APK, "-d", "-r"); in testAllowBackup_True()
151 installPackage(DEBUGGABLE_FALSE_APP_APK, "-d", "-r"); in testAdbBackup_offForNonDebuggableApp()
170 installPackage(DEBUGGABLE_TRUE_APP_APK, "-d", "-r"); in testAdbBackup_onForDebuggableApp()
178 installPackage(ADB_BACKUP_APP_APK, "-d", "-r"); in runAdbBackupAndRestore()
/cts/tests/tests/uidmigration/src/android/uidmigration/cts/
DSharedUserMigrationTest.kt57 assertTrue(installPackage(InstallTest.APK)) in reset()
66 assertFalse(installPackage(InstallTest.APK3)) in testNewInstallOnly()
72 assertTrue(installPackage(InstallTest.APK4)) in testNewInstallOnly()
80 assertFalse(installPackage(InstallTest.APK)) in testNewInstallOnly()
84 assertTrue(installPackage(InstallTest.APK4)) in testNewInstallOnly()
91 assertTrue(installPackage(InstallTest.APK4)) in testNewInstallOnly()
101 assertTrue(installPackage(InstallTest.APK4)) in testBestEffort()
123 assertTrue(installPackage(InstallTest.APK2)) in testBestEffort()
130 assertTrue(installPackage(InstallTest.APK)) in <lambda>()
131 assertTrue(installPackage(InstallTest.APK2)) in <lambda>()
DAppIdMigrationTest.kt67 assertTrue(installPackage(InstallTest.APK)) in <lambda>()
68 assertTrue(installPackage(InstallTest.APK2)) in <lambda>()
76 assertFalse(installPackage(InstallTest.APK3)) in <lambda>()
79 assertTrue(installPackage(InstallTest.APK4)) in <lambda>()
91 assertTrue(installPackage(apk + "1.apk")) in testPermissionMigration()
92 assertTrue(installPackage(apk + "2.apk")) in testPermissionMigration()
108 assertTrue(installPackage(apk + "3.apk")) in testPermissionMigration()
125 assertTrue(installPackage(apk + "1.apk")) in <lambda>()
135 assertTrue(installPackage(apk + "2.apk")) in <lambda>()
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/contacts/
DContactsSharingTest.java139 installPackage(LAUNCHABLE_CLONE_PROFILE_APP, "--user " + Integer.valueOf(sCloneUserId)); in testCloneContactsProviderInsert_rawContacts_noContactsInsertedInBothProviders()
140 installPackage(NOT_LAUNCHABLE_CLONE_PROFILE_APP, "--user " in testCloneContactsProviderInsert_rawContacts_noContactsInsertedInBothProviders()
171 installPackage(LAUNCHABLE_CLONE_PROFILE_APP, "--user " + Integer.valueOf(sCloneUserId)); in testCloneContactsProviderBulkInsert_rawContacts_noContactsInsertedInBothProviders()
172 installPackage(NOT_LAUNCHABLE_CLONE_PROFILE_APP, "--user " in testCloneContactsProviderBulkInsert_rawContacts_noContactsInsertedInBothProviders()
204 installPackage(LAUNCHABLE_CLONE_PROFILE_APP, "--user " + Integer.valueOf(sCloneUserId)); in testCloneContactsProviderApplyBatch_rawContacts_noContactsInsertedInBothProviders()
205 installPackage(NOT_LAUNCHABLE_CLONE_PROFILE_APP, "--user " in testCloneContactsProviderApplyBatch_rawContacts_noContactsInsertedInBothProviders()
233 installPackage(LAUNCHABLE_CLONE_PROFILE_APP, "--user " + Integer.valueOf(sCloneUserId)); in testCloneContactsProviderUpdates_rawContactsUpdate_doesNotUpdateActually()
257 installPackage(LAUNCHABLE_CLONE_PROFILE_APP, "--user " + Integer.valueOf(sCloneUserId)); in testCloneContactsProviderDeletes_rawContactsDelete_doesNotDeleteActually()
276 installPackage(LAUNCHABLE_CLONE_PROFILE_APP, "--user " + Integer.valueOf(sCloneUserId)); in testCloneAccountsContactsSync_syncsAreDisabled()
295 installPackage(LAUNCHABLE_CLONE_PROFILE_APP, "--user " + Integer.valueOf(sCloneUserId)); in testReadsForClonedAppWithLauncherActivity_rawContactReads_redirectsToPrimary()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandInstallTest.java374 installPackage(TEST_HW5); in testAppInstall()
429 installPackage(TEST_HW5); in testGetPackageStorageStats()
487 installPackage(TEST_HW5); in testAppUpdate()
495 installPackage(TEST_HW5); in testAppUpdateSameApk()
520 installPackage(TEST_HW5); in testAppUpdateSkipEnable()
764 installPackage(TEST_HW5); in testDontKillWithSplit()
814 installPackage(TEST_HW5); in testDontKillOldPathsArePreserved()
830 installPackage(TEST_HW5); in testDontKillRemovedWithBaseApkFullInstall()
867 installPackage(TEST_HW5); in testDontKillRemovedWithBaseApk()
1071 installPackage(TEST_SDK1); in testSdkInstallAndUpdate_sdkLibsBeAppsHasAppId()
[all …]
DPackageManagerMultiArchAppTest.java276 private String installPackage(@NonNull String apkPath) { in installPackage() method in PackageManagerMultiArchAppTest
307 String result = installPackage(getTestApkPath(BITNESS_32)); in testInstallMultiArchApp32_notMatchAllNativelyAbis_fail()
318 String result = installPackage(getTestApkPath(BITNESS_64)); in testInstallMultiArchApp64_notMatchAllNativelyAbis_fail()
329 installPackage(getTestApkPath(BITNESS_32, /* isTargetSDK33= */ true)); in testInstallMultiArchApp32_targetSdk33_success()
339 installPackage(getTestApkPath(BITNESS_64, /* isTargetSDK33= */ true)); in testInstallMultiArchApp64_targetSdk33_success()
352 String result = installPackage(getTestAppPath(firstEmulatedAbi, baseArch)); in testInstallMultiArchApp_emulatedAbiNoNativelyAbi_fail()
366 installPackage(getTestAppPath(firstEmulatedAbi, baseArch)); in testInstallMultiArchApp_emulatedAbiNoNativelyAbi_success()
376 installPackage(getTestApkPath(BITNESS_BOTH, /* isTargetSDK33= */ true)); in testInstallMultiArchAppBoth_targetSdk33_success()
386 installPackage(getTestApkPath(BITNESS_32)); in testInstallMultiArchApp32_success()
396 installPackage(getTestApkPath(BITNESS_64)); in testInstallMultiArchApp64_success()
[all …]
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2021_0305.java55 installPackage(); in testRunDeviceTestsPassesFull()
59 private void installPackage() throws Exception { in installPackage() method in CVE_2021_0305
60 installPackage(TEST_APP, new String[0]); in installPackage()
DCVE_2022_20007.java43 installPackage(testApp); in testPocCVE_2022_20007()
44 installPackage(testAttackerApp); in testPocCVE_2022_20007()
45 installPackage(testSecondApp); in testPocCVE_2022_20007()
DCVE_2021_0928.java50 installPackage(); in testRunDeviceTest()
65 private void installPackage() throws Exception { in installPackage() method in CVE_2021_0928
66 installPackage(TEST_APP, new String[0]); in installPackage()
DCVE_2023_35667.java37 installPackage("CVE-2023-35667-test.apk"); in testPocCVE_2023_35667()
38 installPackage("CVE-2023-35667-helper1.apk"); in testPocCVE_2023_35667()
39 installPackage("CVE-2023-35667-helper2.apk"); in testPocCVE_2023_35667()
DCVE_2021_0921.java49 installPackage(); in testRunDeviceTest()
64 private void installPackage() throws Exception { in installPackage() method in CVE_2021_0921
65 installPackage(TEST_APP, new String[0]); in installPackage()
/cts/hostsidetests/packagemanager/deletekeepdata/src/com/android/tests/deletekeepdata/host/
DDeleteKeepDataRebootTest.java48 installPackage(TEST_APK); in setUp()
65 installPackage(TEST_APK); in testDataNotPreservedWithoutFlag()
76 installPackage(TEST_APK); in testDataPreservedWithFlagWithoutReboot()
88 installPackage(TEST_APK); in testDataPreservedWithFlagWithReboot()

12345678910>>...12