Lines Matching refs:bta_ar_cb

31 tBTA_AR_CB bta_ar_cb;  variable
64 memset(&bta_ar_cb, 0, sizeof(tBTA_AR_CB)); in bta_ar_init()
79 if (bta_ar_cb.p_av_conn_cback) in bta_ar_avdt_cback()
80 (*bta_ar_cb.p_av_conn_cback)(handle, bd_addr, event, p_data); in bta_ar_avdt_cback()
81 if (bta_ar_cb.p_avk_conn_cback) in bta_ar_avdt_cback()
82 (*bta_ar_cb.p_avk_conn_cback)(handle, bd_addr, event, p_data); in bta_ar_avdt_cback()
99 bta_ar_cb.p_av_conn_cback = p_cback; in bta_ar_reg_avdt()
102 bta_ar_cb.p_avk_conn_cback = p_cback; in bta_ar_reg_avdt()
113 if (bta_ar_cb.avdt_registered == 0) { in bta_ar_reg_avdt()
116 bta_ar_cb.avdt_registered |= mask; in bta_ar_reg_avdt()
133 bta_ar_cb.p_av_conn_cback = NULL; in bta_ar_dereg_avdt()
136 bta_ar_cb.p_avk_conn_cback = NULL; in bta_ar_dereg_avdt()
139 bta_ar_cb.avdt_registered &= ~mask; in bta_ar_dereg_avdt()
141 if (bta_ar_cb.avdt_registered == 0) AVDT_Deregister(); in bta_ar_dereg_avdt()
161 if (bta_ar_cb.p_avk_conn_cback) { in bta_ar_avdt_conn()
162 (*bta_ar_cb.p_avk_conn_cback)(0, bd_addr, event, &data); in bta_ar_avdt_conn()
165 if (bta_ar_cb.p_av_conn_cback) { in bta_ar_avdt_conn()
166 (*bta_ar_cb.p_av_conn_cback)(0, bd_addr, event, &data); in bta_ar_avdt_conn()
185 if (bta_ar_cb.avct_registered == 0) { in bta_ar_reg_avct()
188 bta_ar_cb.avct_registered |= mask; in bta_ar_reg_avct()
204 bta_ar_cb.avct_registered &= ~mask; in bta_ar_dereg_avct()
206 if (bta_ar_cb.avct_registered == 0) AVCT_Deregister(); in bta_ar_dereg_avct()
228 if (bta_ar_cb.sdp_tg_handle == 0) { in bta_ar_reg_avrc()
229 bta_ar_cb.tg_registered = mask; in bta_ar_reg_avrc()
230 bta_ar_cb.sdp_tg_handle = SDP_CreateRecord(); in bta_ar_reg_avrc()
232 bta_ar_cb.sdp_tg_handle, browse_supported, in bta_ar_reg_avrc()
240 bta_ar_cb.ct_categories[mask - 1] = categories; in bta_ar_reg_avrc()
241 categories = bta_ar_cb.ct_categories[0] | bta_ar_cb.ct_categories[1]; in bta_ar_reg_avrc()
242 if (bta_ar_cb.sdp_ct_handle == 0) { in bta_ar_reg_avrc()
243 bta_ar_cb.sdp_ct_handle = SDP_CreateRecord(); in bta_ar_reg_avrc()
245 bta_ar_cb.sdp_ct_handle, browse_supported, in bta_ar_reg_avrc()
253 SDP_AddAttribute(bta_ar_cb.sdp_ct_handle, ATTR_ID_SUPPORTED_FEATURES, in bta_ar_reg_avrc()
277 if (bta_ar_cb.sdp_tg_handle && mask == bta_ar_cb.tg_registered) { in bta_ar_dereg_avrc()
278 bta_ar_cb.tg_registered = 0; in bta_ar_dereg_avrc()
279 SDP_DeleteRecord(bta_ar_cb.sdp_tg_handle); in bta_ar_dereg_avrc()
280 bta_ar_cb.sdp_tg_handle = 0; in bta_ar_dereg_avrc()
284 if (bta_ar_cb.sdp_ct_handle) { in bta_ar_dereg_avrc()
285 bta_ar_cb.ct_categories[mask - 1] = 0; in bta_ar_dereg_avrc()
286 categories = bta_ar_cb.ct_categories[0] | bta_ar_cb.ct_categories[1]; in bta_ar_dereg_avrc()
289 SDP_DeleteRecord(bta_ar_cb.sdp_ct_handle); in bta_ar_dereg_avrc()
290 bta_ar_cb.sdp_ct_handle = 0; in bta_ar_dereg_avrc()
296 SDP_AddAttribute(bta_ar_cb.sdp_ct_handle, ATTR_ID_SUPPORTED_FEATURES, in bta_ar_dereg_avrc()