Home
last modified time | relevance | path

Searched refs:bta_ag_cb (Results 1 – 8 of 8) sorted by relevance

/system/bt/bta/ag/
Dbta_ag_sco.cc125 if (bta_ag_cb.sco.p_curr_scb != nullptr && bta_ag_cb.sco.p_curr_scb->in_use) { in bta_ag_sco_conn_cback()
126 handle = bta_ag_scb_to_idx(bta_ag_cb.sco.p_curr_scb); in bta_ag_sco_conn_cback()
142 bta_ag_cb.sco.p_curr_scb = nullptr; in bta_ag_sco_conn_cback()
143 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_conn_cback()
164 sco_idx, bta_ag_cb.sco.p_curr_scb, bta_ag_cb.sco.state); in bta_ag_sco_disc_cback()
169 &bta_ag_cb.scb[0], bta_ag_cb.scb[0].in_use, bta_ag_cb.scb[0].sco_idx, in bta_ag_sco_disc_cback()
170 bta_ag_cb.scb[0].state); in bta_ag_sco_disc_cback()
174 &bta_ag_cb.scb[1], bta_ag_cb.scb[1].in_use, bta_ag_cb.scb[1].sco_idx, in bta_ag_sco_disc_cback()
175 bta_ag_cb.scb[1].state); in bta_ag_sco_disc_cback()
178 if (bta_ag_cb.sco.p_curr_scb != nullptr && bta_ag_cb.sco.p_curr_scb->in_use) { in bta_ag_sco_disc_cback()
[all …]
Dbta_ag_main.cc308 tBTA_AG_CB bta_ag_cb; variable
322 tBTA_AG_SCB* p_scb = &bta_ag_cb.scb[0]; in bta_ag_scb_alloc()
386 if (bta_ag_cb.scb[idx].in_use) { in bta_ag_scb_dealloc()
393 (*bta_ag_cb.p_cback)(BTA_AG_DISABLE_EVT, nullptr); in bta_ag_scb_dealloc()
410 return static_cast<uint16_t>(p_scb - bta_ag_cb.scb + 1); in bta_ag_scb_to_idx()
428 p_scb = &bta_ag_cb.scb[idx - 1]; in bta_ag_scb_by_idx()
469 tBTA_AG_SCB* p_scb = &bta_ag_cb.scb[0]; in bta_ag_idx_by_bdaddr()
494 tBTA_AG_SCB* p_scb = &bta_ag_cb.scb[0]; in bta_ag_other_scb_open()
588 for (tBTA_AG_SCB& scb : bta_ag_cb.scb) { in bta_ag_api_enable()
596 bta_ag_cb.p_cback = p_cback; in bta_ag_api_enable()
[all …]
Dbta_ag_sdp.cc223 if (bta_ag_cb.profile[i].sdp_handle == 0) { in bta_ag_create_records()
224 bta_ag_cb.profile[i].sdp_handle = SDP_CreateRecord(); in bta_ag_create_records()
225 bta_ag_cb.profile[i].scn = BTM_AllocateSCN(); in bta_ag_create_records()
227 bta_ag_cb.profile[i].scn, data.api_register.features, in bta_ag_create_records()
228 bta_ag_cb.profile[i].sdp_handle); in bta_ag_create_records()
246 tBTA_AG_SCB* p = &bta_ag_cb.scb[0]; in bta_ag_del_records()
270 if (bta_ag_cb.profile[i].sdp_handle != 0) { in bta_ag_del_records()
271 SDP_DeleteRecord(bta_ag_cb.profile[i].sdp_handle); in bta_ag_del_records()
272 bta_ag_cb.profile[i].sdp_handle = 0; in bta_ag_del_records()
274 BTM_FreeSCN(bta_ag_cb.profile[i].scn); in bta_ag_del_records()
Dbta_ag_act.cc88 (*bta_ag_cb.p_cback)(BTA_AG_OPEN_EVT, (tBTA_AG*)&open); in bta_ag_cback_open()
120 (*bta_ag_cb.p_cback)(BTA_AG_REGISTER_EVT, (tBTA_AG*)&reg); in bta_ag_register()
403 (*bta_ag_cb.p_cback)(BTA_AG_CLOSE_EVT, (tBTA_AG*)&close); in bta_ag_rfc_close()
425 if (bta_ag_cb.scb[i].in_use && bta_ag_cb.scb[i].svc_conn) in bta_ag_rfc_close()
532 for (tBTA_AG_SCB& ag_scb : bta_ag_cb.scb) { in bta_ag_rfc_acp_open()
787 (*bta_ag_cb.p_cback)(BTA_AG_CONN_EVT, (tBTA_AG*)&evt); in bta_ag_svc_conn_open()
813 (*bta_ag_cb.p_cback)(BTA_AG_WBS_EVT, (tBTA_AG*)&val); in bta_ag_setcodec()
831 (*bta_ag_cb.p_cback)(BTA_AG_WBS_EVT, (tBTA_AG*)&val); in bta_ag_setcodec()
Dbta_ag_api.cc58 for (const tBTA_AG_SCB& scb : bta_ag_cb.scb) { in BTA_AgEnable()
Dbta_ag_rfc.cc252 bta_ag_cb.profile[i].scn); in bta_ag_start_servers()
263 bta_ag_uuid[i], bta_ag_cb.profile[i].scn, true, BTA_AG_MTU, in bta_ag_start_servers()
Dbta_ag_cmd.cc607 (*bta_ag_cb.p_cback)(command_id, (tBTA_AG*)&val); in bta_ag_at_hsp_cback()
988 for (i = 0, ag_scb = &bta_ag_cb.scb[0]; i < BTA_AG_MAX_NUM_CLIENTS; in bta_ag_at_hfp_cback()
1129 for (i = 0, ag_scb = &bta_ag_cb.scb[0]; i < BTA_AG_MAX_NUM_CLIENTS; in bta_ag_at_hfp_cback()
1238 if ((bta_ag_cb.sco.state == BTA_AG_SCO_CODEC_ST) && in bta_ag_at_hfp_cback()
1239 (bta_ag_cb.sco.p_curr_scb == p_scb)) { in bta_ag_at_hfp_cback()
1296 (*bta_ag_cb.p_cback)(event, (tBTA_AG*)&val); in bta_ag_at_hfp_cback()
1325 (*bta_ag_cb.p_cback)(BTA_AG_AT_UNAT_EVT, (tBTA_AG*)&val); in bta_ag_at_err_cback()
Dbta_ag_int.h281 extern tBTA_AG_CB bta_ag_cb;