Home
last modified time | relevance | path

Searched refs:getSessionInfo (Results 1 – 23 of 23) sorted by relevance

/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DApexShimValidationTest.java71 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in testRejectsApexWithAdditionalFile_Commit()
79 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in testRejectsApexWithAdditionalFolder_Commit()
87 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in testRejectsApexWithPostInstallHook_Commit()
95 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in testRejectsApexWithPreInstallHook_Commit()
103 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in testRejectsApexWrongSHA_Commit()
DStagedInstallTest.java305 session = getSessionInfo(sessionId); in testAbandonStagedApkBeforeReboot_CommitAndAbandon()
441 PackageInstaller.SessionInfo sessionInfo = getSessionInfo(sessionId); in testStagedInstallDowngrade_DowngradeNotRequested_Fails_Commit()
538 PackageInstaller.SessionInfo sessionInfo = getSessionInfo(sessionId); in testInstallStagedNonPreInstalledApex_Fails()
547 PackageInstaller.SessionInfo sessionInfo = getSessionInfo(sessionId); in testInstallStagedDifferentPackageNameWithInstalledApex_Fails()
565 PackageInstaller.SessionInfo sessionInfo = getSessionInfo(sessionId); in testStageApkWithSameNameAsApexShouldFail_VerifyPostReboot()
641 PackageInstaller.SessionInfo sessionInfo = getSessionInfo(sessionId); in testStagedInstallDowngradeApex_DowngradeNotRequested_Fails_Commit()
680 PackageInstaller.SessionInfo sessionInfo = getSessionInfo(sessionId); in testStagedInstallDowngradeApex_DowngradeRequested_UserBuild_Fails_Commit()
801 PackageInstaller.SessionInfo info = getSessionInfo(sessionId); in testRejectsApexDifferentCertificate()
887 PackageInstaller.SessionInfo info = getSessionInfo(sessionId); in testFailStagingMultipleSessionsIfNoCheckPoint()
898 PackageInstaller.SessionInfo info = getSessionInfo(sessionId); in testFailOverlappingMultipleStagedInstall_BothSinglePackage_Apk()
[all …]
/cts/hostsidetests/appsecurity/test-apps/SessionInspector/src/com/android/cts/sessioninspector/
DSessionInspectorTest.java58 final PackageInstaller.SessionInfo sessionToMe = getSessionInfo(myPackage, sessionId); in testOnlyOwnerCanSee()
59 final PackageInstaller.SessionInfo sessionToOther = getSessionInfo(otherPackage, sessionId); in testOnlyOwnerCanSee()
77 private PackageInstaller.SessionInfo getSessionInfo(String packageName, int session) in getSessionInfo() method in SessionInspectorTest
DSessionInspectorActivity.java55 getPackageManager().getPackageInstaller().getSessionInfo(sessionId); in onCreate()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2024_0044.java70 packageInstaller.getSessionInfo(sessionId).getAppPackageName(); in testPocCVE_2024_0044()
73 .getSessionInfo(sessionId) in testPocCVE_2024_0044()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DUpdateOwnershipEnforcementTest.kt79 val sessionInfo = pi.getSessionInfo(sessionId) in isRequestUpdateOwnership_notSet_returnFalse()
97 val sessionInfo = pi.getSessionInfo(sessionId) in isRequestUpdateOwnership_set_returnTrue()
391 val sessionInfo = pi.getSessionInfo(sessionId) in getPendingUserActionReason_notRequestUpdateOwnership_reasonUnspecified()
423 val sessionInfo = pi.getSessionInfo(sessionId) in getPendingUserActionReason_notRequestUpdateOwner_reasonRemindOwnership()
DSessionTest.kt256 sessionInfo = pi.getSessionInfo(sessionId) in withPrivilegedPermissions_canAccessResolvedPath()
264 sessionInfo = pi.getSessionInfo(sessionId) in withPrivilegedPermissions_canAccessResolvedPath()
277 val sessionInfo = pi.getSessionInfo(sessionId) in withoutPrivilegedPermissions_cannotAccessResolvedPath()
/cts/tests/tests/content/src/android/content/pm/cts/
DInstallSessionTransferTest.java75 private SessionInfo getSessionInfo(@NonNull PackageInstaller installer, in getSessionInfo() method in InstallSessionTransferTest
155 SessionInfo info = getSessionInfo(installer, sessionId); in transferSession()
161 assertThat(getSessionInfo(installer, sessionId)).isNull(); in transferSession()
DInstallSessionParamsUnitTest.java212 private SessionInfo getSessionInfo(int sessionId) { in getSessionInfo() method in InstallSessionParamsUnitTest
273 SessionInfo info = getSessionInfo(sessionId); in checkSessionParams()
DPackageInstallerArchiveTest.java498 PackageInstaller.SessionInfo sessionInfo = mPackageInstaller.getSessionInfo( in unarchiveApp()
511 sessionInfo = mPackageInstaller.getSessionInfo(sessionId); in unarchiveApp()
DPackageManagerTest.java2111 var session1 = packageInstaller.getSessionInfo(packageInstaller.createSession(params1)); in testInvalidInstallSessionParamsPackageNames()
2119 var session2 = packageInstaller.getSessionInfo(packageInstaller.createSession(params2)); in testInvalidInstallSessionParamsPackageNames()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DStubMediaRoute2ProviderService.java245 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onSetSessionVolume()
318 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onReleaseSession()
356 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onSelectRoute()
385 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onDeselectRoute()
420 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onTransferToRoute()
DMediaRoute2ProviderServiceTest.java144 assertThat(mService.getSessionInfo(SESSION_ID_1)).isEqualTo(sessionInfo1); in testGetSessionInfoAndGetAllSessionInfo()
154 assertThat(mService.getSessionInfo(SESSION_ID_2)).isEqualTo(sessionInfo2); in testGetSessionInfoAndGetAllSessionInfo()
158 assertThat(mService.getSessionInfo(SESSION_ID_1)).isNull(); in testGetSessionInfoAndGetAllSessionInfo()
160 assertThat(mService.getSessionInfo(SESSION_ID_2)).isEqualTo(sessionInfo2); in testGetSessionInfoAndGetAllSessionInfo()
165 assertThat(mService.getSessionInfo(SESSION_ID_2)).isNull(); in testGetSessionInfoAndGetAllSessionInfo()
445 RoutingSessionInfo oldInfo = mService.getSessionInfo(SESSION_ID_1); in testSessionRelatedCallbacks()
460 RoutingSessionInfo oldInfo = mService.getSessionInfo(SESSION_ID_1); in testSessionRelatedCallbacks()
475 RoutingSessionInfo oldInfo = mService.getSessionInfo(SESSION_ID_1); in testSessionRelatedCallbacks()
DMediaControllerTest.java165 Bundle sessionInfo = mController.getSessionInfo(); in testGetSessionInfo()
169 Bundle cachedSessionInfo = mController.getSessionInfo(); in testGetSessionInfo()
177 assertThat(session.getController().getSessionInfo().isEmpty()).isTrue(); in testGetSessionInfoReturnsAnEmptyBundleWhenNotSet()
DMediaSessionTest.java976 Bundle sessionInfoOut = session.getController().getSessionInfo(); in testSessionInfoWithFrameworkParcelable()
/cts/hostsidetests/install/app/src/android/cts/install/
DSessionRule.java79 return Optional.ofNullable(getPackageInstaller().getSessionInfo(retrieveSessionId())) in retrieveSessionInfo()
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/
DAtomicInstallTest.java123 retry(() -> InstallUtils.getPackageInstaller().getSessionInfo(sessionId), in testSessionCleanUp_Single()
138 retry(() -> InstallUtils.getPackageInstaller().getSessionInfo(sessionId), in testSessionCleanUp_Multi()
335 InstallUtils.getPackageInstaller().getSessionInfo(childId).getParentSessionId(); in testInvalidStateScenario_RemoveWrongChildShouldDoNothing()
DSessionAbandonBehaviorTest.java215 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in getAllChildSessions()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DPackageInstallerEnumerationTests.java99 final PackageInstaller.SessionInfo info = installer.getSessionInfo(sessionId); in getSessionInfo_sessionOwner_canSeeSession()
/cts/hostsidetests/silentupdate/testapp/src/com/android/tests/silentupdate/
DSilentUpdateTests.java314 installer.getSessionInfo(sessionId).getRequireUserAction(), in commit()
/cts/tests/rollback/src/com/android/cts/rollback/
DRollbackManagerTest.java369 assertThat(InstallUtils.getPackageInstaller().getSessionInfo( in testGetRollbackDataPolicy()
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java398 .getSessionInfo(sessionId)); in handleIntent()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt12646 method @Nullable public android.content.pm.PackageInstaller.SessionInfo getSessionInfo(int);
24430 method @Nullable public final android.media.RoutingSessionInfo getSessionInfo(@NonNull String);
26601 method @NonNull public android.os.Bundle getSessionInfo();