/system/bt/stack/avrc/ |
H A D | avrc_bld_tg.c | 41 static tAVRC_STS avrc_bld_get_capability_rsp (tAVRC_GET_CAPS_RSP *p_rsp, BT_HDR *p_pkt) argument 50 if (!(AVRC_IS_VALID_CAP_ID(p_rsp->capability_id))) 52 AVRC_TRACE_ERROR("%s bad parameter. p_rsp: %x", __func__, p_rsp); 63 UINT8_TO_BE_STREAM(p_data, p_rsp->capability_id); 68 *p_count = p_rsp->count; 75 *p_count += p_rsp->count; 78 if (p_rsp->capability_id == AVRC_CAP_COMPANY_ID) 80 p_company_id = p_rsp->param.company_id; 81 for (xx=0; xx< p_rsp 119 avrc_bld_list_app_settings_attr_rsp(tAVRC_LIST_APP_ATTR_RSP *p_rsp, BT_HDR *p_pkt) argument 170 avrc_bld_list_app_settings_values_rsp(tAVRC_LIST_APP_VALUES_RSP *p_rsp, BT_HDR *p_pkt) argument 220 avrc_bld_get_cur_app_setting_value_rsp(tAVRC_GET_CUR_APP_VALUE_RSP *p_rsp, BT_HDR *p_pkt) argument 278 avrc_bld_set_app_setting_value_rsp(tAVRC_RSP *p_rsp, BT_HDR *p_pkt) argument 299 avrc_bld_app_setting_text_rsp(tAVRC_GET_APP_ATTR_TXT_RSP *p_rsp, BT_HDR *p_pkt) argument 375 avrc_bld_get_app_setting_attr_text_rsp(tAVRC_GET_APP_ATTR_TXT_RSP *p_rsp, BT_HDR *p_pkt) argument 393 avrc_bld_get_app_setting_value_text_rsp(tAVRC_GET_APP_ATTR_TXT_RSP *p_rsp, BT_HDR *p_pkt) argument 411 avrc_bld_inform_charset_rsp(tAVRC_RSP *p_rsp, BT_HDR *p_pkt) argument 432 avrc_bld_inform_battery_status_rsp(tAVRC_RSP *p_rsp, BT_HDR *p_pkt) argument 453 avrc_bld_get_elem_attrs_rsp(tAVRC_GET_ELEM_ATTRS_RSP *p_rsp, BT_HDR *p_pkt) argument 518 avrc_bld_get_play_status_rsp(tAVRC_GET_PLAY_STATUS_RSP *p_rsp, BT_HDR *p_pkt) argument 546 avrc_bld_notify_rsp(tAVRC_REG_NOTIF_RSP *p_rsp, BT_HDR *p_pkt) argument 675 avrc_bld_next_rsp(tAVRC_RSP *p_rsp, BT_HDR *p_pkt) argument 694 avrc_bld_set_address_player_rsp(tAVRC_RSP *p_rsp, BT_HDR *p_pkt) argument 716 avrc_bld_play_item_rsp(tAVRC_RSP *p_rsp, BT_HDR *p_pkt) argument 785 avrc_bld_rejected_rsp( tAVRC_RSP *p_rsp, BT_HDR *p_pkt ) argument 810 avrc_bld_init_rsp_buffer(tAVRC_RESPONSE *p_rsp) argument 876 AVRC_BldResponse( UINT8 handle, tAVRC_RESPONSE *p_rsp, BT_HDR **pp_pkt) argument [all...] |
H A D | avrc_api.c | 235 BT_HDR *p_rsp = NULL; local 327 p_rsp = p_pkt; 330 return p_rsp; 350 BT_HDR *p_rsp = NULL; local 471 p_rsp = avrc_proc_vendor_command(handle, label, *pp_pkt, p_msg); 472 if (p_rsp) 474 AVCT_MsgReq( handle, label, AVCT_RSP, p_rsp); 535 BT_HDR *p_rsp = NULL; local 585 p_rsp = avrc_copy_packet(p_pkt, AVRC_OP_UNIT_INFO_RSP_LEN); 586 p_rsp_data = avrc_get_data_ptr(p_rsp); [all...] |
H A D | avrc_pars_ct.c | 109 void avrc_parse_notification_rsp (UINT8 *p_stream, tAVRC_REG_NOTIF_RSP *p_rsp) argument 111 BE_STREAM_TO_UINT8(p_rsp->event_id, p_stream); 112 switch (p_rsp->event_id) 115 BE_STREAM_TO_UINT8(p_rsp->param.play_status, p_stream); 119 BE_STREAM_TO_ARRAY(p_stream, p_rsp->param.track, 8); 123 BE_STREAM_TO_UINT8(p_rsp->param.player_setting.num_attr, p_stream); 124 for (int index = 0; index < p_rsp->param.player_setting.num_attr; index++) 126 BE_STREAM_TO_UINT8(p_rsp->param.player_setting.attr_id[index], p_stream); 127 BE_STREAM_TO_UINT8(p_rsp->param.player_setting.attr_value[index], p_stream);
|
/system/bt/stack/sdp/ |
H A D | sdp_server.c | 182 UINT8 *p_rsp, *p_rsp_start, *p_rsp_param_len; local 263 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; 266 UINT8_TO_BE_STREAM (p_rsp, SDP_PDU_SERVICE_SEARCH_RSP); 267 UINT16_TO_BE_STREAM (p_rsp, trans_num); 270 p_rsp_param_len = p_rsp; 271 p_rsp += 2; 274 UINT16_TO_BE_STREAM (p_rsp, num_rsp_handles); 275 UINT16_TO_BE_STREAM (p_rsp, cur_handles); 281 UINT32_TO_BE_STREAM (p_rsp, rsp_handles[xx]); 285 UINT8_TO_BE_STREAM (p_rsp, SDP_CONTINUATION_LE 322 UINT8 *p_rsp, *p_rsp_start, *p_rsp_param_len; local 552 UINT8 *p_rsp, *p_rsp_start, *p_rsp_param_len; local [all...] |
H A D | sdp_utils.c | 314 UINT8 *p_rsp, *p_rsp_start, *p_rsp_param_len; local 324 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; 326 UINT8_TO_BE_STREAM(p_rsp, SDP_PDU_ERROR_RESPONSE); 327 UINT16_TO_BE_STREAM(p_rsp, trans_num); 330 p_rsp_param_len = p_rsp; 331 p_rsp += 2; 333 UINT16_TO_BE_STREAM (p_rsp, error_code); 337 ARRAY_TO_BE_STREAM(p_rsp, p_error_text, (int)strlen(p_error_text)); 340 rsp_param_len = p_rsp - p_rsp_param_len - 2; 344 p_buf->len = p_rsp [all...] |
H A D | sdp_db.c | 935 UINT8 *p_rsp; local 941 p_rsp = &p_data[3]; 945 rem_len = *p_data_len - (UINT16) (p_rsp - p_data); 950 p_rsp = sdpu_build_attrib_entry (p_rsp, p_attr); 955 len = (INT32) (p_rsp - p_data);
|
/system/bt/bta/include/ |
H A D | bta_gatts_co.h | 50 ** response is returned in p_rsp 54 ** p_rsp - response data for the request 57 ** the response is returned in p_rsp. 63 tBTA_GATTS_SRV_CHG_RSP *p_rsp);
|
/system/bt/btif/co/ |
H A D | bta_gatts_co.c | 125 ** response is returned in p_rsp 129 ** p_rsp - response data for the request 132 ** the response is returned in p_rsp. 138 tBTA_GATTS_SRV_CHG_RSP *p_rsp) 142 UNUSED(p_rsp); 136 bta_gatts_co_srv_chg(tBTA_GATTS_SRV_CHG_CMD cmd, tBTA_GATTS_SRV_CHG_REQ *p_req, tBTA_GATTS_SRV_CHG_RSP *p_rsp) argument
|
/system/bt/stack/srvc/ |
H A D | srvc_eng.c | 215 UINT8 srvc_eng_process_read_req (UINT8 clcb_idx, tGATT_READ_REQ *p_data, tGATTS_RSP *p_rsp, tGATT_STATUS *p_status) argument 221 p_rsp->attr_value.offset = p_data->offset; 223 p_rsp->attr_value.handle = p_data->handle; 226 act = dis_read_attr_value(clcb_idx, p_data->handle, &p_rsp->attr_value, p_data->is_long, p_status); 229 act = battery_s_read_attr_value(clcb_idx, p_data->handle, &p_rsp->attr_value, p_data->is_long, p_status); 238 UINT8 srvc_eng_process_write_req (UINT8 clcb_idx, tGATT_WRITE_REQ *p_data, tGATTS_RSP *p_rsp, tGATT_STATUS *p_status) argument 241 UNUSED(p_rsp); 456 void srvc_sr_rsp(UINT8 clcb_idx, tGATT_STATUS st, tGATTS_RSP *p_rsp) argument 463 p_rsp);
|
H A D | srvc_eng_int.h | 81 extern void srvc_sr_rsp(UINT8 clcb_idx, tGATT_STATUS st, tGATTS_RSP *p_rsp);
|
H A D | srvc_battery.c | 307 void Battery_Rsp (UINT8 app_id, tGATT_STATUS st, UINT8 event, tBA_RSP_DATA *p_rsp) argument 334 UINT16_TO_STREAM(pp, p_rsp->clt_cfg); 342 UINT8_TO_STREAM(pp, p_rsp->ba_level); 354 UINT8_TO_STREAM(pp, p_rsp->rpt_ref.rpt_id); 355 UINT8_TO_STREAM(pp, p_rsp->rpt_ref.rpt_type);
|
/system/bt/btif/src/ |
H A D | btif_rc.c | 257 static void handle_get_capability_response (tBTA_AV_META_MSG *pmeta_msg, tAVRC_GET_CAPS_RSP *p_rsp); 258 static void handle_app_attr_response (tBTA_AV_META_MSG *pmeta_msg, tAVRC_LIST_APP_ATTR_RSP *p_rsp); 259 static void handle_app_val_response (tBTA_AV_META_MSG *pmeta_msg, tAVRC_LIST_APP_VALUES_RSP *p_rsp); 260 static void handle_app_cur_val_response (tBTA_AV_META_MSG *pmeta_msg, tAVRC_GET_CUR_APP_VALUE_RSP *p_rsp); 261 static void handle_app_attr_txt_response (tBTA_AV_META_MSG *pmeta_msg, tAVRC_GET_APP_ATTR_TXT_RSP *p_rsp); 262 static void handle_app_attr_val_txt_response (tBTA_AV_META_MSG *pmeta_msg, tAVRC_GET_APP_ATTR_TXT_RSP *p_rsp); 263 static void handle_get_playstatus_response (tBTA_AV_META_MSG *pmeta_msg, tAVRC_GET_PLAY_STATUS_RSP *p_rsp); 264 static void handle_get_elem_attr_response (tBTA_AV_META_MSG *pmeta_msg, tAVRC_GET_ELEM_ATTRS_RSP *p_rsp); 265 static void handle_set_app_attr_val_response (tBTA_AV_META_MSG *pmeta_msg, tAVRC_RSP *p_rsp); 2321 static void handle_get_capability_response (tBTA_AV_META_MSG *pmeta_msg, tAVRC_GET_CAPS_RSP *p_rsp) argument 2402 handle_notification_response(tBTA_AV_META_MSG *pmeta_msg, tAVRC_REG_NOTIF_RSP *p_rsp) argument 2609 handle_app_attr_response(tBTA_AV_META_MSG *pmeta_msg, tAVRC_LIST_APP_ATTR_RSP *p_rsp) argument 2664 handle_app_val_response(tBTA_AV_META_MSG *pmeta_msg, tAVRC_LIST_APP_VALUES_RSP *p_rsp) argument 2750 handle_app_cur_val_response(tBTA_AV_META_MSG *pmeta_msg, tAVRC_GET_CUR_APP_VALUE_RSP *p_rsp) argument 2792 handle_app_attr_txt_response(tBTA_AV_META_MSG *pmeta_msg, tAVRC_GET_APP_ATTR_TXT_RSP *p_rsp) argument 2862 handle_app_attr_val_txt_response(tBTA_AV_META_MSG *pmeta_msg, tAVRC_GET_APP_ATTR_TXT_RSP *p_rsp) argument 2979 handle_set_app_attr_val_response(tBTA_AV_META_MSG *pmeta_msg, tAVRC_RSP *p_rsp) argument 3005 handle_get_elem_attr_response(tBTA_AV_META_MSG *pmeta_msg, tAVRC_GET_ELEM_ATTRS_RSP *p_rsp) argument 3058 handle_get_playstatus_response(tBTA_AV_META_MSG *pmeta_msg, tAVRC_GET_PLAY_STATUS_RSP *p_rsp) argument [all...] |
H A D | btif_gatt_server.c | 500 btgatt_response_t *p_rsp = &p_cb->response; local 501 btif_to_bta_response(&rsp_struct, p_rsp);
|
/system/bt/stack/include/ |
H A D | srvc_api.h | 201 extern void Battery_Rsp (UINT8 app_id, tGATT_STATUS st, UINT8 event, tBA_RSP_DATA *p_rsp);
|
H A D | avrc_api.h | 642 extern tAVRC_STS AVRC_BldResponse( UINT8 handle, tAVRC_RESPONSE *p_rsp, BT_HDR **pp_pkt);
|
H A D | gatt_api.h | 652 tGATTS_SRV_CHG_RSP *p_rsp);
|
/system/bt/bta/gatt/ |
H A D | bta_gatts_api.c | 374 p_buf->p_rsp = (tBTA_GATTS_RSP *)(p_buf + 1); 375 memcpy(p_buf->p_rsp, p_msg, sizeof(tBTA_GATTS_RSP));
|
H A D | bta_gatts_int.h | 130 tBTA_GATTS_RSP *p_rsp; member in struct:__anon184
|
H A D | bta_gatts_act.c | 42 tGATTS_SRV_CHG_RSP *p_rsp); 96 tGATTS_SRV_CHG_REQ *p_req, tGATTS_SRV_CHG_RSP *p_rsp) 100 (tBTA_GATTS_SRV_CHG_RSP *) p_rsp); 596 (tGATTS_RSP *)p_msg->api_rsp.p_rsp) != GATT_SUCCESS) 95 bta_gatts_nv_srv_chg_cback(tGATTS_SRV_CHG_CMD cmd, tGATTS_SRV_CHG_REQ *p_req, tGATTS_SRV_CHG_RSP *p_rsp) argument
|
/system/bt/stack/gatt/ |
H A D | gatt_db.c | 310 ** p_rsp: Read By type response data. 324 BT_HDR *p_rsp, 337 UINT8 *p = (UINT8 *)(p_rsp + 1) + p_rsp->len + L2CAP_MIN_OFFSET; 383 if (p_rsp->offset == 0) 384 p_rsp->offset = len + 2; 386 if (p_rsp->offset == len + 2) 388 p_rsp->len += (len + 2); 321 gatts_db_read_attr_value_by_type(tGATT_TCB *p_tcb, tGATT_SVC_DB *p_db, UINT8 op_code, BT_HDR *p_rsp, UINT16 s_handle, UINT16 e_handle, tBT_UUID type, UINT16 *p_len, tGATT_SEC_FLAG sec_flag, UINT8 key_size, UINT32 trans_id, UINT16 *p_cur_handle) argument
|
H A D | gatt_sr.c | 163 tGATTS_RSP *p_rsp = NULL; local 171 p_rsp = (tGATTS_RSP *)list_node(node); 174 if (p_rsp != NULL) 177 total_len = (p_buf->len + p_rsp->attr_value.len); 182 len = p_rsp->attr_value.len - (total_len - mtu); 184 GATT_TRACE_DEBUG ("multi read overflow available len=%d val_len=%d", len, p_rsp->attr_value.len ); 188 len = p_rsp->attr_value.len; 191 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii]) 193 memcpy (p, p_rsp->attr_value.value, len);
|
H A D | gatt_int.h | 681 extern tGATT_STATUS gatts_db_read_attr_value_by_type (tGATT_TCB *p_tcb, tGATT_SVC_DB *p_db, UINT8 op_code, BT_HDR *p_rsp, UINT16 s_handle,
|
/system/bt/stack/gap/ |
H A D | gap_ble.c | 278 tGATT_STATUS gap_proc_read (tGATTS_REQ_TYPE type, tGATT_READ_REQ *p_data, tGATTS_RSP *p_rsp) argument 284 p_rsp->attr_value.offset = p_data->offset; 286 p_rsp->attr_value.handle = p_data->handle; 288 status = gap_read_attr_value(p_data->handle, &p_rsp->attr_value, p_data->is_long);
|