Home
last modified time | relevance | path

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

/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java244 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 …]
DApexShimValidationTest.java109 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 …]
/cts/hostsidetests/rollback/app/src/com/android/cts/rollback/host/app/
DHostTestHelper.java103 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 …]
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/
DAtomicInstallTest.java20 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 …]
/cts/tests/tests/util/src/android/util/cts/
DInstallUtilTest.java127 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 …]
/cts/tests/rollback/src/com/android/cts/rollback/
DRollbackManagerTest.java111 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 …]
/cts/libs/install/src/com/android/cts/install/lib/
DUninstall.java41 if (InstallUtils.getInstalledVersion(packageName) == -1 in uninstallSinglePackage()
DInstallUtils.java87 public static long getInstalledVersion(String packageName) { in getInstalledVersion() method in InstallUtils
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DInstallConstraintsTest.kt38 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>()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DSessionCommitBroadcastTest.java118 assertEquals(1, InstallUtils.getInstalledVersion(TestApp.A)); in testBroadcastNotReceivedForUpdateInstall()
128 assertEquals(2, InstallUtils.getInstalledVersion(TestApp.A)); in testBroadcastNotReceivedForUpdateInstall()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java721 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()