Home
last modified time | relevance | path

Searched refs:StagedSession (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageSessionVerifierTest.java46 StagingManager.StagedSession session1 = createStagedSession(111, "com.foo", 1); in checkRebootlessApex()
61 StagingManager.StagedSession session1 = createStagedSession(111, "com.foo", 1); in checkActiveSessions()
68 StagingManager.StagedSession session2 = createStagedSession(222, "com.bar", 2); in checkActiveSessions()
79 StagingManager.StagedSession session1 = createStagedSession(111, "com.foo", 1); in checkRollbacks()
80 StagingManager.StagedSession session2 = createStagedSession(222, "com.bar", 2); in checkRollbacks()
81 StagingManager.StagedSession session3 = createStagedSession(333, "com.baz", 3); in checkRollbacks()
98 StagingManager.StagedSession session4 = createStagedSession(444, "com.fur", 4); in checkRollbacks()
105 StagingManager.StagedSession session1 = createStagedSession(111, "com.foo", 1); in checkOverlaps()
106 StagingManager.StagedSession session2 = createStagedSession(222, "com.foo", 2); in checkOverlaps()
114 StagingManager.StagedSession session3 = createStagedSession(333, "com.foo", 3); in checkOverlaps()
[all …]
DStagingManagerTest.java207 List<StagingManager.StagedSession> sessions = new ArrayList<>(); in restoreSessions_handlesDestroyedAndNotReadySessions()
238 List<StagingManager.StagedSession> sessions = new ArrayList<>(); in restoreSessions_unknownApexSession_failsAllSessions()
293 List<StagingManager.StagedSession> sessions = new ArrayList<>(); in restoreSessions_failedApexSessions_failsAllSessions()
343 List<StagingManager.StagedSession> sessions = new ArrayList<>(); in restoreSessions_stagedApexSession_failsAllSessions()
406 List<StagingManager.StagedSession> sessions = new ArrayList<>(); in restoreSessions_failedAndActivatedApexSessions_abortsCheckpoint()
437 List<StagingManager.StagedSession> sessions = new ArrayList<>(); in restoreSessions_apexSessionInImpossibleState_failsAllSessions()
719 private StagingManager.StagedSession createSession(int sessionId, String packageName, in createSession()
761 StagingManager.StagedSession stagedSession = spy(session.mStagedSession); in createSession()
764 Predicate<StagingManager.StagedSession> filter = invocation.getArgument(0); in createSession()
771 private static final class FakeStagedSession implements StagingManager.StagedSession {
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DStagingManager.java92 private final SparseArray<StagedSession> mStagedSessions = new SparseArray<>();
106 interface StagedSession { interface in StagingManager
115 List<StagedSession> getChildSessions(); in getChildSessions()
120 boolean sessionContains(Predicate<StagedSession> filter); in sessionContains()
248 private List<StagedSession> extractApexSessions(StagedSession session) { in extractApexSessions()
249 List<StagedSession> apexSessions = new ArrayList<>(); in extractApexSessions()
251 for (StagedSession s : session.getChildSessions()) { in extractApexSessions()
268 private void checkInstallationOfApkInApexSuccessful(StagedSession session) in checkInstallationOfApkInApexSuccessful()
270 final List<StagedSession> apexSessions = extractApexSessions(session); in checkInstallationOfApkInApexSuccessful()
275 for (StagedSession apexSession : apexSessions) { in checkInstallationOfApkInApexSuccessful()
[all …]
DPackageSessionVerifier.java73 private final List<StagingManager.StagedSession> mStagedSessions = new ArrayList<>();
231 private void verifyStaged(StagingManager.StagedSession session, Callback callback) { in verifyStaged()
238 for (StagingManager.StagedSession child : session.getChildSessions()) { in verifyStaged()
255 void storeSession(StagingManager.StagedSession session) { in storeSession()
261 private void onVerificationSuccess(StagingManager.StagedSession session, Callback callback) { in onVerificationSuccess()
265 private void onVerificationFailure(StagingManager.StagedSession session, Callback callback, in onVerificationFailure()
276 private void dispatchVerifyApex(StagingManager.StagedSession session, Callback callback) { in dispatchVerifyApex()
287 private void dispatchEndVerification(StagingManager.StagedSession session, Callback callback) { in dispatchEndVerification()
306 private void verifyApex(StagingManager.StagedSession session) throws PackageManagerException { in verifyApex()
341 private void endVerification(StagingManager.StagedSession session) in endVerification()
[all …]
DPackageInstallerSession.java609 final StagedSession mStagedSession;
620 public class StagedSession implements StagingManager.StagedSession { class in PackageInstallerSession
622 public List<StagingManager.StagedSession> getChildSessions() { in getChildSessions()
628 List<StagingManager.StagedSession> childSessions = new ArrayList<>(size); in getChildSessions()
731 public boolean sessionContains(Predicate<StagingManager.StagedSession> filter) { in sessionContains()
1220 mStagedSession = params.isStaged ? new StagedSession() : null; in PackageInstallerSession()
DPackageInstallerService.java378 List<StagingManager.StagedSession> stagedSessionsToRestore = new ArrayList<>(); in restoreAndApplyStagedSessionIfNeeded()
385 StagingManager.StagedSession stagedSession = session.mStagedSession; in restoreAndApplyStagedSessionIfNeeded()