Lines Matching refs:code
141 static int send_event (int fd, uint16_t type, uint16_t code, int32_t value);
173 * For now, only the rc_white_addr_prefix is used in the code while
190 tBTA_AV_CODE code, tAVRC_RESPONSE *pmetamsg_resp);
226 int send_event (int fd, uint16_t type, uint16_t code, int32_t value)
229 BTIF_TRACE_DEBUG4("%s type:%u code:%u value:%d", __FUNCTION__,
230 type, code, value);
233 event.code = code;
444 BTIF_TRACE_ERROR2("%s Connect failed with error code: %d",
619 if (pmeta_msg->code >= AVRC_RSP_NOT_IMPL)
631 BTIF_TRACE_DEBUG3("%s:Discard vendor dependent rsp. code: %d label:%d.",
632 __FUNCTION__, pmeta_msg->code, pmeta_msg->label);
638 BTIF_TRACE_DEBUG3("%s:Received vendor dependent rsp. code: %d len: %d. Not processing it.",
639 __FUNCTION__, pmeta_msg->code, pmeta_msg->len);
646 BTIF_TRACE_DEBUG3("Received vendor command.code,PDU and label: %d, %d,%d",pmeta_msg->code,
664 BTIF_TRACE_EVENT4("%s:New register notification received.event_id:%s,label:0x%x,code:%x",
665 __FUNCTION__,dump_rc_notification_event_id(event_id), pmeta_msg->label,pmeta_msg->code);
683 btif_rc_upstreams_evt((uint16_t)avrc_command.cmd.pdu, &avrc_command, pmeta_msg->code,
727 BTIF_TRACE_DEBUG2("BTA_AV_META_MSG_EVT code:%d label:%d", p_data->meta_msg.code,
825 * code Response type
831 static void send_metamsg_rsp (UINT8 rc_handle, UINT8 label, tBTA_AV_CODE code,
843 BTIF_TRACE_EVENT5("+%s: rc_handle: %d, label: %d, code: 0x%02x, pdu: %s", __FUNCTION__,
844 rc_handle, label, code, dump_rc_pdu(pmetamsg_resp->rsp.pdu));
852 if ( code < AVRC_RSP_NOT_IMPL)
854 if (code == AVRC_CMD_NOTIF)
858 else if (code == AVRC_CMD_STATUS)
869 ctype = code;
874 if((pmetamsg_resp->rsp.pdu == AVRC_PDU_REGISTER_NOTIFICATION) && (code == AVRC_RSP_CHANGED))
1385 if(AVRC_OP_VENDOR==pmeta_msg->p_msg->hdr.opcode &&(AVRC_RSP_CHANGED==pmeta_msg->code
1386 || AVRC_RSP_INTERIM==pmeta_msg->code || AVRC_RSP_ACCEPT==pmeta_msg->code
1387 || AVRC_RSP_REJ==pmeta_msg->code || AVRC_RSP_NOT_IMPL==pmeta_msg->code))
1390 BTIF_TRACE_DEBUG6("%s: code %d,event ID %d,PDU %x,parsing status %d, label:%d",
1391 __FUNCTION__,pmeta_msg->code,avrc_response.reg_notif.event_id,avrc_response.reg_notif.pdu,
1414 BTIF_TRACE_DEBUG3("%s:Discarding register notfn in rsp.code: %d and label %d",
1415 __FUNCTION__, pmeta_msg->code, pmeta_msg->label);
1421 BTIF_TRACE_DEBUG3("%s:Received vendor dependent in adv ctrl rsp. code: %d len: %d. Not processing it.",
1422 __FUNCTION__, pmeta_msg->code, pmeta_msg->len);
1428 && AVRC_RSP_CHANGED==pmeta_msg->code)
1442 btif_rc_upstreams_rsp_evt((uint16_t)avrc_response.rsp.pdu, &avrc_response, pmeta_msg->code,