Home
last modified time | relevance | path

Searched refs:mapType (Results 1 - 11 of 11) sorted by relevance

/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 static std::unique_ptr<AshmemAllocator> CreateAshmemAllocatorWithFd(int fd, size_t size, int mapType);
29 bool MapAshmem(int mapType);
/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 std::unique_ptr<AshmemAllocator> AshmemAllocator::CreateAshmemAllocatorWithFd(int fd, size_t size, int mapType) in CreateAshmemAllocatorWithFd() argument
39 bool AshmemAllocator::MapAshmem(int mapType) in MapAshmem() argument
/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 std::unique_ptr<AshmemAllocator> AshmemAllocator::CreateAshmemAllocatorWithFd(int fd, size_t size, int mapType) in CreateAshmemAllocatorWithFd() argument
39 bool AshmemAllocator::MapAshmem(int mapType) in MapAshmem() argument
/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; in HWTEST_F() local
98 auto res = AshmemAllocator::CreateAshmemAllocator(size, mapType); in HWTEST_F()
101 res = AshmemAllocator::CreateAshmemAllocator(size, mapType); in HWTEST_F()
114 auto mapType = PROT_READ | PROT_WRITE; in HWTEST_F() local
116 auto res = AshmemAllocator::CreateAshmemAllocatorWithFd(fd1, size1, mapType); in HWTEST_F()
121 auto res02 = AshmemAllocator::CreateAshmemAllocatorWithFd(fd2, size2, mapType); in HWTEST_F()
134 auto mapType = PROT_READ; in HWTEST_F() local
137 ashmemAllocator.MapAshmem(mapType); in HWTEST_F()
138 ASSERT_FALSE(ashmemAllocator.MapAshmem(mapType)); in HWTEST_F()
/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 std::unique_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()
/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()
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
H A Dashmem.h95 * @param mapType Protection flag of the mapped region in user space.
98 bool MapAshmem(int mapType);
/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);
/foundation/communication/netmanager_base/bpf/bpf_syscall_wrapper/
H A Dbpf_syscall_wrapper.h46 * @param mapType map type
53 static int CreateMap(bpf_map_type mapType, uint32_t keySize, uint32_t valueSize, uint32_t maxEntries,
/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()
321 ZLOGE(LOG_LABEL, "napiAshmem mapType error"); in MapTypedAshmem()
330 napiAshmem->GetAshmem()->MapAshmem(mapType); in MapTypedAshmem()
[all...]
/foundation/ability/idl_tool/idl_tool_2/parser/
H A Dparser.cpp1168 AutoPtr<ASTMapType> mapType = new ASTMapType(); in ParseMapType() local
1169 mapType->SetKeyType(keyType); in ParseMapType()
1170 mapType->SetValueType(valueType); in ParseMapType()
1171 AutoPtr<ASTType> retType = ast_->FindType(mapType->ToString(), false); in ParseMapType()
1173 retType = mapType.Get(); in ParseMapType()

Completed in 8 milliseconds