Lines Matching refs:p_rsp
278 tAVRC_GET_CAPS_RSP* p_rsp);
280 tAVRC_LIST_APP_ATTR_RSP* p_rsp);
282 tAVRC_LIST_APP_VALUES_RSP* p_rsp);
284 tAVRC_GET_CUR_APP_VALUE_RSP* p_rsp);
286 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp);
288 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp);
292 tAVRC_GET_PLAY_STATUS_RSP* p_rsp);
294 tAVRC_RSP* p_rsp);
298 tAVRC_GET_ATTRS_RSP* p_rsp);
300 tAVRC_RSP* p_rsp);
3033 tAVRC_GET_CAPS_RSP* p_rsp) { in handle_get_capability_response() argument
3039 if (p_rsp->status != AVRC_STS_NO_ERROR) { in handle_get_capability_response()
3041 p_rsp->status); in handle_get_capability_response()
3045 if (p_rsp->capability_id == AVRC_CAP_EVENTS_SUPPORTED) { in handle_get_capability_response()
3050 for (xx = 0; xx < p_rsp->count; xx++) { in handle_get_capability_response()
3052 if ((p_rsp->param.event_id[xx] == AVRC_EVT_PLAY_STATUS_CHANGE) || in handle_get_capability_response()
3053 (p_rsp->param.event_id[xx] == AVRC_EVT_TRACK_CHANGE) || in handle_get_capability_response()
3054 (p_rsp->param.event_id[xx] == AVRC_EVT_PLAY_POS_CHANGED) || in handle_get_capability_response()
3055 (p_rsp->param.event_id[xx] == AVRC_EVT_APP_SETTING_CHANGE) || in handle_get_capability_response()
3056 (p_rsp->param.event_id[xx] == AVRC_EVT_NOW_PLAYING_CHANGE) || in handle_get_capability_response()
3057 (p_rsp->param.event_id[xx] == AVRC_EVT_ADDR_PLAYER_CHANGE) || in handle_get_capability_response()
3058 (p_rsp->param.event_id[xx] == AVRC_EVT_UIDS_CHANGE)) { in handle_get_capability_response()
3061 p_event->event_id = p_rsp->param.event_id[xx]; in handle_get_capability_response()
3080 } else if (p_rsp->capability_id == AVRC_CAP_COMPANY_ID) { in handle_get_capability_response()
3083 for (xx = 0; xx < p_rsp->count; xx++) { in handle_get_capability_response()
3085 p_rsp->param.company_id[xx]); in handle_get_capability_response()
3120 tAVRC_REG_NOTIF_RSP* p_rsp) { in handle_notification_response() argument
3139 BTIF_TRACE_DEBUG("%s: Interim response: 0x%2X ", __func__, p_rsp->event_id); in handle_notification_response()
3140 switch (p_rsp->event_id) { in handle_notification_response()
3147 (btrc_play_status_t)p_rsp->param.play_status)); in handle_notification_response()
3151 if (rc_is_track_id_valid(p_rsp->param.track) != true) { in handle_notification_response()
3154 uint8_t* p_data = p_rsp->param.track; in handle_notification_response()
3180 p_dev->rc_addr, p_rsp->param.addr_player.player_id)); in handle_notification_response()
3185 p_rsp->param.play_pos)); in handle_notification_response()
3197 p_rsp->event_id); in handle_notification_response()
3203 &p_rsp->event_id); in handle_notification_response()
3235 p_rsp->event_id); in handle_notification_response()
3241 if (p_event != NULL && p_event->event_id == p_rsp->event_id) { in handle_notification_response()
3249 switch (p_rsp->event_id) { in handle_notification_response()
3254 if (p_rsp->param.play_status == AVRC_PLAYSTATE_PLAYING) { in handle_notification_response()
3262 (btrc_play_status_t)p_rsp->param.play_status)); in handle_notification_response()
3267 if (rc_is_track_id_valid(p_rsp->param.track) != true) { in handle_notification_response()
3277 app_settings.num_attr = p_rsp->param.player_setting.num_attr; in handle_notification_response()
3279 app_settings.attr_ids[xx] = p_rsp->param.player_setting.attr_id[xx]; in handle_notification_response()
3281 p_rsp->param.player_setting.attr_value[xx]; in handle_notification_response()
3312 p_rsp->event_id); in handle_notification_response()
3328 tAVRC_LIST_APP_ATTR_RSP* p_rsp) { in handle_app_attr_response() argument
3333 if (p_dev == NULL || p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_attr_response()
3335 __func__, p_rsp->status); in handle_app_attr_response()
3340 for (xx = 0; xx < p_rsp->num_attr; xx++) { in handle_app_attr_response()
3343 if (p_rsp->attrs[xx] > AVRC_PLAYER_SETTING_LOW_MENU_EXT) { 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()
3349 p_dev->rc_app_settings.attrs[st_index].attr_id = p_rsp->attrs[xx]; in handle_app_attr_response()
3356 if (p_rsp->num_attr) { in handle_app_attr_response()
3377 tAVRC_LIST_APP_VALUES_RSP* p_rsp) { in handle_app_val_response() argument
3385 if (p_dev == NULL || p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_val_response()
3387 p_rsp->status); in handle_app_val_response()
3395 p_app_settings->attrs[attr_index].num_val = p_rsp->num_val; in handle_app_val_response()
3396 for (xx = 0; xx < p_rsp->num_val; xx++) { in handle_app_val_response()
3397 p_app_settings->attrs[attr_index].attr_val[xx] = p_rsp->vals[xx]; in handle_app_val_response()
3422 p_app_settings->ext_attrs[attr_index].num_val = p_rsp->num_val; in handle_app_val_response()
3423 for (xx = 0; xx < p_rsp->num_val; xx++) { in handle_app_val_response()
3425 p_rsp->vals[xx]; in handle_app_val_response()
3455 tAVRC_GET_CUR_APP_VALUE_RSP* p_rsp) { in handle_app_cur_val_response() argument
3461 if (p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_cur_val_response()
3463 p_rsp->status); in handle_app_cur_val_response()
3469 osi_free_and_reset((void**)&p_rsp->p_vals); in handle_app_cur_val_response()
3474 app_settings.num_attr = p_rsp->num_val; in handle_app_cur_val_response()
3482 app_settings.attr_ids[xx] = p_rsp->p_vals[xx].attr_id; in handle_app_cur_val_response()
3483 app_settings.attr_values[xx] = p_rsp->p_vals[xx].attr_val; in handle_app_cur_val_response()
3495 osi_free_and_reset((void**)&p_rsp->p_vals); in handle_app_cur_val_response()
3510 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp) { in handle_app_attr_txt_response() argument
3525 if (p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_attr_txt_response()
3529 p_rsp->status); in handle_app_attr_txt_response()
3555 for (xx = 0; xx < p_rsp->num_attr; xx++) { in handle_app_attr_txt_response()
3558 if (p_app_settings->ext_attrs[x].attr_id == p_rsp->p_attrs[xx].attr_id) { in handle_app_attr_txt_response()
3559 p_app_settings->ext_attrs[x].charset_id = p_rsp->p_attrs[xx].charset_id; in handle_app_attr_txt_response()
3560 p_app_settings->ext_attrs[x].str_len = p_rsp->p_attrs[xx].str_len; in handle_app_attr_txt_response()
3561 p_app_settings->ext_attrs[x].p_str = p_rsp->p_attrs[xx].p_str; in handle_app_attr_txt_response()
3584 tBTA_AV_META_MSG* pmeta_msg, tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp) { in handle_app_attr_val_txt_response() argument
3600 if (p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_attr_val_txt_response()
3604 __func__, p_rsp->status); in handle_app_attr_val_txt_response()
3634 for (xx = 0; xx < p_rsp->num_attr; xx++) { in handle_app_attr_val_txt_response()
3638 for (x = 0; x < p_rsp->num_attr; x++) { in handle_app_attr_val_txt_response()
3639 if (p_ext_attr->ext_attr_val[x].val == p_rsp->p_attrs[xx].attr_id) { in handle_app_attr_val_txt_response()
3640 p_ext_attr->ext_attr_val[x].charset_id = p_rsp->p_attrs[xx].charset_id; in handle_app_attr_val_txt_response()
3641 p_ext_attr->ext_attr_val[x].str_len = p_rsp->p_attrs[xx].str_len; in handle_app_attr_val_txt_response()
3642 p_ext_attr->ext_attr_val[x].p_str = p_rsp->p_attrs[xx].p_str; in handle_app_attr_val_txt_response()
3712 tAVRC_RSP* p_rsp) { in handle_set_app_attr_val_response() argument
3744 tAVRC_GET_ATTRS_RSP* p_rsp) { in handle_get_elem_attr_response() argument
3748 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_get_elem_attr_response()
3749 size_t buf_size = p_rsp->num_attrs * sizeof(btrc_element_attr_val_t); in handle_get_elem_attr_response()
3759 for (int i = 0; i < p_rsp->num_attrs; i++) { in handle_get_elem_attr_response()
3760 p_attr[i].attr_id = p_rsp->p_attrs[i].attr_id; in handle_get_elem_attr_response()
3762 if (p_rsp->p_attrs[i].name.str_len && p_rsp->p_attrs[i].name.p_str) { in handle_get_elem_attr_response()
3763 memcpy(p_attr[i].text, p_rsp->p_attrs[i].name.p_str, in handle_get_elem_attr_response()
3764 p_rsp->p_attrs[i].name.str_len); in handle_get_elem_attr_response()
3765 osi_free_and_reset((void**)&p_rsp->p_attrs[i].name.p_str); in handle_get_elem_attr_response()
3770 p_dev->rc_addr, p_rsp->num_attrs, p_attr)); in handle_get_elem_attr_response()
3772 } else if (p_rsp->status == BTIF_RC_STS_TIMEOUT) { in handle_get_elem_attr_response()
3784 p_rsp->status); in handle_get_elem_attr_response()
3798 tAVRC_GET_PLAY_STATUS_RSP* p_rsp) { in handle_get_playstatus_response() argument
3809 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_get_playstatus_response()
3813 p_dev->rc_addr, p_rsp->song_len, p_rsp->song_pos)); in handle_get_playstatus_response()
3816 p_rsp->status); in handle_get_playstatus_response()
3830 tAVRC_RSP* p_rsp) { in handle_set_addressed_player_response() argument
3841 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_set_addressed_player_response()
3844 p_dev->rc_addr, p_rsp->status)); in handle_set_addressed_player_response()
3847 p_rsp->status); in handle_set_addressed_player_response()
3861 tAVRC_GET_ITEMS_RSP* p_rsp) { in handle_get_folder_items_response() argument
3865 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_get_folder_items_response()
3869 uint8_t item_count = p_rsp->item_count; in handle_get_folder_items_response()
3873 const tAVRC_ITEM* avrc_item = &(p_rsp->p_item_list[i]); in handle_get_folder_items_response()
3918 BTIF_TRACE_ERROR("%s: Error %d", __func__, p_rsp->status); in handle_get_folder_items_response()
3922 (btrc_status_t)p_rsp->status, nullptr, 0)); in handle_get_folder_items_response()
4132 tAVRC_CHG_PATH_RSP* p_rsp) { in handle_change_path_response() argument
4136 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_change_path_response()
4139 p_dev->rc_addr, p_rsp->num_items)); in handle_change_path_response()
4142 p_rsp->status); in handle_change_path_response()
4156 tAVRC_SET_BR_PLAYER_RSP* p_rsp) { in handle_set_browsed_player_response() argument
4160 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_set_browsed_player_response()
4164 p_rsp->num_items, p_rsp->folder_depth)); in handle_set_browsed_player_response()
4166 BTIF_TRACE_ERROR("%s error %d", __func__, p_rsp->status); in handle_set_browsed_player_response()