• Home
  • Raw
  • Download

Lines Matching refs:p_dev

92 #define CHECK_RC_CONNECTED(p_dev)                                          \  argument
94 if ((p_dev) == NULL || !(p_dev)->rc_connected) { \
100 #define CHECK_BR_CONNECTED(p_dev) \ argument
102 if ((p_dev) == NULL || !(p_dev)->br_connected) { \
256 static void send_metamsg_rsp(btif_rc_device_cb_t* p_dev, int index,
259 static void register_volumechange(uint8_t label, btif_rc_device_cb_t* p_dev);
266 btif_rc_device_cb_t* p_dev);
273 btif_rc_device_cb_t* p_dev);
274 static void rc_ctrl_procedure_complete(btif_rc_device_cb_t* p_dev);
276 btif_rc_device_cb_t* p_dev);
301 static bt_status_t get_play_status_cmd(btif_rc_device_cb_t* p_dev);
303 uint8_t* attrs, uint8_t num_attrs, btif_rc_device_cb_t* p_dev);
305 uint8_t* vals, uint8_t num_vals, btif_rc_device_cb_t* p_dev);
308 btif_rc_device_cb_t* p_dev);
311 btif_rc_device_cb_t* p_dev);
313 btif_rc_device_cb_t* p_dev);
315 btif_rc_device_cb_t* p_dev);
317 uint8_t attrib_id, btif_rc_device_cb_t* p_dev);
320 btif_rc_device_cb_t* p_dev);
333 btif_rc_device_cb_t* p_dev);
338 btif_rc_device_cb_t* p_dev);
429 btif_rc_device_cb_t* p_dev) { in fill_pdu_queue() argument
430 p_dev->rc_pdu_info[index].ctype = ctype; in fill_pdu_queue()
431 p_dev->rc_pdu_info[index].label = label; in fill_pdu_queue()
432 p_dev->rc_pdu_info[index].is_rsp_pending = pending; in fill_pdu_queue()
453 void handle_rc_ctrl_features(btif_rc_device_cb_t* p_dev) { in handle_rc_ctrl_features() argument
454 if (!(p_dev->rc_features & BTA_AV_FEAT_RCTG) && in handle_rc_ctrl_features()
455 (!(p_dev->rc_features & BTA_AV_FEAT_RCCT) || in handle_rc_ctrl_features()
456 !(p_dev->rc_features & BTA_AV_FEAT_ADV_CTRL))) { in handle_rc_ctrl_features()
462 if ((p_dev->rc_features & BTA_AV_FEAT_ADV_CTRL) && in handle_rc_ctrl_features()
463 (p_dev->rc_features & BTA_AV_FEAT_RCCT)) { in handle_rc_ctrl_features()
467 if (p_dev->rc_features & BTA_AV_FEAT_METADATA) { in handle_rc_ctrl_features()
471 if ((p_dev->rc_features & BTA_AV_FEAT_VENDOR) && in handle_rc_ctrl_features()
472 (p_dev->rc_features_processed != true)) { in handle_rc_ctrl_features()
477 p_dev->rc_features_processed = true; in handle_rc_ctrl_features()
479 getcapabilities_cmd(AVRC_CAP_COMPANY_ID, p_dev); in handle_rc_ctrl_features()
484 if (p_dev->rc_features & BTA_AV_FEAT_BROWSE) { in handle_rc_ctrl_features()
490 p_dev->rc_addr, rc_features)); in handle_rc_ctrl_features()
493 void handle_rc_features(btif_rc_device_cb_t* p_dev) { in handle_rc_features() argument
507 p_dev->rc_addr.ToString().c_str()); in handle_rc_features()
509 if (interop_match_addr(INTEROP_DISABLE_ABSOLUTE_VOLUME, &p_dev->rc_addr) || in handle_rc_features()
511 (avdtp_source_active_peer_addr != p_dev->rc_addr && in handle_rc_features()
512 avdtp_sink_active_peer_addr != p_dev->rc_addr)) { in handle_rc_features()
513 p_dev->rc_features &= ~BTA_AV_FEAT_ADV_CTRL; in handle_rc_features()
516 if (p_dev->rc_features & BTA_AV_FEAT_BROWSE) { in handle_rc_features()
521 if ((p_dev->rc_features & BTA_AV_FEAT_ADV_CTRL) && in handle_rc_features()
522 (p_dev->rc_features & BTA_AV_FEAT_RCTG)) { in handle_rc_features()
528 if (p_dev->rc_features & BTA_AV_FEAT_METADATA) { in handle_rc_features()
533 HAL_CBACK(bt_rc_callbacks, remote_features_cb, p_dev->rc_addr, rc_features); in handle_rc_features()
538 __func__, p_dev->rc_vol_label); in handle_rc_features()
540 if (p_dev->rc_features & BTA_AV_FEAT_ADV_CTRL && in handle_rc_features()
541 p_dev->rc_features & BTA_AV_FEAT_RCTG) { in handle_rc_features()
544 if (MAX_LABEL == p_dev->rc_vol_label) { in handle_rc_features()
547 p_transaction = get_transaction_by_lbl(p_dev->rc_vol_label); in handle_rc_features()
551 __func__, p_dev->rc_vol_label); in handle_rc_features()
557 p_dev->rc_vol_label = p_transaction->lbl; in handle_rc_features()
558 register_volumechange(p_dev->rc_vol_label, p_dev); in handle_rc_features()
575 btif_rc_device_cb_t* p_dev = in handle_rc_browse_connect() local
578 if (!p_dev) { in handle_rc_browse_connect()
587 p_dev->br_connected = true; in handle_rc_browse_connect()
590 true, p_dev->rc_addr)); in handle_rc_browse_connect()
605 btif_rc_device_cb_t* p_dev = alloc_device(); in handle_rc_connect() local
606 if (p_dev == NULL) { in handle_rc_connect()
614 p_dev->rc_connected = false; in handle_rc_connect()
618 if (p_dev->rc_connected) { in handle_rc_connect()
622 __func__, p_dev->rc_handle, p_rc_open->rc_handle); in handle_rc_connect()
623 if (p_dev->rc_handle != p_rc_open->rc_handle && in handle_rc_connect()
624 p_dev->rc_addr != p_rc_open->peer_addr) { in handle_rc_connect()
630 p_dev->rc_addr = p_rc_open->peer_addr; in handle_rc_connect()
631 p_dev->rc_features = p_rc_open->peer_features; in handle_rc_connect()
633 __func__, p_rc_open->peer_features, p_dev->rc_features); in handle_rc_connect()
634 p_dev->rc_vol_label = MAX_LABEL; in handle_rc_connect()
635 p_dev->rc_volume = MAX_VOLUME; in handle_rc_connect()
637 p_dev->rc_connected = true; in handle_rc_connect()
638 p_dev->rc_handle = p_rc_open->rc_handle; in handle_rc_connect()
639 p_dev->rc_state = BTRC_CONNECTION_STATE_CONNECTED; in handle_rc_connect()
642 if (p_dev->rc_features != 0 && bt_rc_callbacks != NULL) { in handle_rc_connect()
643 handle_rc_features(p_dev); in handle_rc_connect()
646 p_dev->rc_playing_uid = RC_INVALID_TRACK_ID; in handle_rc_connect()
650 false, p_dev->rc_addr)); in handle_rc_connect()
653 handle_rc_ctrl_features(p_dev); in handle_rc_connect()
665 btif_rc_device_cb_t* p_dev = NULL; in handle_rc_disconnect() local
668 p_dev = btif_rc_get_device_by_handle(p_rc_close->rc_handle); in handle_rc_disconnect()
669 if (p_dev == NULL) { in handle_rc_disconnect()
674 if (p_rc_close->rc_handle != p_dev->rc_handle && in handle_rc_disconnect()
675 p_dev->rc_addr != p_rc_close->peer_addr) { in handle_rc_disconnect()
683 false, p_dev->rc_addr)); in handle_rc_disconnect()
686 memset(&p_dev->rc_app_settings, 0, sizeof(btif_rc_player_app_settings_t)); in handle_rc_disconnect()
687 p_dev->rc_features_processed = false; in handle_rc_disconnect()
688 p_dev->rc_procedure_complete = false; in handle_rc_disconnect()
690 if (p_dev->rc_supported_event_list != NULL) { in handle_rc_disconnect()
691 list_clear(p_dev->rc_supported_event_list); in handle_rc_disconnect()
692 p_dev->rc_supported_event_list = NULL; in handle_rc_disconnect()
696 if (p_dev->rc_state == BTRC_CONNECTION_STATE_CONNECTED) { in handle_rc_disconnect()
697 p_dev->rc_handle = 0; in handle_rc_disconnect()
698 p_dev->rc_connected = false; in handle_rc_disconnect()
699 p_dev->rc_state = BTRC_CONNECTION_STATE_DISCONNECTED; in handle_rc_disconnect()
701 memset(p_dev->rc_notif, 0, sizeof(p_dev->rc_notif)); in handle_rc_disconnect()
703 p_dev->rc_features = 0; in handle_rc_disconnect()
704 p_dev->rc_vol_label = MAX_LABEL; in handle_rc_disconnect()
705 p_dev->rc_volume = MAX_VOLUME; in handle_rc_disconnect()
707 p_dev->rc_addr = RawAddress::kEmpty; in handle_rc_disconnect()
714 p_dev->rc_addr = RawAddress::kEmpty; in handle_rc_disconnect()
732 btif_rc_device_cb_t* p_dev = in handle_rc_passthrough_cmd() local
734 if (p_dev == NULL) { in handle_rc_passthrough_cmd()
750 p_dev->rc_pending_play = true; in handle_rc_passthrough_cmd()
756 if ((p_remote_cmd->rc_id == AVRC_ID_PAUSE) && (p_dev->rc_pending_play)) { in handle_rc_passthrough_cmd()
759 p_dev->rc_pending_play = false; in handle_rc_passthrough_cmd()
773 p_dev->rc_features, p_remote_cmd->rc_id, pressed); in handle_rc_passthrough_cmd()
775 p_dev->rc_addr); in handle_rc_passthrough_cmd()
787 btif_rc_device_cb_t* p_dev = NULL; in handle_rc_passthrough_rsp() local
789 p_dev = btif_rc_get_device_by_handle(p_remote_rsp->rc_handle); in handle_rc_passthrough_rsp()
790 if (p_dev == NULL) { in handle_rc_passthrough_rsp()
797 if (!(p_dev->rc_features & BTA_AV_FEAT_RCTG)) { in handle_rc_passthrough_rsp()
811 base::Bind(bt_rc_ctrl_callbacks->passthrough_rsp_cb, p_dev->rc_addr, in handle_rc_passthrough_rsp()
825 btif_rc_device_cb_t* p_dev = NULL; in handle_rc_vendorunique_rsp() local
829 p_dev = btif_rc_get_device_by_handle(p_remote_rsp->rc_handle); in handle_rc_vendorunique_rsp()
830 if (p_dev == NULL) { in handle_rc_vendorunique_rsp()
836 if (p_dev->rc_features & BTA_AV_FEAT_RCTG) { in handle_rc_vendorunique_rsp()
877 btif_rc_device_cb_t* p_dev = NULL; in handle_rc_metamsg_cmd() local
892 p_dev = btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_rc_metamsg_cmd()
893 if (p_dev == NULL) { in handle_rc_metamsg_cmd()
915 handle_rc_metamsg_rsp(pmeta_msg, p_dev); in handle_rc_metamsg_cmd()
950 p_dev->rc_notif[event_id - 1].bNotify = true; in handle_rc_metamsg_cmd()
951 p_dev->rc_notif[event_id - 1].label = pmeta_msg->label; in handle_rc_metamsg_cmd()
961 pmeta_msg->code, pmeta_msg->label, p_dev); in handle_rc_metamsg_cmd()
974 btif_rc_device_cb_t* p_dev = NULL; in btif_rc_handler() local
1022 p_dev = btif_rc_get_device_by_handle(p_data->rc_feat.rc_handle); in btif_rc_handler()
1023 if (p_dev == NULL) { in btif_rc_handler()
1029 p_dev->rc_features = p_data->rc_feat.peer_features; in btif_rc_handler()
1031 handle_rc_features(p_dev); in btif_rc_handler()
1034 if ((p_dev->rc_connected) && (bt_rc_ctrl_callbacks != NULL)) { in btif_rc_handler()
1035 handle_rc_ctrl_features(p_dev); in btif_rc_handler()
1093 btif_rc_device_cb_t* p_dev = get_connected_device(idx); in btif_rc_is_connected_peer() local
1094 if (p_dev != NULL && (p_dev->rc_connected == TRUE) && in btif_rc_is_connected_peer()
1095 peer_addr == p_dev->rc_addr) { in btif_rc_is_connected_peer()
1110 btif_rc_device_cb_t* p_dev = NULL; in btif_rc_get_connected_peer_handle() local
1111 p_dev = btif_rc_get_device_by_bda(peer_addr); in btif_rc_get_connected_peer_handle()
1113 if (p_dev == NULL) { in btif_rc_get_connected_peer_handle()
1117 return p_dev->rc_handle; in btif_rc_get_connected_peer_handle()
1132 btif_rc_device_cb_t* p_dev = NULL; in btif_rc_check_handle_pending_play() local
1133 p_dev = btif_rc_get_device_by_bda(peer_addr); in btif_rc_check_handle_pending_play()
1135 if (p_dev == NULL) { in btif_rc_check_handle_pending_play()
1141 if (p_dev->rc_pending_play) { in btif_rc_check_handle_pending_play()
1147 remote_cmd.rc_handle = p_dev->rc_handle; in btif_rc_check_handle_pending_play()
1166 p_dev->rc_pending_play = false; in btif_rc_check_handle_pending_play()
1232 static void send_metamsg_rsp(btif_rc_device_cb_t* p_dev, int index, in send_metamsg_rsp() argument
1237 if (p_dev == NULL) { in send_metamsg_rsp()
1250 __func__, p_dev->rc_handle, index, label, code, in send_metamsg_rsp()
1253 if (index >= 0 && !p_dev->rc_pdu_info[index].is_rsp_pending) { in send_metamsg_rsp()
1267 (p_dev->rc_connected) && (p_dev->rc_notif[event_id - 1].bNotify); in send_metamsg_rsp()
1270 p_dev->rc_notif[event_id - 1].bNotify = false; in send_metamsg_rsp()
1272 __func__, p_dev->rc_handle, event_id, bNotify); in send_metamsg_rsp()
1278 p_dev->rc_handle, pmetamsg_resp, &p_msg))) { in send_metamsg_rsp()
1281 __func__, p_dev->rc_handle, event_id); in send_metamsg_rsp()
1283 BTA_AvMetaRsp(p_dev->rc_handle, p_dev->rc_notif[event_id - 1].label, in send_metamsg_rsp()
1304 status = AVRC_BldResponse(p_dev->rc_handle, pmetamsg_resp, &p_msg); in send_metamsg_rsp()
1307 BTA_AvMetaRsp(p_dev->rc_handle, label, ctype, p_msg); in send_metamsg_rsp()
1315 p_dev->rc_pdu_info[index].ctype = 0; in send_metamsg_rsp()
1316 p_dev->rc_pdu_info[index].label = 0; in send_metamsg_rsp()
1317 p_dev->rc_pdu_info[index].is_rsp_pending = false; in send_metamsg_rsp()
1418 btif_rc_device_cb_t* p_dev) { in btif_rc_upstreams_evt() argument
1420 __func__, dump_rc_pdu(pavrc_cmd->pdu), p_dev->rc_handle, in btif_rc_upstreams_evt()
1425 fill_pdu_queue(IDX_GET_PLAY_STATUS_RSP, ctype, label, true, p_dev); in btif_rc_upstreams_evt()
1426 HAL_CBACK(bt_rc_callbacks, get_play_status_cb, p_dev->rc_addr); in btif_rc_upstreams_evt()
1435 send_reject_response(p_dev->rc_handle, label, pavrc_cmd->pdu, in btif_rc_upstreams_evt()
1448 send_reject_response(p_dev->rc_handle, label, pavrc_cmd->pdu, in btif_rc_upstreams_evt()
1452 fill_pdu_queue(IDX_GET_ELEMENT_ATTR_RSP, ctype, label, true, p_dev); in btif_rc_upstreams_evt()
1454 p_dev->rc_addr); in btif_rc_upstreams_evt()
1462 send_reject_response(p_dev->rc_handle, label, pavrc_cmd->pdu, in btif_rc_upstreams_evt()
1465 p_dev->rc_notif[BTRC_EVT_PLAY_POS_CHANGED - 1].bNotify = false; in btif_rc_upstreams_evt()
1470 pavrc_cmd->reg_notif.param, p_dev->rc_addr); in btif_rc_upstreams_evt()
1475 if (p_dev->rc_connected) { in btif_rc_upstreams_evt()
1481 send_metamsg_rsp(p_dev, -1, label, ctype, &avrc_rsp); in btif_rc_upstreams_evt()
1502 send_reject_response(p_dev->rc_handle, label, pavrc_cmd->pdu, in btif_rc_upstreams_evt()
1514 fill_pdu_queue(IDX_GET_FOLDER_ITEMS_RSP, ctype, label, true, p_dev); in btif_rc_upstreams_evt()
1518 p_dev->rc_addr); in btif_rc_upstreams_evt()
1522 fill_pdu_queue(IDX_SET_ADDR_PLAYER_RSP, ctype, label, true, p_dev); in btif_rc_upstreams_evt()
1524 pavrc_cmd->addr_player.player_id, p_dev->rc_addr); in btif_rc_upstreams_evt()
1528 fill_pdu_queue(IDX_SET_BROWSED_PLAYER_RSP, ctype, label, true, p_dev); in btif_rc_upstreams_evt()
1530 pavrc_cmd->br_player.player_id, p_dev->rc_addr); in btif_rc_upstreams_evt()
1537 if (p_dev->rc_connected == TRUE) { in btif_rc_upstreams_evt()
1544 send_metamsg_rsp(p_dev, -1, label, ctype, &avrc_rsp); in btif_rc_upstreams_evt()
1552 if (p_dev->rc_connected == TRUE) { in btif_rc_upstreams_evt()
1559 send_metamsg_rsp(p_dev, -1, label, ctype, &avrc_rsp); in btif_rc_upstreams_evt()
1564 fill_pdu_queue(IDX_CHG_PATH_RSP, ctype, label, true, p_dev); in btif_rc_upstreams_evt()
1566 pavrc_cmd->chg_path.folder_uid, p_dev->rc_addr); in btif_rc_upstreams_evt()
1570 fill_pdu_queue(IDX_SEARCH_RSP, ctype, label, true, p_dev); in btif_rc_upstreams_evt()
1573 pavrc_cmd->search.string.p_str, p_dev->rc_addr); in btif_rc_upstreams_evt()
1586 send_reject_response(p_dev->rc_handle, label, pavrc_cmd->pdu, in btif_rc_upstreams_evt()
1590 fill_pdu_queue(IDX_GET_ITEM_ATTR_RSP, ctype, label, true, p_dev); in btif_rc_upstreams_evt()
1595 num_attr, item_attrs, p_dev->rc_addr); in btif_rc_upstreams_evt()
1599 fill_pdu_queue(IDX_GET_TOTAL_NUM_OF_ITEMS_RSP, ctype, label, true, p_dev); in btif_rc_upstreams_evt()
1601 pavrc_cmd->get_num_of_items.scope, p_dev->rc_addr); in btif_rc_upstreams_evt()
1605 fill_pdu_queue(IDX_ADD_TO_NOW_PLAYING_RSP, ctype, label, true, p_dev); in btif_rc_upstreams_evt()
1608 pavrc_cmd->add_to_play.uid_counter, p_dev->rc_addr); in btif_rc_upstreams_evt()
1612 fill_pdu_queue(IDX_PLAY_ITEM_RSP, ctype, label, true, p_dev); in btif_rc_upstreams_evt()
1615 p_dev->rc_addr); in btif_rc_upstreams_evt()
1619 send_reject_response(p_dev->rc_handle, label, pavrc_cmd->pdu, in btif_rc_upstreams_evt()
1638 btif_rc_device_cb_t* p_dev) { in btif_rc_ctrl_upstreams_rsp_cmd() argument
1640 dump_rc_pdu(pavrc_cmd->pdu), p_dev->rc_handle); in btif_rc_ctrl_upstreams_rsp_cmd()
1645 base::Bind(bt_rc_ctrl_callbacks->setabsvol_cmd_cb, p_dev->rc_addr, in btif_rc_ctrl_upstreams_rsp_cmd()
1653 p_dev->rc_addr, label)); in btif_rc_ctrl_upstreams_rsp_cmd()
1671 btif_rc_device_cb_t* p_dev) { in btif_rc_upstreams_rsp_evt() argument
1673 dump_rc_pdu(pavrc_resp->pdu), p_dev->rc_handle, ctype, in btif_rc_upstreams_rsp_evt()
1679 p_dev->rc_volume = pavrc_resp->reg_notif.param.volume; in btif_rc_upstreams_rsp_evt()
1681 pavrc_resp->reg_notif.param.volume, ctype, p_dev->rc_addr); in btif_rc_upstreams_rsp_evt()
1690 p_dev->rc_volume = pavrc_resp->volume.volume; in btif_rc_upstreams_rsp_evt()
1692 ctype, p_dev->rc_addr); in btif_rc_upstreams_rsp_evt()
1759 static void rc_ctrl_procedure_complete(btif_rc_device_cb_t* p_dev) { in rc_ctrl_procedure_complete() argument
1760 if (p_dev == NULL) { in rc_ctrl_procedure_complete()
1765 if (p_dev->rc_procedure_complete) { in rc_ctrl_procedure_complete()
1768 p_dev->rc_procedure_complete = true; in rc_ctrl_procedure_complete()
1774 get_element_attribute_cmd(AVRC_MAX_NUM_MEDIA_ATTR_ID, attr_list, p_dev); in rc_ctrl_procedure_complete()
1792 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in get_play_status_rsp() local
1795 CHECK_RC_CONNECTED(p_dev); in get_play_status_rsp()
1810 send_metamsg_rsp(p_dev, IDX_GET_PLAY_STATUS_RSP, in get_play_status_rsp()
1811 p_dev->rc_pdu_info[IDX_GET_PLAY_STATUS_RSP].label, in get_play_status_rsp()
1812 p_dev->rc_pdu_info[IDX_GET_PLAY_STATUS_RSP].ctype, in get_play_status_rsp()
1834 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in get_element_attr_rsp() local
1837 CHECK_RC_CONNECTED(p_dev); in get_element_attr_rsp()
1863 send_metamsg_rsp(p_dev, IDX_GET_ELEMENT_ATTR_RSP, in get_element_attr_rsp()
1864 p_dev->rc_pdu_info[IDX_GET_ELEMENT_ATTR_RSP].label, in get_element_attr_rsp()
1865 p_dev->rc_pdu_info[IDX_GET_ELEMENT_ATTR_RSP].ctype, in get_element_attr_rsp()
1985 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in get_folder_items_list_rsp() local
1990 CHECK_RC_CONNECTED(p_dev); in get_folder_items_list_rsp()
1993 if (!p_dev->rc_pdu_info[IDX_GET_FOLDER_ITEMS_RSP].is_rsp_pending) { in get_folder_items_list_rsp()
2087 status = AVRC_BldResponse(p_dev->rc_handle, &avrc_rsp, &p_msg); in get_folder_items_list_rsp()
2104 code = p_dev->rc_pdu_info[IDX_GET_FOLDER_ITEMS_RSP].ctype; in get_folder_items_list_rsp()
2106 BTA_AvMetaRsp(p_dev->rc_handle, in get_folder_items_list_rsp()
2107 p_dev->rc_pdu_info[IDX_GET_FOLDER_ITEMS_RSP].label, ctype, in get_folder_items_list_rsp()
2114 p_dev->rc_handle, p_dev->rc_pdu_info[IDX_GET_FOLDER_ITEMS_RSP].label, in get_folder_items_list_rsp()
2119 p_dev->rc_pdu_info[IDX_GET_FOLDER_ITEMS_RSP].ctype = 0; in get_folder_items_list_rsp()
2120 p_dev->rc_pdu_info[IDX_GET_FOLDER_ITEMS_RSP].label = 0; in get_folder_items_list_rsp()
2121 p_dev->rc_pdu_info[IDX_GET_FOLDER_ITEMS_RSP].is_rsp_pending = false; in get_folder_items_list_rsp()
2141 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in set_addressed_player_rsp() local
2144 CHECK_RC_CONNECTED(p_dev); in set_addressed_player_rsp()
2151 send_metamsg_rsp(p_dev, IDX_SET_ADDR_PLAYER_RSP, in set_addressed_player_rsp()
2152 p_dev->rc_pdu_info[IDX_SET_ADDR_PLAYER_RSP].label, in set_addressed_player_rsp()
2153 p_dev->rc_pdu_info[IDX_SET_ADDR_PLAYER_RSP].ctype, in set_addressed_player_rsp()
2189 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in set_browsed_player_rsp() local
2191 CHECK_RC_CONNECTED(p_dev); in set_browsed_player_rsp()
2204 if (!p_dev->rc_pdu_info[IDX_SET_BROWSED_PLAYER_RSP].is_rsp_pending) { in set_browsed_player_rsp()
2230 status = AVRC_BldResponse(p_dev->rc_handle, &avrc_rsp, &p_msg); in set_browsed_player_rsp()
2245 status = AVRC_BldResponse(p_dev->rc_handle, &avrc_rsp, &p_msg); in set_browsed_player_rsp()
2260 code = p_dev->rc_pdu_info[IDX_SET_BROWSED_PLAYER_RSP].ctype; in set_browsed_player_rsp()
2262 BTA_AvMetaRsp(p_dev->rc_handle, in set_browsed_player_rsp()
2263 p_dev->rc_pdu_info[IDX_SET_BROWSED_PLAYER_RSP].label, ctype, in set_browsed_player_rsp()
2270 p_dev->rc_handle, p_dev->rc_pdu_info[IDX_SET_BROWSED_PLAYER_RSP].label, in set_browsed_player_rsp()
2275 p_dev->rc_pdu_info[IDX_SET_BROWSED_PLAYER_RSP].ctype = 0; in set_browsed_player_rsp()
2276 p_dev->rc_pdu_info[IDX_SET_BROWSED_PLAYER_RSP].label = 0; in set_browsed_player_rsp()
2277 p_dev->rc_pdu_info[IDX_SET_BROWSED_PLAYER_RSP].is_rsp_pending = false; in set_browsed_player_rsp()
2298 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in change_path_rsp() local
2301 CHECK_RC_CONNECTED(p_dev); in change_path_rsp()
2309 send_metamsg_rsp(p_dev, IDX_CHG_PATH_RSP, in change_path_rsp()
2310 p_dev->rc_pdu_info[IDX_CHG_PATH_RSP].label, in change_path_rsp()
2311 p_dev->rc_pdu_info[IDX_CHG_PATH_RSP].ctype, &avrc_rsp); in change_path_rsp()
2331 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in search_rsp() local
2334 CHECK_RC_CONNECTED(p_dev); in search_rsp()
2343 send_metamsg_rsp(p_dev, IDX_SEARCH_RSP, in search_rsp()
2344 p_dev->rc_pdu_info[IDX_SEARCH_RSP].label, in search_rsp()
2345 p_dev->rc_pdu_info[IDX_SEARCH_RSP].ctype, &avrc_rsp); in search_rsp()
2366 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in get_item_attr_rsp() local
2369 CHECK_RC_CONNECTED(p_dev); in get_item_attr_rsp()
2384 send_metamsg_rsp(p_dev, IDX_GET_ITEM_ATTR_RSP, in get_item_attr_rsp()
2385 p_dev->rc_pdu_info[IDX_GET_ITEM_ATTR_RSP].label, in get_item_attr_rsp()
2386 p_dev->rc_pdu_info[IDX_GET_ITEM_ATTR_RSP].ctype, &avrc_rsp); in get_item_attr_rsp()
2406 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in add_to_now_playing_rsp() local
2409 CHECK_RC_CONNECTED(p_dev); in add_to_now_playing_rsp()
2416 send_metamsg_rsp(p_dev, IDX_ADD_TO_NOW_PLAYING_RSP, in add_to_now_playing_rsp()
2417 p_dev->rc_pdu_info[IDX_ADD_TO_NOW_PLAYING_RSP].label, in add_to_now_playing_rsp()
2418 p_dev->rc_pdu_info[IDX_ADD_TO_NOW_PLAYING_RSP].ctype, in add_to_now_playing_rsp()
2438 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in play_item_rsp() local
2441 CHECK_RC_CONNECTED(p_dev); in play_item_rsp()
2448 send_metamsg_rsp(p_dev, IDX_PLAY_ITEM_RSP, in play_item_rsp()
2449 p_dev->rc_pdu_info[IDX_PLAY_ITEM_RSP].label, in play_item_rsp()
2450 p_dev->rc_pdu_info[IDX_PLAY_ITEM_RSP].ctype, &avrc_rsp); in play_item_rsp()
2472 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in get_total_num_of_items_rsp() local
2475 CHECK_RC_CONNECTED(p_dev); in get_total_num_of_items_rsp()
2485 send_metamsg_rsp(p_dev, IDX_GET_TOTAL_NUM_OF_ITEMS_RSP, in get_total_num_of_items_rsp()
2486 p_dev->rc_pdu_info[IDX_GET_TOTAL_NUM_OF_ITEMS_RSP].label, in get_total_num_of_items_rsp()
2487 p_dev->rc_pdu_info[IDX_GET_TOTAL_NUM_OF_ITEMS_RSP].ctype, in get_total_num_of_items_rsp()
2583 static void register_volumechange(uint8_t lbl, btif_rc_device_cb_t* p_dev) { in register_volumechange() argument
2601 BTA_AvMetaCmd(p_dev->rc_handle, p_transaction->lbl, AVRC_CMD_NOTIF, in register_volumechange()
2624 btif_rc_device_cb_t* p_dev) { in handle_rc_metamsg_rsp() argument
2646 p_dev->rc_vol_label == pmeta_msg->label) { in handle_rc_metamsg_rsp()
2647 p_dev->rc_vol_label = MAX_LABEL; in handle_rc_metamsg_rsp()
2648 release_transaction(p_dev->rc_vol_label); in handle_rc_metamsg_rsp()
2657 p_dev->rc_vol_label != pmeta_msg->label) { in handle_rc_metamsg_rsp()
2671 p_dev->rc_features &= ~BTA_AV_FEAT_ADV_CTRL; in handle_rc_metamsg_rsp()
2672 handle_rc_features(p_dev); in handle_rc_metamsg_rsp()
2688 register_volumechange(p_dev->rc_vol_label, p_dev); in handle_rc_metamsg_rsp()
2697 pmeta_msg->code, pmeta_msg->label, p_dev); in handle_rc_metamsg_rsp()
2737 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(cntxt->rc_addr); in iterate_supported_event_list_for_timeout() local
2741 list_remove(p_dev->rc_supported_event_list, p_event); in iterate_supported_event_list_for_timeout()
2758 btif_rc_device_cb_t* p_dev) { in rc_notification_interim_timout() argument
2763 cntxt.rc_addr = p_dev->rc_addr; in rc_notification_interim_timout()
2765 list_foreach(p_dev->rc_supported_event_list, in rc_notification_interim_timout()
2770 node = list_begin(p_dev->rc_supported_event_list); in rc_notification_interim_timout()
2776 register_for_event_notification(p_event, p_dev); in rc_notification_interim_timout()
2799 btif_rc_device_cb_t* p_dev = NULL; in btif_rc_status_cmd_timeout_handler() local
2803 p_dev = btif_rc_get_device_by_bda(p_context->rc_addr); in btif_rc_status_cmd_timeout_handler()
2804 if (p_dev == NULL) { in btif_rc_status_cmd_timeout_handler()
2808 meta_msg.rc_handle = p_dev->rc_handle; in btif_rc_status_cmd_timeout_handler()
2812 rc_notification_interim_timout(p_context->rc_status_cmd.label, p_dev); in btif_rc_status_cmd_timeout_handler()
2888 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(p_context->rc_addr); in btif_rc_control_cmd_timeout_handler() local
2889 if (p_dev == NULL) { in btif_rc_control_cmd_timeout_handler()
2895 meta_msg.rc_handle = p_dev->rc_handle; in btif_rc_control_cmd_timeout_handler()
2934 btif_rc_device_cb_t* p_dev) { in register_for_event_notification() argument
2946 status = register_notification_cmd(p_transaction->lbl, p_event->event_id, interval, p_dev); in register_for_event_notification()
2959 p_context->rc_addr = p_dev->rc_addr; in register_for_event_notification()
2968 btif_rc_device_cb_t* p_dev) { in start_status_command_timer() argument
2972 p_context->rc_addr = p_dev->rc_addr; in start_status_command_timer()
2981 btif_rc_device_cb_t* p_dev) { in start_control_command_timer() argument
2985 p_context->rc_addr = p_dev->rc_addr; in start_control_command_timer()
2995 btif_rc_device_cb_t* p_dev) { in build_and_send_vendor_cmd() argument
3006 BTA_AvVendorCmd(p_dev->rc_handle, p_transaction->lbl, cmd_code, data_start, in build_and_send_vendor_cmd()
3010 start_status_command_timer(avrc_cmd->pdu, p_transaction, p_dev); in build_and_send_vendor_cmd()
3012 start_control_command_timer(avrc_cmd->pdu, p_transaction, p_dev); in build_and_send_vendor_cmd()
3035 btif_rc_device_cb_t* p_dev = in handle_get_capability_response() local
3049 p_dev->rc_supported_event_list = list_new(osi_free); in handle_get_capability_response()
3063 list_append(p_dev->rc_supported_event_list, p_event); in handle_get_capability_response()
3071 if (list_is_empty(p_dev->rc_supported_event_list)) { in handle_get_capability_response()
3076 (btif_rc_supported_event_t*)list_front(p_dev->rc_supported_event_list); in handle_get_capability_response()
3078 register_for_event_notification(p_event, p_dev); in handle_get_capability_response()
3081 getcapabilities_cmd(AVRC_CAP_EVENTS_SUPPORTED, p_dev); in handle_get_capability_response()
3121 btif_rc_device_cb_t* p_dev = in handle_notification_response() local
3129 if (p_dev == NULL) { in handle_notification_response()
3142 get_play_status_cmd(p_dev); in handle_notification_response()
3146 p_dev->rc_addr, in handle_notification_response()
3158 BE_STREAM_TO_UINT64(p_dev->rc_playing_uid, p_data); in handle_notification_response()
3159 get_play_status_cmd(p_dev); in handle_notification_response()
3170 p_dev->rc_addr)); in handle_notification_response()
3180 p_dev->rc_addr, p_rsp->param.addr_player.player_id)); in handle_notification_response()
3184 …jni_thread(FROM_HERE, base::Bind(bt_rc_ctrl_callbacks->play_position_changed_cb, p_dev->rc_addr, 0, in handle_notification_response()
3201 list_foreach(p_dev->rc_supported_event_list, in handle_notification_response()
3205 node = list_begin(p_dev->rc_supported_event_list); in handle_notification_response()
3210 register_for_event_notification(p_event, p_dev); in handle_notification_response()
3217 if (p_event == NULL && !p_dev->rc_app_settings.query_started) { in handle_notification_response()
3221 p_dev->rc_app_settings.query_started = true; in handle_notification_response()
3222 if (p_dev->rc_features & BTA_AV_FEAT_APP_SETTING) { in handle_notification_response()
3223 list_player_app_setting_attrib_cmd(p_dev); in handle_notification_response()
3227 rc_ctrl_procedure_complete(p_dev); in handle_notification_response()
3237 node = list_begin(p_dev->rc_supported_event_list); in handle_notification_response()
3243 register_for_event_notification(p_event, p_dev); in handle_notification_response()
3256 p_dev); in handle_notification_response()
3261 p_dev->rc_addr, in handle_notification_response()
3270 get_element_attribute_cmd(AVRC_MAX_NUM_MEDIA_ATTR_ID, attr_list, p_dev); in handle_notification_response()
3287 p_dev->rc_addr, app_settings)); in handle_notification_response()
3330 btif_rc_device_cb_t* p_dev = in handle_app_attr_response() local
3333 if (p_dev == NULL || p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_attr_response()
3336 rc_ctrl_procedure_complete(p_dev); in handle_app_attr_response()
3344 st_index = p_dev->rc_app_settings.num_ext_attrs; in handle_app_attr_response()
3345 p_dev->rc_app_settings.ext_attrs[st_index].attr_id = p_rsp->attrs[xx]; in handle_app_attr_response()
3346 p_dev->rc_app_settings.num_ext_attrs++; in handle_app_attr_response()
3348 st_index = p_dev->rc_app_settings.num_attrs; in handle_app_attr_response()
3349 p_dev->rc_app_settings.attrs[st_index].attr_id = p_rsp->attrs[xx]; in handle_app_attr_response()
3350 p_dev->rc_app_settings.num_attrs++; in handle_app_attr_response()
3353 p_dev->rc_app_settings.attr_index = 0; in handle_app_attr_response()
3354 p_dev->rc_app_settings.ext_attr_index = 0; in handle_app_attr_response()
3355 p_dev->rc_app_settings.ext_val_index = 0; in handle_app_attr_response()
3357 list_player_app_setting_value_cmd(p_dev->rc_app_settings.attrs[0].attr_id, in handle_app_attr_response()
3358 p_dev); in handle_app_attr_response()
3381 btif_rc_device_cb_t* p_dev = in handle_app_val_response() local
3385 if (p_dev == NULL || p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_val_response()
3391 p_app_settings = &p_dev->rc_app_settings; in handle_app_val_response()
3403 p_app_settings->attrs[p_app_settings->attr_index].attr_id, p_dev); in handle_app_val_response()
3408 p_app_settings->ext_attrs[attr_index].attr_id, p_dev); in handle_app_val_response()
3413 get_player_app_setting_cmd(p_app_settings->num_attrs, attrs, p_dev); in handle_app_val_response()
3417 p_dev->rc_addr, p_app_settings->num_attrs, in handle_app_val_response()
3432 p_dev); in handle_app_val_response()
3440 p_dev); in handle_app_val_response()
3458 btif_rc_device_cb_t* p_dev = NULL; in handle_app_cur_val_response() local
3466 p_dev = btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_app_cur_val_response()
3467 if (p_dev == NULL) { in handle_app_cur_val_response()
3489 p_dev->rc_addr, app_settings)); in handle_app_cur_val_response()
3494 rc_ctrl_procedure_complete(p_dev); in handle_app_cur_val_response()
3514 btif_rc_device_cb_t* p_dev = in handle_app_attr_txt_response() local
3517 if (p_dev == NULL) { in handle_app_attr_txt_response()
3522 p_app_settings = &p_dev->rc_app_settings; in handle_app_attr_txt_response()
3540 if (p_dev) { in handle_app_attr_txt_response()
3548 p_dev->rc_addr, p_app_settings->num_attrs, in handle_app_attr_txt_response()
3550 get_player_app_setting_cmd(xx, attrs, p_dev); in handle_app_attr_txt_response()
3570 get_player_app_setting_value_text_cmd(vals, xx, p_dev); in handle_app_attr_txt_response()
3589 btif_rc_device_cb_t* p_dev = in handle_app_attr_val_txt_response() local
3592 if (p_dev == NULL) { in handle_app_attr_val_txt_response()
3597 p_app_settings = &p_dev->rc_app_settings; in handle_app_attr_val_txt_response()
3627 p_dev->rc_addr, p_app_settings->num_attrs, in handle_app_attr_val_txt_response()
3630 get_player_app_setting_cmd(xx, attrs, p_dev); in handle_app_attr_val_txt_response()
3654 get_player_app_setting_value_text_cmd(vals, xx, p_dev); in handle_app_attr_val_txt_response()
3667 p_dev->rc_addr, p_app_settings->num_attrs, in handle_app_attr_val_txt_response()
3670 get_player_app_setting_cmd(xx + x, attrs, p_dev); in handle_app_attr_val_txt_response()
3714 btif_rc_device_cb_t* p_dev = in handle_set_app_attr_val_response() local
3717 if (p_dev == NULL) { in handle_set_app_attr_val_response()
3731 p_dev->rc_addr, accepted)); in handle_set_app_attr_val_response()
3745 btif_rc_device_cb_t* p_dev = in handle_get_elem_attr_response() local
3753 if (p_dev == NULL) { in handle_get_elem_attr_response()
3770 p_dev->rc_addr, p_rsp->num_attrs, p_attr)); in handle_get_elem_attr_response()
3781 get_element_attribute_cmd(AVRC_MAX_NUM_MEDIA_ATTR_ID, attr_list, p_dev); in handle_get_elem_attr_response()
3800 btif_rc_device_cb_t* p_dev = in handle_get_playstatus_response() local
3803 if (p_dev == NULL) { in handle_get_playstatus_response()
3813 p_dev->rc_addr, p_rsp->song_len, p_rsp->song_pos)); in handle_get_playstatus_response()
3832 btif_rc_device_cb_t* p_dev = in handle_set_addressed_player_response() local
3835 if (p_dev == NULL) { in handle_set_addressed_player_response()
3844 p_dev->rc_addr, p_rsp->status)); in handle_set_addressed_player_response()
3862 btif_rc_device_cb_t* p_dev = in handle_get_folder_items_response() local
3905 base::Bind(bt_rc_ctrl_callbacks->get_folder_items_cb, p_dev->rc_addr, in handle_get_folder_items_response()
3921 base::Bind(bt_rc_ctrl_callbacks->get_folder_items_cb, p_dev->rc_addr, in handle_get_folder_items_response()
4133 btif_rc_device_cb_t* p_dev = in handle_change_path_response() local
4139 p_dev->rc_addr, p_rsp->num_items)); in handle_change_path_response()
4157 btif_rc_device_cb_t* p_dev = in handle_set_browsed_player_response() local
4163 base::Bind(bt_rc_ctrl_callbacks->set_browsed_player_cb, p_dev->rc_addr, in handle_set_browsed_player_response()
4309 btif_rc_device_cb_t* p_dev = NULL; in handle_avk_rc_metamsg_cmd() local
4327 p_dev = btif_rc_get_device_by_handle(pmeta_msg->rc_handle); in handle_avk_rc_metamsg_cmd()
4328 if (p_dev == NULL) { in handle_avk_rc_metamsg_cmd()
4343 p_dev); in handle_avk_rc_metamsg_cmd()
4413 btif_rc_device_cb_t* p_dev) { in getcapabilities_cmd() argument
4415 CHECK_RC_CONNECTED(p_dev); in getcapabilities_cmd()
4423 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in getcapabilities_cmd()
4436 btif_rc_device_cb_t* p_dev) { in list_player_app_setting_attrib_cmd() argument
4438 CHECK_RC_CONNECTED(p_dev); in list_player_app_setting_attrib_cmd()
4445 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in list_player_app_setting_attrib_cmd()
4458 uint8_t attrib_id, btif_rc_device_cb_t* p_dev) { in list_player_app_setting_value_cmd() argument
4460 CHECK_RC_CONNECTED(p_dev); in list_player_app_setting_value_cmd()
4468 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in list_player_app_setting_value_cmd()
4482 btif_rc_device_cb_t* p_dev) { in get_player_app_setting_cmd() argument
4484 CHECK_RC_CONNECTED(p_dev); in get_player_app_setting_cmd()
4496 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_player_app_setting_cmd()
4511 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in get_playback_state_cmd() local
4512 return get_play_status_cmd(p_dev); in get_playback_state_cmd()
4594 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in change_folder_path_cmd() local
4595 CHECK_RC_CONNECTED(p_dev); in change_folder_path_cmd()
4596 CHECK_BR_CONNECTED(p_dev); in change_folder_path_cmd()
4627 BTA_AvMetaCmd(p_dev->rc_handle, p_transaction->lbl, AVRC_CMD_CTRL, p_msg); in change_folder_path_cmd()
4646 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in set_browsed_player_cmd() local
4647 CHECK_RC_CONNECTED(p_dev); in set_browsed_player_cmd()
4648 CHECK_BR_CONNECTED(p_dev); in set_browsed_player_cmd()
4675 BTA_AvMetaCmd(p_dev->rc_handle, p_transaction->lbl, AVRC_CMD_CTRL, p_msg); in set_browsed_player_cmd()
4695 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in set_addressed_player_cmd() local
4696 CHECK_RC_CONNECTED(p_dev); in set_addressed_player_cmd()
4697 CHECK_BR_CONNECTED(p_dev); in set_addressed_player_cmd()
4725 BTA_AvMetaCmd(p_dev->rc_handle, p_transaction->lbl, AVRC_CMD_CTRL, p_msg); in set_addressed_player_cmd()
4749 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in get_folder_items_cmd() local
4751 CHECK_RC_CONNECTED(p_dev); in get_folder_items_cmd()
4752 CHECK_BR_CONNECTED(p_dev); in get_folder_items_cmd()
4784 BTA_AvMetaCmd(p_dev->rc_handle, p_transaction->lbl, AVRC_CMD_CTRL, p_msg); in get_folder_items_cmd()
4802 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in change_player_app_setting() local
4803 CHECK_RC_CONNECTED(p_dev); in change_player_app_setting()
4817 bt_status_t st = build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_CTRL, p_dev); in change_player_app_setting()
4834 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in play_item_cmd() local
4835 CHECK_RC_CONNECTED(p_dev); in play_item_cmd()
4836 CHECK_BR_CONNECTED(p_dev); in play_item_cmd()
4846 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_CTRL, p_dev); in play_item_cmd()
4859 uint8_t* attrs, uint8_t num_attrs, btif_rc_device_cb_t* p_dev) { in get_player_app_setting_attr_text_cmd() argument
4861 CHECK_RC_CONNECTED(p_dev); in get_player_app_setting_attr_text_cmd()
4872 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_player_app_setting_attr_text_cmd()
4885 uint8_t* vals, uint8_t num_vals, btif_rc_device_cb_t* p_dev) { in get_player_app_setting_value_text_cmd() argument
4887 CHECK_RC_CONNECTED(p_dev); in get_player_app_setting_value_text_cmd()
4898 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_player_app_setting_value_text_cmd()
4912 btif_rc_device_cb_t* p_dev) { in register_notification_cmd() argument
4915 CHECK_RC_CONNECTED(p_dev); in register_notification_cmd()
4931 BTA_AvVendorCmd(p_dev->rc_handle, label, AVRC_CMD_NOTIF, data_start, in register_notification_cmd()
4954 btif_rc_device_cb_t* p_dev) { in get_element_attribute_cmd() argument
4957 CHECK_RC_CONNECTED(p_dev); in get_element_attribute_cmd()
4968 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_element_attribute_cmd()
4980 static bt_status_t get_play_status_cmd(btif_rc_device_cb_t* p_dev) { in get_play_status_cmd() argument
4982 CHECK_RC_CONNECTED(p_dev); in get_play_status_cmd()
4989 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_play_status_cmd()
5006 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in set_volume_rsp() local
5008 CHECK_RC_CONNECTED(p_dev); in set_volume_rsp()
5016 status = AVRC_BldResponse(p_dev->rc_handle, &avrc_rsp, &p_msg); in set_volume_rsp()
5020 p_dev->rc_vol_label); in set_volume_rsp()
5022 BTA_AvVendorRsp(p_dev->rc_handle, label, AVRC_RSP_ACCEPT, data_start, in set_volume_rsp()
5051 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in volume_change_notification_rsp() local
5053 CHECK_RC_CONNECTED(p_dev); in volume_change_notification_rsp()
5061 status = AVRC_BldResponse(p_dev->rc_handle, &avrc_rsp, &p_msg); in volume_change_notification_rsp()
5066 BTA_AvVendorRsp(p_dev->rc_handle, label, in volume_change_notification_rsp()
5097 btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr); in send_groupnavigation_cmd() local
5099 CHECK_RC_CONNECTED(p_dev); in send_groupnavigation_cmd()
5101 if (p_dev->rc_features & BTA_AV_FEAT_RCTG) { in send_groupnavigation_cmd()
5109 BTA_AvRemoteVendorUniqueCmd(p_dev->rc_handle, p_transaction->lbl, in send_groupnavigation_cmd()
5138 btif_rc_device_cb_t* p_dev = NULL; in send_passthrough_cmd() local
5140 p_dev = btif_rc_get_device_by_bda(bd_addr); in send_passthrough_cmd()
5142 CHECK_RC_CONNECTED(p_dev); in send_passthrough_cmd()
5147 if (p_dev->rc_features & BTA_AV_FEAT_RCTG) { in send_passthrough_cmd()
5150 BTA_AvRemoteCmd(p_dev->rc_handle, p_transaction->lbl, in send_passthrough_cmd()