Home
last modified time | relevance | path

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

/system/apex/apexd/
Dapexd_session.cpp44 std::string getSessionDir(int session_id) { in getSessionDir() argument
45 return kApexSessionsDir + "/" + std::to_string(session_id); in getSessionDir()
48 std::string getSessionStateFilePath(int session_id) { in getSessionStateFilePath() argument
49 return getSessionDir(session_id) + "/" + kStateFileName; in getSessionStateFilePath()
52 Result<std::string> createSessionDirIfNeeded(int session_id) { in createSessionDirIfNeeded() argument
59 std::string sessionDir = getSessionDir(session_id); in createSessionDirIfNeeded()
68 Result<void> deleteSessionDir(int session_id) { in deleteSessionDir() argument
69 std::string session_dir = getSessionDir(session_id); in deleteSessionDir()
85 Result<ApexSession> ApexSession::CreateSession(int session_id) { in CreateSession() argument
88 auto sessionPath = createSessionDirIfNeeded(session_id); in CreateSession()
[all …]
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.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;
187 BinderStatus ApexService::markStagedSessionReady(int session_id) { in markStagedSessionReady() argument
189 << session_id; in markStagedSessionReady()
190 Result<void> success = ::android::apex::markStagedSessionReady(session_id); in markStagedSessionReady()
192 LOG(ERROR) << "Failed to mark session id " << session_id in markStagedSessionReady()
201 BinderStatus ApexService::markStagedSessionSuccessful(int session_id) { in markStagedSessionSuccessful() argument
204 << session_id; in markStagedSessionSuccessful()
[all …]
Dapexd_session.h35 static android::base::Result<ApexSession> CreateSession(int session_id);
36 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.cpp716 Result<ApexFile> verifySessionDir(const int session_id) { in verifySessionDir() argument
718 std::to_string(session_id); in verifySessionDir()
1187 Result<void> abortStagedSession(int session_id) { in abortStagedSession() argument
1188 auto session = ApexSession::GetSession(session_id); in abortStagedSession()
1190 return Error() << "No session found with id " << session_id; in abortStagedSession()
2073 const int session_id, const std::vector<int>& child_session_ids, in submitStagedSession() argument
2076 if (session_id == 0) { in submitStagedSession()
2092 ids_to_scan = {session_id}; in submitStagedSession()
2111 return Error() << "Cannot set session " << session_id << " as both a" in submitStagedSession()
2115 auto session = ApexSession::CreateSession(session_id); in submitStagedSession()
[all …]
/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/core/adb/client/
Dadb_install.cpp591 int session_id = -1; in install_multiple_app_streamed() local
597 session_id = strtol(start + 1, nullptr, 10); in install_multiple_app_streamed()
600 if (session_id < 0) { in install_multiple_app_streamed()
605 const auto session_id_str = std::to_string(session_id); in install_multiple_app_streamed()
844 int session_id = -1; in install_multi_package() local
850 session_id = strtol(start + 1, nullptr, 10); in install_multi_package()
853 if (session_id < 0) { in install_multi_package()
858 const auto session_id_str = std::to_string(session_id); in install_multi_package()
860 fprintf(stdout, "Created child session ID %d.\n", session_id); in install_multi_package()
861 session_ids.push_back(session_id); in install_multi_package()
[all …]
/system/update_engine/
Domaha_request_builder_xml_unittest.cc174 const string session_id = in TEST_F() local
177 if (!session_id.empty()) { in TEST_F()
178 EXPECT_TRUE(base::IsValidGUID(session_id)); in TEST_F()
180 EXPECT_EQ(gen_session_id, session_id); in TEST_F()
Domaha_request_builder_xml.h132 const std::string& session_id) in OmahaRequestBuilderXml() argument
141 session_id_(session_id) {} in OmahaRequestBuilderXml()
Domaha_request_action.h108 const std::string& session_id);
Domaha_request_action.cc279 const string& session_id) in OmahaRequestAction() argument
288 session_id_(session_id) { in OmahaRequestAction()
Domaha_request_action_unittest.cc354 string session_id; member
506 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