Lines Matching refs:pmeta_msg

266 static void handle_rc_metamsg_rsp(tBTA_AV_META_MSG* pmeta_msg,
269 static void handle_avk_rc_metamsg_cmd(tBTA_AV_META_MSG* pmeta_msg);
270 static void handle_avk_rc_metamsg_rsp(tBTA_AV_META_MSG* pmeta_msg);
278 static void handle_get_capability_response(tBTA_AV_META_MSG* pmeta_msg,
280 static void handle_app_attr_response(tBTA_AV_META_MSG* pmeta_msg,
282 static void handle_app_val_response(tBTA_AV_META_MSG* pmeta_msg,
284 static void handle_app_cur_val_response(tBTA_AV_META_MSG* pmeta_msg,
286 static void handle_app_attr_txt_response(tBTA_AV_META_MSG* pmeta_msg,
288 static void handle_app_attr_val_txt_response(tBTA_AV_META_MSG* pmeta_msg,
292 static void handle_get_playstatus_response(tBTA_AV_META_MSG* pmeta_msg,
294 static void handle_set_addressed_player_response(tBTA_AV_META_MSG* pmeta_msg,
298 static void handle_get_metadata_attr_response(tBTA_AV_META_MSG* pmeta_msg,
300 static void handle_set_app_attr_val_response(tBTA_AV_META_MSG* pmeta_msg,
933 void handle_rc_metamsg_cmd(tBTA_AV_META_MSG* pmeta_msg) { in handle_rc_metamsg_cmd() argument
940 if (NULL == pmeta_msg) { in handle_rc_metamsg_cmd()
945 if (NULL == pmeta_msg->p_msg) { in handle_rc_metamsg_cmd()
951 pmeta_msg->p_msg->hdr.opcode, pmeta_msg->code); in handle_rc_metamsg_cmd()
953 p_dev = btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_rc_metamsg_cmd()
959 if (pmeta_msg->p_msg->hdr.opcode != AVRC_OP_VENDOR && in handle_rc_metamsg_cmd()
960 pmeta_msg->p_msg->hdr.opcode != AVRC_OP_BROWSE) { in handle_rc_metamsg_cmd()
961 BTIF_TRACE_WARNING("Invalid opcode: %x", pmeta_msg->p_msg->hdr.opcode); in handle_rc_metamsg_cmd()
965 if (pmeta_msg->len < 3) { in handle_rc_metamsg_cmd()
967 pmeta_msg->p_msg->hdr.opcode, pmeta_msg->len); in handle_rc_metamsg_cmd()
971 if (pmeta_msg->code >= AVRC_RSP_NOT_IMPL) { in handle_rc_metamsg_cmd()
974 transaction = get_transaction_by_lbl(pmeta_msg->label); in handle_rc_metamsg_cmd()
976 handle_rc_metamsg_rsp(pmeta_msg, p_dev); in handle_rc_metamsg_cmd()
980 pmeta_msg->code, pmeta_msg->label); in handle_rc_metamsg_cmd()
986 status = AVRC_ParsCommand(pmeta_msg->p_msg, &avrc_command, scratch_buf, in handle_rc_metamsg_cmd()
989 __func__, pmeta_msg->code, avrc_command.cmd.pdu, in handle_rc_metamsg_cmd()
990 pmeta_msg->label); in handle_rc_metamsg_cmd()
997 send_reject_response(pmeta_msg->rc_handle, pmeta_msg->label, in handle_rc_metamsg_cmd()
999 pmeta_msg->p_msg->hdr.opcode); in handle_rc_metamsg_cmd()
1009 __func__, dump_rc_notification_event_id(event_id), pmeta_msg->label, in handle_rc_metamsg_cmd()
1010 pmeta_msg->code); in handle_rc_metamsg_cmd()
1012 p_dev->rc_notif[event_id - 1].label = pmeta_msg->label; in handle_rc_metamsg_cmd()
1022 pmeta_msg->code, pmeta_msg->label, p_dev); in handle_rc_metamsg_cmd()
2704 static void handle_rc_metamsg_rsp(tBTA_AV_META_MSG* pmeta_msg, in handle_rc_metamsg_rsp() argument
2712 if (AVRC_OP_VENDOR == pmeta_msg->p_msg->hdr.opcode && in handle_rc_metamsg_rsp()
2713 (AVRC_RSP_CHANGED == pmeta_msg->code || in handle_rc_metamsg_rsp()
2714 AVRC_RSP_INTERIM == pmeta_msg->code || in handle_rc_metamsg_rsp()
2715 AVRC_RSP_ACCEPT == pmeta_msg->code || AVRC_RSP_REJ == pmeta_msg->code || in handle_rc_metamsg_rsp()
2716 AVRC_RSP_NOT_IMPL == pmeta_msg->code)) { in handle_rc_metamsg_rsp()
2717 status = AVRC_ParsResponse(pmeta_msg->p_msg, &avrc_response, scratch_buf, in handle_rc_metamsg_rsp()
2721 __func__, pmeta_msg->code, avrc_response.reg_notif.event_id, in handle_rc_metamsg_rsp()
2722 avrc_response.reg_notif.pdu, status, pmeta_msg->label); in handle_rc_metamsg_rsp()
2727 p_dev->rc_vol_label == pmeta_msg->label) { in handle_rc_metamsg_rsp()
2731 release_transaction(pmeta_msg->label); in handle_rc_metamsg_rsp()
2738 p_dev->rc_vol_label != pmeta_msg->label) { in handle_rc_metamsg_rsp()
2743 __func__, pmeta_msg->code, pmeta_msg->label); in handle_rc_metamsg_rsp()
2749 (AVRC_RSP_REJ == pmeta_msg->code || in handle_rc_metamsg_rsp()
2750 AVRC_RSP_NOT_IMPL == pmeta_msg->code)) { in handle_rc_metamsg_rsp()
2760 __func__, pmeta_msg->code, pmeta_msg->len); in handle_rc_metamsg_rsp()
2766 AVRC_RSP_CHANGED == pmeta_msg->code) { in handle_rc_metamsg_rsp()
2772 release_transaction(pmeta_msg->label); in handle_rc_metamsg_rsp()
2778 pmeta_msg->code, pmeta_msg->label, p_dev); in handle_rc_metamsg_rsp()
3152 static void handle_get_capability_response(tBTA_AV_META_MSG* pmeta_msg, in handle_get_capability_response() argument
3156 btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_get_capability_response()
3240 static void handle_notification_response(tBTA_AV_META_MSG* pmeta_msg, in handle_notification_response() argument
3243 btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_notification_response()
3253 if (pmeta_msg->code == AVRC_RSP_INTERIM) { in handle_notification_response()
3352 } else if (pmeta_msg->code == AVRC_RSP_CHANGED) { in handle_notification_response()
3445 static void handle_app_attr_response(tBTA_AV_META_MSG* pmeta_msg, in handle_app_attr_response() argument
3449 btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_app_attr_response()
3496 static void handle_app_val_response(tBTA_AV_META_MSG* pmeta_msg, in handle_app_val_response() argument
3502 btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_app_val_response()
3574 static void handle_app_cur_val_response(tBTA_AV_META_MSG* pmeta_msg, in handle_app_cur_val_response() argument
3586 p_dev = btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_app_cur_val_response()
3629 static void handle_app_attr_txt_response(tBTA_AV_META_MSG* pmeta_msg, in handle_app_attr_txt_response() argument
3635 btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_app_attr_txt_response()
3704 tBTA_AV_META_MSG* pmeta_msg, tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp) { in handle_app_attr_val_txt_response() argument
3710 btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_app_attr_val_txt_response()
3831 static void handle_set_app_attr_val_response(tBTA_AV_META_MSG* pmeta_msg, in handle_set_app_attr_val_response() argument
3835 btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_set_app_attr_val_response()
3846 if (pmeta_msg && (pmeta_msg->code == AVRC_RSP_ACCEPT)) { in handle_set_app_attr_val_response()
3863 static void handle_get_metadata_attr_response(tBTA_AV_META_MSG* pmeta_msg, in handle_get_metadata_attr_response() argument
3866 btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_get_metadata_attr_response()
3914 static void handle_get_playstatus_response(tBTA_AV_META_MSG* pmeta_msg, in handle_get_playstatus_response() argument
3918 btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_get_playstatus_response()
3950 static void handle_set_addressed_player_response(tBTA_AV_META_MSG* pmeta_msg, in handle_set_addressed_player_response() argument
3954 btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_set_addressed_player_response()
3981 static void handle_get_folder_items_response(tBTA_AV_META_MSG* pmeta_msg, in handle_get_folder_items_response() argument
3984 btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_get_folder_items_response()
4261 static void handle_change_path_response(tBTA_AV_META_MSG* pmeta_msg, in handle_change_path_response() argument
4264 btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_change_path_response()
4285 static void handle_set_browsed_player_response(tBTA_AV_META_MSG* pmeta_msg, in handle_set_browsed_player_response() argument
4288 btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_set_browsed_player_response()
4329 static void handle_avk_rc_metamsg_rsp(tBTA_AV_META_MSG* pmeta_msg) { in handle_avk_rc_metamsg_rsp() argument
4336 pmeta_msg->p_msg->hdr.opcode, pmeta_msg->code); in handle_avk_rc_metamsg_rsp()
4338 status = AVRC_Ctrl_ParsResponse(pmeta_msg->p_msg, &avrc_response, scratch_buf, in handle_avk_rc_metamsg_rsp()
4340 if ((AVRC_OP_VENDOR == pmeta_msg->p_msg->hdr.opcode) && in handle_avk_rc_metamsg_rsp()
4341 (pmeta_msg->code >= AVRC_RSP_NOT_IMPL) && in handle_avk_rc_metamsg_rsp()
4342 (pmeta_msg->code <= AVRC_RSP_INTERIM)) { in handle_avk_rc_metamsg_rsp()
4345 pmeta_msg->p_msg->vendor.hdr.ctype); in handle_avk_rc_metamsg_rsp()
4349 handle_notification_response(pmeta_msg, &avrc_response.reg_notif); in handle_avk_rc_metamsg_rsp()
4350 if (pmeta_msg->code == AVRC_RSP_INTERIM) { in handle_avk_rc_metamsg_rsp()
4352 clear_cmd_timeout(pmeta_msg->label); in handle_avk_rc_metamsg_rsp()
4358 handle_get_capability_response(pmeta_msg, &avrc_response.get_caps); in handle_avk_rc_metamsg_rsp()
4362 handle_app_attr_response(pmeta_msg, &avrc_response.list_app_attr); in handle_avk_rc_metamsg_rsp()
4366 handle_app_val_response(pmeta_msg, &avrc_response.list_app_values); in handle_avk_rc_metamsg_rsp()
4370 handle_app_cur_val_response(pmeta_msg, &avrc_response.get_cur_app_val); in handle_avk_rc_metamsg_rsp()
4374 handle_app_attr_txt_response(pmeta_msg, in handle_avk_rc_metamsg_rsp()
4379 handle_app_attr_val_txt_response(pmeta_msg, in handle_avk_rc_metamsg_rsp()
4384 handle_set_app_attr_val_response(pmeta_msg, &avrc_response.set_app_val); in handle_avk_rc_metamsg_rsp()
4388 handle_get_metadata_attr_response(pmeta_msg, &avrc_response.get_attrs); in handle_avk_rc_metamsg_rsp()
4392 handle_get_playstatus_response(pmeta_msg, in handle_avk_rc_metamsg_rsp()
4397 handle_set_addressed_player_response(pmeta_msg, &avrc_response.rsp); in handle_avk_rc_metamsg_rsp()
4400 } else if (AVRC_OP_BROWSE == pmeta_msg->p_msg->hdr.opcode) { in handle_avk_rc_metamsg_rsp()
4405 handle_get_folder_items_response(pmeta_msg, &avrc_response.get_items); in handle_avk_rc_metamsg_rsp()
4408 handle_change_path_response(pmeta_msg, &avrc_response.chg_path); in handle_avk_rc_metamsg_rsp()
4411 handle_set_browsed_player_response(pmeta_msg, &avrc_response.br_player); in handle_avk_rc_metamsg_rsp()
4414 handle_get_metadata_attr_response(pmeta_msg, &avrc_response.get_attrs); in handle_avk_rc_metamsg_rsp()
4418 pmeta_msg->p_msg->hdr.opcode); in handle_avk_rc_metamsg_rsp()
4423 __func__, pmeta_msg->code, pmeta_msg->len); in handle_avk_rc_metamsg_rsp()
4426 BTIF_TRACE_DEBUG("XX __func__ release transaction %d", pmeta_msg->label); in handle_avk_rc_metamsg_rsp()
4427 release_transaction(pmeta_msg->label); in handle_avk_rc_metamsg_rsp()
4439 static void handle_avk_rc_metamsg_cmd(tBTA_AV_META_MSG* pmeta_msg) { in handle_avk_rc_metamsg_cmd() argument
4445 pmeta_msg->p_msg->hdr.opcode, pmeta_msg->code); in handle_avk_rc_metamsg_cmd()
4446 status = AVRC_Ctrl_ParsCommand(pmeta_msg->p_msg, &avrc_cmd); in handle_avk_rc_metamsg_cmd()
4447 if ((AVRC_OP_VENDOR == pmeta_msg->p_msg->hdr.opcode) && in handle_avk_rc_metamsg_cmd()
4448 (pmeta_msg->code <= AVRC_CMD_GEN_INQ)) { in handle_avk_rc_metamsg_cmd()
4450 __func__, pmeta_msg->code, avrc_cmd.pdu, pmeta_msg->label); in handle_avk_rc_metamsg_cmd()
4457 send_reject_response(pmeta_msg->rc_handle, pmeta_msg->label, avrc_cmd.pdu, in handle_avk_rc_metamsg_cmd()
4458 status, pmeta_msg->p_msg->hdr.opcode); in handle_avk_rc_metamsg_cmd()
4460 p_dev = btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_avk_rc_metamsg_cmd()
4475 btif_rc_ctrl_upstreams_rsp_cmd(avrc_cmd.pdu, &avrc_cmd, pmeta_msg->label, in handle_avk_rc_metamsg_cmd()
4481 __func__, pmeta_msg->code, pmeta_msg->len); in handle_avk_rc_metamsg_cmd()