Home
last modified time | relevance | path

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

12

/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_flowbuffer_adapter_wrapper.cpp27 void* ArkFlowbufferAdapterWrapper::CreateAshmem(size_t size, int mapType, int& fd) in CreateAshmem() argument
29 return ctocpp_->CreateAshmem(size, mapType, fd); in CreateAshmem()
32 void* ArkFlowbufferAdapterWrapper::CreateAshmemWithFd(const int fd, size_t size, int mapType) in CreateAshmemWithFd() argument
34 return ctocpp_->CreateAshmemWithFd(fd, size, mapType); in CreateAshmemWithFd()
H A Dark_flowbuffer_adapter_wrapper.h33 void* CreateAshmem(size_t size, int mapType, int& fd) override;
35 void* CreateAshmemWithFd(const int fd, size_t size, int mapType) override;
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_flowbuffer_adapter_impl.cpp29 void* ArkFlowbufferAdapterImpl::CreateAshmem(size_t size, int mapType, int& fd) in CreateAshmem() argument
31 return real_->CreateAshmem(size, mapType, fd); in CreateAshmem()
34 void* ArkFlowbufferAdapterImpl::CreateAshmemWithFd(const int fd, size_t size, int mapType) in CreateAshmemWithFd() argument
36 return real_->CreateAshmemWithFd(fd, size, mapType); in CreateAshmemWithFd()
H A Dark_flowbuffer_adapter_impl.h31 void* CreateAshmem(size_t size, int mapType, int& fd) override;
33 void* CreateAshmemWithFd(const int fd, size_t size, int mapType) override;
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/
H A Drs_ashmem_helper_test.cpp97 auto mapType = PROT_READ | PROT_WRITE; variable
98 auto res = AshmemAllocator::CreateAshmemAllocator(size, mapType);
101 res = AshmemAllocator::CreateAshmemAllocator(size, mapType);
114 auto mapType = PROT_READ | PROT_WRITE; variable
116 auto res = AshmemAllocator::CreateAshmemAllocatorWithFd(fd1, size1, mapType);
121 auto res02 = AshmemAllocator::CreateAshmemAllocatorWithFd(fd2, size2, mapType);
134 auto mapType = PROT_READ; variable
137 ashmemAllocator.MapAshmem(mapType);
138 ASSERT_FALSE(ashmemAllocator.MapAshmem(mapType));
/ohos5.0/base/web/webview/ohos_adapter/flowbuffer_adapter/src/
H A Dflowbuffer_adapter_impl.cpp66 void* FlowbufferAdapterImpl::CreateAshmem(size_t size, int mapType, int& fd) in CreateAshmem() argument
82 void *startAddr = ::mmap(nullptr, size, mapType, MAP_SHARED, fd, 0); in CreateAshmem()
94 void* FlowbufferAdapterImpl::CreateAshmemWithFd(const int fd, size_t size, int mapType) in CreateAshmemWithFd() argument
107 void *startAddr = ::mmap(nullptr, size, mapType, MAP_SHARED, fd, 0); in CreateAshmemWithFd()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/transaction/
H A Drs_ashmem_helper.h27 static std::unique_ptr<AshmemAllocator> CreateAshmemAllocator(size_t size, int mapType);
28 …tic std::unique_ptr<AshmemAllocator> CreateAshmemAllocatorWithFd(int fd, size_t size, int mapType);
29 bool MapAshmem(int mapType);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/
H A Drs_ashmem_helper.cpp34 std::unique_ptr<AshmemAllocator> AshmemAllocator::CreateAshmemAllocator(size_t size, int mapType) in CreateAshmemAllocator() argument
54 if (!allocator->MapAshmem(mapType)) { in CreateAshmemAllocator()
62 …ptr<AshmemAllocator> AshmemAllocator::CreateAshmemAllocatorWithFd(int fd, size_t size, int mapType) in CreateAshmemAllocatorWithFd() argument
76 if (!allocator->MapAshmem(mapType)) { in CreateAshmemAllocatorWithFd()
91 bool AshmemAllocator::MapAshmem(int mapType) in MapAshmem() argument
93 void *startAddr = ::mmap(nullptr, size_, mapType, MAP_SHARED, fd_, 0); in MapAshmem()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/darwin/
H A Drs_ashmem_helper.cpp20 std::unique_ptr<AshmemAllocator> AshmemAllocator::CreateAshmemAllocator(size_t size, int mapType) in CreateAshmemAllocator() argument
25 …ptr<AshmemAllocator> AshmemAllocator::CreateAshmemAllocatorWithFd(int fd, size_t size, int mapType) in CreateAshmemAllocatorWithFd() argument
39 bool AshmemAllocator::MapAshmem(int mapType) in MapAshmem() argument
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/windows/
H A Drs_ashmem_helper.cpp20 std::unique_ptr<AshmemAllocator> AshmemAllocator::CreateAshmemAllocator(size_t size, int mapType) in CreateAshmemAllocator() argument
25 …ptr<AshmemAllocator> AshmemAllocator::CreateAshmemAllocatorWithFd(int fd, size_t size, int mapType) in CreateAshmemAllocatorWithFd() argument
39 bool AshmemAllocator::MapAshmem(int mapType) in MapAshmem() argument
/ohos5.0/base/web/webview/ohos_interface/include/ohos_adapter/
H A Dflowbuffer_adapter.h49 virtual void* CreateAshmem(size_t size, int mapType, int& fd);
59 virtual void* CreateAshmemWithFd(const int fd, size_t size, int mapType);
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/
H A Dark_flowbuffer_adapter.h31 virtual void* CreateAshmem(size_t size, int mapType, int& fd) = 0;
34 virtual void* CreateAshmemWithFd(const int fd, size_t size, int mapType) = 0;
/ohos5.0/base/web/webview/ohos_adapter/flowbuffer_adapter/include/
H A Dflowbuffer_adapter_impl.h47 void* CreateAshmem(size_t size, int mapType, int& fd) override;
57 void* CreateAshmemWithFd(const int fd, size_t size, int mapType) override;
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dashmem.cpp206 bool Ashmem::MapAshmem(int mapType) const in MapAshmem()
208 bool Ashmem::MapAshmem(int mapType) in MapAshmem()
211 void *startAddr = ::mmap(nullptr, memorySize_, mapType, MAP_SHARED, memoryFd_, 0); in MapAshmem()
218 flag_ = mapType; in MapAshmem()
/ohos5.0/commonlibrary/c_utils/base/include/
H A Dashmem.h144 bool MapAshmem(int mapType) const;
168 bool MapAshmem(int mapType);
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/metadata/
H A Dmetadata_reader.cpp185 AutoPtr<ASTMapType> mapType = new ASTMapType(); in ReadMetaType() local
186 mapType->SetKeyType(ReadMetaType(keyMt)); in ReadMetaType()
187 mapType->SetValueType(ReadMetaType(valueMt)); in ReadMetaType()
188 astType = mapType.Get(); in ReadMetaType()
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/
H A Dc_utils_guide_rust_ashmem.md26 | bool | **map_ashmem**(self: &Ashmem, mapType: i32)<br>将内核中的ashmem内存区域映射至用户空间。 |
50 | bool | **MapAshmem**(self: &Ashmem, mapType: i32)<br>将内核中的ashmem内存区域映射至用户空间。 |
H A Dc-utils-guide-ashmem.md36 | bool | **MapAshmem**(int mapType)<br>将内核中的ashmem内存区域映射至用户空间。 |
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
H A Dashmem.h98 bool MapAshmem(int mapType);
/ohos5.0/foundation/communication/netmanager_base/bpf/bpf_reader/
H A Dbpf_reader.h30 NetsysBpfMap<Key, Value>(bpf_map_type mapType, uint32_t maxEntries, uint32_t mapFlags);
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi_common/source/
H A Dnapi_ashmem.cpp290 uint32_t mapType = 0; in MapAshmem() local
291 napi_get_value_uint32(env, argv[ARGV_INDEX_0], &mapType); in MapAshmem()
292 NAPI_ASSERT(env, mapType <= MMAP_PROT_MAX, "napiAshmem mapType error"); in MapAshmem()
296 bool result = napiAshmem->GetAshmem()->MapAshmem(mapType); in MapAshmem()
318 uint32_t mapType = 0; in MapTypedAshmem() local
319 napi_get_value_uint32(env, argv[ARGV_INDEX_0], &mapType); in MapTypedAshmem()
320 if (mapType > MMAP_PROT_MAX) { in MapTypedAshmem()
330 napiAshmem->GetAshmem()->MapAshmem(mapType); in MapTypedAshmem()
/ohos5.0/foundation/communication/netmanager_base/bpf/bpf_syscall_wrapper/
H A Dbpf_syscall_wrapper.h53 …static int CreateMap(bpf_map_type mapType, uint32_t keySize, uint32_t valueSize, uint32_t maxEntri…
/ohos5.0/commonlibrary/c_utils/base/src/rust/
H A Dashmem.rs66 pub fn MapAshmem(self: &Ashmem, mapType: i32) -> bool; in MapAshmem()
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-soft-bus.md14 | ohos.rpc | Ashmem | mapAshmem(mapType: number): boolean; | 新增 |
/ohos5.0/docs/en/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-soft-bus.md14 | ohos.rpc | Ashmem | mapAshmem(mapType: number): boolean; | Added|

12