Home
last modified time | relevance | path

Searched refs:session_id (Results 1 – 23 of 23) sorted by relevance

/system/iorap/src/prefetcher/
Dsession_manager.cc78 virtual std::shared_ptr<Session> FindSession(size_t session_id) const override { in FindSession()
79 auto it = sessions_map_.find(session_id); in FindSession()
81 DCHECK_EQ(session_id, it->second.SessionId()); in FindSession()
88 virtual bool DestroySession(size_t session_id) override { in DestroySession() argument
89 auto it = sessions_map_.find(session_id); in DestroySession()
102 size_t session_id = session->SessionId(); in InsertNewSession() local
108 sessions_map_.insert({session_id, std::move(data)}); in InsertNewSession()
126 virtual std::shared_ptr<Session> CreateSession(size_t session_id, in CreateSession() argument
128 LOG(VERBOSE) << "CreateSessionDirect id=" << session_id << ", description=" << description; in CreateSession()
131 std::static_pointer_cast<Session>(std::make_shared<SessionDirect>(session_id, in CreateSession()
[all …]
Dsession_manager.h53 virtual std::shared_ptr<Session> CreateSession(size_t session_id,
59 virtual std::shared_ptr<Session> CreateSession(size_t session_id, in CreateSession() argument
62 return CreateSession(session_id, description); in CreateSession()
67 virtual std::shared_ptr<Session> FindSession(size_t session_id) const = 0;
71 virtual bool DestroySession(size_t session_id) = 0;
Dprefetcher_daemon.cc140 os << "sid=" << command.session_id << ","; in operator <<()
659 cmd.session_id = parsed_session_id.value; in Read()
679 cmd.session_id = parsed_session_id.value; in Read()
714 cmd.session_id = parsed_session_id.value; in Read()
738 cmd.session_id = parsed_session_id.value; in Read()
753 cmd.session_id = parsed_session_id.value; in Read()
784 space_requirement += sizeof(session_id); in Write()
796 space_requirement += sizeof(session_id); in Write()
800 space_requirement += sizeof(session_id); in Write()
808 space_requirement += sizeof(session_id); in Write()
[all …]
Dsession.cc60 SessionBase::SessionBase(size_t session_id, std::string description) in SessionBase() argument
61 : session_id_{session_id}, description_{description} { in SessionBase()
606 SessionIndirect::SessionIndirect(size_t session_id, in SessionIndirect() argument
610 : SessionBase{session_id, description}, in SessionIndirect()
619 cmd.session_id = session_id;
625 LOG(FATAL) << "SessionIndirect: Failure to create session " << session_id
633 cmd.session_id = SessionId(); in ~SessionIndirect()
647 cmd.session_id = SessionId(); in Dump()
655 cmd.session_id = SessionId(); in RegisterFilePath()
665 cmd.session_id = SessionId(); in UnregisterFilePath()
[all …]
Dsession.h100 SessionBase(size_t session_id, std::string description);
135 SessionDirect(size_t session_id, std::string description) in SessionDirect() argument
136 : SessionBase{session_id, std::move(description)} { in SessionDirect()
202 SessionIndirect(size_t session_id,
220 SessionIndirectSocket(size_t session_id,
Dprefetcher_daemon.h70 uint32_t session_id; member
/system/apex/apexd/aidl/android/apex/
DIApexService.aidl27 void markStagedSessionReady(int session_id); in markStagedSessionReady() argument
28 void markStagedSessionSuccessful(int session_id); in markStagedSessionSuccessful() argument
31 ApexSessionInfo getStagedSessionInfo(int session_id); in getStagedSessionInfo() argument
35 void abortStagedSession(int session_id); in abortStagedSession() argument
/system/apex/apexd/
Dapexservice.cpp77 BinderStatus markStagedSessionReady(int session_id) override;
78 BinderStatus markStagedSessionSuccessful(int session_id) override;
81 int session_id, ApexSessionInfo* apex_session_info) override;
92 BinderStatus abortStagedSession(int session_id) override;
197 BinderStatus ApexService::markStagedSessionReady(int session_id) { in markStagedSessionReady() argument
199 << session_id; in markStagedSessionReady()
200 Result<void> success = ::android::apex::MarkStagedSessionReady(session_id); in markStagedSessionReady()
202 LOG(ERROR) << "Failed to mark session id " << session_id in markStagedSessionReady()
211 BinderStatus ApexService::markStagedSessionSuccessful(int session_id) { in markStagedSessionSuccessful() argument
214 << session_id; in markStagedSessionSuccessful()
[all …]
Dapexd.h79 const int session_id, const std::vector<int>& child_session_ids,
82 android::base::Result<void> MarkStagedSessionReady(const int session_id)
84 android::base::Result<void> MarkStagedSessionSuccessful(const int session_id)
106 android::base::Result<void> AbortStagedSession(const int session_id);
Dapexd_session.cpp75 Result<ApexSession> ApexSession::CreateSession(int session_id) { in CreateSession() argument
78 std::string session_dir = GetSessionsDir() + "/" + std::to_string(session_id); in CreateSession()
82 state.set_id(session_id); in CreateSession()
101 Result<ApexSession> ApexSession::GetSession(int session_id) { in GetSession() argument
102 auto path = StringPrintf("%s/%d/%s", GetSessionsDir().c_str(), session_id, in GetSession()
Dapexd_session.h43 static android::base::Result<ApexSession> CreateSession(int session_id);
44 static android::base::Result<ApexSession> GetSession(int session_id);
Dapexd.cpp856 Result<ApexFile> VerifySessionDir(const int session_id) { in VerifySessionDir() argument
858 std::to_string(session_id); in VerifySessionDir()
1520 Result<void> AbortStagedSession(int session_id) { in AbortStagedSession() argument
1521 auto session = ApexSession::GetSession(session_id); in AbortStagedSession()
1523 return Error() << "No session found with id " << session_id; in AbortStagedSession()
1967 auto session_id = session.GetId(); in ScanStagedSessionsDirAndStage() local
1970 LOG(WARNING) << "Marking session " << session_id << " as failed."; in ScanStagedSessionsDirAndStage()
1973 LOG(WARNING) << "Failed to mark session " << session_id in ScanStagedSessionsDirAndStage()
2001 "/session_" + std::to_string(session_id)); in ScanStagedSessionsDirAndStage()
2035 dir_to_scan.c_str(), session_id); in ScanStagedSessionsDirAndStage()
[all …]
Dapexd_test_utils.h125 inline ApexSessionInfo CreateSessionInfo(int session_id) { in CreateSessionInfo() argument
127 info.sessionId = session_id; in CreateSessionInfo()
Dapexd_test.cpp127 const std::string GetStagedDir(int session_id) { in GetStagedDir() argument
129 session_id); in GetStagedDir()
178 int session_id) { in CreateStagedSession() argument
179 CreateDirIfNeeded(GetStagedDir(session_id), 0755); in CreateStagedSession()
180 fs::copy(GetTestFile(apex_name), GetStagedDir(session_id)); in CreateStagedSession()
181 auto result = ApexSession::CreateSession(session_id); in CreateStagedSession()
/system/update_engine/cros/
Domaha_request_builder_xml.h129 const std::string& session_id) in OmahaRequestBuilderXml() argument
136 session_id_(session_id) {} in OmahaRequestBuilderXml()
Domaha_request_builder_xml_unittest.cc167 const string session_id = in TEST_F() local
170 if (!session_id.empty()) { in TEST_F()
171 EXPECT_TRUE(base::IsValidGUID(session_id)); in TEST_F()
173 EXPECT_EQ(gen_session_id, session_id); in TEST_F()
Domaha_request_action.h106 const std::string& session_id);
Domaha_request_action.cc343 const string& session_id) in OmahaRequestAction() argument
350 session_id_(session_id) { in OmahaRequestAction()
Domaha_request_action_unittest.cc375 string session_id; member
525 tuc_params_.session_id); in TestUpdateCheck()
/system/nfc/src/nfa/hci/
Dnfa_hci_main.cc418 memcpy(nfa_hci_cb.cfg.admin_gate.session_id, p_session_id, in nfa_hci_restore_default_config()
873 uint8_t session_id[NFA_HCI_SESSION_ID_LEN]; in nfa_hci_handle_nv_read() local
885 (!(memcmp(nfa_hci_cb.cfg.admin_gate.session_id, default_session, in nfa_hci_handle_nv_read()
887 (!(memcmp(nfa_hci_cb.cfg.admin_gate.session_id, reset_session, in nfa_hci_handle_nv_read()
892 memcpy(&session_id[(NFA_HCI_SESSION_ID_LEN / 2)], in nfa_hci_handle_nv_read()
893 nfa_hci_cb.cfg.admin_gate.session_id, in nfa_hci_handle_nv_read()
896 memcpy(session_id, (uint8_t*)&os_tick, (NFA_HCI_SESSION_ID_LEN / 2)); in nfa_hci_handle_nv_read()
897 nfa_hci_restore_default_config(session_id); in nfa_hci_handle_nv_read()
Dnfa_hci_act.cc1406 !memcmp((uint8_t*)nfa_hci_cb.cfg.admin_gate.session_id, p_data, in nfa_hci_handle_admin_gate_rsp()
1437 &nfa_hci_cb.cfg.admin_gate.session_id[NFA_HCI_SESSION_ID_LEN / 2], in nfa_hci_handle_admin_gate_rsp()
1438 nfa_hci_cb.cfg.admin_gate.session_id, in nfa_hci_handle_admin_gate_rsp()
1441 memcpy(nfa_hci_cb.cfg.admin_gate.session_id, (uint8_t*)&os_tick, in nfa_hci_handle_admin_gate_rsp()
1446 (uint8_t*)nfa_hci_cb.cfg.admin_gate.session_id); in nfa_hci_handle_admin_gate_rsp()
1482 .session_id[(NFA_HCI_SESSION_ID_LEN / 2)], in nfa_hci_handle_admin_gate_rsp()
1483 nfa_hci_cb.cfg.admin_gate.session_id, in nfa_hci_handle_admin_gate_rsp()
1486 memcpy(nfa_hci_cb.cfg.admin_gate.session_id, (uint8_t*)&os_tick, in nfa_hci_handle_admin_gate_rsp()
1492 (uint8_t*)nfa_hci_cb.cfg.admin_gate.session_id); in nfa_hci_handle_admin_gate_rsp()
Dnfa_hci_utils.cc1413 memcpy(&p[2], (uint8_t*)nfa_hci_cb.cfg.admin_gate.session_id, in handle_debug_loopback()
/system/nfc/src/nfa/include/
Dnfa_hci_int.h341 session_id[NFA_HCI_SESSION_ID_LEN]; /* Session ID of the host network */ member