Home | History | Annotate | Download | only in av

Lines Matching refs:handle

60 ** Description      find the RCB associated with the given SCB handle.
72 if (bta_av_cb.rcb[i].shdl == shdl && bta_av_cb.rcb[i].handle != BTA_AV_RC_HANDLE_NONE)
86 ** Description delete the given AVRC handle.
94 UINT8 rc_handle; /* connected AVRCP handle */
96 if(p_rcb->handle != BTA_AV_RC_HANDLE_NONE)
104 p_scb->rc_handle, p_rcb->handle);
105 if(p_scb->rc_handle == p_rcb->handle)
113 APPL_TRACE_EVENT4("bta_av_del_rc handle: %d status=0x%x, rc_acp_handle:%d, idx:%d",
114 p_rcb->handle, p_rcb->status, bta_av_cb.rc_acp_handle, bta_av_cb.rc_acp_idx);
115 rc_handle = p_rcb->handle;
120 p_rcb->handle = BTA_AV_RC_HANDLE_NONE;
124 /* else ACP && connected. do not clear the handle yet */
128 APPL_TRACE_EVENT4("end del_rc handle: %d status=0x%x, rc_acp_handle:%d, lidx:%d",
129 p_rcb->handle, p_rcb->status, bta_av_cb.rc_acp_handle, p_rcb->lidx);
138 ** Description close the all AVRC handle.
158 ** Description delete the given SDP record handle.
201 static void bta_av_rc_ctrl_cback(UINT8 handle, UINT8 event, UINT16 result, BD_ADDR peer_addr)
207 APPL_TRACE_EVENT2("rc_ctrl handle: %d event=0x%x", handle, event);
209 APPL_TRACE_EVENT2("bta_av_rc_ctrl_cback handle: %d event=0x%x", handle, event);
213 /* save handle of opened connection
214 bta_av_cb.rc_handle = handle;*/
228 p_msg->handle = handle;
245 static void bta_av_rc_msg_cback(UINT8 handle, UINT8 label, UINT8 opcode, tAVRC_MSG *p_msg)
253 APPL_TRACE_ERROR2("rc_msg handle: %d opcode=0x%x", handle, opcode);
255 APPL_TRACE_EVENT2("bta_av_rc_msg_cback handle: %d opcode=0x%x", handle, opcode);
274 p_buf->handle = handle;
293 ** Returns the created rc handle
315 APPL_TRACE_ERROR1("bta_av_rc_create ACP handle exist for shdl:%d", shdl);
316 return p_rcb->handle;
334 if (p_rcb->handle != BTA_AV_RC_HANDLE_NONE)
336 APPL_TRACE_ERROR1("bta_av_rc_create found duplicated handle:%d", rc_handle);
339 p_rcb->handle = rc_handle;
347 p_cb->rc_acp_handle = p_rcb->handle;
352 i, role, shdl, p_rcb->handle, lidx, p_rcb->status);
498 p_scb->rc_handle = p_data->rc_conn_chg.handle;
508 i = p_data->rc_conn_chg.handle;
509 if (p_cb->rcb[i].handle == BTA_AV_RC_HANDLE_NONE)
511 APPL_TRACE_ERROR1("not a valid handle:%d any more", i);
527 p_cb->rc_acp_handle = p_rcb->handle;
555 disc = p_data->rc_conn_chg.handle|BTA_AV_CHNL_MSK;
594 AVRC_PassCmd(p_rcb->handle, p_data->api_remote_cmd.label,
619 AVRC_VendorCmd(p_rcb->handle, p_data->api_vendor.label, &p_data->api_vendor.msg);
642 AVRC_VendorRsp(p_rcb->handle, p_data->api_vendor.label, &p_data->api_vendor.msg);
667 if (p_rcb->handle != BTA_AV_RC_HANDLE_NONE) {
668 AVRC_MsgReq(p_rcb->handle, p_data->api_meta_rsp.label,
778 AVRC_VendorRsp(p_msg->handle, p_msg->label, &p_msg->msg.vendor);
901 AVRC_PassRsp(p_data->rc_msg.handle, p_data->rc_msg.label, &p_data->rc_msg.msg.pass);
929 AVRC_PassRsp(p_data->rc_msg.handle, p_data->rc_msg.label, &p_data->rc_msg.msg.pass);
985 AVRC_VendorRsp(p_data->rc_msg.handle, p_data->rc_msg.label, &p_data->rc_msg.msg.vendor);
997 AVRC_MsgReq (p_data->rc_msg.handle, p_data->rc_msg.label, ctype, p_pkt);
1004 av.remote_cmd.rc_handle = p_data->rc_msg.handle;
1013 ** Description close the specified AVRC handle.
1020 UINT16 handle = p_data->hdr.layer_specific;
1024 if(handle < BTA_AV_NUM_RCB)
1026 p_rcb = &p_cb->rcb[handle];
1028 APPL_TRACE_DEBUG2("bta_av_rc_close handle: %d, status=0x%x", p_rcb->handle, p_rcb->status);
1029 if(p_rcb->handle != BTA_AV_RC_HANDLE_NONE)
1043 AVRC_Close(p_rcb->handle);
1190 bta_av_cb.rcb[i].handle, bta_av_cb.rcb[i].status,
1246 p_cb->rc_acp_handle = p_rcb2->handle;
1251 APPL_TRACE_DEBUG3("rc2 handle:%d lidx:%d/%d",p_rcb2->handle, p_rcb2->lidx,
1255 APPL_TRACE_DEBUG3("rc handle:%d lidx:%d/%d",p_rcb->handle, p_rcb->lidx,
1298 bta_av_cb.rcb[i].handle, bta_av_cb.rcb[i].status,
1677 ** Description Handle AVRCP service discovery results. If matching
1701 /* this is the rc handle/index to tBTA_AV_RCB */
1794 APPL_TRACE_DEBUG1("bta_av_rc_closed rc_handle:%d", p_msg->handle);
1798 APPL_TRACE_DEBUG3("bta_av_rc_closed rcb[%d] rc_handle:%d, status=0x%x", i, p_rcb->handle, p_rcb->status);
1799 if(p_rcb->handle == p_msg->handle)
1811 if(p_scb->rc_handle == p_rcb->handle)
1834 p_rcb->handle = BTA_AV_RC_HANDLE_NONE;
1847 else if((p_rcb->handle != BTA_AV_RC_HANDLE_NONE) && (p_rcb->status & BTA_AV_RC_CONN_MASK))
1862 rc_close.rc_handle = p_msg->handle;
1895 /* this is the rc handle/index to tBTA_AV_RCB */