/aosp12/frameworks/minikin/tests/util/ |
H A D | BufferUtils.h | 43 std::vector<uint8_t> buffer = allocateBuffer(t); in writeToBuffer() local 51 std::vector<uint8_t> buffer = allocateBuffer<T, arg>(t); in writeToBuffer() local
|
/ohos5.0/drivers/peripheral/codec/test/demo/idl/src/ |
H A D | codec_hdi_callback.cpp | 32 …odecHdiCallback::EmptyBufferDone(int64_t appData, const OHOS::HDI::Codec::V3_0::OmxCodecBuffer &bu… in EmptyBufferDone() 40 …CodecHdiCallback::FillBufferDone(int64_t appData, const OHOS::HDI::Codec::V3_0::OmxCodecBuffer &bu… in FillBufferDone()
|
/ohos5.0/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codeccommonhdi_fuzzer/ |
H A D | codeccallback_fuzzer.cpp | 29 …decCallbackFuzz::EmptyBufferDone(int64_t appData, const OHOS::HDI::Codec::V3_0::OmxCodecBuffer &bu… in EmptyBufferDone() 36 …odecCallbackFuzz::FillBufferDone(int64_t appData, const OHOS::HDI::Codec::V3_0::OmxCodecBuffer &bu… in FillBufferDone()
|
/aosp12/hardware/google/gchips/gralloc3/src/ |
H A D | mali_gralloc_bufferaccess.cpp | 158 int validate_lock_input_parameters(const buffer_handle_t buffer, const int l, in validate_lock_input_parameters() 281 int mali_gralloc_lock(const mali_gralloc_module * const m, buffer_handle_t buffer, in mali_gralloc_lock() 387 const buffer_handle_t buffer, in mali_gralloc_lock_ycbcr() 511 int mali_gralloc_unlock(const mali_gralloc_module *m, buffer_handle_t buffer) in mali_gralloc_unlock() 540 const buffer_handle_t buffer, in mali_gralloc_get_num_flex_planes() 591 int mali_gralloc_lock_async(const mali_gralloc_module *m, buffer_handle_t buffer, in mali_gralloc_lock_async() 622 const buffer_handle_t buffer, const uint64_t usage, in mali_gralloc_lock_ycbcr_async() 1012 const buffer_handle_t buffer, in mali_gralloc_lock_flex_async() 1371 int mali_gralloc_unlock_async(const mali_gralloc_module *m, buffer_handle_t buffer, in mali_gralloc_unlock_async()
|
/aosp12/frameworks/av/media/libstagefright/rtsp/ |
H A D | AAVCAssembler.cpp | 125 sp<ABuffer> buffer = *queue->begin(); in addNALUnit() local 297 void AAVCAssembler::checkSpsUpdated(const sp<ABuffer> &buffer) { in checkSpsUpdated() 316 void AAVCAssembler::checkIFrameProvided(const sp<ABuffer> &buffer) { in checkIFrameProvided() 334 bool AAVCAssembler::dropFramesUntilIframe(const sp<ABuffer> &buffer) { in dropFramesUntilIframe() 344 void AAVCAssembler::addSingleNALUnit(const sp<ABuffer> &buffer) { in addSingleNALUnit() 375 bool AAVCAssembler::addSingleTimeAggregationPacket(const sp<ABuffer> &buffer) { in addSingleTimeAggregationPacket() 416 sp<ABuffer> buffer = *queue->begin(); in addFragmentedNALUnit() local 466 const sp<ABuffer> &buffer = *it; in addFragmentedNALUnit() local 532 const sp<ABuffer> &buffer = *it; in addFragmentedNALUnit() local 622 sp<ABuffer> buffer = *(queue->begin()); in pickStartSeq() local
|
/aosp12/packages/modules/adb/daemon/ |
H A D | file_sync_service.cpp | 274 Block buffer(SYNC_DATA_MAX); in handle_send_file_data() local 349 CompressionType compression, bool dry_run, std::vector<char>& buffer, in handle_send_file() 455 std::vector<char>& buffer) { in handle_send_link() 508 bool dry_run, std::vector<char>& buffer) { in send_impl() 554 static bool do_send_v1(int s, const std::string& spec, std::vector<char>& buffer) { in do_send_v1() 574 static bool do_send_v2(int s, const std::string& path, std::vector<char>& buffer) { in do_send_v2() 632 std::vector<char>& buffer) { in recv_impl() 722 static bool do_recv_v1(borrowed_fd s, const char* path, std::vector<char>& buffer) { in do_recv_v1() 726 static bool do_recv_v2(borrowed_fd s, const char* path, std::vector<char>& buffer) { in do_recv_v2() 802 static bool handle_sync_command(int fd, std::vector<char>& buffer) { in handle_sync_command() [all …]
|
/aosp12/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | AnotherPacketSource.cpp | 102 sp<ABuffer> buffer = *it; in getFormat() local 117 status_t AnotherPacketSource::dequeueAccessUnit(sp<ABuffer> *buffer) { in dequeueAccessUnit() 161 void AnotherPacketSource::requeueAccessUnit(const sp<ABuffer> &buffer) { in requeueAccessUnit() 178 const sp<ABuffer> buffer = *mBuffers.begin(); in read() local 289 void AnotherPacketSource::queueAccessUnit(const sp<ABuffer> &buffer) { in queueAccessUnit() 401 sp<ABuffer> buffer = new ABuffer(0); in queueDiscontinuity() local 491 const sp<ABuffer> &buffer = *it; in getEstimatedBufferDurationUs() local 514 sp<ABuffer> buffer = *mBuffers.begin(); in nextBufferTime() local 558 const sp<ABuffer> &buffer = *it; in getMetaAfterLastDequeued() local 606 const sp<ABuffer> &buffer = *it; in trimBuffersAfterMeta() local [all …]
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_dfile_frame.c | 88 static int32_t EncodeFileInfo(FileList *fileList, uint16_t fileId, uint8_t *buffer, size_t length, in EncodeFileInfo() 138 void EncodeFileHeaderFrameSp(FileList *fileList, int32_t *fileId, uint8_t *buffer, size_t length, in EncodeFileHeaderFrameSp() 202 void EncodeFileHeaderFrame(FileList *fileList, int32_t *fileId, uint8_t *buffer, size_t length, in EncodeFileHeaderFrame() 209 void EncodeFileHeaderConfirmFrame(FileList *fileList, uint16_t *fileId, uint8_t *buffer, size_t len… in EncodeFileHeaderConfirmFrame() 258 void EncodeFileTransferDoneFrame(uint8_t *buffer, size_t length, uint16_t fileIdList[], uint32_t fi… in EncodeFileTransferDoneFrame() 284 void EncodeSettingFrame(uint8_t *buffer, size_t length, size_t *frameLength, const SettingFrame *se… in EncodeSettingFrame() 309 void EncodeRstFrame(uint8_t *buffer, size_t length, size_t *frameLength, uint16_t transId, uint16_t… in EncodeRstFrame() 327 void EncodeBackPressFrame(uint8_t *buffer, size_t length, size_t *frameLength, uint8_t recvListOver… in EncodeBackPressFrame() 349 void EncodeFileTransferDoneAckFrame(uint8_t *buffer, size_t length, uint16_t transId, size_t *frame… in EncodeFileTransferDoneAckFrame() 361 int32_t DecodeDFileFrame(const uint8_t *buffer, size_t bufferLength, DFileFrame **frame) in DecodeDFileFrame() [all …]
|
/aosp12/system/logging/logcat/tests/ |
H A D | logcat_benchmark.cpp | 46 void init(const char* buffer) { in BM_logcat_sorted_order() 54 explicit timestamp(const char* buffer) { in BM_logcat_sorted_order() 78 char buffer[5120]; in BM_logcat_sorted_order() local
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/media_sink_test/ |
H A D | subtitle_sink_test.cpp | 72 std::shared_ptr<AVBuffer> buffer = nullptr; variable 93 const std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(config); variable 115 const std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(config); variable
|
/ohos5.0/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/buffer_adapter/standard/ |
H A D | buffer_adapter.cpp | 20 const std::shared_ptr<IBuffer>& buffer) in SurfaceBufferToCameraBuffer() 47 RetCode BufferAdapter::CameraBufferToSurfaceBuffer(const std::shared_ptr<IBuffer>& buffer, in CameraBufferToSurfaceBuffer() 73 RetCode BufferAdapter::SetExtInfoToSurfaceBuffer(const std::shared_ptr<IBuffer>& buffer, in SetExtInfoToSurfaceBuffer()
|
/ohos5.0/drivers/peripheral/camera/vdi_base/usb_camera/buffer_manager/src/buffer_adapter/standard/ |
H A D | buffer_adapter.cpp | 21 const std::shared_ptr<IBuffer>& buffer) in SurfaceBufferToCameraBuffer() 49 RetCode BufferAdapter::CameraBufferToSurfaceBuffer(const std::shared_ptr<IBuffer>& buffer, in CameraBufferToSurfaceBuffer() 75 RetCode BufferAdapter::SetExtInfoToSurfaceBuffer(const std::shared_ptr<IBuffer>& buffer, in SetExtInfoToSurfaceBuffer()
|
/ohos5.0/foundation/window/window_manager/utils/src/ |
H A D | typec_port_info.cpp | 43 static bool IsStringNumeric(const char* buffer) in IsStringNumeric() 69 char buffer[bufferSize] = {0}; in GetTypeCFileNode() local 102 char buffer[bufferSize] = {0}; in GetTypeCThermal() local
|
/aosp12/frameworks/av/media/codec2/sfplugin/ |
H A D | Codec2Buffer.cpp | 70 bool Codec2Buffer::copyLinear(const std::shared_ptr<C2Buffer> &buffer) { in copyLinear() 102 bool LocalLinearBuffer::copy(const std::shared_ptr<C2Buffer> &buffer) { in copy() 111 const sp<AMessage> &format, const std::shared_ptr<C2Buffer> &buffer) in DummyContainerBuffer() 129 bool DummyContainerBuffer::copy(const std::shared_ptr<C2Buffer> &buffer) { in copy() 155 bool LinearBlockBuffer::copy(const std::shared_ptr<C2Buffer> &buffer) { in copy() 188 const std::shared_ptr<C2Buffer> &buffer) in ConstLinearBlockBuffer() 628 sp<ABuffer> buffer = converter.wrap(); in Allocate() local 648 const sp<ABuffer> &buffer, in GraphicBlockBuffer() 701 ANativeWindowBuffer *buffer = (ANativeWindowBuffer *)meta->pBuffer; in asC2Buffer() local 741 const std::shared_ptr<C2Buffer> &buffer, in Allocate() [all …]
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/ |
H A D | videoenc_func_unit_test.cpp | 78 …cb.onNeedInputBuffer = [](OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) { in GetVoidCallback() 988 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(avbuffer); variable 1016 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(avbuffer); variable 1044 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(avbuffer); variable 1071 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(avbuffer); variable 1107 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(avbuffer); variable 1133 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(10000); variable 1159 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(10000); variable 1184 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(10000); variable 1223 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(avbuffer); variable [all …]
|
/ohos5.0/base/update/updater/services/package/pkg_package/ |
H A D | pkg_upgradefile.cpp | 157 int32_t UpgradePkgFile::CheckPackageHeader(std::vector<uint8_t> &buffer, size_t &offset) in CheckPackageHeader() 224 std::vector<uint8_t> buffer(buffSize); in SavePackage() local 269 PkgBuffer buffer(HASH_TLV_SIZE); in ReadSignData() local 310 PkgBuffer buffer(HASH_TLV_SIZE); in ReadImgHashTLV() local 393 PkgBuffer buffer(GetUpgradeSignatureLen() + UPGRADE_RESERVE_LEN); in ReadPackageInfo() local 538 PkgBuffer buffer(buffSize); in Verify() local 637 PkgBuffer buffer(sizeof(PkgTlv)); in ReadComponents() local 723 PkgBuffer buffer(UPGRADE_FILE_BASIC_LEN); in ReadUpgradePkgHeader() local 819 PkgBuffer buffer(reinterpret_cast<uint8_t *>(&comp), sizeof(comp)); in EncodeHeader() local 945 [this](PkgBuffer &buffer, size_t len, size_t offset) ->int32_t { in Unpack() [all …]
|
/aosp12/packages/modules/DnsResolver/tests/dns_responder/ |
H A D | dns_responder.cpp | 59 std::string str2hex(const char* buffer, size_t len) { in str2hex() 186 const char* DNSName::read(const char* buffer, const char* buffer_end) { in read() 199 char* DNSName::write(char* buffer, const char* buffer_end) const { in write() 272 char* DNSQuestion::write(char* buffer, const char* buffer_end) const { in write() 285 char buffer[16384]; in toString() local 311 char* DNSRecord::write(char* buffer, const char* buffer_end) const { in write() 324 char buffer[16384]; in toString() local 409 char* DNSHeader::write(char* buffer, const char* buffer_end) const { in write() 451 char buffer[16384]; in write() local 929 char buffer[16384]; in makeResponse() local [all …]
|
/aosp12/system/bt/bta/hf_client/ |
H A D | bta_hf_client_at.cc | 821 char* buffer) { in bta_hf_client_parse_ok() 841 char* buffer) { in bta_hf_client_parse_ring() 852 tBTA_HF_CLIENT_CB* client_cb, char* buffer, in bta_hf_client_parse_uint32() 872 char* buffer) { in bta_hf_client_parse_brsf() 946 char* buffer) { in bta_hf_client_parse_cind() 955 char* buffer) { in bta_hf_client_parse_chld() 1009 char* buffer) { in bta_hf_client_parse_bind() 1049 char* buffer) { in bta_hf_client_parse_ciev() 1075 char* buffer) { in bta_hf_client_parse_bcs() 1099 char* buffer) { in bta_hf_client_parse_vgm() [all …]
|
/aosp12/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
H A D | prettywritertest.cpp | 43 StringBuffer buffer; in TEST() local 52 StringBuffer buffer; in TEST() local 79 StringBuffer buffer; in TEST() local 89 StringBuffer buffer; in TEST() local 142 char buffer[16]; in TEST() local
|
/aosp12/frameworks/av/media/libstagefright/ |
H A D | SkipCutBuffer.cpp | 59 void SkipCutBuffer::submit(MediaBuffer *buffer) { in submit() 92 void SkipCutBuffer::submitInternal(const sp<T>& buffer) { in submitInternal() 124 void SkipCutBuffer::submit(const sp<ABuffer>& buffer) { in submit() 128 void SkipCutBuffer::submit(const sp<MediaCodecBuffer>& buffer) { in submit()
|
/ohos5.0/base/startup/init/services/modules/sysevent/ |
H A D | startup_time_event.c | 30 char *buffer; member 35 static int GetServiceName(const char *paramName, char *buffer, size_t buffSize) in GetServiceName() 72 static void InsertBootTimeParam(char *buffer, const char *name) in InsertBootTimeParam() 104 char *buffer = (char *)calloc(MAX_BUFFER_FOR_EVENT + PARAM_VALUE_LEN_MAX, 1); in ReportBootEventComplete() local
|
/aosp12/hardware/interfaces/neuralnetworks/utils/adapter/src/ |
H A D | Buffer.cpp | 43 nn::GeneralResult<void> copyTo(const nn::SharedBuffer& buffer, const hidl_memory& dst) { in copyTo() 49 nn::GeneralResult<void> copyFrom(const nn::SharedBuffer& buffer, const hidl_memory& src, in copyFrom() 58 Buffer::Buffer(nn::SharedBuffer buffer) : kBuffer(std::move(buffer)) { in Buffer()
|
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/ |
H A D | raw_stream_data.cpp | 50 auto buffer = std::make_unique<char[]>(bufLen); in MakeRawStream() local 61 auto buffer = std::make_unique<char[]>(bufLen + RawStreamData::FRAME_HEADER_LEN); in MakeRawStream() local 75 int RawStreamData::InitStreamData(std::unique_ptr<char[]> buffer, ssize_t bufLen, in InitStreamData()
|
/ohos5.0/foundation/arkui/napi/test/fuzztest/runscriptbuffer_fuzzer/ |
H A D | runscriptbuffer_fuzzer.cpp | 37 void RunScriptBuffer(const char* path, std::vector<uint8_t>& buffer, bool isBundle) in RunScriptBuffer() 42 void RunScriptBuffer(const std::string& path, uint8_t* buffer, size_t size, bool isBundle) in RunScriptBuffer() 84 uint8_t* buffer = const_cast<uint8_t*>(data); in RunScriptBufferFuzzTest() local
|
/aosp12/system/chre/util/ |
H A D | buffer_base.cc | 29 void BufferBase::wrap(void *buffer, size_t size) { in wrap() 37 bool BufferBase::copy_array(const void *buffer, size_t size, in copy_array()
|