Lines Matching refs:ApexSession
55 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()
134 std::vector<ApexSession> ApexSession::GetSessionsInState( in GetSessionsInState()
139 [&](const ApexSession &s) { return s.GetState() != state; }), in GetSessionsInState()
145 std::vector<ApexSession> ApexSession::GetActiveSessions() { in GetActiveSessions()
147 std::vector<ApexSession> active_sessions; in GetActiveSessions()
148 for (const ApexSession& session : sessions) { in GetActiveSessions()
156 SessionState::State ApexSession::GetState() const { return state_.state(); } in GetState()
158 int ApexSession::GetId() const { return state_.id(); } in GetId()
160 const std::string& ApexSession::GetBuildFingerprint() const { in GetBuildFingerprint()
164 bool ApexSession::IsFinalized() const { in IsFinalized()
176 bool ApexSession::HasRollbackEnabled() const { in HasRollbackEnabled()
180 bool ApexSession::IsRollback() const { return state_.is_rollback(); } in IsRollback()
182 int ApexSession::GetRollbackId() const { return state_.rollback_id(); } in GetRollbackId()
184 const std::string& ApexSession::GetCrashingNativeProcess() const { in GetCrashingNativeProcess()
188 const std::string& ApexSession::GetErrorMessage() const { in GetErrorMessage()
192 const google::protobuf::RepeatedField<int> ApexSession::GetChildSessionIds() in GetChildSessionIds()
197 void ApexSession::SetChildSessionIds( in SetChildSessionIds()
204 ApexSession::GetApexNames() const { in GetApexNames()
208 void ApexSession::SetBuildFingerprint(const std::string& fingerprint) { in SetBuildFingerprint()
212 void ApexSession::SetHasRollbackEnabled(const bool enabled) { in SetHasRollbackEnabled()
216 void ApexSession::SetIsRollback(const bool is_rollback) { in SetIsRollback()
220 void ApexSession::SetRollbackId(const int rollback_id) { in SetRollbackId()
224 void ApexSession::SetCrashingNativeProcess( in SetCrashingNativeProcess()
229 void ApexSession::SetErrorMessage(const std::string& error_message) { in SetErrorMessage()
233 void ApexSession::AddApexName(const std::string& apex_name) { in AddApexName()
237 Result<void> ApexSession::UpdateStateAndCommit( in UpdateStateAndCommit()
253 Result<void> ApexSession::DeleteSession() const { in DeleteSession()
266 std::ostream& operator<<(std::ostream& out, const ApexSession& session) { in operator <<()
272 void ApexSession::DeleteFinalizedSessions() { in DeleteFinalizedSessions()
274 for (const ApexSession& session : sessions) { in DeleteFinalizedSessions()