/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/ |
D | ApexShimValidationTest.java | 31 import com.android.cts.install.lib.InstallUtils; 71 PackageInstaller.SessionInfo info = InstallUtils.waitForSession(sessionId); in testRejectsApexWithAdditionalFile_Commit() 78 PackageInstaller.SessionInfo info = InstallUtils.waitForSession(sessionId); in testRejectsApexWithAdditionalFolder_Commit() 85 PackageInstaller.SessionInfo info = InstallUtils.waitForSession(sessionId); in testRejectsApexWithPostInstallHook_Commit() 92 PackageInstaller.SessionInfo info = InstallUtils.waitForSession(sessionId); in testRejectsApexWithPreInstallHook_Commit() 99 PackageInstaller.SessionInfo info = InstallUtils.waitForSession(sessionId); in testRejectsApexWrongSHA_Commit() 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() 113 InstallUtils.commitExpectingFailure( in testRejectsApexWithAdditionalFile_rebootless() 117 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFile_rebootless() [all …]
|
D | StagedInstallTest.java | 19 import static com.android.cts.install.lib.InstallUtils.assertStatusFailure; 20 import static com.android.cts.install.lib.InstallUtils.assertStatusSuccess; 21 import static com.android.cts.install.lib.InstallUtils.getPackageInstaller; 50 import com.android.cts.install.lib.InstallUtils; 296 PackageInstaller.SessionInfo session = InstallUtils.getStagedSessionInfo(sessionId); in testAbandonStagedApkBeforeReboot_CommitAndAbandon() 299 InstallUtils.assertStagedSessionIsAbandoned(sessionId); in testAbandonStagedApkBeforeReboot_CommitAndAbandon() 329 InstallUtils.assertStagedSessionIsAbandoned(sessionId); in testAbandonStagedApkBeforeReady_CommitAndAbandon() 364 InstallUtils.assertStagedSessionIsAbandoned(sessionId); in testNoSessionUpdatedBroadcastSentForStagedSessionAbandon() 528 InstallUtils.commitExpectingFailure(AssertionError.class, in testsFailsNonStagedApexInstall() 574 InstallUtils.commitExpectingFailure(AssertionError.class, in testNonStagedInstallApkWithSameNameAsApexShouldFail() [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | InstallUtilTest.java | 30 import com.android.cts.install.lib.InstallUtils; 62 InstallUtils.dropShellPermissionIdentity(); in teardown() 71 InstallUtils.adoptShellPermissionIdentity( in setup() 103 new File(InstallUtils.getPackageInfo(TestApp.A).applicationInfo.sourceDir)); in testNativeFilePathTestApp() 106 new File(InstallUtils.getPackageInfo(TestApp.B).applicationInfo.sourceDir)); in testNativeFilePathTestApp() 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() [all …]
|
/cts/hostsidetests/rollback/app/src/com/android/cts/rollback/host/app/ |
D | HostTestHelper.java | 36 import com.android.cts.install.lib.InstallUtils; 73 InstallUtils.adoptShellPermissionIdentity( in setup() 84 InstallUtils.dropShellPermissionIdentity(); in teardown() 103 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testApkOnlyStagedRollback_Phase1_Install() 116 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testApkOnlyStagedRollback_Phase2_RollBack() 117 InstallUtils.processUserData(TestApp.A); 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() 146 InstallUtils.processUserData(TestApp.A); in testApkOnlyStagedRollback_Phase3_Confirm() 162 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testApkOnlyMultipleStagedRollback_Phase1_Install() [all …]
|
/cts/tests/rollback/src/com/android/cts/rollback/ |
D | RollbackManagerTest.java | 31 import com.android.cts.install.lib.InstallUtils; 85 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic() 92 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testBasic() 93 InstallUtils.processUserData(TestApp.A); in testBasic() 101 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic() 102 InstallUtils.processUserData(TestApp.A); in testBasic() 121 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testGetRollbackDataPolicy() 128 assertThat(InstallUtils.getPackageInstaller().getSessionInfo( in testGetRollbackDataPolicy() 132 InstallUtils.getPackageInstaller().abandonSession(sessionId); in testGetRollbackDataPolicy() 142 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testRollbackClearsFlags() [all …]
|
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/ |
D | SessionAbandonBehaviorTest.java | 22 import static com.android.cts.install.lib.InstallUtils.openPackageInstallerSession; 41 import com.android.cts.install.lib.InstallUtils; 164 InstallUtils.getPackageInstaller().unregisterSessionCallback(sessionCallback); in tearDown() 193 InstallUtils.getPackageInstaller().registerSessionCallback(sessionCallback, mHandler); in registerSessionCallbacks() 215 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in getAllChildSessions() 272 InstallUtils.getPackageInstaller().abandonSession(sessionId); in abandon_stagedSession_shouldReceiveAbandonCallBack() 286 InstallUtils.getPackageInstaller().abandonSession(sessionId); in abandon_nonStagedSession_shouldReceiveAbandonCallBack() 302 InstallUtils.getPackageInstaller().abandonSession(sessionId); in abandon_stagedSession_openedSession_canNotGetNames() 319 InstallUtils.getPackageInstaller().abandonSession(sessionId); in abandon_nonStagedSession_openedSession_canNotGetNames() 337 InstallUtils.getPackageInstaller().abandonSession(sessionId); in abandon_stagedSession_openForWriting_shouldFail() [all …]
|
D | AtomicInstallTest.java | 19 import static com.android.cts.install.lib.InstallUtils.assertStatusSuccess; 20 import static com.android.cts.install.lib.InstallUtils.getInstalledVersion; 21 import static com.android.cts.install.lib.InstallUtils.openPackageInstallerSession; 34 import com.android.cts.install.lib.InstallUtils; 94 InstallUtils.getPackageInstaller().getMySessions().forEach(info -> { in cleanUpSessions() 96 InstallUtils.getPackageInstaller().abandonSession(info.getSessionId()); in cleanUpSessions() 123 retry(() -> InstallUtils.getPackageInstaller().getSessionInfo(sessionId), in testSessionCleanUp_Single() 138 retry(() -> InstallUtils.getPackageInstaller().getSessionInfo(sessionId), in testSessionCleanUp_Multi() 168 InstallUtils.assertStatusSuccess(sender.getResult()); in testRemoveChild() 181 InstallUtils.commitExpectingFailure(AssertionError.class, in testInstallTwoApksDowngradeFail() [all …]
|
/cts/libs/install/src/com/android/cts/install/lib/ |
D | Uninstall.java | 41 if (InstallUtils.getInstalledVersion(packageName) == -1 in uninstallSinglePackage() 42 || InstallUtils.isSystemAppWithoutUpdate(packageName)) { in uninstallSinglePackage() 51 InstallUtils.assertStatusSuccess(sender.getResult()); in uninstallSinglePackage()
|
D | Install.java | 176 InstallUtils.openPackageInstallerSession(sessionId)) { in commit() 180 InstallUtils.assertStatusSuccess(result); in commit() 182 InstallUtils.waitForSessionReady(sessionId); in commit() 199 InstallUtils.openPackageInstallerSession(sessionId)) { in createSession() 242 InstallUtils.mutateInstallFlags(params, mInstallFlags); in createEmptyInstallSession() 244 return InstallUtils.getPackageInstaller().createSession(params); in createEmptyInstallSession() 263 InstallUtils.getPackageInstaller().openSession(sessionId)) { in createSingleInstallSession()
|
D | InstallUtils.java | 52 public class InstallUtils { class
|
/cts/hostsidetests/rollback/app2/src/com/android/cts/rollback/host/app2/ |
D | HostTestHelper.java | 26 import com.android.cts.install.lib.InstallUtils; 49 InstallUtils.adoptShellPermissionIdentity( in setup() 60 InstallUtils.dropShellPermissionIdentity(); in teardown()
|
/cts/hostsidetests/install/app/src/android/cts/install/ |
D | DowngradeTest.java | 22 import com.android.cts.install.lib.InstallUtils; 127 InstallUtils.commitExpectingFailure(AssertionError.class, in assert_downgradeNotAllowed_phase() 139 InstallUtils.commitExpectingFailure(AssertionError.class, in assert_downgradeNotRequested_phase()
|
D | InstallRule.java | 19 import static com.android.cts.install.lib.InstallUtils.getPackageInstaller; 31 import com.android.cts.install.lib.InstallUtils; 107 PackageInfo info = InstallUtils.getPackageInfo(packageName); in assertPackageVersion()
|
D | SessionRule.java | 19 import static com.android.cts.install.lib.InstallUtils.getPackageInstaller;
|
D | SamegradeTest.java | 19 import static com.android.cts.install.lib.InstallUtils.getPackageInfo;
|
/cts/hostsidetests/os/test-apps/StaticSharedLibTestApp/src/android/os/lib/app/ |
D | StaticSharedLibsTests.java | 31 import com.android.cts.install.lib.InstallUtils; 77 InstallUtils.commitExpectingFailure(AssertionError.class, in testSamegradeStaticSharedLibFail()
|
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/ |
D | TranscodeTestUtils.java | 58 import com.android.cts.install.lib.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()
|
/cts/libs/rollback/src/com/android/cts/rollback/lib/ |
D | RollbackUtils.java | 35 import com.android.cts.install.lib.InstallUtils; 143 InstallUtils.waitForSessionReady(committed.getCommittedSessionId()); in rollback()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 63 import com.android.cts.install.lib.InstallUtils; 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()
|