/system/bt/stack/avrc/ |
D | avrc_opt.cc | 48 BT_HDR* p_cmd; in avrc_vendor_msg() local 54 p_cmd = (BT_HDR*)osi_malloc(AVRC_META_CMD_BUF_SIZE); in avrc_vendor_msg() 56 p_cmd->offset = AVCT_MSG_OFFSET; in avrc_vendor_msg() 57 p_data = (uint8_t*)(p_cmd + 1) + p_cmd->offset; in avrc_vendor_msg() 65 p_cmd->len = (uint16_t)(p_data + p_msg->vendor_len - (uint8_t*)(p_cmd + 1) - in avrc_vendor_msg() 66 p_cmd->offset); in avrc_vendor_msg() 67 p_cmd->layer_specific = AVCT_DATA_CTRL; in avrc_vendor_msg() 69 return p_cmd; in avrc_vendor_msg() 94 BT_HDR* p_cmd = (BT_HDR*)osi_malloc(AVRC_CMD_BUF_SIZE); in AVRC_UnitCmd() local 97 p_cmd->offset = AVCT_MSG_OFFSET; in AVRC_UnitCmd() [all …]
|
D | avrc_bld_ct.cc | 39 static tAVRC_STS avrc_bld_next_cmd(tAVRC_NEXT_CMD* p_cmd, BT_HDR* p_pkt) { in avrc_bld_next_cmd() argument 50 UINT8_TO_BE_STREAM(p_data, p_cmd->target_pdu); in avrc_bld_next_cmd() 71 static tAVRC_STS avrc_bld_set_abs_volume_cmd(tAVRC_SET_VOLUME_CMD* p_cmd, in avrc_bld_set_abs_volume_cmd() argument 81 UINT8_TO_BE_STREAM(p_data, (AVRC_MAX_VOLUME & p_cmd->volume)); in avrc_bld_set_abs_volume_cmd() 248 BT_HDR* p_pkt, tAVRC_GET_APP_ATTR_TXT_CMD* p_cmd) { in avrc_bld_get_player_app_setting_attr_text_cmd() argument 254 uint8_t param_len = p_cmd->num_attr + 1; in avrc_bld_get_player_app_setting_attr_text_cmd() 257 UINT8_TO_BE_STREAM(p_data, p_cmd->num_attr); in avrc_bld_get_player_app_setting_attr_text_cmd() 258 for (int count = 0; count < p_cmd->num_attr; count++) { in avrc_bld_get_player_app_setting_attr_text_cmd() 259 UINT8_TO_BE_STREAM(p_data, p_cmd->attrs[count]); in avrc_bld_get_player_app_setting_attr_text_cmd() 277 BT_HDR* p_pkt, tAVRC_GET_APP_VAL_TXT_CMD* p_cmd) { in avrc_bld_get_player_app_setting_value_text_cmd() argument [all …]
|
D | avrc_api.cc | 460 BT_HDR* p_cmd = NULL; in avrc_proc_far_msg() local 602 status = AVRC_BldCommand(&avrc_command, &p_cmd); in avrc_proc_far_msg() 604 AVRC_MsgReq(handle, (uint8_t)(label), AVRC_CMD_CTRL, p_cmd); in avrc_proc_far_msg() 925 BT_HDR* p_cmd = (BT_HDR*)osi_malloc(AVRC_CMD_BUF_SIZE); in avrc_pass_msg() local 926 p_cmd->offset = AVCT_MSG_OFFSET; in avrc_pass_msg() 927 p_cmd->layer_specific = AVCT_DATA_CTRL; in avrc_pass_msg() 929 uint8_t* p_data = (uint8_t*)(p_cmd + 1) + p_cmd->offset; in avrc_pass_msg() 947 p_cmd->len = (uint16_t)(p_data - (uint8_t*)(p_cmd + 1) - p_cmd->offset); in avrc_pass_msg() 949 return p_cmd; in avrc_pass_msg()
|
/system/nfc/src/nfc/tags/ |
D | rw_i93.cc | 723 NFC_HDR* p_cmd; in rw_i93_send_cmd_inventory() local 729 p_cmd = (NFC_HDR*)GKI_getpoolbuf(NFC_RW_POOL_ID); in rw_i93_send_cmd_inventory() 731 if (!p_cmd) { in rw_i93_send_cmd_inventory() 736 p_cmd->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE; in rw_i93_send_cmd_inventory() 737 p_cmd->len = 3; in rw_i93_send_cmd_inventory() 738 p = (uint8_t*)(p_cmd + 1) + p_cmd->offset; in rw_i93_send_cmd_inventory() 755 p_cmd->len++; in rw_i93_send_cmd_inventory() 761 p_cmd->len += I93_UID_BYTE_LEN; in rw_i93_send_cmd_inventory() 766 if (rw_i93_send_to_lower(p_cmd)) { in rw_i93_send_cmd_inventory() 784 NFC_HDR* p_cmd; in rw_i93_send_cmd_stay_quiet() local [all …]
|
D | ce_t4t.cc | 337 static bool ce_t4t_process_select_file_cmd(uint8_t* p_cmd) { in ce_t4t_process_select_file_cmd() argument 343 p_cmd++; /* skip P2 */ in ce_t4t_process_select_file_cmd() 346 BE_STREAM_TO_UINT8(data_len, p_cmd); in ce_t4t_process_select_file_cmd() 350 BE_STREAM_TO_UINT16(file_id, p_cmd); in ce_t4t_process_select_file_cmd() 380 static void ce_t4t_process_select_app_cmd(uint8_t* p_cmd, NFC_HDR* p_c_apdu) { in ce_t4t_process_select_app_cmd() argument 388 p_cmd++; /* skip P2 */ in ce_t4t_process_select_app_cmd() 391 BE_STREAM_TO_UINT8(data_len, p_cmd); in ce_t4t_process_select_app_cmd() 404 (!memcmp(p_cmd, ce_test_tag_app_id, data_len)) && in ce_t4t_process_select_app_cmd() 422 (!(memcmp(ce_cb.mem.t4t.reg_aid[xx].aid, p_cmd, data_len)))) { in ce_t4t_process_select_app_cmd() 453 (!memcmp(p_cmd, t4t_v20_ndef_tag_aid, data_len - 1)) && in ce_t4t_process_select_app_cmd() [all …]
|
/system/bt/stack/gatt/ |
D | att_protocol.cc | 417 uint8_t cmd_code, BT_HDR* p_cmd) { in attp_cl_send_cmd() argument 421 gatt_cmd_enq(tcb, p_clcb, true, cmd_code, p_cmd); in attp_cl_send_cmd() 426 tGATT_STATUS att_ret = attp_send_msg_to_l2cap(tcb, p_cmd); in attp_cl_send_cmd() 459 BT_HDR* p_cmd = NULL; in attp_send_cl_msg() local 466 p_cmd = attp_build_mtu_cmd(GATT_REQ_MTU, p_msg->mtu); in attp_send_cl_msg() 477 p_cmd = attp_build_browse_cmd(op_code, p_msg->browse.s_handle, in attp_send_cl_msg() 490 p_cmd = attp_build_handle_cmd(op_code, handle, offset); in attp_send_cl_msg() 494 p_cmd = attp_build_opcode_cmd(op_code); in attp_send_cl_msg() 506 p_cmd = attp_build_value_cmd( in attp_send_cl_msg() 512 p_cmd = attp_build_exec_write_cmd(op_code, p_msg->exec_write); in attp_send_cl_msg() [all …]
|
D | gatt_sr.cc | 51 tGATT_SR_CMD* p_cmd = &tcb.sr_cmd; in gatt_sr_enqueue_cmd() local 54 if ((p_cmd->op_code == 0) || in gatt_sr_enqueue_cmd() 61 p_cmd->trans_id = ++tcb.trans_id; in gatt_sr_enqueue_cmd() 62 p_cmd->op_code = op_code; in gatt_sr_enqueue_cmd() 63 p_cmd->handle = handle; in gatt_sr_enqueue_cmd() 64 p_cmd->status = GATT_NOT_FOUND; in gatt_sr_enqueue_cmd() 66 trans_id = p_cmd->trans_id; in gatt_sr_enqueue_cmd() 115 static bool process_read_multi_rsp(tGATT_SR_CMD* p_cmd, tGATT_STATUS status, in process_read_multi_rsp() argument 123 if (p_cmd->multi_rsp_q == NULL) in process_read_multi_rsp() 124 p_cmd->multi_rsp_q = fixed_queue_new(SIZE_MAX); in process_read_multi_rsp() [all …]
|
D | gatt_cl.cc | 1031 if (!cmd.to_send || cmd.p_cmd == NULL) return false; in gatt_cl_send_next_cmd_inq() 1033 tGATT_STATUS att_ret = attp_send_msg_to_l2cap(tcb, cmd.p_cmd); in gatt_cl_send_next_cmd_inq() 1041 cmd.p_cmd = NULL; in gatt_cl_send_next_cmd_inq()
|
D | gatt_int.h | 203 BT_HDR* p_cmd; member
|
D | gatt_utils.cc | 1134 cmd.p_cmd = p_buf; in gatt_cmd_enq()
|
/system/bt/stack/btu/ |
D | btu_hcif.cc | 519 static void btu_hcif_log_command_metrics(uint16_t opcode, uint8_t* p_cmd, in btu_hcif_log_command_metrics() argument 537 STREAM_TO_BDADDR(bd_addr, p_cmd); in btu_hcif_log_command_metrics() 545 STREAM_TO_UINT16(handle, p_cmd); in btu_hcif_log_command_metrics() 546 STREAM_TO_UINT8(reason, p_cmd); in btu_hcif_log_command_metrics() 554 STREAM_TO_UINT16(handle, p_cmd); in btu_hcif_log_command_metrics() 563 STREAM_TO_BDADDR(bd_addr, p_cmd); in btu_hcif_log_command_metrics() 572 STREAM_TO_BDADDR(bd_addr, p_cmd); in btu_hcif_log_command_metrics() 573 STREAM_TO_UINT8(reason, p_cmd); in btu_hcif_log_command_metrics() 583 p_cmd += 2; // Skip LE_Scan_Interval in btu_hcif_log_command_metrics() 584 p_cmd += 2; // Skip LE_Scan_Window; in btu_hcif_log_command_metrics() [all …]
|
/system/bt/bta/ag/ |
D | bta_ag_at.cc | 86 for (idx = 0; p_cb->p_at_tbl[idx].p_cmd[0] != 0; idx++) { in bta_ag_process_at() 87 if (!utl_strucmp(p_cb->p_at_tbl[idx].p_cmd, p_cb->p_cmd_buf)) { in bta_ag_process_at() 93 if (p_cb->p_at_tbl[idx].p_cmd[0] != 0) { in bta_ag_process_at() 95 p_arg = p_cb->p_cmd_buf + strlen(p_cb->p_at_tbl[idx].p_cmd); in bta_ag_process_at()
|
D | bta_ag_at.h | 48 const char* p_cmd; /* AT command string */ member
|
/system/nfc/src/nfa/dm/ |
D | nfa_dm_act.cc | 859 NFC_HDR* p_cmd = (NFC_HDR*)p_data; in nfa_dm_act_send_vsc() local 861 p_cmd->offset = sizeof(tNFA_DM_API_SEND_VSC) - NFC_HDR_SIZE; in nfa_dm_act_send_vsc() 862 p_cmd->len = p_data->send_vsc.cmd_params_len; in nfa_dm_act_send_vsc() 863 NFC_SendVsCommand(p_data->send_vsc.oid, p_cmd, p_data->send_vsc.p_cback); in nfa_dm_act_send_vsc() 882 NFC_HDR* p_cmd = (NFC_HDR*)p_data; in nfa_dm_act_send_raw_vs() local 884 p_cmd->offset = sizeof(tNFA_DM_API_SEND_VSC) - NFC_HDR_SIZE; in nfa_dm_act_send_raw_vs() 885 p_cmd->len = p_data->send_vsc.cmd_params_len; in nfa_dm_act_send_raw_vs() 886 NFC_SendRawVsCommand(p_cmd, p_data->send_vsc.p_cback); in nfa_dm_act_send_raw_vs()
|
/system/bt/stack/sdp/ |
D | sdp_discovery.cc | 121 BT_HDR* p_cmd = (BT_HDR*)osi_malloc(SDP_DATA_BUF_SIZE); in sdp_snd_service_search_req() local 125 p_cmd->offset = L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 126 p = p_start = (uint8_t*)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 165 p_cmd->len = (uint16_t)(p - p_start); in sdp_snd_service_search_req() 167 L2CA_DataWrite(p_ccb->connection_id, p_cmd); in sdp_snd_service_search_req()
|
/system/bt/btif/test/ |
D | btif_rc_test.cc | 41 tAVRC_STS AVRC_BldCommand(tAVRC_COMMAND* p_cmd, BT_HDR** pp_pkt) { return 0; } in AVRC_BldCommand() argument
|
/system/bt/stack/include/ |
D | avrc_api.h | 672 extern tAVRC_STS AVRC_BldCommand(tAVRC_COMMAND* p_cmd, BT_HDR** pp_pkt);
|