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.cc404 size_t packet_size; /* SCO mSBC packet size supported by lower layer */ member
485 if (pkt_size == packet_size) return packet_size; in init()
486 packet_size = pkt_size; in init()
507 return packet_size; in init()
649 if (encode_buf_wo - encode_buf_ro < packet_size) return 0; in mark_pkt_dequeued()
651 encode_buf_ro += packet_size; in mark_pkt_dequeued()
657 return packet_size; in mark_pkt_dequeued()
661 if (encode_buf_wo - encode_buf_ro < packet_size) { in sco_pkt_read_ptr()
714 if (data.size() != msbc_info->packet_size) { in enqueue_packet()
718 (unsigned long)data.size(), (unsigned long)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 Status::NO_ERROR, 0x0000, packet_size); in TEST()
95 auto packet_size = BrowsePacket::kMinSize() + 5; in TEST() local
96 packet_size += folder1.size() + folder3.size(); in TEST()
99 Status::NO_ERROR, 0x0000, packet_size); in TEST()
137 auto packet_size = BrowsePacket::kMinSize() + 5; in TEST() local
138 packet_size += song1.size() + song3.size(); in TEST()
141 Status::NO_ERROR, 0x0000, packet_size); in TEST()
/packages/modules/Bluetooth/system/stack/test/common/
Dstack_test_packet_utils.cc63 size_t packet_size = buffer_length + BT_HDR_SIZE; in AllocateWrappedIncomingL2capAclPacket() local
64 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedIncomingL2capAclPacket()
84 size_t packet_size = in AllocateWrappedOutgoingL2capAclPacket() local
86 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedOutgoingL2capAclPacket()
/packages/modules/Bluetooth/system/packet/tests/fuzzers/
Dget_folder_items_res_fuzzer.cc59 auto packet_size = BrowsePacket::kMinSize() + 5; in LLVMFuzzerTestOneInput() local
60 packet_size += player1.size(); in LLVMFuzzerTestOneInput()
63 Status::NO_ERROR, 0x0000, packet_size); in LLVMFuzzerTestOneInput()
/packages/modules/Bluetooth/system/stack/rfcomm/
Dport_utils.cc142 uint16_t packet_size; in port_select_mtu() local
147 packet_size = in port_select_mtu()
149 if (packet_size == 0) { in port_select_mtu()
167 if ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) >= packet_size) { in port_select_mtu()
168 p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size * in port_select_mtu()
169 packet_size) - in port_select_mtu()
/packages/modules/Bluetooth/system/stack/test/fuzzers/a2dp/codec/
Da2dpCodecInfoFuzzFunctions.h153 size_t packet_size =
155 std::vector<uint8_t> bytes = fdp->ConsumeBytes<uint8_t>(packet_size);
/packages/modules/Bluetooth/system/gd/os/
Dqueue_benchmark.cc176 int64_t packet_size = state.range(0); in BENCHMARK_DEFINE_F() local
189 std::string data = std::string(packet_size, 'x'); in BENCHMARK_DEFINE_F()
/packages/modules/Bluetooth/system/bta/hearing_aid/
Dhearing_aid.cc1584 uint16_t packet_size = in OnAudioDataReady() local
1598 for (size_t i = 0; i < encoded_data_size; i += packet_size) { in OnAudioDataReady()
1601 SendAudio(encoded_data_left.data() + i, packet_size, left); in OnAudioDataReady()
1605 SendAudio(encoded_data_right.data() + i, packet_size, right); in OnAudioDataReady()
1613 void SendAudio(uint8_t* encoded_data, uint16_t packet_size, in SendAudio() argument
1622 BT_HDR* audio_packet = malloc_l2cap_buf(packet_size + 1); in SendAudio()
1626 memcpy(p, encoded_data, packet_size); in SendAudio()
1628 log::verbose("bd_addr={} packet_size={}", hearingAid->address, packet_size); in SendAudio()
/packages/modules/Bluetooth/system/hci/test/
Dpacket_fragmenter_test.cc265 uint16_t packet_size, in manufacture_packet_and_then_reassemble() argument
270 manufacture_iso_packet_and_then_reassemble(event, packet_size, data); in manufacture_packet_and_then_reassemble()
/packages/modules/adb/client/
Dusb_libusb.cpp387 size_t packet_size = 0; in FindInterface() local
441 if (packet_size == 0) { in FindInterface()
442 packet_size = endpoint_packet_size; in FindInterface()
444 CHECK(packet_size == endpoint_packet_size); in FindInterface()
/packages/modules/Bluetooth/system/main/shim/
Dhci_layer.cc134 size_t packet_size = data->size() + kBtHdrSize; in WrapPacketAndCopy() local
135 BT_HDR* packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in WrapPacketAndCopy()
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_utils.cc2615 uint16_t packet_size; in l2cu_adjust_out_mps() local
2618 packet_size = BTM_GetMaxPacketSize(p_ccb->p_lcb->remote_bd_addr); in l2cu_adjust_out_mps()
2620 if (packet_size <= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD + in l2cu_adjust_out_mps()
2624 packet_size, p_ccb->peer_cfg.fcr.mps); in l2cu_adjust_out_mps()
2627 packet_size -= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD + in l2cu_adjust_out_mps()
2641 if (p_ccb->peer_cfg.fcr.mps >= packet_size) in l2cu_adjust_out_mps()
2642 p_ccb->tx_mps = p_ccb->peer_cfg.fcr.mps / packet_size * packet_size; in l2cu_adjust_out_mps()
2649 p_ccb->tx_mps, p_ccb->peer_cfg.fcr.mps, packet_size); in l2cu_adjust_out_mps()