/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_sco_hci.cc | 411 size_t packet_size; /* SCO mSBC packet size supported by lower layer */ member 490 if (pkt_size == packet_size) { in init() 491 return packet_size; in init() 493 packet_size = pkt_size; in init() 522 return packet_size; in init() 666 if (encode_buf_wo - encode_buf_ro < packet_size) { in mark_pkt_dequeued() 670 encode_buf_ro += packet_size; in mark_pkt_dequeued() 676 return packet_size; in mark_pkt_dequeued() 680 if (encode_buf_wo - encode_buf_ro < packet_size) { in sco_pkt_read_ptr() 736 if (data.size() != msbc_info->packet_size) { in enqueue_packet() [all …]
|
/packages/modules/Bluetooth/system/packet/tests/avrcp/ |
D | get_folder_items_packet_test.cc | 57 auto packet_size = BrowsePacket::kMinSize() + 5; in TEST() local 58 packet_size += player1.size() + player3.size(); in TEST() 61 packet_size); in TEST() 93 auto packet_size = BrowsePacket::kMinSize() + 5; in TEST() local 94 packet_size += folder1.size() + folder3.size(); in TEST() 97 GetFolderItemsResponseBuilder::MakeVFSBuilder(Status::NO_ERROR, 0x0000, packet_size); in TEST() 134 auto packet_size = BrowsePacket::kMinSize() + 5; in TEST() local 135 packet_size += song1.size() + song3.size(); in TEST() 138 packet_size); in TEST()
|
/packages/modules/Bluetooth/system/stack/test/common/ |
D | stack_test_packet_utils.cc | 61 size_t packet_size = buffer_length + BT_HDR_SIZE; in AllocateWrappedIncomingL2capAclPacket() local 62 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedIncomingL2capAclPacket() 81 size_t packet_size = BT_HDR_SIZE + L2CAP_MIN_OFFSET + buffer_length - acl_l2cap_header_size; in AllocateWrappedOutgoingL2capAclPacket() local 82 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedOutgoingL2capAclPacket()
|
/packages/modules/Bluetooth/system/packet/tests/fuzzers/ |
D | get_folder_items_res_fuzzer.cc | 58 auto packet_size = BrowsePacket::kMinSize() + 5; in LLVMFuzzerTestOneInput() local 59 packet_size += player1.size(); in LLVMFuzzerTestOneInput() 62 packet_size); in LLVMFuzzerTestOneInput()
|
/packages/modules/Bluetooth/system/stack/rfcomm/ |
D | port_utils.cc | 140 uint16_t packet_size; in port_select_mtu() local 145 packet_size = get_btm_client_interface().peer.BTM_GetMaxPacketSize(p_port->bd_addr); in port_select_mtu() 146 if (packet_size == 0) { in port_select_mtu() 164 if ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) >= packet_size) { in port_select_mtu() 165 p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size * packet_size) - in port_select_mtu()
|
/packages/modules/adb/client/ |
D | usb_libusb_device.cpp | 224 size_t packet_size = 0; in FindAdbInterface() local 275 if (packet_size == 0) { in FindAdbInterface() 276 packet_size = endpoint_packet_size; in FindAdbInterface() 278 CHECK(packet_size == endpoint_packet_size); in FindAdbInterface()
|
/packages/modules/Bluetooth/system/stack/test/fuzzers/a2dp/codec/ |
D | a2dpCodecInfoFuzzFunctions.h | 139 size_t packet_size = fdp->ConsumeIntegralInRange<size_t>(0, MAX_PACKET_SIZE); 140 std::vector<uint8_t> bytes = fdp->ConsumeBytes<uint8_t>(packet_size);
|
/packages/modules/Bluetooth/system/gd/os/ |
D | queue_benchmark.cc | 182 int64_t packet_size = state.range(0); in BENCHMARK_DEFINE_F() local 195 std::string data = std::string(packet_size, 'x'); in BENCHMARK_DEFINE_F()
|
/packages/modules/Bluetooth/system/bta/hearing_aid/ |
D | hearing_aid.cc | 1529 uint16_t packet_size = CalcCompressedAudioPacketSize(codec_in_use, default_data_interval_ms); in OnAudioDataReady() local 1542 for (size_t i = 0; i < encoded_data_size; i += packet_size) { in OnAudioDataReady() 1545 SendAudio(encoded_data_left.data() + i, packet_size, left); in OnAudioDataReady() 1549 SendAudio(encoded_data_right.data() + i, packet_size, right); in OnAudioDataReady() 1561 void SendAudio(uint8_t* encoded_data, uint16_t packet_size, HearingDevice* hearingAid) { in SendAudio() argument 1568 BT_HDR* audio_packet = malloc_l2cap_buf(packet_size + 1); in SendAudio() 1572 memcpy(p, encoded_data, packet_size); in SendAudio() 1574 log::verbose("bd_addr={} packet_size={}", hearingAid->address, packet_size); in SendAudio()
|
/packages/modules/Bluetooth/system/hci/test/ |
D | packet_fragmenter_test.cc | 267 static void manufacture_packet_and_then_reassemble(uint16_t event, uint16_t packet_size, in manufacture_packet_and_then_reassemble() argument 272 manufacture_iso_packet_and_then_reassemble(event, packet_size, data); in manufacture_packet_and_then_reassemble()
|
/packages/modules/Bluetooth/system/main/shim/ |
D | hci_layer.cc | 131 size_t packet_size = data->size() + kBtHdrSize; in WrapPacketAndCopy() local 132 BT_HDR* packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in WrapPacketAndCopy()
|
/packages/modules/Bluetooth/system/stack/l2cap/ |
D | l2c_utils.cc | 2654 uint16_t packet_size; in l2cu_adjust_out_mps() local 2657 packet_size = get_btm_client_interface().peer.BTM_GetMaxPacketSize(p_ccb->p_lcb->remote_bd_addr); in l2cu_adjust_out_mps() 2659 if (packet_size <= in l2cu_adjust_out_mps() 2662 log::error("l2cu_adjust_out_mps bad packet size: {} will use MPS: {}", packet_size, in l2cu_adjust_out_mps() 2666 packet_size -= in l2cu_adjust_out_mps() 2680 if (p_ccb->peer_cfg.fcr.mps >= packet_size) { in l2cu_adjust_out_mps() 2681 p_ccb->tx_mps = p_ccb->peer_cfg.fcr.mps / packet_size * packet_size; in l2cu_adjust_out_mps() 2689 p_ccb->tx_mps, p_ccb->peer_cfg.fcr.mps, packet_size); in l2cu_adjust_out_mps()
|