Searched refs:getInstalledVersion (Results 1 – 6 of 6) sorted by relevance
75 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 …]
161 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 …]
123 assertThat(getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testInstallRejected_VerifyPostReboot()131 private static long getInstalledVersion(String packageName) { in getInstalledVersion() method in ApexShimValidationTest
82 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 …]
79 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()
47 public static long getInstalledVersion(String packageName) { in getInstalledVersion() method in Utils139 if (getInstalledVersion(packageName) == -1) { in uninstall()