Home
last modified time | relevance | path

Searched refs:mcap_mdl (Results 1 – 3 of 3) sorted by relevance

/system/bt/tools/mcap_tool/
Dmcap_test_mcl.cc78 McapMdl* mcap_mdl = FindMdlById(mdl_id); in CreateMdl() local
79 if (!mcap_mdl) { in CreateMdl()
81 mcap_mdl = AllocateMdl(mdep_handle, mdl_id, peer_dep_id, cfg); in CreateMdl()
82 if (!mcap_mdl) { in CreateMdl()
86 if (mcap_mdl->IsConnected()) { in CreateMdl()
88 << (int)mcap_mdl->GetHandle(); in CreateMdl()
91 return mcap_mdl->Create(data_psm, should_connect); in CreateMdl()
107 McapMdl* mcap_mdl = FindMdlById(mdl_id); in CreateMdlResponse() local
108 if (!mcap_mdl) { in CreateMdlResponse()
110 mcap_mdl = AllocateMdl(mdep_handle, mdl_id, my_dep_id, cfg); in CreateMdlResponse()
[all …]
Dmcap_test_app.cc211 McapMdl* mcap_mdl = nullptr; in ControlCallback() local
235 mcap_mdl = mcap_mcl->FindMdlById(p_data->create_cfm.mdl_id); in ControlCallback()
236 if (!mcap_mdl) { in ControlCallback()
240 if (mcap_mdl->GetResponseCode() >= 0) { in ControlCallback()
241 LOG(ERROR) << "MDL already got response " << mcap_mdl->GetResponseCode() in ControlCallback()
245 mcap_mdl->SetResponseCode(p_data->create_cfm.rsp_code); in ControlCallback()
291 mcap_mdl = mcap_mcl->FindMdlById(p_data->reconnect_ind.mdl_id); in ControlCallback()
292 if (mcap_mdl && !mcap_mdl->IsConnected()) { in ControlCallback()
295 mcap_mdl->ReconnectResponse(); in ControlCallback()
298 LOG_IF(WARNING, mcap_mdl && mcap_mdl->IsConnected()) in ControlCallback()
[all …]
Dmcap_tool.cc804 McapMdl* mcap_mdl = mcap_mcl->FindMdlById(mdl_id); in do_mcap_close_mdl() local
805 if (!mcap_mdl) { in do_mcap_close_mdl()
809 bool ret = mcap_mdl->Close(); in do_mcap_close_mdl()
830 McapMdl* mcap_mdl = mcap_mcl->FindMdlById(mdl_id); in do_mcap_reconnect_mdl() local
831 if (!mcap_mdl) { in do_mcap_reconnect_mdl()
835 bool ret = mcap_mdl->Reconnect(data_psm); in do_mcap_reconnect_mdl()