Searched refs:stagedSession (Results 1 – 3 of 3) sorted by relevance
513 for (StagingManager.StagedSession stagedSession : mStagedSessions) { in checkRebootlessApex()514 if (stagedSession.isDestroyed() || stagedSession.isInTerminalState()) { in checkRebootlessApex()517 if (stagedSession.sessionContains(s -> packageName.equals(s.getPackageName()))) { in checkRebootlessApex()521 "Staged session " + stagedSession.sessionId() + " already contains " in checkRebootlessApex()543 for (StagingManager.StagedSession stagedSession : mStagedSessions) { in checkActiveSessions()544 if (stagedSession.isDestroyed() || stagedSession.isInTerminalState()) { in checkActiveSessions()567 for (StagingManager.StagedSession stagedSession : mStagedSessions) { in checkRollbacks()568 if (stagedSession.isDestroyed() || stagedSession.isInTerminalState()) { in checkRollbacks()571 if (isRollback(session) && !isRollback(stagedSession)) { in checkRollbacks()575 if (!ensureActiveApexSessionIsAborted(stagedSession)) { in checkRollbacks()[all …]
385 StagingManager.StagedSession stagedSession = session.mStagedSession; in restoreAndApplyStagedSessionIfNeeded() local386 if (!stagedSession.isInTerminalState() && stagedSession.hasParentSessionId() in restoreAndApplyStagedSessionIfNeeded()387 && getSession(stagedSession.getParentSessionId()) == null) { in restoreAndApplyStagedSessionIfNeeded()388 stagedSession.setSessionFailed(PackageManager.INSTALL_ACTIVATION_FAILED, in restoreAndApplyStagedSessionIfNeeded()389 "An orphan staged session " + stagedSession.sessionId() + " is found, " in restoreAndApplyStagedSessionIfNeeded()390 + "parent " + stagedSession.getParentSessionId() + " is missing"); in restoreAndApplyStagedSessionIfNeeded()393 if (!stagedSession.hasParentSessionId() && stagedSession.isCommitted() in restoreAndApplyStagedSessionIfNeeded()394 && !stagedSession.isInTerminalState()) { in restoreAndApplyStagedSessionIfNeeded()397 stagedSessionsToRestore.add(stagedSession); in restoreAndApplyStagedSessionIfNeeded()
761 StagingManager.StagedSession stagedSession = spy(session.mStagedSession); in createSession() local762 doReturn(packageName).when(stagedSession).getPackageName(); in createSession()765 return filter.test(stagedSession); in createSession()766 }).when(stagedSession).sessionContains(any()); in createSession()767 doNothing().when(stagedSession).setSessionFailed(anyInt(), anyString()); in createSession()768 return stagedSession; in createSession()