Home
last modified time | relevance | path

Searched refs:packet_size (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Bluetooth/system/stack/btm/
Dbtm_sco_hci.cc411 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/
Dget_folder_items_packet_test.cc57 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/
Dstack_test_packet_utils.cc61 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/
Dget_folder_items_res_fuzzer.cc58 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/
Dport_utils.cc140 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/
Dusb_libusb_device.cpp224 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/
Da2dpCodecInfoFuzzFunctions.h139 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/
Dqueue_benchmark.cc182 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/
Dhearing_aid.cc1529 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/
Dpacket_fragmenter_test.cc267 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/
Dhci_layer.cc131 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/
Dl2c_utils.cc2654 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()