Home
last modified time | relevance | path

Searched refs:stagedSession (Results 1 – 3 of 3) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageSessionVerifier.java511 if (stagedSession.isDestroyed() || stagedSession.isInTerminalState()) { in checkRebootlessApex()
541 if (stagedSession.isDestroyed() || stagedSession.isInTerminalState()) { in checkActiveSessions()
565 if (stagedSession.isDestroyed() || stagedSession.isInTerminalState()) { in checkRollbacks()
568 if (isRollback(session) && !isRollback(stagedSession)) { in checkRollbacks()
572 if (!ensureActiveApexSessionIsAborted(stagedSession)) { in checkRollbacks()
578 stagedSession.setSessionFailed( in checkRollbacks()
612 if (stagedSession.isDestroyed() || stagedSession.isInTerminalState() in checkOverlaps()
613 || stagedSession.sessionId() == parent.sessionId()) { in checkOverlaps()
624 + stagedSession.sessionId()); in checkOverlaps()
626 stagedSession.setSessionFailed( in checkOverlaps()
[all …]
H A DPackageInstallerService.java367 StagingManager.StagedSession stagedSession = session.mStagedSession; in restoreAndApplyStagedSessionIfNeeded() local
368 if (!stagedSession.isInTerminalState() && stagedSession.hasParentSessionId() in restoreAndApplyStagedSessionIfNeeded()
369 && getSession(stagedSession.getParentSessionId()) == null) { in restoreAndApplyStagedSessionIfNeeded()
370 stagedSession.setSessionFailed(PackageManager.INSTALL_ACTIVATION_FAILED, in restoreAndApplyStagedSessionIfNeeded()
371 "An orphan staged session " + stagedSession.sessionId() + " is found, " in restoreAndApplyStagedSessionIfNeeded()
372 + "parent " + stagedSession.getParentSessionId() + " is missing"); in restoreAndApplyStagedSessionIfNeeded()
375 if (!stagedSession.hasParentSessionId() && stagedSession.isCommitted() in restoreAndApplyStagedSessionIfNeeded()
376 && !stagedSession.isInTerminalState()) { in restoreAndApplyStagedSessionIfNeeded()
379 stagedSessionsToRestore.add(stagedSession); in restoreAndApplyStagedSessionIfNeeded()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
H A DStagingManagerTest.java760 StagingManager.StagedSession stagedSession = spy(session.mStagedSession); in createSession() local
761 doReturn(packageName).when(stagedSession).getPackageName(); in createSession()
764 return filter.test(stagedSession); in createSession()
765 }).when(stagedSession).sessionContains(any()); in createSession()
766 doNothing().when(stagedSession).setSessionFailed(anyInt(), anyString()); in createSession()
767 return stagedSession; in createSession()