Lines Matching refs:hdr
228 p_msg->hdr.event = msg_event;
269 p_buf->hdr.event = BTA_AV_AVRC_MSG_EVT;
587 if (p_data->hdr.layer_specific < BTA_AV_NUM_RCB) {
588 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific];
610 if (p_data->hdr.layer_specific < BTA_AV_NUM_RCB) {
611 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific];
631 if (p_data->hdr.layer_specific < BTA_AV_NUM_RCB) {
632 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific];
653 (p_data->hdr.layer_specific < BTA_AV_NUM_RCB)) {
656 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific];
762 if (p_vendor->hdr.subunit_type != AVRC_SUB_PANEL) {
766 p_vendor->hdr.ctype = BTA_AV_RSP_NOT_IMPL;
769 } else if (!AVRC_IsValidAvcType(pdu, p_vendor->hdr.ctype)) {
770 APPL_TRACE_DEBUG("Invalid pdu/ctype: 0x%x, %d", pdu, p_vendor->hdr.ctype);
837 bool is_inquiry = ((p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_SPEC_INQ) ||
838 p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_GEN_INQ);
852 p_data->rc_msg.msg.hdr.ctype);
856 if ((p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_CTRL) ||
857 (p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_SPEC_INQ) ||
858 (p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_GEN_INQ)) {
864 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_NOT_IMPL;
867 p_data->rc_msg.msg.hdr.ctype = bta_av_group_navi_supported(
874 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_ACCEPT;
876 p_data->rc_msg.msg.hdr.ctype =
880 APPL_TRACE_DEBUG("ctype %d", p_data->rc_msg.msg.hdr.ctype)
883 if (p_data->rc_msg.msg.hdr.ctype != BTA_AV_RSP_INTERIM)
888 if (p_data->rc_msg.msg.hdr.ctype == BTA_AV_RSP_ACCEPT ||
889 p_data->rc_msg.msg.hdr.ctype == BTA_AV_RSP_INTERIM) {
895 memcpy(&av.remote_cmd.hdr, &p_data->rc_msg.msg.hdr, sizeof(tAVRC_HDR));
901 else if (p_data->rc_msg.msg.hdr.ctype >= AVRC_RSP_NOT_IMPL) {
906 av.remote_rsp.rsp_code = p_data->rc_msg.msg.hdr.ctype;
922 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_REJ;
930 av.vendor_cmd.code = p_data->rc_msg.msg.hdr.ctype;
938 p_data->rc_msg.msg.hdr
951 p_data->rc_msg.msg.hdr.ctype >= AVRC_RSP_NOT_IMPL) {
964 p_data->rc_msg.msg.hdr.ctype <= AVRC_CMD_GEN_INQ) {
967 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_REJ;
970 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_NOT_IMPL;
978 av.meta_msg.code = p_data->rc_msg.msg.hdr.ctype;
1016 uint16_t handle = p_data->hdr.layer_specific;
1153 int index = (p_data->hdr.layer_specific & BTA_AV_HNDL_MSK) - 1;
1341 BT_HDR hdr;
1354 hdr.layer_specific = xx + 1;
1355 bta_av_api_deregister((tBTA_AV_DATA*)&hdr);
1389 uint16_t event = p_data->str_msg.hdr.layer_specific;
1415 APPL_TRACE_DEBUG("start sig timer %d", p_data->hdr.offset);
1416 if (p_data->hdr.offset == AVDT_ACP) {
2057 p_scb = bta_av_hndl_to_scb(p_data->hdr.layer_specific);