Home
last modified time | relevance | path

Searched refs:session_id (Results 1 – 18 of 18) 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.aidl26 void markStagedSessionReady(int session_id); in markStagedSessionReady() argument
27 void markStagedSessionSuccessful(int session_id); in markStagedSessionSuccessful() argument
30 ApexSessionInfo getStagedSessionInfo(int session_id); in getStagedSessionInfo() argument
34 void abortStagedSession(int session_id); in abortStagedSession() argument
/system/apex/apexd/
Dapexd.h52 const int session_id, const std::vector<int>& child_session_ids,
55 android::base::Result<void> markStagedSessionReady(const int session_id)
57 android::base::Result<void> markStagedSessionSuccessful(const int session_id)
75 android::base::Result<void> abortStagedSession(const int session_id);
Dapexservice.cpp76 BinderStatus markStagedSessionReady(int session_id) override;
77 BinderStatus markStagedSessionSuccessful(int session_id) override;
80 int session_id, ApexSessionInfo* apex_session_info) override;
91 BinderStatus abortStagedSession(int session_id) override;
186 BinderStatus ApexService::markStagedSessionReady(int session_id) { in markStagedSessionReady() argument
188 << session_id; in markStagedSessionReady()
189 Result<void> success = ::android::apex::markStagedSessionReady(session_id); in markStagedSessionReady()
191 LOG(ERROR) << "Failed to mark session id " << session_id in markStagedSessionReady()
200 BinderStatus ApexService::markStagedSessionSuccessful(int session_id) { in markStagedSessionSuccessful() argument
203 << session_id; in markStagedSessionSuccessful()
[all …]
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_test_utils.h88 inline ApexSessionInfo CreateSessionInfo(int session_id) { in CreateSessionInfo() argument
90 info.sessionId = session_id; in CreateSessionInfo()
Dapexd.cpp708 Result<ApexFile> verifySessionDir(const int session_id) { in verifySessionDir() argument
710 std::to_string(session_id); in verifySessionDir()
1106 Result<void> abortStagedSession(int session_id) { in abortStagedSession() argument
1107 auto session = ApexSession::GetSession(session_id); in abortStagedSession()
1109 return Error() << "No session found with id " << session_id; in abortStagedSession()
1961 const int session_id, const std::vector<int>& child_session_ids, in submitStagedSession() argument
1964 if (session_id == 0) { in submitStagedSession()
1980 ids_to_scan = {session_id}; in submitStagedSession()
1999 return Error() << "Cannot set session " << session_id << " as both a" in submitStagedSession()
2003 auto session = ApexSession::CreateSession(session_id); in submitStagedSession()
[all …]
/system/core/adb/client/
Dadb_install.cpp592 int session_id = -1; in install_multiple_app_streamed() local
598 session_id = strtol(start + 1, nullptr, 10); in install_multiple_app_streamed()
601 if (session_id < 0) { in install_multiple_app_streamed()
606 const auto session_id_str = std::to_string(session_id); in install_multiple_app_streamed()
845 int session_id = -1; in install_multi_package() local
851 session_id = strtol(start + 1, nullptr, 10); in install_multi_package()
854 if (session_id < 0) { in install_multi_package()
859 const auto session_id_str = std::to_string(session_id); in install_multi_package()
861 fprintf(stdout, "Created child session ID %d.\n", session_id); in install_multi_package()
862 session_ids.push_back(session_id); in install_multi_package()
[all …]
/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