Searched refs:ApexSession (Results 1 – 7 of 7) sorted by relevance
55 ApexSession::ApexSession(SessionState state) : state_(std::move(state)) {} in ApexSession() function in android::apex::ApexSession57 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 …]
31 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 …]
50 std::string result = ApexSession::GetSessionsDir(); in TEST()59 std::string result = ApexSession::GetSessionsDir(); in TEST()110 ASSERT_TRUE(IsOk(ApexSession::MigrateToMetadataSessionsDir())); in TEST()112 auto sessions = ApexSession::GetSessions(); in TEST()115 auto migrated_session_1 = ApexSession::GetSession(239); in TEST()119 auto migrated_session_2 = ApexSession::GetSession(1543); in TEST()
456 DeleteDirContent(ApexSession::GetSessionsDir()); in CleanUp()688 auto session = ApexSession::GetSession(1547); in TEST_F()821 auto session = ApexSession::GetSession(1547); in TEST_F()1798 auto session1 = ApexSession::CreateSession(37); in TEST_F()1800 auto session2 = ApexSession::CreateSession(57); in TEST_F()1802 auto session3 = ApexSession::CreateSession(73); in TEST_F()1965 auto session = ApexSession::CreateSession(73); in TEST_F()1980 auto session = ApexSession::CreateSession(239); in TEST_F()1995 auto session = ApexSession::CreateSession(1543); in TEST_F()2011 auto session1 = ApexSession::CreateSession(239); in TEST_F()[all …]
1124 ApexSession::GetSessionsInState(SessionState::REVERT_IN_PROGRESS); in ResumeRevertIfNeeded()1521 auto session = ApexSession::GetSession(session_id); in AbortStagedSession()1756 const ApexSession& session) { in SnapshotOrRestoreDeIfNeeded()1784 auto sessions = ApexSession::GetSessionsInState(SessionState::ACTIVATED); in SnapshotOrRestoreDeSysData()1786 for (const ApexSession& session : sessions) { in SnapshotOrRestoreDeSysData()1799 auto sessions = ApexSession::GetSessionsInState(SessionState::ACTIVATED); in SnapshotOrRestoreDeUserData()1801 for (const ApexSession& session : sessions) { in SnapshotOrRestoreDeUserData()1825 return ApexSession::MigrateToMetadataSessionsDir(); in MigrateSessionsDirIfNeeded()1887 const ApexSession& session) { in RestorePreRestoreSnapshotsIfPresent()1903 void RestoreDePreRestoreSnapshotsIfPresent(const ApexSession& session) { in RestoreDePreRestoreSnapshotsIfPresent()[all …]
276 void ConvertToApexSessionInfo(const ApexSession& session, in ConvertToApexSessionInfo()348 auto sessions = ApexSession::GetSessions(); in getSessions()362 auto session = ApexSession::GetSession(session_id); in getStagedSessionInfo()716 std::vector<ApexSession> sessions = ApexSession::GetSessions(); in dump()
177 Result<ApexSession> CreateStagedSession(const std::string& apex_name, in CreateStagedSession()181 auto result = ApexSession::CreateSession(session_id); in CreateStagedSession()197 DeleteDirContent(ApexSession::GetSessionsDir()); in SetUp()200 void TearDown() override { DeleteDirContent(ApexSession::GetSessionsDir()); } in TearDown()3485 apex_session = ApexSession::GetSession(123); in TEST_F()3498 apex_session = ApexSession::GetSession(123); in TEST_F()3510 apex_session = ApexSession::GetSession(123); in TEST_F()3522 apex_session = ApexSession::GetSession(123); in TEST_F()3533 apex_session = ApexSession::GetSession(123); in TEST_F()3550 apex_session = ApexSession::GetSession(123); in TEST_F()[all …]