Searched refs:getInstalledVersion (Results 1 – 11 of 11) sorted by relevance
244 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testInstallStagedApk_Commit()247 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testInstallStagedApk_Commit()256 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(1); in testInstallStagedApk_VerifyPostReboot()275 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()276 assertThat(getInstalledVersion(TestApp.B)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()279 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()280 assertThat(getInstalledVersion(TestApp.B)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()289 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(1); in testInstallMultipleStagedApks_VerifyPostReboot()290 assertThat(getInstalledVersion(TestApp.B)).isEqualTo(1); in testInstallMultipleStagedApks_VerifyPostReboot()297 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testAbandonStagedApkBeforeReboot_CommitAndAbandon()[all …]
109 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testInstallRejected_VerifyPostReboot()114 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFile_rebootless()121 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFile_rebootless()126 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFolder_rebootless()133 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFolder_rebootless()138 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithPostInstallHook_rebootless()145 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithPostInstallHook_rebootless()150 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithPreInstallHook_rebootless()157 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithPreInstallHook_rebootless()162 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWrongSHA_rebootless()[all …]
103 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testApkOnlyStagedRollback_Phase1_Install()116 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testApkOnlyStagedRollback_Phase2_RollBack()136 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testApkOnlyStagedRollback_Phase2_RollBack()145 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testApkOnlyStagedRollback_Phase3_Confirm()162 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testApkOnlyMultipleStagedRollback_Phase1_Install()163 assertThat(InstallUtils.getInstalledVersion(TestApp.B)).isEqualTo(-1); in testApkOnlyMultipleStagedRollback_Phase1_Install()180 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testApkOnlyMultipleStagedRollback_Phase2_RollBack()196 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testApkOnlyMultipleStagedRollback_Phase2_RollBack()199 assertThat(InstallUtils.getInstalledVersion(TestApp.B)).isEqualTo(2); in testApkOnlyMultipleStagedRollback_Phase2_RollBack()215 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testApkOnlyMultipleStagedRollback_Phase2_RollBack()[all …]
20 import static com.android.cts.install.lib.InstallUtils.getInstalledVersion;120 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(1); in testSessionCleanUp_Single()134 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(1); in testSessionCleanUp_Multi()135 assertThat(getInstalledVersion(TestApp.B)).isEqualTo(1); in testSessionCleanUp_Multi()146 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(1); in testInstallTwoApks()147 assertThat(getInstalledVersion(TestApp.B)).isEqualTo(1); in testInstallTwoApks()155 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testRemoveChild()156 assertThat(getInstalledVersion(TestApp.B)).isEqualTo(-1); in testRemoveChild()157 assertThat(getInstalledVersion(TestApp.C)).isEqualTo(-1); in testRemoveChild()169 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(1); in testRemoveChild()[all …]
127 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testNativeFilePathTestApp()128 assertThat(InstallUtils.getInstalledVersion(TestApp.B)).isEqualTo(2); in testNativeFilePathTestApp()134 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testCommitSingleTestApp()143 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testCommitSingleTestApp()150 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testCommitMultiTestApp()151 assertThat(InstallUtils.getInstalledVersion(TestApp.B)).isEqualTo(-1); in testCommitMultiTestApp()156 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testCommitMultiTestApp()157 assertThat(InstallUtils.getInstalledVersion(TestApp.B)).isEqualTo(2); in testCommitMultiTestApp()174 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testOpenAndAbandonSessionForSingleApk()180 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testOpenAndCommitSessionForSingleApk()[all …]
111 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic()118 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testBasic()127 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic()147 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testBasic_MultiPackage()148 assertThat(InstallUtils.getInstalledVersion(TestApp.B)).isEqualTo(2); in testBasic_MultiPackage()159 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic_MultiPackage()160 assertThat(InstallUtils.getInstalledVersion(TestApp.B)).isEqualTo(1); in testBasic_MultiPackage()310 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testEnableRollbackPermission()334 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testNonModuleEnableRollback()350 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testMultiPackageEnableFail()[all …]
41 if (InstallUtils.getInstalledVersion(packageName) == -1 in uninstallSinglePackage()
87 public static long getInstalledVersion(String packageName) { in getInstalledVersion() method in InstallUtils
38 import com.android.cts.install.lib.InstallUtils.getInstalledVersion in <lambda>()139 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1) in <lambda>()428 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(2) in <lambda>()448 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(1) in <lambda>()462 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(2) in <lambda>()
118 assertEquals(1, InstallUtils.getInstalledVersion(TestApp.A)); in testBroadcastNotReceivedForUpdateInstall()128 assertEquals(2, InstallUtils.getInstalledVersion(TestApp.A)); in testBroadcastNotReceivedForUpdateInstall()
721 assertThat(InstallUtils.getInstalledVersion(packageName)).isEqualTo(1); in installApp()753 boolean isAppInstalled = InstallUtils.getInstalledVersion(testApp.getPackageName()) != -1; in isAppInstalled()771 assertThat(InstallUtils.getInstalledVersion(packageName)).isEqualTo(-1); in uninstallApp()