/foundation/ability/dmsfwk/test/fuzztest/dschedsoftbussession_fuzzer/ |
H A D | dschedsoftbussession_fuzzer.cpp | 70 std::shared_ptr<DSchedDataBuffer> buffer = std::make_shared<DSchedDataBuffer>(intParam); in FuzzOnBytesReceived() local 72 dschedSoftbusSession.OnBytesReceived(buffer); in FuzzOnBytesReceived() 76 dschedSoftbusSession.SendData(buffer, dataType); in FuzzOnBytesReceived()
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ops/ |
H A D | unsqueeze_builder.cpp | 47 void* buffer = tensor->GetBuffer(); in SetAxis() local 48 if (buffer == nullptr) { in SetAxis() 49 LOGE("[UnsqueezeBuilder] Tensor buffer is nullptr."); in SetAxis() 52 m_axis.emplace_back(*(static_cast<const int64_t*>(buffer))); in SetAxis()
|
/foundation/graphic/surface_lite/frameworks/ |
H A D | buffer_queue_producer.h | 27 * In single process, BufferQueueProducer is producer to request buffer, flush buffer, 28 * cancel buffer and set buffer attr. 34 * @param [in] BufferQueue bufferQueue, to request buffer, flush buffer, 35 * cancel buffer and set buffer attr. 45 * @brief Request buffer. Surface producer requests buffer [all...] |
/foundation/graphic/graphic_surface/surface/include/ |
H A D | buffer_utils.h | 36 GSError ReadSurfaceBufferImpl(MessageParcel &parcel, uint32_t &sequence, sptr<SurfaceBuffer> &buffer); 37 GSError WriteSurfaceBufferImpl(MessageParcel &parcel, uint32_t sequence, const sptr<SurfaceBuffer> &buffer); 51 GSError DumpToFileAsync(pid_t pid, std::string name, sptr<SurfaceBuffer> &buffer);
|
/foundation/graphic/surface_lite/interfaces/innerkits/ |
H A D | surface_impl.h | 53 * @brief Set queue size, the surface could alloc max buffer count. 55 * @param [in] queueSize. Could alloc buffer count. 60 * @brief Get queue size, the surface could alloc max buffer count. 66 * @brief Set width and height to calculate the buffer size. 73 * @brief Get width, buffer width to calculate the buffer size.. 79 * @brief Get height, buffer height to calculate the buffer size.. 85 * @brief Set format, to calculate the buffer size. 92 * @brief Get format, buffer forma [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | gpu_resource_util.cpp | 62 void DebugBufferName(const IDevice& device, const GpuBuffer& buffer, const BASE_NS::string_view name) in DebugBufferName() argument 67 DebugBufferNameVk(device, buffer, name); in DebugBufferName() 72 DebugBufferNameGLES(device, buffer, name); in DebugBufferName()
|
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/pipeline/ |
H A D | rs_test_util.cpp | 43 sptr<SurfaceBuffer> buffer; in CreateSurfaceNodeWithBuffer() local 45 [[maybe_unused]] GSError ret = psurf->RequestBuffer(buffer, requestFence, requestConfig); in CreateSurfaceNodeWithBuffer() 47 ret = psurf->FlushBuffer(buffer, flushFence, flushConfig); in CreateSurfaceNodeWithBuffer()
|
/foundation/multimedia/image_framework/interfaces/innerkits/include/ |
H A D | native_image.h | 38 virtual void BufferRelease(sptr<SurfaceBuffer>& buffer) = 0; 43 NativeImage(sptr<SurfaceBuffer> buffer, std::shared_ptr<IBufferProcessor> releaser); 44 NativeImage(sptr<SurfaceBuffer> buffer, std::shared_ptr<IBufferProcessor> releaser, int64_t timestamp);
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/ |
H A D | image_pixel_map_parcel_test.cpp | 47 void *buffer = malloc(bufferSize); in ConstructPixmap() local 48 char *ch = reinterpret_cast<char *>(buffer); in ConstructPixmap() 53 pixelMap->SetPixelsAddr(buffer, nullptr, bufferSize, AllocatorType::HEAP_ALLOC, nullptr); in ConstructPixmap()
|
/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/ |
H A D | async_mode.h | 37 ErrorCode PushData(const std::string &inPort, const AVBufferPtr& buffer, int64_t offset) override; 45 void OnOutputBufferDone(const std::shared_ptr<Plugin::Buffer>& buffer) override; 60 ErrorCode CheckBufferValidity(std::shared_ptr<AVBuffer>& buffer); 66 // this task will queue output buffer and decode
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/stream/src/ |
H A D | file_packer_stream.cpp | 86 bool FilePackerStream::Write(const uint8_t *buffer, uint32_t size) in Write() argument 88 if ((buffer == nullptr) || (size == 0)) { in Write() 96 if (fwrite(buffer, sizeof(uint8_t), size, file_) != size) { in Write()
|
/foundation/multimedia/drm_framework/frameworks/native/test/common/src/ |
H A D | http.cpp | 21 static size_t HttpCurlWriteStrData(void *buffer, size_t size, size_t nmemb, void *userp)
in HttpCurlWriteStrData() argument 23 if (userp == nullptr || buffer == nullptr || size == 0) {
in HttpCurlWriteStrData() 30 pstr->append((const char *)buffer, realSize);
in HttpCurlWriteStrData()
|
/foundation/multimedia/media_library/frameworks/native/c_api/moving_photo_capi/ |
H A D | moving_photo_capi.cpp | 55 MediaLibrary_ResourceType resourceType, const uint8_t** buffer, uint32_t* size) in OH_MovingPhoto_RequestContentWithBuffer() 60 CHECK_AND_RETURN_RET_LOG(buffer != nullptr, MEDIA_LIBRARY_PARAMETER_ERROR, "buffer is nullptr!"); in OH_MovingPhoto_RequestContentWithBuffer() 63 return movingPhoto->movingPhoto_->RequestContentWithBuffer(resourceType, buffer, size); in OH_MovingPhoto_RequestContentWithBuffer() 54 OH_MovingPhoto_RequestContentWithBuffer(OH_MovingPhoto* movingPhoto, MediaLibrary_ResourceType resourceType, const uint8_t** buffer, uint32_t* size) OH_MovingPhoto_RequestContentWithBuffer() argument
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_tool/src/ |
H A D | control_main.cpp | 50 std::array<char, PATH_MAX> buffer {0}; in Init() 51 getcwd(buffer.data(), PATH_MAX); in Init() 52 env.workPath.append(buffer.data()); in Init()
|
/foundation/multimedia/player_framework/test/fuzztest/common/ |
H A D | test_player.cpp | 101 struct stat64 buffer; in SetFdSource() local 102 if (fstat64(fdValue, &buffer) != 0) { in SetFdSource() 107 int64_t lengthValue = static_cast<int64_t>(buffer.st_size); in SetFdSource()
|
/foundation/multimedia/player_framework/test/fuzztest/avmetadata_fuzztest/avmetadatasetsource_fuzzer/ |
H A D | avmetadatasetsource_fuzzer.cpp | 56 struct stat64 buffer; in FuzzAVMetadataSetSource() local 57 if (fstat64(setsourcefd, &buffer) != 0) { in FuzzAVMetadataSetSource() 62 int64_t setsourcesize = static_cast<int64_t>(buffer.st_size); in FuzzAVMetadataSetSource()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/ |
H A D | stream_depacketizer.cpp | 40 void StreamDepacketizer::DepacketizeBuffer(char *buffer, uint32_t bufferSize) in DepacketizeBuffer() argument 42 char *ptr = buffer; in DepacketizeBuffer() 61 int remain = static_cast<int>(bufferSize - (ptr - buffer)); in DepacketizeBuffer()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/stream_depacketizer_test/ |
H A D | stream_depacketizer_test.cpp | 98 char buffer[Communication::SoftBus::MAX_STREAM_LEN - OVERHEAD_LEN + 1] = {0}; in HWTEST_F() local 108 streamDepacketizer->DepacketizeBuffer((char *)buffer, sizeof(buffer)); in HWTEST_F()
|
/foundation/communication/netstack/utils/tlv_utils/include/ |
H A D | tlv_utils.h | 73 static uint8_t *GetNextTlv(const uint8_t *buffer); 74 static uint8_t *ParseTlv(const uint8_t *buffer, TlvCommon *tlv, const uint8_t *boundary, uint32_t *retCode); 75 static uint8_t *AppendTlv(uint8_t *buffer, const TlvCommon *tlv, const uint8_t *boundary, uint32_t *retCode);
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcameramgr/dcameradata/ |
H A D | dcamera_stream_data_process_producer.h | 45 void FeedStream(const std::shared_ptr<DataBuffer>& buffer); 51 int32_t FeedStreamToDriver(const DHBase& dhBase, const std::shared_ptr<DataBuffer>& buffer); 52 int32_t CheckSharedMemory(const DCameraBuffer& sharedMemory, const std::shared_ptr<DataBuffer>& buffer);
|
H A D | dcamera_stream_data_process.h | 37 void FeedStream(std::shared_ptr<DataBuffer>& buffer); 50 void FeedStreamToSnapShot(const std::shared_ptr<DataBuffer>& buffer); 51 void FeedStreamToContinue(const std::shared_ptr<DataBuffer>& buffer);
|
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include/ |
H A D | hdi_framebuffer_surface.h | 31 : buffer(std::move(buf)), acquireFence(std::move(fence)), acquireTime(timeStamp), damageRect(damage) in FrameBufferEntry() 36 sptr<SurfaceBuffer> buffer; member 49 sptr<SurfaceBuffer> &buffer, const sptr<SyncFence> &releaseFence);
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
H A D | atags_proc.c | 8 struct buffer { struct 16 struct buffer *b = PDE_DATA(file_inode(file)); in atags_read() 41 struct buffer *b; in init_atags_procfs()
|
/kernel/linux/linux-5.10/arch/x86/boot/ |
H A D | cmdline.c | 26 * truncated to fit in the buffer), or -1 on not found. 28 int __cmdline_find_option(unsigned long cmdline_ptr, const char *option, char *buffer, int bufsize) in __cmdline_find_option() argument 34 char *bufptr = buffer; in __cmdline_find_option() 39 st_bufcpy /* Copying this to buffer */ in __cmdline_find_option() 62 bufptr = buffer; in __cmdline_find_option()
|
/kernel/linux/linux-6.6/arch/arm/kernel/ |
H A D | atags_proc.c | 8 struct buffer { struct 16 struct buffer *b = pde_data(file_inode(file)); in atags_read() 41 struct buffer *b; in init_atags_procfs()
|