/system/bt/stack/avrc/ |
D | avrc_bld_tg.cc | 51 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 …]
|
D | avrc_api.cc | 357 BT_HDR* p_rsp = NULL; in avrc_proc_vendor_command() local 429 p_rsp = (BT_HDR*)osi_malloc(BT_DEFAULT_BUFFER_SIZE); in avrc_proc_vendor_command() 430 p_rsp->offset = p_pkt->offset; in avrc_proc_vendor_command() 431 p_data = (uint8_t*)(p_rsp + 1) + p_pkt->offset; in avrc_proc_vendor_command() 437 p_rsp->len = AVRC_VENDOR_HDR_SIZE + 5; in avrc_proc_vendor_command() 440 return p_rsp; in avrc_proc_vendor_command() 459 BT_HDR* p_rsp = NULL; in avrc_proc_far_msg() local 575 p_rsp = avrc_proc_vendor_command(handle, label, *pp_pkt, p_msg); in avrc_proc_far_msg() 576 if (p_rsp) { in avrc_proc_far_msg() 577 AVCT_MsgReq(handle, label, AVCT_RSP, p_rsp); in avrc_proc_far_msg() [all …]
|
D | avrc_pars_ct.cc | 143 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/ |
D | sdp_server.cc | 182 uint8_t *p_rsp, *p_rsp_start, *p_rsp_param_len; in process_service_search() local 256 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search() 259 UINT8_TO_BE_STREAM(p_rsp, SDP_PDU_SERVICE_SEARCH_RSP); in process_service_search() 260 UINT16_TO_BE_STREAM(p_rsp, trans_num); in process_service_search() 263 p_rsp_param_len = p_rsp; in process_service_search() 264 p_rsp += 2; in process_service_search() 267 UINT16_TO_BE_STREAM(p_rsp, num_rsp_handles); in process_service_search() 268 UINT16_TO_BE_STREAM(p_rsp, cur_handles); in process_service_search() 275 UINT32_TO_BE_STREAM(p_rsp, rsp_handles[xx]); in process_service_search() 278 UINT8_TO_BE_STREAM(p_rsp, SDP_CONTINUATION_LEN); in process_service_search() [all …]
|
D | sdp_utils.cc | 527 uint8_t *p_rsp, *p_rsp_start, *p_rsp_param_len; in sdpu_build_n_send_error() local 536 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in sdpu_build_n_send_error() 538 UINT8_TO_BE_STREAM(p_rsp, SDP_PDU_ERROR_RESPONSE); in sdpu_build_n_send_error() 539 UINT16_TO_BE_STREAM(p_rsp, trans_num); in sdpu_build_n_send_error() 542 p_rsp_param_len = p_rsp; in sdpu_build_n_send_error() 543 p_rsp += 2; in sdpu_build_n_send_error() 545 UINT16_TO_BE_STREAM(p_rsp, error_code); in sdpu_build_n_send_error() 549 ARRAY_TO_BE_STREAM(p_rsp, p_error_text, (int)strlen(p_error_text)); in sdpu_build_n_send_error() 552 rsp_param_len = p_rsp - p_rsp_param_len - 2; in sdpu_build_n_send_error() 556 p_buf->len = p_rsp - p_rsp_start; in sdpu_build_n_send_error()
|
/system/bt/btif/src/ |
D | btif_rc.cc | 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); [all …]
|
/system/bt/stack/srvc/ |
D | srvc_eng.cc | 204 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()
|
D | srvc_eng_int.h | 66 extern void srvc_sr_rsp(uint8_t clcb_idx, tGATT_STATUS st, tGATTS_RSP* p_rsp);
|
/system/bt/bta/include/ |
D | bta_gatts_co.h | 65 tGATTS_SRV_CHG_RSP* p_rsp);
|
/system/bt/stack/gatt/ |
D | gatt_db.cc | 255 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, BT_HDR* p_rsp, in gatts_db_read_attr_value_by_type() argument 261 uint8_t* p = (uint8_t*)(p_rsp + 1) + p_rsp->len + L2CAP_MIN_OFFSET; in gatts_db_read_attr_value_by_type() 283 if (p_rsp->offset == 0) p_rsp->offset = len + 2; in gatts_db_read_attr_value_by_type() 285 if (p_rsp->offset == len + 2) { in gatts_db_read_attr_value_by_type() 286 p_rsp->len += (len + 2); in gatts_db_read_attr_value_by_type()
|
D | gatt_sr.cc | 154 tGATTS_RSP* p_rsp = NULL; in process_read_multi_rsp() local 161 if (node != list_end(list)) p_rsp = (tGATTS_RSP*)list_node(node); in process_read_multi_rsp() 164 if (p_rsp != NULL) { in process_read_multi_rsp() 165 total_len = (p_buf->len + p_rsp->attr_value.len); in process_read_multi_rsp() 169 len = p_rsp->attr_value.len - (total_len - mtu); in process_read_multi_rsp() 173 p_rsp->attr_value.len); in process_read_multi_rsp() 175 len = p_rsp->attr_value.len; in process_read_multi_rsp() 178 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii]) { in process_read_multi_rsp() 179 memcpy(p, p_rsp->attr_value.value, len); in process_read_multi_rsp()
|
D | gatt_attr.cc | 227 tGATTS_RSP* p_rsp) { in proc_read_req() argument 228 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in proc_read_req() 230 p_rsp->attr_value.handle = p_data->handle; in proc_read_req() 232 return read_attr_value(p_data->handle, &p_rsp->attr_value, p_data->is_long); in proc_read_req()
|
D | gatt_int.h | 575 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, BT_HDR* p_rsp,
|
/system/bt/btif/co/ |
D | bta_gatts_co.cc | 126 UNUSED_ATTR tGATTS_SRV_CHG_RSP* p_rsp) { in bta_gatts_co_srv_chg() argument
|
/system/bt/stack/gap/ |
D | gap_ble.cc | 174 tGATTS_RSP* p_rsp) { in proc_read() argument 175 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in proc_read() 177 p_rsp->attr_value.handle = p_data->handle; in proc_read() 179 return read_attr_value(p_data->handle, &p_rsp->attr_value, p_data->is_long); in proc_read()
|
/system/bt/bta/gatt/ |
D | bta_gatts_api.cc | 276 p_buf->p_rsp = (tGATTS_RSP*)(p_buf + 1); in BTA_GATTS_SendRsp() 277 memcpy(p_buf->p_rsp, p_msg, sizeof(tGATTS_RSP)); in BTA_GATTS_SendRsp()
|
D | bta_gatts_act.cc | 45 tGATTS_SRV_CHG_RSP* p_rsp); 105 tGATTS_SRV_CHG_RSP* p_rsp) { in bta_gatts_nv_srv_chg_cback() argument 108 (tGATTS_SRV_CHG_RSP*)p_rsp); in bta_gatts_nv_srv_chg_cback() 356 (tGATTS_RSP*)p_msg->api_rsp.p_rsp) != GATT_SUCCESS) { in bta_gatts_send_rsp()
|
D | bta_gatts_int.h | 93 tGATTS_RSP* p_rsp; member
|
/system/bt/btif/test/ |
D | btif_rc_test.cc | 42 tAVRC_STS AVRC_BldResponse(uint8_t handle, tAVRC_RESPONSE* p_rsp, in AVRC_BldResponse() argument
|
/system/nfc/src/nfa/ee/ |
D | nfa_ee_act.cc | 2137 tNFC_NFCEE_MODE_SET_REVT* p_rsp = p_data->mode_set_rsp.p_data; in nfa_ee_nci_mode_set_rsp() local 2140 "%s handle:0x%02x mode:%d", __func__, p_rsp->nfcee_id, p_rsp->mode); in nfa_ee_nci_mode_set_rsp() 2141 p_cb = nfa_ee_find_ecb(p_rsp->nfcee_id); in nfa_ee_nci_mode_set_rsp() 2144 p_rsp->nfcee_id); in nfa_ee_nci_mode_set_rsp() 2154 p_rsp->status); in nfa_ee_nci_mode_set_rsp() 2155 if (p_rsp->status == NFA_STATUS_OK) { in nfa_ee_nci_mode_set_rsp() 2156 if (p_rsp->mode == NFA_EE_MD_ACTIVATE) { in nfa_ee_nci_mode_set_rsp() 2176 } else if (p_rsp->mode == NFA_EE_MD_ACTIVATE) { in nfa_ee_nci_mode_set_rsp() 2181 p_rsp->status, p_cb->ecb_flags, nfa_ee_cb.ee_cfged, p_cb->ee_status); in nfa_ee_nci_mode_set_rsp() 2194 mode_set.status = p_rsp->status; in nfa_ee_nci_mode_set_rsp() [all …]
|
/system/bt/stack/include/ |
D | avrc_api.h | 685 extern tAVRC_STS AVRC_BldResponse(uint8_t handle, tAVRC_RESPONSE* p_rsp,
|
D | gatt_api.h | 638 tGATTS_SRV_CHG_RSP* p_rsp);
|
/system/nfc/src/nfa/hci/ |
D | nfa_hci_act.cc | 1778 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()
|