Lines Matching refs:p_rsp
279 tAVRC_GET_CAPS_RSP* p_rsp);
281 tAVRC_LIST_APP_ATTR_RSP* p_rsp);
283 tAVRC_LIST_APP_VALUES_RSP* p_rsp);
285 tAVRC_GET_CUR_APP_VALUE_RSP* p_rsp);
287 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp);
289 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp);
293 tAVRC_GET_PLAY_STATUS_RSP* p_rsp);
295 tAVRC_RSP* p_rsp);
299 tAVRC_GET_ATTRS_RSP* p_rsp);
301 tAVRC_RSP* p_rsp);
3153 tAVRC_GET_CAPS_RSP* p_rsp) { in handle_get_capability_response() argument
3159 if (p_rsp->status != AVRC_STS_NO_ERROR) { in handle_get_capability_response()
3161 p_rsp->status); in handle_get_capability_response()
3165 if (p_rsp->capability_id == AVRC_CAP_EVENTS_SUPPORTED) { in handle_get_capability_response()
3170 for (xx = 0; xx < p_rsp->count; xx++) { in handle_get_capability_response()
3172 if ((p_rsp->param.event_id[xx] == AVRC_EVT_PLAY_STATUS_CHANGE) || in handle_get_capability_response()
3173 (p_rsp->param.event_id[xx] == AVRC_EVT_TRACK_CHANGE) || in handle_get_capability_response()
3174 (p_rsp->param.event_id[xx] == AVRC_EVT_PLAY_POS_CHANGED) || in handle_get_capability_response()
3175 (p_rsp->param.event_id[xx] == AVRC_EVT_APP_SETTING_CHANGE) || in handle_get_capability_response()
3176 (p_rsp->param.event_id[xx] == AVRC_EVT_NOW_PLAYING_CHANGE) || in handle_get_capability_response()
3177 (p_rsp->param.event_id[xx] == AVRC_EVT_ADDR_PLAYER_CHANGE) || in handle_get_capability_response()
3178 (p_rsp->param.event_id[xx] == AVRC_EVT_UIDS_CHANGE) || in handle_get_capability_response()
3179 (p_rsp->param.event_id[xx] == AVRC_EVT_AVAL_PLAYERS_CHANGE)) { in handle_get_capability_response()
3182 p_event->event_id = p_rsp->param.event_id[xx]; in handle_get_capability_response()
3201 } else if (p_rsp->capability_id == AVRC_CAP_COMPANY_ID) { in handle_get_capability_response()
3204 for (xx = 0; xx < p_rsp->count; xx++) { in handle_get_capability_response()
3206 p_rsp->param.company_id[xx]); in handle_get_capability_response()
3241 tAVRC_REG_NOTIF_RSP* p_rsp) { in handle_notification_response() argument
3257 BTIF_TRACE_DEBUG("%s: Interim response: 0x%2X ", __func__, p_rsp->event_id); in handle_notification_response()
3258 switch (p_rsp->event_id) { in handle_notification_response()
3265 (btrc_play_status_t)p_rsp->param.play_status)); in handle_notification_response()
3269 if (rc_is_track_id_valid(p_rsp->param.track) != true) { in handle_notification_response()
3272 uint8_t* p_data = p_rsp->param.track; in handle_notification_response()
3302 p_dev->rc_addr, p_rsp->param.addr_player.player_id)); in handle_notification_response()
3307 p_rsp->param.play_pos)); in handle_notification_response()
3319 p_rsp->event_id); in handle_notification_response()
3325 &p_rsp->event_id); in handle_notification_response()
3357 p_rsp->event_id); in handle_notification_response()
3363 if (p_event != NULL && p_event->event_id == p_rsp->event_id) { in handle_notification_response()
3371 switch (p_rsp->event_id) { in handle_notification_response()
3380 (btrc_play_status_t)p_rsp->param.play_status)); in handle_notification_response()
3385 if (rc_is_track_id_valid(p_rsp->param.track) != true) { in handle_notification_response()
3395 app_settings.num_attr = p_rsp->param.player_setting.num_attr; in handle_notification_response()
3397 app_settings.attr_ids[xx] = p_rsp->param.player_setting.attr_id[xx]; in handle_notification_response()
3399 p_rsp->param.player_setting.attr_value[xx]; in handle_notification_response()
3430 p_rsp->event_id); in handle_notification_response()
3446 tAVRC_LIST_APP_ATTR_RSP* p_rsp) { in handle_app_attr_response() argument
3451 if (p_dev == NULL || p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_attr_response()
3453 __func__, p_rsp->status); in handle_app_attr_response()
3460 for (xx = 0; xx < p_rsp->num_attr; xx++) { in handle_app_attr_response()
3463 if (p_rsp->attrs[xx] > AVRC_PLAYER_SETTING_LOW_MENU_EXT) { in handle_app_attr_response()
3465 p_dev->rc_app_settings.ext_attrs[st_index].attr_id = p_rsp->attrs[xx]; in handle_app_attr_response()
3469 p_dev->rc_app_settings.attrs[st_index].attr_id = p_rsp->attrs[xx]; in handle_app_attr_response()
3476 if (p_rsp->num_attr) { in handle_app_attr_response()
3497 tAVRC_LIST_APP_VALUES_RSP* p_rsp) { in handle_app_val_response() argument
3505 if (p_dev == NULL || p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_val_response()
3507 p_rsp->status); in handle_app_val_response()
3515 p_app_settings->attrs[attr_index].num_val = p_rsp->num_val; in handle_app_val_response()
3516 for (xx = 0; xx < p_rsp->num_val; xx++) { in handle_app_val_response()
3517 p_app_settings->attrs[attr_index].attr_val[xx] = p_rsp->vals[xx]; in handle_app_val_response()
3542 p_app_settings->ext_attrs[attr_index].num_val = p_rsp->num_val; in handle_app_val_response()
3543 for (xx = 0; xx < p_rsp->num_val; xx++) { in handle_app_val_response()
3545 p_rsp->vals[xx]; in handle_app_val_response()
3575 tAVRC_GET_CUR_APP_VALUE_RSP* p_rsp) { in handle_app_cur_val_response() argument
3581 if (p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_cur_val_response()
3583 p_rsp->status); in handle_app_cur_val_response()
3589 osi_free_and_reset((void**)&p_rsp->p_vals); in handle_app_cur_val_response()
3594 app_settings.num_attr = p_rsp->num_val; in handle_app_cur_val_response()
3602 app_settings.attr_ids[xx] = p_rsp->p_vals[xx].attr_id; in handle_app_cur_val_response()
3603 app_settings.attr_values[xx] = p_rsp->p_vals[xx].attr_val; in handle_app_cur_val_response()
3615 osi_free_and_reset((void**)&p_rsp->p_vals); in handle_app_cur_val_response()
3630 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp) { in handle_app_attr_txt_response() argument
3645 if (p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_attr_txt_response()
3649 p_rsp->status); in handle_app_attr_txt_response()
3675 for (xx = 0; xx < p_rsp->num_attr; xx++) { in handle_app_attr_txt_response()
3678 if (p_app_settings->ext_attrs[x].attr_id == p_rsp->p_attrs[xx].attr_id) { in handle_app_attr_txt_response()
3679 p_app_settings->ext_attrs[x].charset_id = p_rsp->p_attrs[xx].charset_id; in handle_app_attr_txt_response()
3680 p_app_settings->ext_attrs[x].str_len = p_rsp->p_attrs[xx].str_len; in handle_app_attr_txt_response()
3681 p_app_settings->ext_attrs[x].p_str = p_rsp->p_attrs[xx].p_str; 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
3720 if (p_rsp->status != AVRC_STS_NO_ERROR) { in handle_app_attr_val_txt_response()
3724 __func__, p_rsp->status); in handle_app_attr_val_txt_response()
3754 for (xx = 0; xx < p_rsp->num_attr; xx++) { in handle_app_attr_val_txt_response()
3758 for (x = 0; x < p_rsp->num_attr; x++) { in handle_app_attr_val_txt_response()
3759 if (p_ext_attr->ext_attr_val[x].val == p_rsp->p_attrs[xx].attr_id) { in handle_app_attr_val_txt_response()
3760 p_ext_attr->ext_attr_val[x].charset_id = p_rsp->p_attrs[xx].charset_id; in handle_app_attr_val_txt_response()
3761 p_ext_attr->ext_attr_val[x].str_len = p_rsp->p_attrs[xx].str_len; in handle_app_attr_val_txt_response()
3762 p_ext_attr->ext_attr_val[x].p_str = p_rsp->p_attrs[xx].p_str; in handle_app_attr_val_txt_response()
3832 tAVRC_RSP* p_rsp) { in handle_set_app_attr_val_response() argument
3864 tAVRC_GET_ATTRS_RSP* p_rsp) { in handle_get_metadata_attr_response() argument
3868 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_get_metadata_attr_response()
3869 size_t buf_size = p_rsp->num_attrs * sizeof(btrc_element_attr_val_t); in handle_get_metadata_attr_response()
3879 for (int i = 0; i < p_rsp->num_attrs; i++) { in handle_get_metadata_attr_response()
3880 p_attr[i].attr_id = p_rsp->p_attrs[i].attr_id; in handle_get_metadata_attr_response()
3882 if (p_rsp->p_attrs[i].name.str_len && p_rsp->p_attrs[i].name.p_str) { in handle_get_metadata_attr_response()
3883 memcpy(p_attr[i].text, p_rsp->p_attrs[i].name.p_str, in handle_get_metadata_attr_response()
3884 p_rsp->p_attrs[i].name.str_len); in handle_get_metadata_attr_response()
3885 osi_free_and_reset((void**)&p_rsp->p_attrs[i].name.p_str); in handle_get_metadata_attr_response()
3890 p_dev->rc_addr, p_rsp->num_attrs, p_attr)); in handle_get_metadata_attr_response()
3892 } else if (p_rsp->status == BTIF_RC_STS_TIMEOUT) { in handle_get_metadata_attr_response()
3901 p_rsp->status); in handle_get_metadata_attr_response()
3915 tAVRC_GET_PLAY_STATUS_RSP* p_rsp) { in handle_get_playstatus_response() argument
3926 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_get_playstatus_response()
3930 (btrc_play_status_t)p_rsp->play_status)); in handle_get_playstatus_response()
3934 p_dev->rc_addr, p_rsp->song_len, p_rsp->song_pos)); in handle_get_playstatus_response()
3937 p_rsp->status); in handle_get_playstatus_response()
3951 tAVRC_RSP* p_rsp) { in handle_set_addressed_player_response() argument
3962 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_set_addressed_player_response()
3965 p_dev->rc_addr, p_rsp->status)); in handle_set_addressed_player_response()
3968 p_rsp->status); in handle_set_addressed_player_response()
3982 tAVRC_GET_ITEMS_RSP* p_rsp) { in handle_get_folder_items_response() argument
3986 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_get_folder_items_response()
3990 uint8_t item_count = p_rsp->item_count; in handle_get_folder_items_response()
3994 const tAVRC_ITEM* avrc_item = &(p_rsp->p_item_list[i]); in handle_get_folder_items_response()
4045 BTIF_TRACE_ERROR("%s: Error %d", __func__, p_rsp->status); in handle_get_folder_items_response()
4049 (btrc_status_t)p_rsp->status, nullptr, 0)); in handle_get_folder_items_response()
4262 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
4290 if (p_rsp->status == AVRC_STS_NO_ERROR) { in handle_set_browsed_player_response()
4294 p_rsp->num_items, p_rsp->folder_depth)); in handle_set_browsed_player_response()
4296 BTIF_TRACE_ERROR("%s error %d", __func__, p_rsp->status); in handle_set_browsed_player_response()