/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
H A D | native_buffer.cpp | 26 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 =() 115 sptr<NativeBuffer> NativeBuffer::Unmarshalling(Parcel &parcel) in Unmarshalling() 117 sptr<NativeBuffer> newParcelable = new NativeBuffer(); in Unmarshalling() 124 BufferHandle *NativeBuffer::Clone() in Clone() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/test/buffer_handle/ |
H A D | native_buffer_test.cpp | 64 sptr<NativeBuffer> srcBuffer = new NativeBuffer(nullptr); 69 sptr<NativeBuffer> destBuffer = data.ReadStrongParcelable<NativeBuffer>(); 84 sptr<NativeBuffer> srcBuffer = new NativeBuffer(srcHandle); 89 sptr<NativeBuffer> destBuffer = data.ReadStrongParcelable<NativeBuffer>(); 253 sptr<NativeBuffer> destBuffer = NativeBuffer::Unmarshalling(parcel); 267 sptr<NativeBuffer> destBuffer = NativeBuffer::Unmarshalling(parcel); 283 sptr<NativeBuffer> destBuffer = NativeBuffer::Unmarshalling(parcel); 299 sptr<NativeBuffer> destBuffer = NativeBuffer::Unmarshalling(parcel); 329 sptr<NativeBuffer> destBuffer = NativeBuffer::Unmarshalling(parcel); 363 sptr<NativeBuffer> destBuffer = NativeBuffer::Unmarshalling(parcel); [all …]
|
/ohos5.0/drivers/hdf_core/interfaces/inner_api/hdi/base/ |
H A D | native_buffer.h | 56 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);
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/display/ |
H A D | interface_i_metadata_v11.md | 20 | [RegisterBuffer](#registerbuffer) ([in] NativeBuffer handle) | IPC后的初始化NativeBuffer | 21 | [SetMetadata](#setmetadata) ([in] NativeBuffer handle, [in] unsigned int key, [in] unsigned char[… 22 | [GetMetadata](#getmetadata) ([in] NativeBuffer handle, [in] unsigned int key, [out] unsigned char… 23 | [ListMetadataKeys](#listmetadatakeys) ([in] NativeBuffer handle, [out] unsigned int[] keys) | 列出b… 24 | [EraseMetadataKey](#erasemetadatakey) ([in] NativeBuffer handle, [in] unsigned int key) | 按键值内存删除… 33 IMetadata::EraseMetadataKey ([in] NativeBuffer handle, [in] unsigned int key ) 60 IMetadata::GetMetadata ([in] NativeBuffer handle, [in] unsigned int key, [out] unsigned char[] valu… 88 IMetadata::ListMetadataKeys ([in] NativeBuffer handle, [out] unsigned int[] keys ) 115 IMetadata::RegisterBuffer ([in] NativeBuffer handle) 121 IPC后的初始化NativeBuffer [all …]
|
H A D | interface_i_mapper_v10.md | 20 | [FreeMem](#freemem) ([in] NativeBuffer handle) | 释放显示内存。 | 21 | [Mmap](#mmap) ([in] NativeBuffer handle) | 显示内存映射,将内存映射到对应的进程地址空间中。 | 22 | [Unmap](#unmap) ([in] NativeBuffer handle) | 内存反映射,将内存进行反映射。 | 23 | [FlushCache](#flushcache) ([in] NativeBuffer handle) | 刷新Cache,刷新Cache里的内容到内存并且使Cache里的内容无效。 | 24 | [InvalidateCache](#invalidatecache) ([in] NativeBuffer handle) | 使cache中的内容无效用以存储更新内存内容。 | 33 IMapper::FlushCache ([in] NativeBuffer handle) 57 IMapper::FreeMem ([in] NativeBuffer handle) 81 IMapper::InvalidateCache ([in] NativeBuffer handle) 105 IMapper::Mmap ([in] NativeBuffer handle) 129 IMapper::Unmap ([in] NativeBuffer handle)
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/ |
H A D | _o_h___native_buffer.md | 5 提供NativeBuffer功能,通过提供的接口,可以实现共享内存的申请、使用、属性查询、释放等操作。 7 **系统能力:** SystemCapability.Graphic.Graphic2D.NativeBuffer 116 **系统能力:** SystemCapability.Graphic.Graphic2D.NativeBuffer 131 **系统能力:** SystemCapability.Graphic.Graphic2D.NativeBuffer 146 **系统能力:** SystemCapability.Graphic.Graphic2D.NativeBuffer 161 **系统能力:** SystemCapability.Graphic.Graphic2D.NativeBuffer 176 **系统能力:** SystemCapability.Graphic.Graphic2D.NativeBuffer 191 **系统能力:** SystemCapability.Graphic.Graphic2D.NativeBuffer 206 **系统能力:** SystemCapability.Graphic.Graphic2D.NativeBuffer 221 **系统能力:** SystemCapability.Graphic.Graphic2D.NativeBuffer [all …]
|
/ohos5.0/drivers/interface/display/buffer/v1_1/hdi_impl/ |
H A D | display_buffer_hdi_impl.h | 52 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in RegisterBuffer() 62 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in SetMetadata() 72 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in GetMetadata() 82 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in ListMetadataKeys() 92 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in EraseMetadataKey()
|
/ohos5.0/drivers/interface/display/buffer/v1_0/hdi_impl/ |
H A D | display_buffer_hdi_impl.h | 127 sptr<NativeBuffer> hdiBuffer; in AllocMem() 144 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in FreeMem() 153 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in Mmap() 164 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in Unmap() 174 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in FlushCache() 184 sptr<NativeBuffer> hdiBuffer = new NativeBuffer(); in InvalidateCache()
|
/ohos5.0/drivers/interface/display/composer/cache_manager/ |
H A D | layer_cache.cpp | 53 bufferCaches_.reset(new CacheManager<uint32_t, NativeBuffer>()); in Init() 99 void LayerCache::NativeBufferInit(std::unique_ptr<NativeBuffer>& buffer) in NativeBufferInit() 113 void LayerCache::NativeBufferCleanUp(std::unique_ptr<NativeBuffer>& buffer) in NativeBufferCleanUp() 136 int32_t LayerCache::Mmap(std::unique_ptr<NativeBuffer>& buffer) in Mmap() 144 sptr<NativeBuffer> nativeBuffer(new NativeBuffer); in Mmap() 155 int32_t LayerCache::Unmap(std::unique_ptr<NativeBuffer>& buffer) in Unmap() 163 sptr<NativeBuffer> nativeBuffer(new NativeBuffer); in Unmap() 176 bufferCaches_->TravelCaches([this](const int32_t id, const NativeBuffer& buffer)->void { in Dump()
|
H A D | layer_cache.h | 41 static void NativeBufferInit(std::unique_ptr<NativeBuffer>& buffer); 42 static void NativeBufferCleanUp(std::unique_ptr<NativeBuffer>& buffer); 47 static int32_t Mmap(std::unique_ptr<NativeBuffer>& buffer); 48 static int32_t Unmap(std::unique_ptr<NativeBuffer>& buffer); 51 std::shared_ptr<CacheManager<uint32_t, NativeBuffer>> bufferCaches_;
|
H A D | buffer_cache_utils.h | 35 …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()
|
/ohos5.0/drivers/peripheral/display/buffer/hdi_service/include/ |
H A D | mapper_service.h | 37 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 D | metadata_service.h | 35 int32_t RegisterBuffer(const sptr<NativeBuffer>& handle) override; 37 …int32_t SetMetadata(const sptr<NativeBuffer>& handle, uint32_t key, const std::vector<uint8_t>& va… 39 …int32_t GetMetadata(const sptr<NativeBuffer>& handle, uint32_t key, std::vector<uint8_t>& value) o… 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;
|
/ohos5.0/docs/zh-cn/application-dev/graphics/ |
H A D | native-buffer-guidelines.md | 1 # NativeBuffer开发指导 (C/C++) 5 NativeBuffer是提供**共享内存**的模块。开发者可以通过`NativeBuffer`接口实现共享内存的申请、使用、属性查询、释放等操作。 6 针对NativeBuffer,常见的开发场景如下: 8 * 通过`NativeBuffer`提供的Native API接口申请`OH_NativeBuffer`实例,获取内存的属性信息,把对应的ION内存映射到进程空间。 16 …eference (OH_NativeBuffer \*buffer) | 将OH_NativeBuffer对象的引用计数减1,当引用计数为0的时候,该NativeBuffer对象会被析构掉。 | 26 以下步骤描述了如何使用`NativeBuffer`提供的Native API接口,创建`OH_NativeBuffer`实例获取内存的属性信息,并把对应的ION内存映射到进程空间。
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/display_buffer_v1_0/cpp_target/display/buffer/v1_0/ |
H A D | mapper_proxy.h.txt | 71 int32_t FreeMem(const sptr<NativeBuffer>& handle) override; 73 int32_t Mmap(const sptr<NativeBuffer>& handle) override; 75 int32_t Unmap(const sptr<NativeBuffer>& handle) override; 77 int32_t FlushCache(const sptr<NativeBuffer>& handle) override; 79 int32_t InvalidateCache(const sptr<NativeBuffer>& handle) override; 83 static int32_t FreeMem_(const sptr<NativeBuffer>& handle, const sptr<IRemoteObject> remote); 85 static int32_t Mmap_(const sptr<NativeBuffer>& handle, const sptr<IRemoteObject> remote); 87 static int32_t Unmap_(const sptr<NativeBuffer>& handle, const sptr<IRemoteObject> remote); 89 static int32_t FlushCache_(const sptr<NativeBuffer>& handle, const sptr<IRemoteObject> remote); 91 …static int32_t InvalidateCache_(const sptr<NativeBuffer>& handle, const sptr<IRemoteObject> remote…
|
H A D | mapper_service.h.txt | 31 int32_t FreeMem(const sptr<NativeBuffer>& handle) override; 33 int32_t Mmap(const sptr<NativeBuffer>& handle) override; 35 int32_t Unmap(const sptr<NativeBuffer>& handle) override; 37 int32_t FlushCache(const sptr<NativeBuffer>& handle) override; 39 int32_t InvalidateCache(const sptr<NativeBuffer>& handle) override;
|
H A D | mapper_service.cpp.txt | 31 int32_t MapperService::FreeMem(const sptr<NativeBuffer>& handle) 36 int32_t MapperService::Mmap(const sptr<NativeBuffer>& handle) 41 int32_t MapperService::Unmap(const sptr<NativeBuffer>& handle) 46 int32_t MapperService::FlushCache(const sptr<NativeBuffer>& handle) 51 int32_t MapperService::InvalidateCache(const sptr<NativeBuffer>& handle)
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/display_buffer_v1_1/cpp_target/display/buffer/v1_1/ |
H A D | metadata_proxy.h.txt | 71 int32_t RegisterBuffer(const sptr<NativeBuffer>& handle) override; 73 …int32_t SetMetadata(const sptr<NativeBuffer>& handle, uint32_t key, const std::vector<uint8_t>& va… 75 …int32_t GetMetadata(const sptr<NativeBuffer>& handle, uint32_t key, std::vector<uint8_t>& value) o… 77 … int32_t ListMetadataKeys(const sptr<NativeBuffer>& handle, std::vector<uint32_t>& keys) override; 79 int32_t EraseMetadataKey(const sptr<NativeBuffer>& handle, uint32_t key) override; 83 …static int32_t RegisterBuffer_(const sptr<NativeBuffer>& handle, const sptr<IRemoteObject> remote); 85 …static int32_t SetMetadata_(const sptr<NativeBuffer>& handle, uint32_t key, const std::vector<uint… 88 …static int32_t GetMetadata_(const sptr<NativeBuffer>& handle, uint32_t key, std::vector<uint8_t>& … 91 static int32_t ListMetadataKeys_(const sptr<NativeBuffer>& handle, std::vector<uint32_t>& keys, 94 …static int32_t EraseMetadataKey_(const sptr<NativeBuffer>& handle, uint32_t key, const sptr<IRemot…
|
H A D | metadata_service.h.txt | 31 int32_t RegisterBuffer(const sptr<NativeBuffer>& handle) override; 33 …int32_t SetMetadata(const sptr<NativeBuffer>& handle, uint32_t key, const std::vector<uint8_t>& va… 35 …int32_t GetMetadata(const sptr<NativeBuffer>& handle, uint32_t key, std::vector<uint8_t>& value) o… 37 … int32_t ListMetadataKeys(const sptr<NativeBuffer>& handle, std::vector<uint32_t>& keys) override; 39 int32_t EraseMetadataKey(const sptr<NativeBuffer>& handle, uint32_t key) override;
|
H A D | metadata_service.cpp.txt | 31 int32_t MetadataService::RegisterBuffer(const sptr<NativeBuffer>& handle) 36 int32_t MetadataService::SetMetadata(const sptr<NativeBuffer>& handle, uint32_t key, const std::vec… 41 int32_t MetadataService::GetMetadata(const sptr<NativeBuffer>& handle, uint32_t key, std::vector<ui… 46 int32_t MetadataService::ListMetadataKeys(const sptr<NativeBuffer>& handle, std::vector<uint32_t>& … 51 int32_t MetadataService::EraseMetadataKey(const sptr<NativeBuffer>& handle, uint32_t key)
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/display_buffer_v1_1/dump_ast_target/ |
H A D | dump.txt | 6 [in] NativeBuffer handle); 9 [in] NativeBuffer handle, 14 [in] NativeBuffer handle, 19 [in] NativeBuffer handle, 23 [in] NativeBuffer handle,
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/display_buffer_v1_0/dump_ast_target/ |
H A D | dump.txt | 8 [in] NativeBuffer handle); 11 [in] NativeBuffer handle); 14 [in] NativeBuffer handle); 17 [in] NativeBuffer handle); 20 [in] NativeBuffer handle); 32 [out] NativeBuffer handle);
|
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/ |
H A D | vulkan__ohos_8h.md | 25 | [VkNativeBufferUsageOHOS](_vk_native_buffer_usage_o_h_o_s.md) | 提供OpenHarmony NativeBuffer用途的说明。 | 26 | [VkNativeBufferPropertiesOHOS](_vk_native_buffer_properties_o_h_o_s.md) | 包含了NativeBuffer的属性。 | 27 …erFormatPropertiesOHOS](_vk_native_buffer_format_properties_o_h_o_s.md) | 包含了NativeBuffer的一些格式属性。 | 53 | [VkNativeBufferUsageOHOS](_vulkan.md#vknativebufferusageohos) | 提供OpenHarmony NativeBuffer用途的说明。 | 54 | [VkNativeBufferPropertiesOHOS](_vulkan.md#vknativebufferpropertiesohos) | 包含了NativeBuffer的属性。 | 55 …ferFormatPropertiesOHOS](_vulkan.md#vknativebufferformatpropertiesohos) | 包含了NativeBuffer的一些格式属性。 |
|
/ohos5.0/drivers/peripheral/display/buffer/hdi_service/src/ |
H A D | mapper_service.cpp | 113 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()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/ |
H A D | _o_h___native_buffer.md | 7 **System capability**: SystemCapability.Graphic.Graphic2D.NativeBuffer 116 **System capability**: SystemCapability.Graphic.Graphic2D.NativeBuffer 131 **System capability**: SystemCapability.Graphic.Graphic2D.NativeBuffer 146 **System capability**: SystemCapability.Graphic.Graphic2D.NativeBuffer 161 **System capability**: SystemCapability.Graphic.Graphic2D.NativeBuffer 176 **System capability**: SystemCapability.Graphic.Graphic2D.NativeBuffer 191 **System capability**: SystemCapability.Graphic.Graphic2D.NativeBuffer 206 **System capability**: SystemCapability.Graphic.Graphic2D.NativeBuffer 221 **System capability**: SystemCapability.Graphic.Graphic2D.NativeBuffer 236 **System capability**: SystemCapability.Graphic.Graphic2D.NativeBuffer [all …]
|