Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/pm/
DStagingManager.java719 final StagedSession stagedSession = mStagedSessions.valueAt(i); in checkNonOverlappingWithStagedSessions() local
720 if (stagedSession.hasParentSessionId() || !stagedSession.isCommitted() in checkNonOverlappingWithStagedSessions()
721 || stagedSession.isInTerminalState() in checkNonOverlappingWithStagedSessions()
722 || stagedSession.isDestroyed()) { in checkNonOverlappingWithStagedSessions()
726 if (stagedSession.getCommittedMillis() > session.getCommittedMillis()) { in checkNonOverlappingWithStagedSessions()
736 if (getSessionIdForParentOrSelf(session) == stagedSession.sessionId()) { in checkNonOverlappingWithStagedSessions()
741 if (isRollback && !isRollback(stagedSession)) { in checkNonOverlappingWithStagedSessions()
745 final StagedSession root = stagedSession; in checkNonOverlappingWithStagedSessions()
757 } else if (stagedSession.sessionContains( in checkNonOverlappingWithStagedSessions()
765 + stagedSession.sessionId(), null); in checkNonOverlappingWithStagedSessions()
[all …]
DPackageInstallerService.java313 StagingManager.StagedSession stagedSession = session.mStagedSession; in restoreAndApplyStagedSessionIfNeeded() local
314 if (!stagedSession.isInTerminalState() && stagedSession.hasParentSessionId() in restoreAndApplyStagedSessionIfNeeded()
315 && getSession(stagedSession.getParentSessionId()) == null) { in restoreAndApplyStagedSessionIfNeeded()
316 stagedSession.setSessionFailed(SessionInfo.STAGED_SESSION_ACTIVATION_FAILED, in restoreAndApplyStagedSessionIfNeeded()
317 "An orphan staged session " + stagedSession.sessionId() + " is found, " in restoreAndApplyStagedSessionIfNeeded()
318 + "parent " + stagedSession.getParentSessionId() + " is missing"); in restoreAndApplyStagedSessionIfNeeded()
321 if (!stagedSession.hasParentSessionId() && stagedSession.isCommitted() in restoreAndApplyStagedSessionIfNeeded()
322 && !stagedSession.isInTerminalState()) { in restoreAndApplyStagedSessionIfNeeded()
325 stagedSessionsToRestore.add(stagedSession); in restoreAndApplyStagedSessionIfNeeded()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DStagingManagerTest.java562 StagingManager.StagedSession stagedSession = spy(session.mStagedSession); in createSession() local
563 doReturn(packageName).when(stagedSession).getPackageName(); in createSession()
566 return filter.test(stagedSession); in createSession()
567 }).when(stagedSession).sessionContains(any()); in createSession()
568 return stagedSession; in createSession()