Lines Matching refs:p_rsp
281 tAVRC_GET_CAPS_RSP* p_rsp);
283 tAVRC_LIST_APP_ATTR_RSP* p_rsp);
285 tAVRC_LIST_APP_VALUES_RSP* p_rsp);
287 tAVRC_GET_CUR_APP_VALUE_RSP* p_rsp);
289 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp);
291 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp);
295 tAVRC_GET_PLAY_STATUS_RSP* p_rsp);
297 tAVRC_RSP* p_rsp);
301 tAVRC_GET_ATTRS_RSP* p_rsp);
303 tAVRC_RSP* p_rsp);
3148 tAVRC_GET_CAPS_RSP* p_rsp) { in handle_get_capability_response() argument
3154 if (p_rsp->status != AVRC_STS_NO_ERROR) { in handle_get_capability_response()
3156 p_rsp->status); in handle_get_capability_response()
3160 if (p_rsp->capability_id == AVRC_CAP_EVENTS_SUPPORTED) { in handle_get_capability_response()
3165 for (xx = 0; xx < p_rsp->count; xx++) { in handle_get_capability_response()
3167 if ((p_rsp->param.event_id[xx] == AVRC_EVT_PLAY_STATUS_CHANGE) || in handle_get_capability_response()
3168 (p_rsp->param.event_id[xx] == AVRC_EVT_TRACK_CHANGE) || in handle_get_capability_response()
3169 (p_rsp->param.event_id[xx] == AVRC_EVT_PLAY_POS_CHANGED) || in handle_get_capability_response()
3170 (p_rsp->param.event_id[xx] == AVRC_EVT_APP_SETTING_CHANGE) || in handle_get_capability_response()
3171 (p_rsp->param.event_id[xx] == AVRC_EVT_NOW_PLAYING_CHANGE) || in handle_get_capability_response()
3172 (p_rsp->param.event_id[xx] == AVRC_EVT_ADDR_PLAYER_CHANGE) || in handle_get_capability_response()
3173 (p_rsp->param.event_id[xx] == AVRC_EVT_UIDS_CHANGE) || in handle_get_capability_response()
3174 (p_rsp->param.event_id[xx] == AVRC_EVT_AVAL_PLAYERS_CHANGE)) { in handle_get_capability_response()
3177 p_event->event_id = p_rsp->param.event_id[xx]; in handle_get_capability_response()
3196 } else if (p_rsp->capability_id == AVRC_CAP_COMPANY_ID) { in handle_get_capability_response()
3199 for (xx = 0; xx < p_rsp->count; xx++) { in handle_get_capability_response()
3201 p_rsp->param.company_id[xx]); in handle_get_capability_response()
3236 tAVRC_REG_NOTIF_RSP* p_rsp) { in handle_notification_response() argument
3252 BTIF_TRACE_DEBUG("%s: Interim response: 0x%2X ", __func__, p_rsp->event_id); in handle_notification_response()
3253 switch (p_rsp->event_id) { in handle_notification_response()
3260 (btrc_play_status_t)p_rsp->param.play_status)); in handle_notification_response()
3264 if (rc_is_track_id_valid(p_rsp->param.track) != true) { in handle_notification_response()
3267 uint8_t* p_data = p_rsp->param.track; in handle_notification_response()
3297 p_dev->rc_addr, p_rsp->param.addr_player.player_id)); in handle_notification_response()
3302 p_rsp->param.play_pos)); in handle_notification_response()
3314 p_rsp->event_id); in handle_notification_response()
3320 &p_rsp->event_id); in handle_notification_response()
3352 p_rsp->event_id); in handle_notification_response()
3358 if (p_event != NULL && p_event->event_id == p_rsp->event_id) { in handle_notification_response()
3366 switch (p_rsp->event_id) { in handle_notification_response()
3375 (btrc_play_status_t)p_rsp->param.play_status)); in handle_notification_response()
3380 if (rc_is_track_id_valid(p_rsp->param.track) != true) { in handle_notification_response()
3390 app_settings.num_attr = p_rsp->param.player_setting.num_attr; in handle_notification_response()
3392 app_settings.attr_ids[xx] = p_rsp->param.player_setting.attr_id[xx]; in handle_notification_response()
3394 p_rsp->param.player_setting.attr_value[xx]; in handle_notification_response()
3425 p_rsp->event_id); in handle_notification_response()
3441 tAVRC_LIST_APP_ATTR_RSP* p_rsp) { in handle_app_attr_response() argument
3446 if (p_dev == NULL || p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_attr_response()
3448 __func__, p_rsp->status); in handle_app_attr_response()
3455 for (xx = 0; xx < p_rsp->num_attr; xx++) { in handle_app_attr_response()
3458 if (p_rsp->attrs[xx] > AVRC_PLAYER_SETTING_LOW_MENU_EXT) { in handle_app_attr_response()
3460 p_dev->rc_app_settings.ext_attrs[st_index].attr_id = p_rsp->attrs[xx]; in handle_app_attr_response()
3464 p_dev->rc_app_settings.attrs[st_index].attr_id = p_rsp->attrs[xx]; in handle_app_attr_response()
3471 if (p_rsp->num_attr) { in handle_app_attr_response()
3492 tAVRC_LIST_APP_VALUES_RSP* p_rsp) { in handle_app_val_response() argument
3500 if (p_dev == NULL || p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_val_response()
3502 p_rsp->status); in handle_app_val_response()
3510 p_app_settings->attrs[attr_index].num_val = p_rsp->num_val; in handle_app_val_response()
3511 for (xx = 0; xx < p_rsp->num_val; xx++) { in handle_app_val_response()
3512 p_app_settings->attrs[attr_index].attr_val[xx] = p_rsp->vals[xx]; in handle_app_val_response()
3537 p_app_settings->ext_attrs[attr_index].num_val = p_rsp->num_val; in handle_app_val_response()
3538 for (xx = 0; xx < p_rsp->num_val; xx++) { in handle_app_val_response()
3540 p_rsp->vals[xx]; in handle_app_val_response()
3570 tAVRC_GET_CUR_APP_VALUE_RSP* p_rsp) { in handle_app_cur_val_response() argument
3576 if (p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_cur_val_response()
3578 p_rsp->status); in handle_app_cur_val_response()
3584 osi_free_and_reset((void**)&p_rsp->p_vals); in handle_app_cur_val_response()
3589 app_settings.num_attr = p_rsp->num_val; in handle_app_cur_val_response()
3597 app_settings.attr_ids[xx] = p_rsp->p_vals[xx].attr_id; in handle_app_cur_val_response()
3598 app_settings.attr_values[xx] = p_rsp->p_vals[xx].attr_val; in handle_app_cur_val_response()
3610 osi_free_and_reset((void**)&p_rsp->p_vals); in handle_app_cur_val_response()
3625 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp) { in handle_app_attr_txt_response() argument
3640 if (p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_attr_txt_response()
3644 p_rsp->status); in handle_app_attr_txt_response()
3670 for (xx = 0; xx < p_rsp->num_attr; xx++) { in handle_app_attr_txt_response()
3673 if (p_app_settings->ext_attrs[x].attr_id == p_rsp->p_attrs[xx].attr_id) { in handle_app_attr_txt_response()
3674 p_app_settings->ext_attrs[x].charset_id = p_rsp->p_attrs[xx].charset_id; in handle_app_attr_txt_response()
3675 p_app_settings->ext_attrs[x].str_len = p_rsp->p_attrs[xx].str_len; in handle_app_attr_txt_response()
3676 p_app_settings->ext_attrs[x].p_str = p_rsp->p_attrs[xx].p_str; in handle_app_attr_txt_response()
3699 tBTA_AV_META_MSG* pmeta_msg, tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp) { in handle_app_attr_val_txt_response() argument
3715 if (p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_attr_val_txt_response()
3719 __func__, p_rsp->status); in handle_app_attr_val_txt_response()
3749 for (xx = 0; xx < p_rsp->num_attr; xx++) { in handle_app_attr_val_txt_response()
3753 for (x = 0; x < p_rsp->num_attr; x++) { in handle_app_attr_val_txt_response()
3754 if (p_ext_attr->ext_attr_val[x].val == p_rsp->p_attrs[xx].attr_id) { in handle_app_attr_val_txt_response()
3755 p_ext_attr->ext_attr_val[x].charset_id = p_rsp->p_attrs[xx].charset_id; in handle_app_attr_val_txt_response()
3756 p_ext_attr->ext_attr_val[x].str_len = p_rsp->p_attrs[xx].str_len; in handle_app_attr_val_txt_response()
3757 p_ext_attr->ext_attr_val[x].p_str = p_rsp->p_attrs[xx].p_str; in handle_app_attr_val_txt_response()
3827 tAVRC_RSP* p_rsp) { in handle_set_app_attr_val_response() argument
3859 tAVRC_GET_ATTRS_RSP* p_rsp) { in handle_get_metadata_attr_response() argument
3863 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_get_metadata_attr_response()
3864 size_t buf_size = p_rsp->num_attrs * sizeof(btrc_element_attr_val_t); in handle_get_metadata_attr_response()
3874 for (int i = 0; i < p_rsp->num_attrs; i++) { in handle_get_metadata_attr_response()
3875 p_attr[i].attr_id = p_rsp->p_attrs[i].attr_id; in handle_get_metadata_attr_response()
3877 if (p_rsp->p_attrs[i].name.str_len && p_rsp->p_attrs[i].name.p_str) { in handle_get_metadata_attr_response()
3878 memcpy(p_attr[i].text, p_rsp->p_attrs[i].name.p_str, in handle_get_metadata_attr_response()
3879 p_rsp->p_attrs[i].name.str_len); in handle_get_metadata_attr_response()
3880 osi_free_and_reset((void**)&p_rsp->p_attrs[i].name.p_str); in handle_get_metadata_attr_response()
3885 p_dev->rc_addr, p_rsp->num_attrs, p_attr)); in handle_get_metadata_attr_response()
3887 } else if (p_rsp->status == BTIF_RC_STS_TIMEOUT) { in handle_get_metadata_attr_response()
3896 p_rsp->status); in handle_get_metadata_attr_response()
3910 tAVRC_GET_PLAY_STATUS_RSP* p_rsp) { in handle_get_playstatus_response() argument
3921 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_get_playstatus_response()
3925 (btrc_play_status_t)p_rsp->play_status)); in handle_get_playstatus_response()
3929 p_dev->rc_addr, p_rsp->song_len, p_rsp->song_pos)); in handle_get_playstatus_response()
3932 p_rsp->status); in handle_get_playstatus_response()
3946 tAVRC_RSP* p_rsp) { in handle_set_addressed_player_response() argument
3957 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_set_addressed_player_response()
3960 p_dev->rc_addr, p_rsp->status)); in handle_set_addressed_player_response()
3963 p_rsp->status); in handle_set_addressed_player_response()
3977 tAVRC_GET_ITEMS_RSP* p_rsp) { in handle_get_folder_items_response() argument
3981 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_get_folder_items_response()
3985 uint8_t item_count = p_rsp->item_count; in handle_get_folder_items_response()
3989 const tAVRC_ITEM* avrc_item = &(p_rsp->p_item_list[i]); in handle_get_folder_items_response()
4040 BTIF_TRACE_ERROR("%s: Error %d", __func__, p_rsp->status); in handle_get_folder_items_response()
4044 (btrc_status_t)p_rsp->status, nullptr, 0)); in handle_get_folder_items_response()
4257 tAVRC_CHG_PATH_RSP* p_rsp) { in handle_change_path_response() argument
4266 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_change_path_response()
4269 p_dev->rc_addr, p_rsp->num_items)); in handle_change_path_response()
4272 p_rsp->status); in handle_change_path_response()
4286 tAVRC_SET_BR_PLAYER_RSP* p_rsp) { in handle_set_browsed_player_response() argument
4295 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_set_browsed_player_response()
4299 p_rsp->num_items, p_rsp->folder_depth)); in handle_set_browsed_player_response()
4301 BTIF_TRACE_ERROR("%s error %d", __func__, p_rsp->status); in handle_set_browsed_player_response()