Home
last modified time | relevance | path

Searched refs:param_len (Results 1 – 25 of 36) sorted by relevance

12

/system/nfc/src/nfc/llcp/
Dllcp_util.cc51 uint8_t param_type, param_len, *p = p_bytes; in llcp_util_parse_link_params() local
55 BE_STREAM_TO_UINT8(param_len, p); in llcp_util_parse_link_params()
56 if (length < param_len + 2) { in llcp_util_parse_link_params()
61 length -= param_len + 2; in llcp_util_parse_link_params()
65 if (param_len != LLCP_VERSION_LEN) { in llcp_util_parse_link_params()
76 if (param_len != LLCP_MIUX_LEN) { in llcp_util_parse_link_params()
89 if (param_len != LLCP_WKS_LEN) { in llcp_util_parse_link_params()
100 if (param_len != LLCP_LTO_LEN) { in llcp_util_parse_link_params()
112 if (param_len != LLCP_OPT_LEN) { in llcp_util_parse_link_params()
124 p += param_len; in llcp_util_parse_link_params()
[all …]
/system/bt/stack/sdp/
Dsdp_server.cc47 uint16_t param_len, uint8_t* p_req,
51 uint16_t param_len, uint8_t* p_req,
55 uint16_t param_len, uint8_t* p_req,
111 uint16_t trans_num, param_len; in sdp_server_handle_client_req() local
130 if (p_req + sizeof(param_len) > p_req_end) { in sdp_server_handle_client_req()
136 BE_STREAM_TO_UINT16(param_len, p_req); in sdp_server_handle_client_req()
138 if ((p_req + param_len) != p_req_end) { in sdp_server_handle_client_req()
146 process_service_search(p_ccb, trans_num, param_len, p_req, p_req_end); in sdp_server_handle_client_req()
150 process_service_attr_req(p_ccb, trans_num, param_len, p_req, p_req_end); in sdp_server_handle_client_req()
154 process_service_search_attr_req(p_ccb, trans_num, param_len, p_req, in sdp_server_handle_client_req()
[all …]
Dsdp_utils.cc572 uint8_t* sdpu_extract_uid_seq(uint8_t* p, uint16_t param_len, in sdpu_extract_uid_seq() argument
582 if (sizeof(descr) > param_len) return (NULL); in sdpu_extract_uid_seq()
583 param_len -= sizeof(descr); in sdpu_extract_uid_seq()
602 if (sizeof(uint8_t) > param_len) return (NULL); in sdpu_extract_uid_seq()
603 param_len -= sizeof(uint8_t); in sdpu_extract_uid_seq()
607 if (sizeof(uint16_t) > param_len) return (NULL); in sdpu_extract_uid_seq()
608 param_len -= sizeof(uint16_t); in sdpu_extract_uid_seq()
612 if (sizeof(uint32_t) > param_len) return (NULL); in sdpu_extract_uid_seq()
613 param_len -= sizeof(uint32_t); in sdpu_extract_uid_seq()
620 if (seq_len > param_len) return (NULL); in sdpu_extract_uid_seq()
[all …]
Dsdp_discovery.cc122 uint16_t param_len; in sdp_snd_service_search_req() local
159 param_len = (uint16_t)(p - p_param_len - 2); in sdp_snd_service_search_req()
160 UINT16_TO_BE_STREAM(p_param_len, param_len); in sdp_snd_service_search_req()
399 uint16_t param_len, list_byte_count; in process_service_attr_rsp() local
496 param_len = (uint16_t)(p - p_param_len - 2); in process_service_attr_rsp()
497 UINT16_TO_BE_STREAM(p_param_len, param_len); in process_service_attr_rsp()
529 uint16_t param_len, lists_byte_count = 0; in process_service_search_attr_rsp() local
622 param_len = p - p_param_len - 2; in process_service_search_attr_rsp()
623 UINT16_TO_BE_STREAM(p_param_len, param_len); in process_service_search_attr_rsp()
Dsdpint.h216 extern uint8_t* sdpu_extract_attr_seq(uint8_t* p, uint16_t param_len,
218 extern uint8_t* sdpu_extract_uid_seq(uint8_t* p, uint16_t param_len,
/system/bt/stack/avrc/
Davrc_bld_ct.cc193 uint8_t param_len = in avrc_bld_get_current_player_app_values_cmd() local
196 UINT16_TO_BE_STREAM(p_data, param_len); in avrc_bld_get_current_player_app_values_cmd()
224 uint8_t param_len = (2 * num_attrib_id) + 1; in avrc_bld_set_current_player_app_values_cmd() local
226 UINT16_TO_BE_STREAM(p_data, param_len); in avrc_bld_set_current_player_app_values_cmd()
254 uint8_t param_len = p_cmd->num_attr + 1; in avrc_bld_get_player_app_setting_attr_text_cmd() local
256 UINT16_TO_BE_STREAM(p_data, param_len); in avrc_bld_get_player_app_setting_attr_text_cmd()
283 uint8_t param_len = p_cmd->num_val + 1; in avrc_bld_get_player_app_setting_value_text_cmd() local
285 UINT16_TO_BE_STREAM(p_data, param_len); in avrc_bld_get_player_app_setting_value_text_cmd()
313 uint8_t param_len = (4 * num_attrib) + 9; in avrc_bld_get_element_attr_cmd() local
315 UINT16_TO_BE_STREAM(p_data, param_len); in avrc_bld_get_element_attr_cmd()
/system/bt/btif/src/
Dbtif_mce.cc100 uint16_t param_len = sizeof(tBTA_MCE); in mce_dm_cback() local
104 param_len += (p_data->mas_disc_comp.mas[i].srv_name_len + 1); in mce_dm_cback()
108 (char*)p_data, param_len, in mce_dm_cback()
Dbtif_hd.cc294 int param_len = 0; in bte_hd_evt() local
303 param_len = sizeof(tBTA_HD_STATUS); in bte_hd_evt()
307 param_len = sizeof(tBTA_HD_REG_STATUS); in bte_hd_evt()
314 param_len = sizeof(tBTA_HD_CONN); in bte_hd_evt()
318 param_len += sizeof(tBTA_HD_GET_REPORT); in bte_hd_evt()
322 param_len = sizeof(tBTA_HD_SET_REPORT) + p_data->set_report.len; in bte_hd_evt()
327 param_len += sizeof(p_data->set_protocol); in bte_hd_evt()
331 param_len = sizeof(tBTA_HD_INTR_DATA) + p_data->intr_data.len; in bte_hd_evt()
337 (char*)p_data, param_len, p_copy_cback); in bte_hd_evt()
Dbtif_hh.cc1108 int param_len = 0; in bte_hh_evt() local
1111 param_len = sizeof(tBTA_HH_STATUS); in bte_hh_evt()
1113 param_len = sizeof(tBTA_HH_CONN); in bte_hh_evt()
1115 param_len = sizeof(tBTA_HH_STATUS); in bte_hh_evt()
1117 param_len = sizeof(tBTA_HH_CBDATA); in bte_hh_evt()
1119 param_len = sizeof(tBTA_HH_DEV_DSCP_INFO); in bte_hh_evt()
1122 param_len = sizeof(tBTA_HH_HSDATA); in bte_hh_evt()
1125 param_len = sizeof(tBTA_HH_CBDATA); in bte_hh_evt()
1127 param_len = sizeof(tBTA_HH_DEV_INFO); in bte_hh_evt()
1129 param_len = 0; in bte_hh_evt()
[all …]
Dbtif_bqr.cc285 if (p_vsc_cmpl_params->param_len < 1) { in BqrVscCompleteCallback()
301 if (p_vsc_cmpl_params->param_len != 5) { in BqrVscCompleteCallback()
304 << std::to_string(p_vsc_cmpl_params->param_len); in BqrVscCompleteCallback()
Dbtif_hf.cc604 int param_len = 0; in bte_hf_evt() local
609 param_len = sizeof(tBTA_AG_REGISTER); in bte_hf_evt()
611 param_len = sizeof(tBTA_AG_OPEN); in bte_hf_evt()
613 param_len = sizeof(tBTA_AG_CONN); in bte_hf_evt()
616 param_len = sizeof(tBTA_AG_HDR); in bte_hf_evt()
618 param_len = sizeof(tBTA_AG_VAL); in bte_hf_evt()
623 (char*)p_data, param_len, nullptr); in bte_hf_evt()
Dbtif_core.cc193 char* p_params, int param_len, in btif_transfer_context() argument
196 sizeof(tBTIF_CONTEXT_SWITCH_CBACK) + param_len); in btif_transfer_context()
199 param_len); in btif_transfer_context()
211 memcpy(p_msg->p_param, p_params, param_len); /* callback parameter data */ in btif_transfer_context()
Dbtif_dm.cc2089 uint16_t param_len = 0; in bte_search_devices_evt() local
2091 if (p_data) param_len += sizeof(tBTA_DM_SEARCH); in bte_search_devices_evt()
2096 if (p_data->inq_res.p_eir) param_len += p_data->inq_res.eir_len; in bte_search_devices_evt()
2101 param_len += p_data->disc_res.raw_data_size; in bte_search_devices_evt()
2105 dump_dm_search_event(event), param_len); in bte_search_devices_evt()
2114 btif_dm_search_devices_evt, (uint16_t)event, (char*)p_data, param_len, in bte_search_devices_evt()
2115 (param_len > sizeof(tBTA_DM_SEARCH)) ? search_devices_copy_cb : NULL); in bte_search_devices_evt()
2130 uint16_t param_len = 0; in bte_dm_search_services_evt() local
2131 if (p_data) param_len += sizeof(tBTA_DM_SEARCH); in bte_dm_search_services_evt()
2136 param_len += (p_data->disc_res.num_uuids * Uuid::kNumBytes128); in bte_dm_search_services_evt()
[all …]
/system/bt/btif/test/
Dbtif_hf_client_service_test.cc20 char* p_params, int param_len, in btif_transfer_context() argument
Dbtif_rc_test.cc84 char* p_params, int param_len, in btif_transfer_context() argument
/system/bt/stack/hcic/
Dhciblecmds.cc384 uint8_t* param, uint16_t param_len) { in btsnd_hcic_ble_rand() argument
738 uint16_t param_len = 3 + (5 * phy_cnt); in btsnd_hcic_ble_set_extended_scan_params() local
739 p->len = HCIC_PREAMBLE_SIZE + param_len; in btsnd_hcic_ble_set_extended_scan_params()
743 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_ble_set_extended_scan_params()
765 const int param_len = 6; in btsnd_hcic_ble_set_extended_scan_enable() local
766 p->len = HCIC_PREAMBLE_SIZE + param_len; in btsnd_hcic_ble_set_extended_scan_enable()
770 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_ble_set_extended_scan_enable()
794 uint8_t param_len = 10 + (16 * phy_cnt); in btsnd_hcic_ble_ext_create_conn() local
796 p->len = HCIC_PREAMBLE_SIZE + param_len; in btsnd_hcic_ble_ext_create_conn()
800 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_ble_ext_create_conn()
/system/bt/stack/btm/
Dbtm_ble_cont_energy.cc45 uint16_t len = p_params->param_len; in btm_ble_cont_energy_cmpl_cback()
Dbtm_devctl.cc564 void BTM_VendorSpecificCommand(uint16_t opcode, uint8_t param_len, in BTM_VendorSpecificCommand() argument
567 void* p_buf = osi_malloc(sizeof(BT_HDR) + sizeof(tBTM_CMPL_CB*) + param_len + in BTM_VendorSpecificCommand()
571 param_len); in BTM_VendorSpecificCommand()
574 btsnd_hcic_vendor_spec_cmd(p_buf, opcode, param_len, p_param_buf, in BTM_VendorSpecificCommand()
596 vcs_cplt_params.param_len = evt_len; /* Number of bytes in return info */ in btm_vsc_complete()
Dble_advertiser_hci_interface.cc60 uint8_t* param, uint16_t param_len) { in btm_ble_multi_adv_vsc_cmpl_cback() argument
64 LOG_ASSERT(param_len == 2) << "Received bad response length to multi-adv VSC"; in btm_ble_multi_adv_vsc_cmpl_cback()
98 void SendAdvCmd(const base::Location& posted_from, uint8_t param_len, in SendAdvCmd() argument
101 param_len, in SendAdvCmd()
/system/nfc/src/include/
Dnfc_hal_int.h103 uint16_t param_len; member
/system/bt/btif/include/
Dbtif_common.h221 char* p_params, int param_len,
/system/bt/stack/include/
Dsmp_api_types.h258 uint8_t param_len; member
Dbtm_ble_api_types.h260 uint8_t param_len; member
Dbtm_api.h173 extern void BTM_VendorSpecificCommand(uint16_t opcode, uint8_t param_len,
/system/bt/stack/l2cap/
Dl2c_utils.cc385 uint16_t param_len; in l2cu_send_peer_cmd_reject() local
391 param_len = 2; in l2cu_send_peer_cmd_reject()
393 param_len = 4; in l2cu_send_peer_cmd_reject()
395 param_len = 0; in l2cu_send_peer_cmd_reject()
397 p_buf = l2cu_build_header(p_lcb, (uint16_t)(L2CAP_CMD_REJECT_LEN + param_len), in l2cu_send_peer_cmd_reject()
409 if (param_len >= 2) UINT16_TO_STREAM(p, p1); in l2cu_send_peer_cmd_reject()
411 if (param_len >= 4) UINT16_TO_STREAM(p, p2); in l2cu_send_peer_cmd_reject()

12