/aosp12/system/bt/hci/test/ |
H A D | packet_fragmenter_host_test.cc | 289 for (const auto packet_size : sizes) { in TEST_F() local 291 uint8_t buf[packet_size]; in TEST_F() 293 CHECK(VerifyData(buf, packet_size)); in TEST_F() 302 for (const auto packet_size : sizes) { in TEST_F() local 315 const size_t packet_size = kMaxPacketSize + 1; in TEST_F() local 324 const size_t packet_size = 512; in TEST_F() local 338 for (auto packet_size : sizes) { in TEST_F() local 361 const size_t packet_size = 512; in TEST_F() local 384 CHECK(VerifyData(Data(packet.get()), packet_size)); in TEST_F() 388 const size_t packet_size = UINT16_MAX; in TEST_F() local [all …]
|
H A D | packet_fragmenter_test.cc | 330 uint16_t packet_size, in manufacture_packet_and_then_reassemble() argument 335 manufacture_acl_packet_and_then_reassemble(event, packet_size, data); in manufacture_packet_and_then_reassemble() 337 manufacture_iso_packet_and_then_reassemble(event, packet_size, data); in manufacture_packet_and_then_reassemble()
|
/aosp12/system/bt/packet/tests/avrcp/ |
H A D | get_folder_items_packet_test.cc | 56 auto packet_size = BrowsePacket::kMinSize() + 5; in TEST() local 57 packet_size += player1.size() + player3.size(); in TEST() 60 Status::NO_ERROR, 0x0000, packet_size); in TEST() 94 auto packet_size = BrowsePacket::kMinSize() + 5; in TEST() local 95 packet_size += folder1.size() + folder3.size(); in TEST() 98 Status::NO_ERROR, 0x0000, packet_size); in TEST() 136 auto packet_size = BrowsePacket::kMinSize() + 5; in TEST() local 137 packet_size += song1.size() + song3.size(); in TEST() 140 Status::NO_ERROR, 0x0000, packet_size); in TEST()
|
/aosp12/system/bt/stack/test/common/ |
H A D | stack_test_packet_utils.cc | 59 size_t packet_size = buffer_length + BT_HDR_SIZE; in AllocateWrappedIncomingL2capAclPacket() local 60 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedIncomingL2capAclPacket() 79 size_t packet_size = in AllocateWrappedOutgoingL2capAclPacket() local 81 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedOutgoingL2capAclPacket()
|
/aosp12/system/core/fastboot/ |
H A D | udp.cpp | 192 uint16_t packet_size = ExtractUint16(rx_data + 2); in InitializeProtocol() local 193 if (packet_size < kMinPacketSize) { in InitializeProtocol() 194 *error = android::base::StringPrintf("target reported invalid packet size %d", packet_size); in InitializeProtocol() 198 packet_size = std::min(kHostMaxPacketSize, packet_size); in InitializeProtocol() 199 max_data_length_ = packet_size - kHeaderSize; in InitializeProtocol() 200 rx_packet_.resize(packet_size); in InitializeProtocol()
|
/aosp12/system/bt/packet/tests/fuzzers/ |
H A D | get_folder_items_res_fuzzer.cc | 59 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()
|
/aosp12/frameworks/av/media/mtp/ |
H A D | MtpFfsCompatHandle.cpp | 165 int packet_size = getPacketSize(mBulkOut); in receiveFile() local 238 if (ret % packet_size == 0 || zero_packet) { in receiveFile() 239 if (TEMP_FAILURE_RETRY(::read(mBulkOut, data, packet_size)) != 0) { in receiveFile() 251 int packet_size = getPacketSize(mBulkIn); in sendFile() local 256 static_cast<uint64_t>(packet_size - sizeof(mtp_data_header)), file_length); in sendFile() 330 if (ret % packet_size == 0) { in sendFile()
|
H A D | MtpFfsHandle.cpp | 152 int packet_size = getPacketSize(read ? mBulkOut : mBulkIn); in doAsync() local 153 if (len % packet_size == 0 && zero_packet) { in doAsync() 461 int packet_size = getPacketSize(mBulkOut); in receiveFile() local 554 if ((ret % packet_size == 0 && !short_packet) || zero_packet) { in receiveFile() 557 if (read(mIobuf[0].bufs.data(), packet_size) != 0) { in receiveFile() 569 int packet_size = getPacketSize(mBulkIn); in sendFile() local 574 static_cast<uint64_t>(packet_size - sizeof(mtp_data_header)), file_length); in sendFile() 657 if (ret % packet_size == 0) { in sendFile()
|
/aosp12/system/bt/stack/rfcomm/ |
H A D | port_utils.cc | 142 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()
|
/aosp12/frameworks/av/media/libstagefright/ |
H A D | OggWriter.cpp | 120 size_t packet_size = 0; in addSource() local 122 if (!source->getFormat()->findData(kKeyOpusHeader, &type, &header_data, &packet_size)) { in addSource() 124 } else if (header_data && packet_size) { in addSource() 125 writeOggHeaderPackets((unsigned char *)header_data, packet_size); in addSource()
|
/aosp12/system/core/fastboot/device/ |
H A D | usb.cpp | 135 int packet_size = getMaxPacketSize(aiob->fd); in usb_ffs_do_aio() local 149 if (len == 0 && buf_len % packet_size == 0 && read) { in usb_ffs_do_aio() 157 packet_size, 0, read); in usb_ffs_do_aio()
|
/aosp12/frameworks/av/media/codecs/m4v_h263/enc/src/ |
H A D | datapart_encode.cpp | 50 Int num_bits, packet_size = encParams->ResyncPacketsize; in EncodeFrameDataPartMode() local 149 if (num_bits > packet_size) in EncodeFrameDataPartMode() 229 … Int packet_size = encParams->ResyncPacketsize - 1 - (currVop->predictionType == I_VOP ? 19 : 17); in EncodeSliceDataPartMode() local 377 if (num_bits > packet_size && mbnum != firstMB) /* encoding at least one more MB*/ in EncodeSliceDataPartMode()
|
H A D | combined_encode.cpp | 51 Int num_bits, packet_size = encParams->ResyncPacketsize; in EncodeFrameCombinedMode() local 178 if (num_bits > packet_size) in EncodeFrameCombinedMode() 282 Int packet_size = encParams->ResyncPacketsize - 1; in EncodeSliceCombinedMode() local 466 if (num_bits > packet_size && mbnum != firstMB) in EncodeSliceCombinedMode()
|
/aosp12/system/bt/stack/test/fuzzers/a2dp/codec/ |
H A D | a2dpCodecInfoFuzzFunctions.h | 152 size_t packet_size = 154 std::vector<uint8_t> bytes = fdp->ConsumeBytes<uint8_t>(packet_size);
|
/aosp12/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerCCDecoder.cpp | 465 size_t packet_size = br.getBits(6); in parseDTVCCPacket() local 466 if (packet_size == 0) packet_size = 64; in parseDTVCCPacket() 467 packet_size *= 2; in parseDTVCCPacket() 469 if (size != packet_size) { in parseDTVCCPacket()
|
/aosp12/system/bt/gd/os/ |
H A D | queue_benchmark.cc | 176 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()
|
/aosp12/system/bt/hci/src/ |
H A D | hci_layer_android.cc | 99 size_t packet_size = data.size() + BT_HDR_SIZE; in WrapPacketAndCopy() local 101 reinterpret_cast<BT_HDR*>(buffer_allocator->alloc(packet_size)); in WrapPacketAndCopy()
|
H A D | hci_layer_linux.cc | 122 size_t packet_size = buf_size + BT_HDR_SIZE; in monitor_socket() local 124 reinterpret_cast<BT_HDR*>(buffer_allocator->alloc(packet_size)); in monitor_socket()
|
/aosp12/system/bt/bta/hearing_aid/ |
H A D | hearing_aid.cc | 1272 uint16_t packet_size = in OnAudioDataReady() local 1275 for (size_t i = 0; i < encoded_data_size; i += packet_size) { in OnAudioDataReady() 1278 SendAudio(encoded_data_left.data() + i, packet_size, left); in OnAudioDataReady() 1282 SendAudio(encoded_data_right.data() + i, packet_size, right); in OnAudioDataReady() 1290 void SendAudio(uint8_t* encoded_data, uint16_t packet_size, in SendAudio() argument 1300 BT_HDR* audio_packet = malloc_l2cap_buf(packet_size + 1); in SendAudio() 1304 memcpy(p, encoded_data, packet_size); in SendAudio() 1306 DVLOG(2) << hearingAid->address << " : " << base::HexEncode(p, packet_size); in SendAudio()
|
/aosp12/packages/modules/adb/client/ |
H A D | usb_libusb.cpp | 360 size_t packet_size = 0; in FindInterface() local 414 if (packet_size == 0) { in FindInterface() 415 packet_size = endpoint_packet_size; in FindInterface() 417 CHECK(packet_size == endpoint_packet_size); in FindInterface()
|
/aosp12/hardware/interfaces/bluetooth/1.0/default/ |
H A D | vendor_interface.cc | 55 size_t packet_size = data.size() + sizeof(HC_BT_HDR); in WrapPacketAndCopy() local 56 HC_BT_HDR* packet = reinterpret_cast<HC_BT_HDR*>(new uint8_t[packet_size]); in WrapPacketAndCopy()
|
/aosp12/system/bt/stack/l2cap/ |
H A D | l2c_utils.cc | 2357 uint16_t packet_size; in l2cu_adjust_out_mps() local 2360 packet_size = BTM_GetMaxPacketSize(p_ccb->p_lcb->remote_bd_addr); in l2cu_adjust_out_mps() 2362 if (packet_size <= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD + in l2cu_adjust_out_mps() 2367 packet_size, p_ccb->peer_cfg.fcr.mps); in l2cu_adjust_out_mps() 2370 packet_size -= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD + in l2cu_adjust_out_mps() 2384 if (p_ccb->peer_cfg.fcr.mps >= packet_size) in l2cu_adjust_out_mps() 2385 p_ccb->tx_mps = p_ccb->peer_cfg.fcr.mps / packet_size * packet_size; in l2cu_adjust_out_mps() 2392 p_ccb->tx_mps, p_ccb->peer_cfg.fcr.mps, packet_size); in l2cu_adjust_out_mps()
|
/aosp12/system/bt/main/shim/ |
H A D | hci_layer.cc | 316 size_t packet_size = data->size() + kBtHdrSize; in WrapPacketAndCopy() local 317 BT_HDR* packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in WrapPacketAndCopy() 519 size_t packet_size = data->length() + kBtHdrSize; in WrapRustPacketAndCopy() local 520 BT_HDR* packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in WrapRustPacketAndCopy()
|
/aosp12/hardware/qcom/sm7250/media/mm-video-v4l2/vidc/venc/src/ |
H A D | video_encoder_device_v4l2.cpp | 668 OMX_U32 packet_size = 0; in handle_input_extradata() local 689 packet_size = sizeof(struct msm_vidc_extradata_header) - sizeof(unsigned int) in handle_input_extradata() 692 if (filled_len + packet_size <= input_extradata_info.buffer_size) { in handle_input_extradata() 694 data->nSize = ALIGN(packet_size, 4); in handle_input_extradata() 705 packet_size, input_extradata_info.buffer_size, filled_len); in handle_input_extradata() 812 packet_size = (sizeof(OMX_OTHER_EXTRADATATYPE) + payload_size + 3)&(~3); in handle_input_extradata() 814 …if (m_hdr10meta_enabled && (filled_len + packet_size <= input_extradata_info.buffer_size) && color… in handle_input_extradata() 817 data->nSize = packet_size; in handle_input_extradata() 834 packet_size, (input_extradata_info.buffer_size - filled_len)); in handle_input_extradata()
|
/aosp12/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/venc/src/ |
H A D | video_encoder_device_v4l2.cpp | 672 OMX_U32 packet_size = 0; in handle_input_extradata() local 880 packet_size = (sizeof(OMX_OTHER_EXTRADATATYPE) + payload_size + 3)&(~3); in handle_input_extradata() 882 …if (m_hdr10meta_enabled && (filled_len + packet_size <= input_extradata_info.buffer_size) && color… in handle_input_extradata() 885 data->nSize = packet_size; in handle_input_extradata() 902 packet_size, (input_extradata_info.buffer_size - filled_len)); in handle_input_extradata()
|