Lines Matching refs:bta_ar_cb

33 tBTA_AR_CB bta_ar_cb;  variable
46 memset(&bta_ar_cb, 0, sizeof(tBTA_AR_CB)); in bta_ar_init()
62 if (bta_ar_cb.p_av_conn_cback) in bta_ar_avdt_cback()
63 (*bta_ar_cb.p_av_conn_cback)(handle, bd_addr, event, p_data, scb_index); in bta_ar_avdt_cback()
76 bta_ar_cb.p_av_conn_cback = p_cback; in bta_ar_reg_avdt()
77 if (bta_ar_cb.avdt_registered == 0) { in bta_ar_reg_avdt()
81 bta_ar_cb.avdt_registered); in bta_ar_reg_avdt()
83 bta_ar_cb.avdt_registered |= BTA_AR_AV_MASK; in bta_ar_reg_avdt()
96 bta_ar_cb.p_av_conn_cback = NULL; in bta_ar_dereg_avdt()
97 bta_ar_cb.avdt_registered &= ~BTA_AR_AV_MASK; in bta_ar_dereg_avdt()
99 if (bta_ar_cb.avdt_registered == 0) AVDT_Deregister(); in bta_ar_dereg_avdt()
128 if (bta_ar_cb.avct_registered == 0) { in bta_ar_reg_avct()
131 bta_ar_cb.avct_registered |= BTA_AR_AV_MASK; in bta_ar_reg_avct()
144 bta_ar_cb.avct_registered &= ~BTA_AR_AV_MASK; in bta_ar_dereg_avct()
146 if (bta_ar_cb.avct_registered == 0) AVCT_Deregister(); in bta_ar_dereg_avct()
167 if (bta_ar_cb.sdp_tg_handle == 0) { in bta_ar_reg_avrc()
168 bta_ar_cb.tg_registered = mask; in bta_ar_reg_avrc()
169 bta_ar_cb.sdp_tg_handle = SDP_CreateRecord(); in bta_ar_reg_avrc()
171 bta_ar_cb.sdp_tg_handle, browse_supported, in bta_ar_reg_avrc()
179 bta_ar_cb.ct_categories[mask - 1] = categories; in bta_ar_reg_avrc()
180 categories = bta_ar_cb.ct_categories[0] | bta_ar_cb.ct_categories[1]; in bta_ar_reg_avrc()
181 if (bta_ar_cb.sdp_ct_handle == 0) { in bta_ar_reg_avrc()
182 bta_ar_cb.sdp_ct_handle = SDP_CreateRecord(); in bta_ar_reg_avrc()
184 bta_ar_cb.sdp_ct_handle, browse_supported, in bta_ar_reg_avrc()
192 SDP_AddAttribute(bta_ar_cb.sdp_ct_handle, ATTR_ID_SUPPORTED_FEATURES, in bta_ar_reg_avrc()
214 if (bta_ar_cb.sdp_tg_handle && mask == bta_ar_cb.tg_registered) { in bta_ar_dereg_avrc()
215 bta_ar_cb.tg_registered = 0; in bta_ar_dereg_avrc()
216 SDP_DeleteRecord(bta_ar_cb.sdp_tg_handle); in bta_ar_dereg_avrc()
217 bta_ar_cb.sdp_tg_handle = 0; in bta_ar_dereg_avrc()
221 if (bta_ar_cb.sdp_ct_handle) { in bta_ar_dereg_avrc()
222 bta_ar_cb.ct_categories[mask - 1] = 0; in bta_ar_dereg_avrc()
223 categories = bta_ar_cb.ct_categories[0] | bta_ar_cb.ct_categories[1]; in bta_ar_dereg_avrc()
226 SDP_DeleteRecord(bta_ar_cb.sdp_ct_handle); in bta_ar_dereg_avrc()
227 bta_ar_cb.sdp_ct_handle = 0; in bta_ar_dereg_avrc()
233 SDP_AddAttribute(bta_ar_cb.sdp_ct_handle, ATTR_ID_SUPPORTED_FEATURES, in bta_ar_dereg_avrc()