Home
last modified time | relevance | path

Searched refs:p_rsp (Results 1 – 25 of 27) sorted by relevance

12

/system/bt/stack/avrc/
Davrc_bld_tg.cc51 static tAVRC_STS avrc_bld_get_capability_rsp(tAVRC_GET_CAPS_RSP* p_rsp, in avrc_bld_get_capability_rsp() argument
60 if (!(AVRC_IS_VALID_CAP_ID(p_rsp->capability_id))) { in avrc_bld_get_capability_rsp()
61 AVRC_TRACE_ERROR("%s bad parameter. p_rsp: %x", __func__, p_rsp); in avrc_bld_get_capability_rsp()
72 UINT8_TO_BE_STREAM(p_data, p_rsp->capability_id); in avrc_bld_get_capability_rsp()
76 *p_count = p_rsp->count; in avrc_bld_get_capability_rsp()
81 *p_count += p_rsp->count; in avrc_bld_get_capability_rsp()
84 if (p_rsp->capability_id == AVRC_CAP_COMPANY_ID) { in avrc_bld_get_capability_rsp()
85 p_company_id = p_rsp->param.company_id; in avrc_bld_get_capability_rsp()
86 for (xx = 0; xx < p_rsp->count; xx++) { in avrc_bld_get_capability_rsp()
89 len += p_rsp->count * 3; in avrc_bld_get_capability_rsp()
[all …]
Davrc_api.cc356 BT_HDR* p_rsp = NULL; in avrc_proc_vendor_command() local
428 p_rsp = (BT_HDR*)osi_calloc(BT_DEFAULT_BUFFER_SIZE); in avrc_proc_vendor_command()
429 p_rsp->offset = p_pkt->offset; in avrc_proc_vendor_command()
430 p_data = (uint8_t*)(p_rsp + 1) + p_pkt->offset; in avrc_proc_vendor_command()
436 p_rsp->len = AVRC_VENDOR_HDR_SIZE + 5; in avrc_proc_vendor_command()
439 return p_rsp; in avrc_proc_vendor_command()
458 BT_HDR* p_rsp = NULL; in avrc_proc_far_msg() local
574 p_rsp = avrc_proc_vendor_command(handle, label, *pp_pkt, p_msg); in avrc_proc_far_msg()
575 if (p_rsp) { in avrc_proc_far_msg()
576 AVCT_MsgReq(handle, label, AVCT_RSP, p_rsp); in avrc_proc_far_msg()
[all …]
Davrc_pars_ct.cc143 tAVRC_REG_NOTIF_RSP* p_rsp) { in avrc_parse_notification_rsp() argument
147 BE_STREAM_TO_UINT8(p_rsp->event_id, p_stream); in avrc_parse_notification_rsp()
148 switch (p_rsp->event_id) { in avrc_parse_notification_rsp()
152 BE_STREAM_TO_UINT8(p_rsp->param.play_status, p_stream); in avrc_parse_notification_rsp()
158 BE_STREAM_TO_ARRAY(p_stream, p_rsp->param.track, 8); in avrc_parse_notification_rsp()
164 BE_STREAM_TO_UINT8(p_rsp->param.player_setting.num_attr, p_stream); in avrc_parse_notification_rsp()
165 if (p_rsp->param.player_setting.num_attr > AVRC_MAX_APP_SETTINGS) { in avrc_parse_notification_rsp()
167 p_rsp->param.player_setting.num_attr = AVRC_MAX_APP_SETTINGS; in avrc_parse_notification_rsp()
169 min_len += p_rsp->param.player_setting.num_attr * 2; in avrc_parse_notification_rsp()
171 for (int index = 0; index < p_rsp->param.player_setting.num_attr; in avrc_parse_notification_rsp()
[all …]
/system/bt/stack/sdp/
Dsdp_server.cc186 uint8_t *p_rsp, *p_rsp_start, *p_rsp_param_len; in process_service_search() local
260 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search()
263 UINT8_TO_BE_STREAM(p_rsp, SDP_PDU_SERVICE_SEARCH_RSP); in process_service_search()
264 UINT16_TO_BE_STREAM(p_rsp, trans_num); in process_service_search()
267 p_rsp_param_len = p_rsp; in process_service_search()
268 p_rsp += 2; in process_service_search()
271 UINT16_TO_BE_STREAM(p_rsp, num_rsp_handles); in process_service_search()
272 UINT16_TO_BE_STREAM(p_rsp, cur_handles); in process_service_search()
279 UINT32_TO_BE_STREAM(p_rsp, rsp_handles[xx]); in process_service_search()
282 UINT8_TO_BE_STREAM(p_rsp, SDP_CONTINUATION_LEN); in process_service_search()
[all …]
Dsdp_utils.cc523 uint8_t *p_rsp, *p_rsp_start, *p_rsp_param_len; in sdpu_build_n_send_error() local
532 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in sdpu_build_n_send_error()
534 UINT8_TO_BE_STREAM(p_rsp, SDP_PDU_ERROR_RESPONSE); in sdpu_build_n_send_error()
535 UINT16_TO_BE_STREAM(p_rsp, trans_num); in sdpu_build_n_send_error()
538 p_rsp_param_len = p_rsp; in sdpu_build_n_send_error()
539 p_rsp += 2; in sdpu_build_n_send_error()
541 UINT16_TO_BE_STREAM(p_rsp, error_code); in sdpu_build_n_send_error()
545 ARRAY_TO_BE_STREAM(p_rsp, p_error_text, (int)strlen(p_error_text)); in sdpu_build_n_send_error()
548 rsp_param_len = p_rsp - p_rsp_param_len - 2; in sdpu_build_n_send_error()
552 p_buf->len = p_rsp - p_rsp_start; in sdpu_build_n_send_error()
/system/bt/btif/src/
Dbtif_rc.cc281 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);
[all …]
/system/bt/stack/srvc/
Dsrvc_eng.cc204 tGATTS_RSP* p_rsp, tGATT_STATUS* p_status) { in srvc_eng_process_read_req() argument
208 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in srvc_eng_process_read_req()
210 p_rsp->attr_value.handle = p_data->handle; in srvc_eng_process_read_req()
213 act = dis_read_attr_value(clcb_idx, p_data->handle, &p_rsp->attr_value, in srvc_eng_process_read_req()
223 UNUSED_ATTR tGATTS_RSP* p_rsp, in srvc_eng_process_write_req() argument
416 void srvc_sr_rsp(uint8_t clcb_idx, tGATT_STATUS st, tGATTS_RSP* p_rsp) { in srvc_sr_rsp() argument
419 srvc_eng_cb.clcb[clcb_idx].trans_id, st, p_rsp); in srvc_sr_rsp()
Dsrvc_eng_int.h66 extern void srvc_sr_rsp(uint8_t clcb_idx, tGATT_STATUS st, tGATTS_RSP* p_rsp);
/system/bt/bta/include/
Dbta_gatts_co.h65 tGATTS_SRV_CHG_RSP* p_rsp);
/system/bt/test/mock/
Dmock_stack_avrc_bld_tg.cc39 tAVRC_STS AVRC_BldResponse(uint8_t handle, tAVRC_RESPONSE* p_rsp, in AVRC_BldResponse() argument
Dmock_stack_avrc_pars.ct.cc51 tAVRC_REG_NOTIF_RSP* p_rsp) { in avrc_parse_notification_rsp() argument
Dmock_stack_gatt_attr.cc57 tGATT_READ_REQ* p_data, tGATTS_RSP* p_rsp) { in proc_read_req() argument
/system/bt/stack/gatt/
Dgatt_db.cc269 BT_HDR* p_rsp, uint16_t s_handle, uint16_t e_handle, const Uuid& type, in gatts_db_read_attr_value_by_type() argument
274 uint8_t* p = (uint8_t*)(p_rsp + 1) + p_rsp->len + L2CAP_MIN_OFFSET; in gatts_db_read_attr_value_by_type()
296 if (p_rsp->offset == 0) p_rsp->offset = len + 2; in gatts_db_read_attr_value_by_type()
298 if (p_rsp->offset == len + 2) { in gatts_db_read_attr_value_by_type()
299 p_rsp->len += (len + 2); in gatts_db_read_attr_value_by_type()
Dgatt_sr.cc163 tGATTS_RSP* p_rsp = NULL; in build_read_multi_rsp() local
170 if (node != list_end(list)) p_rsp = (tGATTS_RSP*)list_node(node); in build_read_multi_rsp()
173 if (p_rsp != NULL) { in build_read_multi_rsp()
174 total_len = (p_buf->len + p_rsp->attr_value.len); in build_read_multi_rsp()
178 len = p_rsp->attr_value.len - (total_len - mtu); in build_read_multi_rsp()
182 p_rsp->attr_value.len); in build_read_multi_rsp()
184 len = p_rsp->attr_value.len; in build_read_multi_rsp()
192 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii]) { in build_read_multi_rsp()
193 memcpy(p, p_rsp->attr_value.value, len); in build_read_multi_rsp()
Dgatt_attr.cc245 tGATT_READ_REQ* p_data, tGATTS_RSP* p_rsp) { in proc_read_req() argument
246 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in proc_read_req()
248 p_rsp->attr_value.handle = p_data->handle; in proc_read_req()
250 return read_attr_value(conn_id, p_data->handle, &p_rsp->attr_value, in proc_read_req()
/system/bt/btif/co/
Dbta_gatts_co.cc126 UNUSED_ATTR tGATTS_SRV_CHG_RSP* p_rsp) { in bta_gatts_co_srv_chg() argument
/system/bt/stack/gap/
Dgap_ble.cc179 tGATTS_RSP* p_rsp) { in proc_read() argument
180 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in proc_read()
182 p_rsp->attr_value.handle = p_data->handle; in proc_read()
184 return read_attr_value(p_data->handle, &p_rsp->attr_value, p_data->is_long); in proc_read()
/system/bt/bta/gatt/
Dbta_gatts_api.cc282 p_buf->p_rsp = (tGATTS_RSP*)(p_buf + 1); in BTA_GATTS_SendRsp()
283 memcpy(p_buf->p_rsp, p_msg, sizeof(tGATTS_RSP)); in BTA_GATTS_SendRsp()
Dbta_gatts_act.cc41 tGATTS_SRV_CHG_RSP* p_rsp);
103 tGATTS_SRV_CHG_RSP* p_rsp) { in bta_gatts_nv_srv_chg_cback() argument
106 (tGATTS_SRV_CHG_RSP*)p_rsp); in bta_gatts_nv_srv_chg_cback()
355 (tGATTS_RSP*)p_msg->api_rsp.p_rsp) != GATT_SUCCESS) { in bta_gatts_send_rsp()
Dbta_gatts_int.h96 tGATTS_RSP* p_rsp; member
/system/bt/btif/test/
Dbtif_rc_test.cc42 tAVRC_STS AVRC_BldResponse(uint8_t handle, tAVRC_RESPONSE* p_rsp, in AVRC_BldResponse() argument
/system/nfc/src/nfa/ee/
Dnfa_ee_act.cc2158 tNFC_NFCEE_MODE_SET_REVT* p_rsp = p_data->mode_set_rsp.p_data; in nfa_ee_nci_mode_set_rsp() local
2161 "%s handle:0x%02x mode:%d", __func__, p_rsp->nfcee_id, p_rsp->mode); in nfa_ee_nci_mode_set_rsp()
2162 p_cb = nfa_ee_find_ecb(p_rsp->nfcee_id); in nfa_ee_nci_mode_set_rsp()
2165 p_rsp->nfcee_id); in nfa_ee_nci_mode_set_rsp()
2175 p_rsp->status); in nfa_ee_nci_mode_set_rsp()
2176 if (p_rsp->status == NFA_STATUS_OK) { in nfa_ee_nci_mode_set_rsp()
2177 if (p_rsp->mode == NFA_EE_MD_ACTIVATE) { in nfa_ee_nci_mode_set_rsp()
2197 } else if (p_rsp->mode == NFA_EE_MD_ACTIVATE) { in nfa_ee_nci_mode_set_rsp()
2202 p_rsp->status, p_cb->ecb_flags, nfa_ee_cb.ee_cfged, p_cb->ee_status); in nfa_ee_nci_mode_set_rsp()
2215 mode_set.status = p_rsp->status; in nfa_ee_nci_mode_set_rsp()
[all …]
/system/bt/stack/include/
Davrc_api.h744 extern tAVRC_STS AVRC_BldResponse(uint8_t handle, tAVRC_RESPONSE* p_rsp,
Dgatt_api.h737 tGATTS_SRV_CHG_RSP* p_rsp);
/system/nfc/src/nfa/hci/
Dnfa_hci_act.cc1778 uint8_t* p_rsp = data; in nfa_hci_handle_identity_mgmt_gate_pkt() local
1827 p_rsp = gate_rsp; in nfa_hci_handle_identity_mgmt_gate_pkt()
1855 p_rsp); in nfa_hci_handle_identity_mgmt_gate_pkt()

12