/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | PermissionsHostTest.java | 81 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(REVIEW_HELPER_APK), true, in approveReviewPermissionDialog() 123 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testFail() 138 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testKill() 153 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_22), false, false)); in testCompatDefault22() 163 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_22), false, false)); in testCompatRevoked22() 183 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_22), false, false)); in testNoRuntimePrompt22() 192 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testDefault23() 198 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testGranted23() 204 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testInteractiveGrant23() 210 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(APK_23), false, false)); in testRuntimeGroupGrantSpecificity23() [all …]
|
D | InstantCookieHostTest.java | 62 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 …]
|
D | ExternalStorageHostTest.java | 123 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 …]
|
D | KeySetHostTest.java | 207 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()
|
D | PrivilegedUpdateTests.java | 83 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()
|
D | AccessSerialNumberTest.java | 61 assertNull(getDevice().installPackage(mBuildHelper.getTestFile( in testSerialAccessPolicy() 68 assertNull(getDevice().installPackage(mBuildHelper.getTestFile( in testSerialAccessPolicy()
|
D | DocumentsTest.java | 36 assertNull(getDevice().installPackage(buildHelper.getTestFile(PROVIDER_APK), false)); in setUp() 37 assertNull(getDevice().installPackage(buildHelper.getTestFile(DUMMYIME_APK), false)); in setUp()
|
/cts/hostsidetests/signedconfig/hostside/src/com/android/cts/signedconfig/ |
D | SignedConfigHostTest.java | 140 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/ |
D | SampleHostJUnit4DeviceTest.java | 56 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/ |
D | CtsAngleDeveloperOptionHostTest.java | 95 installPackage(ANGLE_DRIVER_TEST_APP); in testEnableAngleForAll() 96 installPackage(ANGLE_DRIVER_TEST_SEC_APP); in testEnableAngleForAll() 120 installPackage(ANGLE_DRIVER_TEST_APP); in testUseDefaultDriver() 137 installPackage(ANGLE_DRIVER_TEST_APP); in testUseAngleDriver() 154 installPackage(ANGLE_DRIVER_TEST_APP); in testUseNativeDriver() 171 installPackage(ANGLE_DRIVER_TEST_APP); in testSettingsLengthMismatch() 172 installPackage(ANGLE_DRIVER_TEST_SEC_APP); in testSettingsLengthMismatch() 194 installPackage(ANGLE_DRIVER_TEST_APP); in testUseInvalidDriver() 210 installPackage(ANGLE_DRIVER_TEST_APP); in testUpdateDriverValues() 232 installPackage(ANGLE_DRIVER_TEST_APP); in testMultipleDevOptionsAngleNative() [all …]
|
D | CtsAngleRulesFileTest.java | 93 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/ |
D | FullBackupOnlyHostSideTest.java | 107 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()
|
D | AllowBackupHostSideTest.java | 88 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()
|
D | KeyValueBackupRestoreHostSideTest.java | 69 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()
|
D | RestoreAnyVersionHostSideTest.java | 159 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()
|
D | SuccessNotificationHostSideTest.java | 99 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/ |
D | ErrorsTest.java | 36 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()
|
D | BatteryStatsValidationTest.java | 141 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/ |
D | TvInputManagerHostTest.java | 51 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/ |
D | UidMapTests.java | 78 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/ |
D | ManualPackageInstallTest.java | 56 super.installPackage(TEST_APP_LOCATION); in testManualInstallBlocked() 77 protected void installPackage(String packageLocation) throws Exception { in installPackage() method in ManualPackageInstallTest 78 super.installPackage(packageLocation); in installPackage()
|
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/ |
D | ShellCommandFromAppTest.java | 63 installPackage(DeviceTestConstants.APK, "-r", "--instant"); in runDeviceTestMethodWithoutHiddenApiCheck() 65 installPackage(DeviceTestConstants.APK, "-r"); in runDeviceTestMethodWithoutHiddenApiCheck()
|
/cts/hostsidetests/testharness/src/android/testharness/cts/ |
D | TestHarnessModeDeviceTest.java | 105 installPackage("CtsTestHarnessModeDeviceApp.apk"); in testHarnessModeRemovesInstalledAppsAndData() 110 installPackage("CtsTestHarnessModeDeviceApp.apk"); in testHarnessModeRemovesInstalledAppsAndData()
|
/cts/hostsidetests/net/src/com/android/cts/net/ |
D | HostsideNetworkTestCase.java | 69 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), false)); in installPackage()
|
D | HostsideRestrictBackgroundNetworkTests.java | 29 installPackage(TEST_APP2_APK); in setUp() 73 installPackage(TEST_APP2_APK); in testDataSaverMode_reinstall() 121 installPackage(TEST_APP2_APK); in testBatterySaverMode_reinstall()
|