Home
last modified time | relevance | path

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

1234

/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPermissionsHostTest.java81 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(REVIEW_HELPER_APK), true, in approveReviewPermissionDialog()
126 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testFail()
141 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testKill()
156 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_22), false, false)); in testCompatDefault22()
166 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_22), false, false)); in testCompatRevoked22()
186 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_22), false, false)); in testNoRuntimePrompt22()
195 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testDefault23()
201 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testGranted23()
207 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testInteractiveGrant23()
213 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testRuntimeGroupGrantSpecificity23()
[all …]
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.java123 installPackage(WRITE_APK); in testExternalStorageRename()
143 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageNone()
166 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options)); in testExternalStorageRead()
189 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageWrite()
216 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageGifts()
221 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageGifts()
222 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options)); in testExternalStorageGifts()
245 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK_2), false, options)); in testExternalStorageObbGifts()
258 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageObbGifts()
290 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageUnsharedObb()
[all …]
DKeySetHostTest.java207 installResult = mDevice.installPackage(getTestAppFile(firstApk), in testPackageUpgrade()
214 installResult = mDevice.installPackage(getTestAppFile(secondApk), in testPackageUpgrade()
377 String installResult = mDevice.installPackage( in testKeyRotationPerm()
381 installResult = getDevice().installPackage( in testKeyRotationPerm()
385 installResult = getDevice().installPackage( in testKeyRotationPerm()
400 installResult = mDevice.installPackage(getTestAppFile(upgradeApk), in testKeyRotationPerm()
468 String installResult = mDevice.installPackage(getTestAppFile(A_SIGNED_BAD_B_B_UPGRADE), in testBadUpgradeBadPubKey()
479 String installResult = mDevice.installPackage(getTestAppFile(C_SIGNED_BAD_A_AB_UPGRADE), in testBadUpgradeMissingPubKey()
490 String installResult = mDevice.installPackage(getTestAppFile(A_SIGNED_NO_B_B_UPGRADE), in testBadUpgradeNoPubKey()
DPrivilegedUpdateTests.java83 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(TEST_APK), false)); in setUp()
98 assertEquals(RESTRICTED_UPGRADE_FAILURE, getDevice().installPackage( in testPrivilegedAppUpgradeRestricted()
119 assertNull(getDevice().installPackage( in testPrivilegedAppUpgradePriorities()
143 assertNull(getDevice().installPackage( in testDisableUpdatedSystemApp()
DAccessSerialNumberTest.java61 assertNull(getDevice().installPackage(mBuildHelper.getTestFile( in testSerialAccessPolicy()
68 assertNull(getDevice().installPackage(mBuildHelper.getTestFile( in testSerialAccessPolicy()
DDocumentsTest.java37 assertNull(getDevice().installPackage(buildHelper.getTestFile(PROVIDER_APK), false)); in setUp()
38 assertNull(getDevice().installPackage(buildHelper.getTestFile(STUBIME_APK), false)); in setUp()
/cts/hostsidetests/signedconfig/hostside/src/com/android/cts/signedconfig/
DSignedConfigHostTest.java140 private void installPackage(String apkName, String... extraArgs) in installPackage() method in SignedConfigHostTest
142 assertThat(getDevice().installPackage(getTestApk(apkName), false, extraArgs)).isNull(); in installPackage()
147 installPackage(TEST_APP_APK_NAME_V1); in testConfigAppliedOnInstall()
155 installPackage(TEST_APP_APK_NAME_V1_INSTANT, ARG_INSTANT); in testConfigAppliedOnInstallInstant()
163 installPackage(TEST_APP_APK_NAME_V1); in testConfigUpgradedOnInstall()
165 installPackage(TEST_APP_APK_NAME_V2); in testConfigUpgradedOnInstall()
173 installPackage(TEST_APP_APK_NAME_PACKAGE2_V1); in testConfigUpgradedOnInstallInstant()
175 installPackage(TEST_APP_APK_NAME_V2_INSTANT, ARG_INSTANT); in testConfigUpgradedOnInstallInstant()
183 installPackage(TEST_APP_APK_NAME_V1_INSTANT, ARG_INSTANT); in testConfigUpgradedOnInstallAfterInstant()
185 installPackage(TEST_APP_APK_NAME_V2); in testConfigUpgradedOnInstallAfterInstant()
[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/angle/src/android/angle/cts/
DCtsAngleDeveloperOptionHostTest.java94 installPackage(ANGLE_DRIVER_TEST_APP); in testEnableAngleForAll()
95 installPackage(ANGLE_DRIVER_TEST_SEC_APP); in testEnableAngleForAll()
119 installPackage(ANGLE_DRIVER_TEST_APP); in testUseDefaultDriver()
136 installPackage(ANGLE_DRIVER_TEST_APP); in testUseAngleDriver()
153 installPackage(ANGLE_DRIVER_TEST_APP); in testUseNativeDriver()
170 installPackage(ANGLE_DRIVER_TEST_APP); in testSettingsLengthMismatch()
171 installPackage(ANGLE_DRIVER_TEST_SEC_APP); in testSettingsLengthMismatch()
193 installPackage(ANGLE_DRIVER_TEST_APP); in testUseInvalidDriver()
209 installPackage(ANGLE_DRIVER_TEST_APP); in testUpdateDriverValues()
231 installPackage(ANGLE_DRIVER_TEST_APP); in testMultipleDevOptionsAngleNative()
[all …]
DCtsAngleRulesFileTest.java93 installPackage(ANGLE_DRIVER_TEST_APP); in testEmptyRulesFile()
109 installPackage(ANGLE_DRIVER_TEST_APP); in testEnableAngleRulesFile()
110 installPackage(ANGLE_DRIVER_TEST_SEC_APP); in testEnableAngleRulesFile()
/cts/hostsidetests/backup/src/android/cts/backup/
DFullBackupOnlyHostSideTest.java107 installPackage(FULLBACKUPONLY_FALSE_WITH_AGENT_APP_APK, "-d", "-r"); in testFullBackupOnlyFalse_WithAgent()
115 installPackage(FULLBACKUPONLY_FALSE_WITH_AGENT_APP_APK, "-d", "-r"); in testFullBackupOnlyFalse_WithAgent()
133 installPackage(FULLBACKUPONLY_FALSE_NO_AGENT_APP_APK, "-d", "-r"); in testFullBackupOnlyFalse_NoAgent()
141 installPackage(FULLBACKUPONLY_FALSE_NO_AGENT_APP_APK, "-d", "-r"); in testFullBackupOnlyFalse_NoAgent()
159 installPackage(FULLBACKUPONLY_TRUE_WITH_AGENT_APP_APK, "-d", "-r"); in testFullBackupOnlyTrue_WithAgent()
167 installPackage(FULLBACKUPONLY_TRUE_WITH_AGENT_APP_APK, "-d", "-r"); in testFullBackupOnlyTrue_WithAgent()
DAllowBackupHostSideTest.java88 installPackage(ALLOWBACKUP_FALSE_APP_APK, "-d", "-r"); in testAllowBackup_False()
97 installPackage(ALLOWBACKUP_FALSE_APP_APK, "-d", "-r"); in testAllowBackup_False()
109 installPackage(ALLOWBACKUP_APP_APK, "-d", "-r"); in testAllowBackup_True()
119 installPackage(ALLOWBACKUP_APP_APK, "-d", "-r"); in testAllowBackup_True()
DRestoreSessionHostSideTest.java61 installPackage(MAIN_TEST_APK); in setUp()
102 installPackage(getApkNameForTestApp(1)); in testRestorePackagesInternal()
103 installPackage(getApkNameForTestApp(2)); in testRestorePackagesInternal()
104 installPackage(getApkNameForTestApp(3)); in testRestorePackagesInternal()
DKeyValueBackupRestoreHostSideTest.java69 installPackage(KEY_VALUE_RESTORE_APP_APK); in setUp()
72 installPackage(SHARED_PREFERENCES_RESTORE_APP_APK); in setUp()
115 installPackage(KEY_VALUE_RESTORE_APP_APK); in testKeyValueBackupAndRestore()
DRestoreAnyVersionHostSideTest.java159 installPackage(RESTORE_ANY_VERSION_APP_APK, "-d", "-r"); in installRestoreAnyVersionApp()
166 installPackage(NO_RESTORE_ANY_VERSION_APK, "-d", "-r"); in installNoRestoreAnyVersionApp()
173 installPackage(RESTORE_ANY_VERSION_UPDATE_APK, "-d", "-r"); in installNewVersionApp()
DSuccessNotificationHostSideTest.java99 installPackage(KEY_VALUE_BACKUP_APP_APK); in setUp()
100 installPackage(FULL_BACKUP_APP_APK); in setUp()
102 installPackage(SUCCESS_NOTIFICATION_APP_APK); in setUp()
/cts/hostsidetests/incident/src/com/android/server/cts/
DErrorsTest.java36 installPackage(DEVICE_SIDE_TEST_APK, /* grantPermissions= */ true); in testThrowException()
43 installPackage(DEVICE_SIDE_TEST_APK, /* grantPermissions= */ true); in testANR()
50 installPackage(DEVICE_SIDE_TEST_APK, /* grantPermissions= */ true); in testNativeCrash()
57 installPackage(DEVICE_SIDE_TEST_APK, /* grantPermissions= */ true); in testTombstone()
DBatteryStatsValidationTest.java141 installPackage(DEVICE_SIDE_TEST_APK, /* grantPermissions= */ true); in testAlarms()
154 installPackage(DEVICE_SIDE_TEST_APK, /* grantPermissions= */ true); in testWakeLockDuration()
175 installPackage(DEVICE_SIDE_TEST_APK, true); in testServiceForegroundDuration()
190 installPackage(DEVICE_SIDE_TEST_APK, true); in testUidForegroundDuration()
203 installPackage(DEVICE_SIDE_TEST_APK, true); in testUidBackgroundDuration()
213 installPackage(DEVICE_SIDE_TEST_APK, true); in testTopDuration()
225 installPackage(DEVICE_SIDE_TEST_APK, true); in testCachedDuration()
279 installPackage(DEVICE_SIDE_TEST_APK, true); in testBleScans()
302 installPackage(DEVICE_SIDE_TEST_APK, true); in testUnoptimizedBleScans()
356 installPackage(DEVICE_SIDE_TEST_APK, true); in testGpsUpdates()
[all …]
/cts/hostsidetests/tv/src/com/android/cts/tv/
DTvInputManagerHostTest.java51 private void installPackage(String apk) throws FileNotFoundException, in installPackage() method in TvInputManagerHostTest
54 assertNull(getDevice().installPackage(buildHelper.getTestFile(apk), true)); in installPackage()
85 installPackage(TEST_APK); in setUp()
86 installPackage(TEST_APK2); in setUp()
107 installPackage(TEST_APK); in testInputUpdated()
/cts/hostsidetests/statsd/src/android/cts/statsd/uidmap/
DUidMapTests.java78 final String result = getDevice().installPackage( in testChangeFromInstallation()
103 getDevice().installPackage(buildHelper.getTestFile(DEVICE_SIDE_TEST_APK), false, true); in testChangeFromReinstall()
106 getDevice().installPackage(buildHelper.getTestFile(DEVICE_SIDE_TEST_APK), true, true); in testChangeFromReinstall()
129 getDevice().installPackage(buildHelper.getTestFile(DEVICE_SIDE_TEST_APK), true, true); in testChangeFromUninstall()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java61 super.installPackage(TEST_APP_LOCATION); in testManualInstallBlocked()
82 protected void installPackage(String packageLocation) throws Exception { in installPackage() method in ManualPackageInstallTest
83 super.installPackage(packageLocation); in installPackage()
/cts/hostsidetests/net/src/com/android/cts/net/
DHostsideNetworkTestCase.java69 installPackage(TEST_APK); in setUp()
79 protected void installPackage(String apk) throws FileNotFoundException, in installPackage() method in HostsideNetworkTestCase
82 assertNull(getDevice().installPackage(buildHelper.getTestFile(apk), in installPackage()
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DShellCommandFromAppTest.java63 installPackage(DeviceTestConstants.APK, "-r", "--instant"); in runDeviceTestMethodWithoutHiddenApiCheck()
65 installPackage(DeviceTestConstants.APK, "-r"); in runDeviceTestMethodWithoutHiddenApiCheck()
/cts/hostsidetests/testharness/src/android/testharness/cts/
DTestHarnessModeDeviceTest.java105 installPackage("CtsTestHarnessModeDeviceApp.apk"); in testHarnessModeRemovesInstalledAppsAndData()
110 installPackage("CtsTestHarnessModeDeviceApp.apk"); in testHarnessModeRemovesInstalledAppsAndData()

1234