Home
last modified time | relevance | path

Searched refs:ApexSession (Results 1 – 5 of 5) sorted by relevance

/system/apex/apexd/
Dapexd_session.cpp83 ApexSession::ApexSession(SessionState state) : state_(std::move(state)) {} in ApexSession() function in android::apex::ApexSession
85 Result<ApexSession> ApexSession::CreateSession(int session_id) { in CreateSession()
94 return ApexSession(state); in CreateSession()
96 Result<ApexSession> ApexSession::GetSessionFromFile(const std::string& path) { in GetSessionFromFile()
107 return ApexSession(state); in GetSessionFromFile()
110 Result<ApexSession> ApexSession::GetSession(int session_id) { in GetSession()
116 std::vector<ApexSession> ApexSession::GetSessions() { in GetSessions()
117 std::vector<ApexSession> sessions; in GetSessions()
142 std::vector<ApexSession> ApexSession::GetSessionsInState( in GetSessionsInState()
147 [&](const ApexSession &s) { return s.GetState() != state; }), in GetSessionsInState()
[all …]
Dapexd_session.h33 class ApexSession {
35 static android::base::Result<ApexSession> CreateSession(int session_id);
36 static android::base::Result<ApexSession> GetSession(int session_id);
37 static std::vector<ApexSession> GetSessions();
38 static std::vector<ApexSession> GetSessionsInState(
40 static android::base::Result<std::optional<ApexSession>> GetActiveSession();
41 static std::vector<ApexSession> GetActiveSessions();
42 ApexSession() = delete;
70 ApexSession(::apex::proto::SessionState state);
73 static android::base::Result<ApexSession> GetSessionFromFile(
[all …]
Dapexd.cpp947 ApexSession::GetSessionsInState(SessionState::REVERT_IN_PROGRESS); in resumeRevertIfNeeded()
1188 auto session = ApexSession::GetSession(session_id); in abortStagedSession()
1329 const ApexSession& session) { in snapshotOrRestoreDeIfNeeded()
1357 auto sessions = ApexSession::GetSessionsInState(SessionState::ACTIVATED); in snapshotOrRestoreDeSysData()
1359 for (const ApexSession& session : sessions) { in snapshotOrRestoreDeSysData()
1372 auto sessions = ApexSession::GetSessionsInState(SessionState::ACTIVATED); in snapshotOrRestoreDeUserData()
1374 for (const ApexSession& session : sessions) { in snapshotOrRestoreDeUserData()
1454 const ApexSession& session) { in restorePreRestoreSnapshotsIfPresent()
1476 void restoreDePreRestoreSnapshotsIfPresent(const ApexSession& session) { in restoreDePreRestoreSnapshotsIfPresent()
1491 const ApexSession& session) { in deleteDePreRestoreSnapshots()
[all …]
Dapexservice_test.cpp696 auto session = ApexSession::GetSession(1547); in TEST_F()
829 auto session = ApexSession::GetSession(1547); in TEST_F()
1737 auto session1 = ApexSession::CreateSession(37); in TEST_F()
1739 auto session2 = ApexSession::CreateSession(57); in TEST_F()
1741 auto session3 = ApexSession::CreateSession(73); in TEST_F()
1899 auto session = ApexSession::CreateSession(73); in TEST_F()
1914 auto session = ApexSession::CreateSession(239); in TEST_F()
1929 auto session = ApexSession::CreateSession(1543); in TEST_F()
1945 auto session1 = ApexSession::CreateSession(239); in TEST_F()
1947 auto session2 = ApexSession::CreateSession(240); in TEST_F()
[all …]
Dapexservice.cpp229 void convertToApexSessionInfo(const ApexSession& session, in convertToApexSessionInfo()
299 auto sessions = ApexSession::GetSessions(); in getSessions()
313 auto session = ApexSession::GetSession(session_id); in getStagedSessionInfo()
619 std::vector<ApexSession> sessions = ApexSession::GetSessions(); in dump()