Home
last modified time | relevance | path

Searched refs:NativeBuffer (Results 1 - 25 of 43) sorted by relevance

12

/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A 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 function in OHOS::HDI::Base::NativeBuffer
46 NativeBuffer::NativeBuffer(NativeBuffer &&other) noexcept : NativeBuffer() NativeBuffer() function
[all...]
/drivers/hdf_core/interfaces/inner_api/hdi/base/
H A Dnative_buffer.h32 * @brief Provides C++ interfaces for <b>NativeBuffer</b>.
34 * <b>NativeBuffer</b> is the wrapper of <b>BufferHandle</b>.
53 * @brief Defines the <b>NativeBuffer</b> class.
56 class NativeBuffer : public Parcelable { class
58 NativeBuffer();
59 virtual ~NativeBuffer();
60 explicit NativeBuffer(const BufferHandle *handle);
62 NativeBuffer(const NativeBuffer &other);
63 NativeBuffer(NativeBuffe
[all...]
/drivers/hdf_core/adapter/uhdf2/hdi/test/buffer_handle/
H A Dnative_buffer_test.cpp29 using OHOS::HDI::Base::NativeBuffer;
64 sptr<NativeBuffer> srcBuffer = new NativeBuffer(nullptr); in HWTEST_F()
69 sptr<NativeBuffer> destBuffer = data.ReadStrongParcelable<NativeBuffer>(); in HWTEST_F()
84 sptr<NativeBuffer> srcBuffer = new NativeBuffer(srcHandle); in HWTEST_F()
89 sptr<NativeBuffer> destBuffer = data.ReadStrongParcelable<NativeBuffer>(); in HWTEST_F()
103 NativeBuffer srcBuffe in HWTEST_F()
[all...]
/drivers/interface/display/composer/cache_manager/
H A Dlayer_cache.h42 static void NativeBufferInit(sptr<NativeBuffer>& buffer);
43 static void NativeBufferCleanUp(sptr<NativeBuffer>& buffer);
49 static int32_t Mmap(sptr<NativeBuffer>& buffer);
50 static int32_t Unmap(sptr<NativeBuffer>& buffer);
51 static int32_t FreeMem(sptr<NativeBuffer>& buffer);
52 static int32_t RegisterBuffer(sptr<NativeBuffer>& buffer);
54 std::shared_ptr<CacheManager<uint32_t, NativeBuffer>> bufferCaches_;
H A Dlayer_cache.cpp53 bufferCaches_.reset(new CacheManager<uint32_t, NativeBuffer>()); in Init()
99 void LayerCache::NativeBufferInit(sptr<NativeBuffer>& buffer) in NativeBufferInit()
111 void LayerCache::NativeBufferCleanUp(sptr<NativeBuffer>& buffer) in NativeBufferCleanUp()
141 int32_t LayerCache::Mmap(sptr<NativeBuffer>& buffer) in Mmap()
151 int32_t LayerCache::Unmap(sptr<NativeBuffer>& buffer) in Unmap()
161 int32_t LayerCache::FreeMem(sptr<NativeBuffer>& buffer) in FreeMem()
175 int32_t LayerCache::RegisterBuffer(sptr<NativeBuffer>& buffer) in RegisterBuffer()
195 bufferCaches_->TravelCaches([this](const int32_t id, const NativeBuffer& buffer)->void { in Dump()
H A Dbuffer_cache_utils.h35 static BufferHandle* 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()
H A Dcache_manager.h156 class CacheManager<IdType, Base::NativeBuffer> : public NoCopyable {
198 bool InsertCache(IdType id, Base::NativeBuffer* cache) in InsertCache()
204 cacheItem->second = OHOS::sptr<Base::NativeBuffer>(cache); in InsertCache()
210 caches_[id] = OHOS::sptr<Base::NativeBuffer>(cache); in InsertCache()
235 Base::NativeBuffer* SearchCache(IdType id) in SearchCache()
246 void TravelCaches(std::function<void (IdType id, const Base::NativeBuffer& cache)> func) in TravelCaches()
254 void SetCleanUpFunc(void (*func)(OHOS::sptr<Base::NativeBuffer>&)) in SetCleanUpFunc()
259 void SetInitFunc(void (*func)(OHOS::sptr<Base::NativeBuffer>&)) in SetInitFunc()
266 std::unordered_map<IdType, OHOS::sptr<Base::NativeBuffer>> caches_;
267 void (*cleanUpFunc_)(OHOS::sptr<Base::NativeBuffer>
[all...]
H A Ddevice_cache.cpp57 clientBufferCaches_.reset(new CacheManager<uint32_t, NativeBuffer>()); in Init()
64 outputBufferCaches_.reset(new CacheManager<uint32_t, NativeBuffer>()); in Init()
117 clientBufferCaches_.reset(new CacheManager<uint32_t, NativeBuffer>()); in ClearClientCache()
191 clientBufferCaches_->TravelCaches([this](int32_t id, const NativeBuffer& buffer)->void { in Dump()
195 outputBufferCaches_->TravelCaches([this](int32_t id, const NativeBuffer& buffer)->void { in Dump()
H A Ddevice_cache.h59 std::shared_ptr<CacheManager<uint32_t, NativeBuffer>> clientBufferCaches_;
60 std::shared_ptr<CacheManager<uint32_t, NativeBuffer>> outputBufferCaches_;
/drivers/interface/display/buffer/v1_1/hdi_impl/
H A Ddisplay_buffer_hdi_impl.h52 sptr<NativeBuffer> hdiBuffer = new NativeBuffer();
62 sptr<NativeBuffer> hdiBuffer = new NativeBuffer();
72 sptr<NativeBuffer> hdiBuffer = new NativeBuffer();
82 sptr<NativeBuffer> hdiBuffer = new NativeBuffer();
92 sptr<NativeBuffer> hdiBuffer = new NativeBuffer();
[all...]
/drivers/peripheral/display/buffer/hdi_service/include/
H A Dmapper_service.h37 int32_t FreeMem(const sptr<NativeBuffer>& handle) override;
38 int32_t Mmap(const sptr<NativeBuffer>& handle) override;
39 int32_t Unmap(const sptr<NativeBuffer>& handle) override;
40 int32_t FlushCache(const sptr<NativeBuffer>& handle) override;
41 int32_t InvalidateCache(const sptr<NativeBuffer>& handle) override;
42 int32_t GetImageLayout(const sptr<NativeBuffer>& handle, V1_2::ImageLayout& layout) override;
H A Dmetadata_service.h35 int32_t RegisterBuffer(const sptr<NativeBuffer>& handle) override;
37 int32_t SetMetadata(const sptr<NativeBuffer>& handle, uint32_t key, const std::vector<uint8_t>& value) override;
39 int32_t GetMetadata(const sptr<NativeBuffer>& handle, uint32_t key, std::vector<uint8_t>& value) override;
41 int32_t ListMetadataKeys(const sptr<NativeBuffer>& handle, std::vector<uint32_t>& keys) override;
43 int32_t EraseMetadataKey(const sptr<NativeBuffer>& handle, uint32_t key) override;
H A Dallocator_service.h33 int32_t AllocMem(const AllocInfo& info, sptr<NativeBuffer>& handle) override;
/drivers/interface/display/buffer/v1_0/hdi_impl/
H A Ddisplay_buffer_hdi_impl.h127 sptr<NativeBuffer> hdiBuffer;
144 sptr<NativeBuffer> hdiBuffer = new NativeBuffer();
153 sptr<NativeBuffer> hdiBuffer = new NativeBuffer();
164 sptr<NativeBuffer> hdiBuffer = new NativeBuffer();
174 sptr<NativeBuffer> hdiBuffer = new NativeBuffer();
184 sptr<NativeBuffer> hdiBuffe
[all...]
/drivers/peripheral/display/buffer/hdi_service/src/
H A Dmapper_service.cpp113 int32_t MapperService::FreeMem(const sptr<NativeBuffer>& handle) in FreeMem()
125 int32_t MapperService::Mmap(const sptr<NativeBuffer>& handle) in Mmap()
138 int32_t MapperService::Unmap(const sptr<NativeBuffer>& handle) in Unmap()
151 int32_t MapperService::FlushCache(const sptr<NativeBuffer>& handle) in FlushCache()
164 int32_t MapperService::InvalidateCache(const sptr<NativeBuffer>& handle) in InvalidateCache()
177 int32_t MapperService::GetImageLayout(const sptr<NativeBuffer>& handle, V1_2::ImageLayout& layout) in GetImageLayout()
H A Dmetadata_service.cpp114 int32_t MetadataService::RegisterBuffer(const sptr<NativeBuffer>& handle) in RegisterBuffer()
127 int32_t MetadataService::SetMetadata(const sptr<NativeBuffer>& handle, uint32_t key, const std::vector<uint8_t>& value) in SetMetadata()
140 int32_t MetadataService::GetMetadata(const sptr<NativeBuffer>& handle, uint32_t key, std::vector<uint8_t>& value) in GetMetadata()
152 int32_t MetadataService::ListMetadataKeys(const sptr<NativeBuffer>& handle, std::vector<uint32_t>& keys) in ListMetadataKeys()
165 int32_t MetadataService::EraseMetadataKey(const sptr<NativeBuffer>& handle, uint32_t key) in EraseMetadataKey()
H A Dallocator_service.cpp135 int32_t AllocatorService::AllocMem(const AllocInfo& info, sptr<NativeBuffer>& handle) in AllocMem()
156 handle = new NativeBuffer(); in AllocMem()
158 HDF_LOGE("%{public}s: new NativeBuffer failed", __func__); in AllocMem()
/drivers/peripheral/distributed_camera/hdi_service/test/fuzztest/dcameraacquirebuffer_fuzzer/
H A Ddcameraacquirebuffer_fuzzer.cpp41 buffer.bufferHandle_ = sptr<NativeBuffer>(new NativeBuffer()); in DcameraAcquireBufferFuzzTest()
/drivers/peripheral/distributed_camera/hdi_service/test/fuzztest/dcamerashutterbuffer_fuzzer/
H A Ddcamerashutterbuffer_fuzzer.cpp41 buffer.bufferHandle_ = sptr<NativeBuffer>(new NativeBuffer()); in DcameraShutterBufferFuzzTest()
/drivers/interface/camera/sequenceable/buffer_handle/
H A Dbuffer_handle_sequenceable.cpp33 nativeBuffer_ = new (std::nothrow) NativeBuffer(); in BufferHandleWrap()
40 sptr<NativeBuffer> nativeBuffer_;
87 sequenceObj->bufferHandleWrap_->nativeBuffer_ = NativeBuffer::Unmarshalling(parcel); in Unmarshalling()
/drivers/interface/display/buffer/v1_2/hdi_impl/
H A Ddisplay_buffer_hdi_impl.h55 sptr<NativeBuffer> hdiBuffer = new NativeBuffer();
/drivers/peripheral/codec/hal/idl_service/include/
H A Dcodec_handle_buffer.h39 sptr<HDI::Base::NativeBuffer> buffer_;
H A Dcodec_dyna_buffer.h39 sptr<HDI::Base::NativeBuffer> buffer_;
/drivers/peripheral/codec/test/fuzztest/image_fuzzer/common/src/
H A Dencode_buffer_helper.cpp71 sptr<NativeBuffer> EncodeBufferHelper::CreateImgBuffer(uint8_t* data, size_t &size) in CreateImgBuffer()
107 sptr<NativeBuffer> imgBuffer = new NativeBuffer(); in CreateImgBuffer()
/drivers/peripheral/codec/test/fuzztest/image_fuzzer/common/include/
H A Dencode_buffer_helper.h36 OHOS::sptr<OHOS::HDI::Base::NativeBuffer> CreateImgBuffer(uint8_t* data, size_t &size);

Completed in 8 milliseconds

12