Home
last modified time | relevance | path

Searched refs:NativeBuffer (Results 1 – 25 of 35) sorted by relevance

12

/drivers/hdf_core/interfaces/inner_api/hdi/base/
Dnative_buffer.h56 class NativeBuffer : public Parcelable {
58 NativeBuffer();
59 virtual ~NativeBuffer();
60 explicit NativeBuffer(const BufferHandle *handle);
62 NativeBuffer(const NativeBuffer &other);
63 NativeBuffer(NativeBuffer &&other) noexcept;
65 NativeBuffer &operator=(const NativeBuffer &other);
66 NativeBuffer &operator=(NativeBuffer &&other) noexcept;
86 static sptr<NativeBuffer> Unmarshalling(Parcel &parcel);
/drivers/hdf_core/adapter/uhdf2/hdi/src/
Dnative_buffer.cpp26 NativeBuffer::NativeBuffer() : handle_(nullptr), isOwner_(true), bufferDestructor_(nullptr) {} in NativeBuffer() function in OHOS::HDI::Base::NativeBuffer
28 NativeBuffer::~NativeBuffer() in ~NativeBuffer()
33 NativeBuffer::NativeBuffer(const BufferHandle *handle) : NativeBuffer() in NativeBuffer() function in OHOS::HDI::Base::NativeBuffer
38 NativeBuffer::NativeBuffer(const NativeBuffer &other) : NativeBuffer() in NativeBuffer() function in OHOS::HDI::Base::NativeBuffer
46 NativeBuffer::NativeBuffer(NativeBuffer &&other) noexcept : NativeBuffer() in NativeBuffer() function in OHOS::HDI::Base::NativeBuffer
54 NativeBuffer &NativeBuffer::operator=(const NativeBuffer &other) in operator =()
64 NativeBuffer &NativeBuffer::operator=(NativeBuffer &&other) noexcept in operator =()
76 bool NativeBuffer::Marshalling(Parcel &parcel) const in Marshalling()
115 sptr<NativeBuffer> NativeBuffer::Unmarshalling(Parcel &parcel) in Unmarshalling()
117 sptr<NativeBuffer> newParcelable = new NativeBuffer(); in Unmarshalling()
[all …]
/drivers/hdf_core/adapter/uhdf2/hdi/test/buffer_handle/
Dnative_buffer_test.cpp28 using OHOS::HDI::Base::NativeBuffer;
63 sptr<NativeBuffer> srcBuffer = new NativeBuffer(nullptr);
68 sptr<NativeBuffer> destBuffer = data.ReadStrongParcelable<NativeBuffer>();
83 sptr<NativeBuffer> srcBuffer = new NativeBuffer(srcHandle);
88 sptr<NativeBuffer> destBuffer = data.ReadStrongParcelable<NativeBuffer>();
102 NativeBuffer srcBuffer;
103 NativeBuffer destBuffer(srcBuffer);
115 NativeBuffer srcBuffer(srcHandle);
119 NativeBuffer destBuffer(srcBuffer);
132 NativeBuffer srcBuffer(srcHandle);
[all …]
/drivers/peripheral/display/buffer/hdi_service/include/
Dmapper_service.h33 int32_t FreeMem(const sptr<NativeBuffer>& handle) override;
34 int32_t Mmap(const sptr<NativeBuffer>& handle) override;
35 int32_t Unmap(const sptr<NativeBuffer>& handle) override;
36 int32_t FlushCache(const sptr<NativeBuffer>& handle) override;
37 int32_t InvalidateCache(const sptr<NativeBuffer>& handle) override;
Dallocator_service.h32 int32_t AllocMem(const AllocInfo& info, sptr<NativeBuffer>& handle) override;
/drivers/interface/display/buffer/v1_0/hdi_impl/
Ddisplay_buffer_hdi_impl.cpp133 sptr<NativeBuffer> hdiBuffer; in AllocMem()
148 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in FreeMem()
157 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in Mmap()
168 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in Unmap()
178 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in FlushCache()
188 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in InvalidateCache()
/drivers/interface/display/buffer/v1_0/
DIMapper.idl21 FreeMem([in] NativeBuffer handle);
22 Mmap([in] NativeBuffer handle);
23 Unmap([in] NativeBuffer handle);
24 FlushCache([in] NativeBuffer handle);
25 InvalidateCache([in] NativeBuffer handle);
DIAllocator.idl21 AllocMem([in] struct AllocInfo info, [out] NativeBuffer handle);
/drivers/interface/display/composer/v1_0/cache_manager/
Dbuffer_cache_utils.h36 …ferHandle* NativeBufferCache(const std::shared_ptr<CacheManager<uint32_t, NativeBuffer>>& cacheMgr, in NativeBufferCache()
42 NativeBuffer* nativeBuffer = cacheMgr->SearchCache(seqNo); in NativeBufferCache()
54 NativeBuffer* nativeBuffer = new NativeBuffer(); in NativeBufferCache()
Ddevice_cache.cpp58 clientBufferCaches_.reset(new CacheManager<uint32_t, NativeBuffer>()); in Init()
62 outputBufferCaches_.reset(new CacheManager<uint32_t, NativeBuffer>()); in Init()
139 clientBufferCaches_->TravelCaches([this](int32_t id, const NativeBuffer& buffer)->void { in Dump()
143 outputBufferCaches_->TravelCaches([this](int32_t id, const NativeBuffer& buffer)->void { in Dump()
Ddevice_cache.h58 std::shared_ptr<CacheManager<uint32_t, NativeBuffer>> clientBufferCaches_;
59 std::shared_ptr<CacheManager<uint32_t, NativeBuffer>> outputBufferCaches_;
Dlayer_cache.cpp54 bufferCaches_.reset(new CacheManager<uint32_t, NativeBuffer>()); in Init()
90 bufferCaches_->TravelCaches([this](const int32_t id, const NativeBuffer& buffer)->void { in Dump()
Dlayer_cache.h45 std::shared_ptr<CacheManager<uint32_t, NativeBuffer>> bufferCaches_;
/drivers/peripheral/display/buffer/hdi_service/src/
Dmapper_service.cpp95 int32_t MapperService::FreeMem(const sptr<NativeBuffer>& handle) in FreeMem()
103 int32_t MapperService::Mmap(const sptr<NativeBuffer>& handle) in Mmap()
112 int32_t MapperService::Unmap(const sptr<NativeBuffer>& handle) in Unmap()
121 int32_t MapperService::FlushCache(const sptr<NativeBuffer>& handle) in FlushCache()
130 int32_t MapperService::InvalidateCache(const sptr<NativeBuffer>& handle) in InvalidateCache()
Dallocator_service.cpp94 int32_t AllocatorService::AllocMem(const AllocInfo& info, sptr<NativeBuffer>& handle) in AllocMem()
105 handle = new NativeBuffer(); in AllocMem()
/drivers/peripheral/distributed_camera/hdi_service/test/fuzztest/dcameraacquirebuffer_fuzzer/
Ddcameraacquirebuffer_fuzzer.cpp41 buffer.bufferHandle_ = new NativeBuffer(); in DcameraAcquireBufferFuzzTest()
/drivers/peripheral/distributed_camera/hdi_service/test/fuzztest/dcamerashutterbuffer_fuzzer/
Ddcamerashutterbuffer_fuzzer.cpp41 buffer.bufferHandle_ = new NativeBuffer(); in DcameraShutterBufferFuzzTest()
/drivers/interface/distributed_camera/v1_0/
DDCameraTypes.idl267 * Native buffer, see {@link NativeBuffer}.
269 NativeBuffer bufferHandle_;
/drivers/peripheral/codec/image/jpeg/src/
Dcodec_jpeg_dec.cpp95 inBuffer.buffer = new NativeBuffer(bufferHandle); in AllocateInBuffer()
/drivers/peripheral/distributed_camera/hdi_service/src/dstream_operator/
Ddbuffer_manager.cpp156 buffer.bufferHandle_ = new NativeBuffer(); in DImageBufferToDCameraBuffer()
/drivers/interface/codec/image/v1_0/
DCodecImageType.idl66 NativeBuffer buffer; /**< Buffer handle used for encoding or decoding. For details,
67 see {@link NativeBuffer}. */
/drivers/peripheral/display/composer/hdi_service/include/
Ddisplay_composer_service.h54 … uint32_t devId, const sptr<NativeBuffer>& buffer, const sptr<HdifdParcelable>& fence) override;
/drivers/peripheral/codec/test/unittest/idl_omx/
Dcodec_hdi_omx_dec_test.cpp27 using OHOS::HDI::Base::NativeBuffer;
/drivers/peripheral/codec/test/unittest/hdi_image/
Dcodec_hdi_jpeg_test.cpp54 outBuffer.buffer = new NativeBuffer(bufferHandle); in InitOutBuffer()
/drivers/peripheral/codec/test/demo/jpeg/src/
Djpeg_decoder.cpp194 outBuffer_.buffer = new NativeBuffer(handle); in AllocBuffer()

12