Searched refs:getInstalledVersion (Results 1 – 10 of 10) sorted by relevance
239 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testInstallStagedApk_Commit()243 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testInstallStagedApk_Commit()252 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(1); in testInstallStagedApk_VerifyPostReboot()271 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()272 assertThat(getInstalledVersion(TestApp.B)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()276 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()277 assertThat(getInstalledVersion(TestApp.B)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()286 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(1); in testInstallMultipleStagedApks_VerifyPostReboot()287 assertThat(getInstalledVersion(TestApp.B)).isEqualTo(1); in testInstallMultipleStagedApks_VerifyPostReboot()294 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testAbandonStagedApkBeforeReboot_CommitAndAbandon()[all …]
105 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testInstallRejected_VerifyPostReboot()110 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFile_rebootless()117 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFile_rebootless()122 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFolder_rebootless()129 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFolder_rebootless()134 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithPostInstallHook_rebootless()141 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithPostInstallHook_rebootless()146 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithPreInstallHook_rebootless()153 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithPreInstallHook_rebootless()158 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 …]
120 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testNativeFilePathTestApp()121 assertThat(InstallUtils.getInstalledVersion(TestApp.B)).isEqualTo(2); in testNativeFilePathTestApp()127 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testCommitSingleTestApp()136 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testCommitSingleTestApp()143 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testCommitMultiTestApp()144 assertThat(InstallUtils.getInstalledVersion(TestApp.B)).isEqualTo(-1); in testCommitMultiTestApp()149 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testCommitMultiTestApp()150 assertThat(InstallUtils.getInstalledVersion(TestApp.B)).isEqualTo(2); in testCommitMultiTestApp()167 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testOpenAndAbandonSessionForSingleApk()173 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testOpenAndCommitSessionForSingleApk()[all …]
85 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic()92 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testBasic()101 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic()121 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testGetRollbackDataPolicy()142 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testRollbackClearsFlags()147 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testRollbackClearsFlags()157 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testRollbackClearsFlags()175 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testRollbackAfterKeyRotation()178 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testRollbackAfterKeyRotation()182 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testRollbackAfterKeyRotation()
41 if (InstallUtils.getInstalledVersion(packageName) == -1 in uninstallSinglePackage()
85 public static long getInstalledVersion(String packageName) { in getInstalledVersion() method in InstallUtils
292 if (InstallUtils.getInstalledVersion(packageName) != -1) { in installAppWithStoragePermissions()296 assertThat(InstallUtils.getInstalledVersion(packageName)).isEqualTo(1); in installAppWithStoragePermissions()315 assertThat(InstallUtils.getInstalledVersion(packageName)).isEqualTo(-1); in uninstallApp()
584 assertThat(InstallUtils.getInstalledVersion(packageName)).isEqualTo(1); in installApp()594 return InstallUtils.getInstalledVersion(testApp.getPackageName()) != -1; in isAppInstalled()607 assertThat(InstallUtils.getInstalledVersion(packageName)).isEqualTo(-1); in uninstallApp()