/system/bt/hci/include/ |
D | hci_packet_factory.h | 25 BT_HDR* (*make_reset)(void); 26 BT_HDR* (*make_read_buffer_size)(void); 27 BT_HDR* (*make_host_buffer_size)(uint16_t acl_size, uint8_t sco_size, 29 BT_HDR* (*make_read_local_version_info)(void); 30 BT_HDR* (*make_read_bd_addr)(void); 31 BT_HDR* (*make_read_local_supported_commands)(void); 32 BT_HDR* (*make_read_local_extended_features)(uint8_t page_number); 33 BT_HDR* (*make_write_simple_pairing_mode)(uint8_t mode); 34 BT_HDR* (*make_write_secure_connections_host_support)(uint8_t mode); 35 BT_HDR* (*make_set_event_mask)(const bt_event_mask_t* event_mask); [all …]
|
D | hci_packet_parser.h | 30 void (*parse_generic_command_complete)(BT_HDR* response); 32 void (*parse_read_buffer_size_response)(BT_HDR* response, 36 void (*parse_read_local_version_info_response)(BT_HDR* response, 39 void (*parse_read_bd_addr_response)(BT_HDR* response, 43 BT_HDR* response, uint8_t* supported_commands_ptr, 47 BT_HDR* response, uint8_t* page_number_ptr, uint8_t* max_page_number_ptr, 50 void (*parse_ble_read_white_list_size_response)(BT_HDR* response, 53 void (*parse_ble_read_buffer_size_response)(BT_HDR* response, 58 BT_HDR* response, uint8_t* supported_states, 62 BT_HDR* response, bt_device_features_t* supported_features); [all …]
|
D | packet_fragmenter.h | 25 typedef void (*transmit_finished_cb)(BT_HDR* packet, bool all_fragments_sent); 26 typedef void (*packet_reassembled_cb)(BT_HDR* packet); 27 typedef void (*packet_fragmented_cb)(BT_HDR* packet, 51 void (*fragment_and_dispatch)(BT_HDR* packet); 57 void (*reassemble_and_dispatch)(BT_HDR* packet);
|
D | hci_layer.h | 68 typedef void (*command_complete_cb)(BT_HDR* response, void* context); 69 typedef void (*command_status_cb)(uint8_t status, BT_HDR* command, 75 base::Callback<void(const base::Location&, BT_HDR*)> send_data_cb); 78 void (*transmit_command)(BT_HDR* command, 82 future_t* (*transmit_command_futured)(BT_HDR* command); 100 void post_to_main_message_loop(const base::Location& from_here, BT_HDR* p_msg);
|
/system/bt/hci/src/ |
D | hci_packet_factory.cc | 32 static BT_HDR* make_packet(size_t data_size); 33 static BT_HDR* make_command_no_params(uint16_t opcode); 34 static BT_HDR* make_command(uint16_t opcode, size_t parameter_size, 39 static BT_HDR* make_reset(void) { return make_command_no_params(HCI_RESET); } in make_reset() 41 static BT_HDR* make_read_buffer_size(void) { in make_read_buffer_size() 45 static BT_HDR* make_host_buffer_size(uint16_t acl_size, uint8_t sco_size, in make_host_buffer_size() 49 BT_HDR* packet = make_command(HCI_HOST_BUFFER_SIZE, parameter_size, &stream); in make_host_buffer_size() 58 static BT_HDR* make_read_local_version_info(void) { in make_read_local_version_info() 62 static BT_HDR* make_read_bd_addr(void) { in make_read_bd_addr() 66 static BT_HDR* make_read_local_supported_commands(void) { in make_read_local_supported_commands() [all …]
|
D | hci_packet_parser.cc | 34 static uint8_t* read_command_complete_header(BT_HDR* response, 38 static void parse_generic_command_complete(BT_HDR* response) { in parse_generic_command_complete() 45 static void parse_read_buffer_size_response(BT_HDR* response, in parse_read_buffer_size_response() 58 static void parse_read_local_version_info_response(BT_HDR* response, in parse_read_local_version_info_response() 73 BT_HDR* response, uint8_t* number_of_local_supported_codecs, in parse_read_local_supported_codecs_response() 88 static void parse_read_bd_addr_response(BT_HDR* response, in parse_read_bd_addr_response() 99 BT_HDR* response, uint8_t* supported_commands_ptr, in parse_read_local_supported_commands_response() 112 BT_HDR* response, uint8_t* page_number_ptr, uint8_t* max_page_number_ptr, in parse_read_local_extended_features_response() 130 BT_HDR* response, uint8_t* white_list_size_ptr) { in parse_ble_read_white_list_size_response() 139 static void parse_ble_read_buffer_size_response(BT_HDR* response, in parse_ble_read_buffer_size_response() [all …]
|
D | hci_layer_android.cc | 53 extern void hci_event_received(const base::Location& from_here, BT_HDR* packet); 54 extern void acl_event_received(BT_HDR* packet); 55 extern void sco_data_received(BT_HDR* packet); 56 extern void iso_data_received(BT_HDR* packet); 78 BT_HDR* WrapPacketAndCopy(uint16_t event, const hidl_vec<uint8_t>& data) { in WrapPacketAndCopy() 80 BT_HDR* packet = in WrapPacketAndCopy() 81 reinterpret_cast<BT_HDR*>(buffer_allocator->alloc(packet_size)); in WrapPacketAndCopy() 107 BT_HDR* packet = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_EVT, event); in hciEventReceived() 113 BT_HDR* packet = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_ACL, data); in aclDataReceived() 119 BT_HDR* packet = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_SCO, data); in scoDataReceived() [all …]
|
/system/bt/stack/hcic/ |
D | hcicmds.cc | 39 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inquiry() 56 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inq_cancel() 70 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_per_inq_mode() 89 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_exit_per_inq() 103 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_create_conn() 131 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_disconnect() 146 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_add_SCO_conn() 162 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_create_conn_cancel() 177 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_accept_conn() 192 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_reject_conn() [all …]
|
D | hciblecmds.cc | 37 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_local_used_feat() 50 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_random_addr() 70 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_write_adv_params() 91 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_read_adv_chnl_tx_power() 104 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_adv_data() 126 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_scan_rsp_data() 150 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_adv_enable() 166 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_scan_params() 185 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_scan_enable() 206 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_create_ll_conn() [all …]
|
/system/bt/stack/gatt/ |
D | att_protocol.cc | 48 BT_HDR* attp_build_mtu_cmd(uint8_t op_code, uint16_t rx_mtu) { in attp_build_mtu_cmd() 50 BT_HDR* p_buf = in attp_build_mtu_cmd() 51 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + GATT_HDR_SIZE + L2CAP_MIN_OFFSET); in attp_build_mtu_cmd() 71 BT_HDR* attp_build_exec_write_cmd(uint8_t op_code, uint8_t flag) { in attp_build_exec_write_cmd() 72 BT_HDR* p_buf = (BT_HDR*)osi_malloc(GATT_DATA_BUF_SIZE); in attp_build_exec_write_cmd() 100 BT_HDR* attp_build_err_cmd(uint8_t cmd_code, uint16_t err_handle, in attp_build_err_cmd() 103 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + 5); in attp_build_err_cmd() 127 BT_HDR* attp_build_browse_cmd(uint8_t op_code, uint16_t s_hdl, uint16_t e_hdl, in attp_build_browse_cmd() 131 BT_HDR* p_buf = in attp_build_browse_cmd() 132 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_browse_cmd() [all …]
|
/system/bt/stack/test/a2dp/ |
D | a2dp_vendor_ldac_decoder_test.cc | 31 uint8_t* Data(BT_HDR* packet) { return packet->data + packet->offset; } in Data() 48 BT_HDR* AllocateL2capPacket(const std::vector<uint8_t> data) const { in AllocateL2capPacket() 55 BT_HDR* AllocatePacket(size_t packet_length) const { in AllocatePacket() 56 BT_HDR* packet = in AllocatePacket() 57 static_cast<BT_HDR*>(osi_calloc(sizeof(BT_HDR) + packet_length)); in AllocatePacket() 65 BT_HDR* p_buf = AllocateL2capPacket(data); in TEST_F()
|
/system/bt/stack/smp/ |
D | smp_utils.cc | 135 typedef BT_HDR* (*tSMP_CMD_ACT)(uint8_t cmd_code, tSMP_CB* p_cb); 137 static BT_HDR* smp_build_pairing_cmd(uint8_t cmd_code, tSMP_CB* p_cb); 138 static BT_HDR* smp_build_confirm_cmd(UNUSED_ATTR uint8_t cmd_code, 140 static BT_HDR* smp_build_rand_cmd(UNUSED_ATTR uint8_t cmd_code, tSMP_CB* p_cb); 141 static BT_HDR* smp_build_pairing_fail(UNUSED_ATTR uint8_t cmd_code, 143 static BT_HDR* smp_build_identity_info_cmd(UNUSED_ATTR uint8_t cmd_code, 145 static BT_HDR* smp_build_encrypt_info_cmd(UNUSED_ATTR uint8_t cmd_code, 147 static BT_HDR* smp_build_security_request(UNUSED_ATTR uint8_t cmd_code, 149 static BT_HDR* smp_build_signing_info_cmd(UNUSED_ATTR uint8_t cmd_code, 151 static BT_HDR* smp_build_master_id_cmd(UNUSED_ATTR uint8_t cmd_code, [all …]
|
/system/bt/bta/pan/ |
D | bta_pan_ci.cc | 55 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in bta_pan_ci_tx_ready() 77 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in bta_pan_ci_rx_ready() 126 BT_HDR* p_buf = (BT_HDR*)osi_malloc(PAN_BUF_SIZE); in bta_pan_ci_rx_write() 162 BT_HDR* p_buf, bool ext) { in bta_pan_ci_rx_writebuf() 184 BT_HDR* bta_pan_ci_readbuf(uint16_t handle, RawAddress& src, RawAddress& dst, in bta_pan_ci_readbuf() 187 BT_HDR* p_buf; in bta_pan_ci_readbuf() 191 p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_scb->data_queue); in bta_pan_ci_readbuf() 245 UNUSED_ATTR BT_HDR* p_buf, UNUSED_ATTR bool ext) {} in bta_pan_ci_rx_writebuf() 247 BT_HDR* bta_pan_ci_readbuf(UNUSED_ATTR uint16_t handle, in bta_pan_ci_readbuf()
|
D | bta_pan_int.h | 65 BT_HDR hdr; /* Event header */ 71 BT_HDR hdr; /* Event header */ 87 BT_HDR hdr; /* Event header */ 95 BT_HDR hdr; /* Event header */ 101 BT_HDR hdr; /* Event header */ 108 BT_HDR hdr; 145 BT_HDR hdr; 168 extern bool bta_pan_hdl_event(BT_HDR* p_msg);
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_api.cc | 110 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HfClientClose() 130 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HfClientAudioOpen() 150 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HfClientAudioClose()
|
/system/bt/bta/hd/ |
D | bta_hd_api.cc | 83 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HdDisable() 156 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HdUnregisterApp() 207 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HdVirtualCableUnplug() 246 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HdDisconnect()
|
D | bta_hd_int.h | 62 BT_HDR hdr; 79 BT_HDR hdr; 94 BT_HDR hdr; 103 BT_HDR hdr; 108 BT_HDR hdr; 114 BT_HDR hdr; 123 BT_HDR hdr; 126 BT_HDR* p_data; 149 extern bool bta_hd_hdl_event(BT_HDR* p_msg);
|
/system/bt/bta/sdp/ |
D | bta_sdp_int.h | 54 BT_HDR hdr; 60 BT_HDR hdr; 67 BT_HDR hdr; 74 BT_HDR hdr; 93 extern bool bta_sdp_sm_execute(BT_HDR* p_msg);
|
/system/bt/stack/avrc/ |
D | avrc_opt.cc | 47 static BT_HDR* avrc_vendor_msg(tAVRC_MSG_VENDOR* p_msg) { in avrc_vendor_msg() 48 BT_HDR* p_cmd; in avrc_vendor_msg() 54 p_cmd = (BT_HDR*)osi_malloc(AVRC_META_CMD_BUF_SIZE); in avrc_vendor_msg() 94 BT_HDR* p_cmd = (BT_HDR*)osi_malloc(AVRC_CMD_BUF_SIZE); in AVRC_UnitCmd() 137 BT_HDR* p_cmd = (BT_HDR*)osi_malloc(AVRC_CMD_BUF_SIZE); in AVRC_SubCmd() 181 BT_HDR* p_buf = avrc_vendor_msg(p_msg); in AVRC_VendorCmd() 216 BT_HDR* p_buf = avrc_vendor_msg(p_msg); in AVRC_VendorRsp()
|
/system/bt/btif/src/ |
D | btif_a2dp_sink.cc | 73 BT_HDR hdr; 78 BT_HDR hdr; 139 static void btif_a2dp_sink_command_ready(BT_HDR* p_msg); 146 static void btif_a2dp_sink_handle_inc_media(BT_HDR* p_msg); 351 static void btif_a2dp_sink_command_ready(BT_HDR* p_msg) { in btif_a2dp_sink_command_ready() 401 FROM_HERE, base::BindOnce(btif_a2dp_sink_command_ready, (BT_HDR*)p_buf)); in btif_a2dp_sink_update_decoder() 406 BT_HDR* p_buf = reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(BT_HDR))); in btif_a2dp_sink_on_idle() 418 BT_HDR* p_buf = reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(BT_HDR))); in btif_a2dp_sink_on_stopped() 429 BT_HDR* p_buf = reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(BT_HDR))); in btif_a2dp_sink_on_suspended() 441 BT_HDR* p_buf = reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(BT_HDR))); in btif_a2dp_sink_on_start() [all …]
|
/system/bt/hci/test/ |
D | packet_fragmenter_test.cc | 62 static BT_HDR* manufacture_packet_for_fragmentation(uint16_t event, in manufacture_packet_for_fragmentation() 70 BT_HDR* packet = (BT_HDR*)osi_malloc(size + sizeof(BT_HDR)); in manufacture_packet_for_fragmentation() 87 BT_HDR* packet, const char* expected_data, in expect_packet_fragmented() 146 BT_HDR* packet = (BT_HDR*)osi_malloc(length_to_send + 4 + sizeof(BT_HDR)); in manufacture_packet_and_then_reassemble() 168 BT_HDR* packet = (BT_HDR*)osi_malloc(data_length + sizeof(BT_HDR)); in manufacture_packet_and_then_reassemble() 179 static void expect_packet_reassembled(uint16_t event, BT_HDR* packet, in expect_packet_reassembled() 206 STUB_FUNCTION(void, fragmented_callback, (BT_HDR * packet, bool send_complete)) 240 STUB_FUNCTION(void, reassembled_callback, (BT_HDR * packet)) 260 (UNUSED_ATTR BT_HDR * packet, 323 BT_HDR* packet = manufacture_packet_for_fragmentation(MSG_STACK_TO_HC_HCI_ACL, [all …]
|
/system/bt/bta/gatt/ |
D | bta_gatts_int.h | 62 BT_HDR hdr; 68 BT_HDR hdr; 75 BT_HDR hdr; 82 BT_HDR hdr; 90 BT_HDR hdr; 97 BT_HDR hdr; 102 BT_HDR hdr; 113 BT_HDR hdr; 159 extern bool bta_gatts_hdl_event(BT_HDR* p_msg);
|
D | bta_gatts_api.cc | 60 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_GATTS_Disable() 190 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_GATTS_DeleteService() 210 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_GATTS_StopService() 352 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_GATTS_Close()
|
/system/bt/bta/mce/ |
D | bta_mce_int.h | 45 BT_HDR hdr; 51 BT_HDR hdr; 58 BT_HDR hdr; 81 extern bool bta_mce_sm_execute(BT_HDR* p_msg);
|
/system/bt/stack/test/common/ |
D | stack_test_packet_utils.h | 57 BT_HDR* AllocateWrappedIncomingL2capAclPacket(const uint8_t* acl_packet_bytes, 59 BT_HDR* AllocateWrappedIncomingL2capAclPacket( 73 BT_HDR* AllocateWrappedOutgoingL2capAclPacket(const uint8_t* acl_packet_bytes, 75 BT_HDR* AllocateWrappedOutgoingL2capAclPacket(
|