Home
last modified time | relevance | path

Searched refs:getInstalledVersion (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/rollback/app/src/com/android/cts/rollback/host/app/
DHostTestHelper.java75 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testApkOnlyEnableRollback()
91 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testApkOnlyCommitRollback()
110 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testApkOnlyCommitRollback()
122 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testApkOnlyConfirmRollback()
141 assertThat(Utils.getInstalledVersion(TestApp.Apex)).isEqualTo(1); in testApexOnlyInstallFirstVersion()
155 assertThat(Utils.getInstalledVersion(TestApp.Apex)).isEqualTo(2); in testApexOnlyEnableRollback()
168 assertThat(Utils.getInstalledVersion(TestApp.Apex)).isEqualTo(3); in testApexOnlyCommitRollback()
186 assertThat(Utils.getInstalledVersion(TestApp.Apex)).isEqualTo(3); in testApexOnlyCommitRollback()
198 assertThat(Utils.getInstalledVersion(TestApp.Apex)).isEqualTo(2); in testApexOnlyConfirmRollback()
216 assertThat(Utils.getInstalledVersion(TestApp.Apex)).isEqualTo(1); in testApexAndApkInstallFirstVersion()
[all …]
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java161 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(-1); in testInstallStagedApk_Commit()
165 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(-1); in testInstallStagedApk_Commit()
172 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(1); in testInstallStagedApk_VerifyPostReboot()
191 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()
192 assertThat(getInstalledVersion(TEST_APP_B)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()
196 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()
197 assertThat(getInstalledVersion(TEST_APP_B)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()
204 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(1); in testInstallMultipleStagedApks_VerifyPostReboot()
205 assertThat(getInstalledVersion(TEST_APP_B)).isEqualTo(1); in testInstallMultipleStagedApks_VerifyPostReboot()
263 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(-1); in testAbandonStagedApkBeforeReboot_CommitAndAbandon()
[all …]
DApexShimValidationTest.java123 assertThat(getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testInstallRejected_VerifyPostReboot()
131 private static long getInstalledVersion(String packageName) { in getInstalledVersion() method in ApexShimValidationTest
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/
DAtomicInstallTest.java82 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(1); in testInstallTwoApks()
83 assertThat(getInstalledVersion(TEST_APP_B)).isEqualTo(1); in testInstallTwoApks()
89 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(2); in testInstallTwoApksDowngradeFail()
90 assertThat(getInstalledVersion(TEST_APP_B)).isEqualTo(1); in testInstallTwoApksDowngradeFail()
110 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(2); in testInstallTwoApksDowngradeFail()
111 assertThat(getInstalledVersion(TEST_APP_B)).isEqualTo(1); in testInstallTwoApksDowngradeFail()
135 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(-1); in testFailInconsistentMultiPackageCommit()
157 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(-1); in testFailInconsistentMultiPackageCommit()
182 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(-1); in testChildFailurePropagated()
205 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(-1); in testEarlyFailureFailsAll()
[all …]
/cts/tests/rollback/src/android/server/cts/rollback/
DRollbackManagerTest.java79 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic()
84 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testBasic()
93 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic()
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DUtils.java47 public static long getInstalledVersion(String packageName) { in getInstalledVersion() method in Utils
139 if (getInstalledVersion(packageName) == -1) { in uninstall()