Home
last modified time | relevance | path

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

/system/apex/apexd/
Dapexd_session.cpp55 ApexSession::ApexSession(SessionState state) : state_(std::move(state)) {} in ApexSession() function in android::apex::ApexSession
57 std::string ApexSession::GetSessionsDir() { in GetSessionsDir()
71 Result<void> ApexSession::MigrateToMetadataSessionsDir() { in MigrateToMetadataSessionsDir()
75 Result<ApexSession> ApexSession::CreateSession(int session_id) { in CreateSession()
84 return ApexSession(state); in CreateSession()
87 Result<ApexSession> ApexSession::GetSessionFromFile(const std::string& path) { in GetSessionFromFile()
98 return ApexSession(state); in GetSessionFromFile()
101 Result<ApexSession> ApexSession::GetSession(int session_id) { in GetSession()
108 std::vector<ApexSession> ApexSession::GetSessions() { in GetSessions()
109 std::vector<ApexSession> sessions; in GetSessions()
[all …]
Dapexd_session.h31 class ApexSession {
43 static android::base::Result<ApexSession> CreateSession(int session_id);
44 static android::base::Result<ApexSession> GetSession(int session_id);
45 static std::vector<ApexSession> GetSessions();
46 static std::vector<ApexSession> GetSessionsInState(
48 static android::base::Result<std::optional<ApexSession>> GetActiveSession();
49 static std::vector<ApexSession> GetActiveSessions();
50 ApexSession() = delete;
80 explicit ApexSession(::apex::proto::SessionState state);
83 static android::base::Result<ApexSession> GetSessionFromFile(
[all …]
Dapexd_session_test.cpp51 std::string result = ApexSession::GetSessionsDir(); in TEST()
60 std::string result = ApexSession::GetSessionsDir(); in TEST()
111 ASSERT_TRUE(IsOk(ApexSession::MigrateToMetadataSessionsDir())); in TEST()
113 auto sessions = ApexSession::GetSessions(); in TEST()
116 auto migrated_session_1 = ApexSession::GetSession(239); in TEST()
120 auto migrated_session_2 = ApexSession::GetSession(1543); in TEST()
Dapexservice_test.cpp394 DeleteDirContent(ApexSession::GetSessionsDir()); in CleanUp()
529 auto session = ApexSession::GetSession(1547); in TEST_F()
583 auto session = ApexSession::GetSession(1547); in TEST_F()
883 auto session1 = ApexSession::CreateSession(37); in TEST_F()
885 auto session2 = ApexSession::CreateSession(57); in TEST_F()
887 auto session3 = ApexSession::CreateSession(73); in TEST_F()
1050 auto session = ApexSession::CreateSession(73); in TEST_F()
1065 auto session = ApexSession::CreateSession(239); in TEST_F()
1080 auto session = ApexSession::CreateSession(1543); in TEST_F()
1096 auto session1 = ApexSession::CreateSession(239); in TEST_F()
[all …]
Dapexd.cpp1233 ApexSession::GetSessionsInState(SessionState::REVERT_IN_PROGRESS); in ResumeRevertIfNeeded()
1490 auto session = ApexSession::GetSession(session_id); in GetStagedApexFiles()
1716 auto session = ApexSession::GetSession(session_id); in AbortStagedSession()
1996 const ApexSession& session) { in SnapshotOrRestoreDeIfNeeded()
2024 auto sessions = ApexSession::GetSessionsInState(SessionState::ACTIVATED); in SnapshotOrRestoreDeSysData()
2026 for (const ApexSession& session : sessions) { in SnapshotOrRestoreDeSysData()
2039 auto sessions = ApexSession::GetSessionsInState(SessionState::ACTIVATED); in SnapshotOrRestoreDeUserData()
2041 for (const ApexSession& session : sessions) { in SnapshotOrRestoreDeUserData()
2065 return ApexSession::MigrateToMetadataSessionsDir(); in MigrateSessionsDirIfNeeded()
2127 const ApexSession& session) { in RestorePreRestoreSnapshotsIfPresent()
[all …]
Dapexservice.cpp316 void ConvertToApexSessionInfo(const ApexSession& session, in ConvertToApexSessionInfo()
406 auto sessions = ApexSession::GetSessions(); in getSessions()
426 auto session = ApexSession::GetSession(session_id); in getStagedSessionInfo()
828 std::vector<ApexSession> sessions = ApexSession::GetSessions(); in dump()
Dapexd_test.cpp245 Result<ApexSession> CreateStagedSession(const std::string& apex_name, in CreateStagedSession()
249 auto result = ApexSession::CreateSession(session_id); in CreateStagedSession()
272 DeleteDirContent(ApexSession::GetSessionsDir()); in SetUp()
295 DeleteDirContent(ApexSession::GetSessionsDir()); in TearDown()
4512 apex_session = ApexSession::GetSession(123); in TEST_F()
4525 apex_session = ApexSession::GetSession(123); in TEST_F()
4537 apex_session = ApexSession::GetSession(123); in TEST_F()
4549 apex_session = ApexSession::GetSession(123); in TEST_F()
4560 apex_session = ApexSession::GetSession(123); in TEST_F()
4577 apex_session = ApexSession::GetSession(123); in TEST_F()
[all …]