Home
last modified time | relevance | path

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

/cts/hostsidetests/rollback/app/src/com/android/cts/rollback/host/app/
DHostTestHelper.java30 import com.android.cts.rollback.lib.TestApp;
75 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testApkOnlyEnableRollback()
77 Install.single(TestApp.A1).commit(); in testApkOnlyEnableRollback()
78 Install.single(TestApp.A2).setStaged().setEnableRollback().commit(); in testApkOnlyEnableRollback()
91 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testApkOnlyCommitRollback()
92 RollbackInfo available = Utils.getAvailableRollback(TestApp.A); in testApkOnlyCommitRollback()
95 Rollback.from(TestApp.A2).to(TestApp.A1)); in testApkOnlyCommitRollback()
96 assertThat(Utils.getCommittedRollback(TestApp.A)).isNull(); in testApkOnlyCommitRollback()
98 Utils.rollback(available.getRollbackId(), TestApp.A2); in testApkOnlyCommitRollback()
99 RollbackInfo committed = Utils.getCommittedRollback(TestApp.A); in testApkOnlyCommitRollback()
[all …]
/cts/tests/rollback/src/android/server/cts/rollback/
DRollbackManagerTest.java30 import com.android.cts.rollback.lib.TestApp;
59 Utils.uninstall(TestApp.A); in setup()
67 Utils.uninstall(TestApp.A); in teardown()
78 Install.single(TestApp.A1).commit(); in testBasic()
79 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic()
80 assertThat(Utils.getAvailableRollback(TestApp.A)).isNull(); in testBasic()
81 assertThat(Utils.getCommittedRollback(TestApp.A)).isNull(); in testBasic()
83 Install.single(TestApp.A2).setEnableRollback().commit(); in testBasic()
84 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testBasic()
85 RollbackInfo available = Utils.getAvailableRollback(TestApp.A); in testBasic()
[all …]
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DTestApp.java24 public class TestApp { class
28 public static final TestApp A1 = new TestApp("A1", A, 1, /*isApex*/false,
30 public static final TestApp A2 = new TestApp("A2", A, 2, /*isApex*/false,
32 public static final TestApp Apex2 = new TestApp("Apex2", Apex, 2, /*isApex*/true,
34 public static final TestApp Apex3 = new TestApp("Apex3", Apex, 3, /*isApex*/true,
43 public TestApp(String name, String packageName, long versionCode, boolean isApex, in TestApp() method in TestApp
DInstall.java33 private final TestApp[] mTestApps;
37 private Install(boolean isMultiPackage, TestApp... testApps) { in Install()
45 public static Install single(TestApp testApp) { in single()
52 public static Install multi(TestApp... testApps) { in multi()
103 private int createInstallSession(TestApp app) throws IOException { in createInstallSession()
107 ClassLoader loader = TestApp.class.getClassLoader(); in createInstallSession()
131 for (TestApp app : mTestApps) { in commit()
DRollback.java35 private Rollback(TestApp from) { in Rollback()
43 public static Rollback from(TestApp app) { in from()
51 public Rollback to(TestApp app) { in to()
DRollbackInfoSubject.java122 public void causePackagesContainsExactly(TestApp... causes) { in causePackagesContainsExactly()
124 for (TestApp cause : causes) { in causePackagesContainsExactly()
DUtils.java162 public static void rollback(int rollbackId, TestApp... causePackages) in rollback()
165 for (TestApp cause : causePackages) { in rollback()
/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/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