Home
last modified time | relevance | path

Searched refs:TestApp (Results 1 – 14 of 14) sorted by relevance

/cts/hostsidetests/rollback/app/src/com/android/cts/rollback/host/app/
DHostTestHelper.java34 import com.android.cts.install.lib.TestApp;
54 private static final TestApp Apex2SignedBobRotRollback = new TestApp(
55 "Apex2SignedBobRotRollback", TestApp.Apex, 2, /*isApex*/true,
98 Uninstall.packages(TestApp.A); in cleanUp()
99 Uninstall.packages(TestApp.B); in cleanUp()
108 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testApkOnlyEnableRollback()
110 Install.single(TestApp.A1).commit(); in testApkOnlyEnableRollback()
111 Install.single(TestApp.A2).setStaged().setEnableRollback().commit(); in testApkOnlyEnableRollback()
124 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testApkOnlyCommitRollback()
125 RollbackInfo available = RollbackUtils.getAvailableRollback(TestApp.A); in testApkOnlyCommitRollback()
[all …]
/cts/libs/install/src/com/android/cts/install/lib/
DTestApp.java30 public class TestApp { class
38 public static final TestApp A1 = new TestApp("Av1", A, 1, /*isApex*/false,
40 public static final TestApp A2 = new TestApp("Av2", A, 2, /*isApex*/false,
42 public static final TestApp A3 = new TestApp("Av3", A, 3, /*isApex*/false,
44 public static final TestApp ACrashing2 = new TestApp("ACrashingV2", A, 2, /*isApex*/false,
46 public static final TestApp ASplit1 = new TestApp("ASplitV1", A, 1, /*isApex*/false,
48 public static final TestApp ASplit2 = new TestApp("ASplitV2", A, 2, /*isApex*/false,
51 public static final TestApp B1 = new TestApp("Bv1", B, 1, /*isApex*/false,
53 public static final TestApp B2 = new TestApp("Bv2", B, 2, /*isApex*/false,
56 public static final TestApp C1 = new TestApp("Cv1", C, 1, /*isApex*/false,
[all …]
DInstall.java33 private final TestApp[] mTestApps;
45 private Install(boolean isMultiPackage, TestApp... testApps) { in Install()
53 mTestApps = new TestApp[0]; in Install()
60 public static Install single(TestApp testApp) { in single()
67 public static Install multi(TestApp... testApps) { in multi()
178 for (TestApp testApp : mTestApps) { in createSession()
219 private int createSingleInstallSession(TestApp app) throws IOException { in createSingleInstallSession()
/cts/tests/tests/util/src/android/util/cts/
DInstallUtilTest.java32 import com.android.cts.install.lib.TestApp;
60 Uninstall.packages(TestApp.A, TestApp.B); in teardown()
75 Uninstall.packages(TestApp.A, TestApp.B); in setup()
81 private void assertSameResource(TestApp a, TestApp b) throws Exception { in assertSameResource()
99 Install.multi(TestApp.A1, TestApp.B2).commit(); in testNativeFilePathTestApp()
101 TestApp a1 = new TestApp(TestApp.A1.toString(), TestApp.A1.getPackageName(), in testNativeFilePathTestApp()
102 TestApp.A1.getVersionCode(), false, in testNativeFilePathTestApp()
103 new File(InstallUtils.getPackageInfo(TestApp.A).applicationInfo.sourceDir)); in testNativeFilePathTestApp()
104 TestApp b2 = new TestApp(TestApp.B2.toString(), TestApp.B2.getPackageName(), in testNativeFilePathTestApp()
105 TestApp.B2.getVersionCode(), false, in testNativeFilePathTestApp()
[all …]
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/
DAtomicInstallTest.java35 import com.android.cts.install.lib.TestApp;
51 private static final TestApp CORRUPT_TESTAPP = new TestApp(
66 Uninstall.packages(TestApp.A, TestApp.B); in setup()
79 Install.multi(TestApp.A1, TestApp.B1).commit(); in testInstallTwoApks()
80 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(1); in testInstallTwoApks()
81 assertThat(getInstalledVersion(TestApp.B)).isEqualTo(1); in testInstallTwoApks()
86 Install.multi(TestApp.A2, TestApp.B1).commit(); in testInstallTwoApksDowngradeFail()
87 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(2); in testInstallTwoApksDowngradeFail()
88 assertThat(getInstalledVersion(TestApp.B)).isEqualTo(1); in testInstallTwoApksDowngradeFail()
91 "INSTALL_FAILED_VERSION_DOWNGRADE", Install.multi(TestApp.A1, TestApp.B1)); in testInstallTwoApksDowngradeFail()
[all …]
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java44 import com.android.cts.install.lib.TestApp;
108 private static final TestApp TESTAPP_SAME_NAME_AS_APEX = new TestApp(
111 public static final TestApp Apex2DifferentCertificate = new TestApp(
114 private static final TestApp Apex2SignedBob = new TestApp(
117 private static final TestApp Apex2SignedBobRot = new TestApp(
120 private static final TestApp Apex2SignedBobRotRollback = new TestApp(
123 private static final TestApp Apex3SignedBob = new TestApp(
126 private static final TestApp Apex3SignedBobRot = new TestApp(
172 Uninstall.packages(TestApp.A, TestApp.B); in cleanUp()
194 int sessionId = stageSingleApk(TestApp.A1).assertSuccessful().getSessionId(); in testInstallStagedApk_Commit()
[all …]
DApexShimValidationTest.java32 import com.android.cts.install.lib.TestApp;
127 TestApp apexTestApp = new TestApp("ShimApex", SHIM_APEX_PACKAGE_NAME, 2, in stageApex()
/cts/tests/rollback/src/com/android/cts/rollback/
DRollbackManagerTest.java30 import com.android.cts.install.lib.TestApp;
61 Uninstall.packages(TestApp.A); in setup()
69 Uninstall.packages(TestApp.A); in teardown()
80 Install.single(TestApp.A1).commit(); in testBasic()
81 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic()
82 assertThat(RollbackUtils.getAvailableRollback(TestApp.A)).isNull(); in testBasic()
83 assertThat(RollbackUtils.getCommittedRollback(TestApp.A)).isNull(); in testBasic()
85 Install.single(TestApp.A2).setEnableRollback().commit(); in testBasic()
86 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testBasic()
87 InstallUtils.processUserData(TestApp.A); in testBasic()
[all …]
/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedStoragePermissionSharedUidTest.java74 private static class TestApp { class in RestrictedStoragePermissionSharedUidTest
87 TestApp(@NonNull String apk, @NonNull String pkg, boolean isRestricted, in TestApp() method in RestrictedStoragePermissionSharedUidTest.TestApp
150 private static class NoApp extends TestApp {
182 private static final TestApp[] TEST_APPS = new TestApp[]{
183 new TestApp(APK_PATH + "CtsLegacyStorageNotIsolatedWithSharedUid.apk",
185 new TestApp(APK_PATH + "CtsLegacyStorageIsolatedWithSharedUid.apk",
187 new TestApp(APK_PATH + "CtsLegacyStorageRestrictedWithSharedUid.apk",
189 new TestApp(APK_PATH + "CtsLegacyStorageRestrictedSdk28WithSharedUid.apk",
198 public @NonNull TestApp app1;
205 public @NonNull TestApp app2;
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DRollback.java22 import com.android.cts.install.lib.TestApp;
37 private Rollback(TestApp from) { in Rollback()
45 public static Rollback from(TestApp app) { in from()
53 public Rollback to(TestApp app) { in to()
DRollbackInfoSubject.java23 import com.android.cts.install.lib.TestApp;
123 public void causePackagesContainsExactly(TestApp... causes) { in causePackagesContainsExactly()
125 for (TestApp cause : causes) { in causePackagesContainsExactly()
DRollbackUtils.java36 import com.android.cts.install.lib.TestApp;
121 public static void rollback(int rollbackId, TestApp... causePackages) in rollback()
124 for (TestApp cause : causePackages) { in rollback()
/cts/tests/tests/assist/testapp/src/android/assist/testapp/
DTestApp.java23 public class TestApp extends BaseThirdPartyActivity { class
/cts/tests/tests/voiceinteraction/testapp/src/android/voiceinteraction/testapp/
DTestApp.java39 public class TestApp extends Activity { class