Home
last modified time | relevance | path

Searched refs:Ashmem (Results 1 – 3 of 3) sorted by relevance

/utils/native/base/src/
Dashmem.cpp195 Ashmem::Ashmem(int fd, int size) : memoryFd_(fd), memorySize_(size), flag_(0), startAddr_(nullptr) in Ashmem() function in OHOS::Ashmem
199 Ashmem::~Ashmem() in ~Ashmem()
203 sptr<Ashmem> Ashmem::CreateAshmem(const char *name, int32_t size) in CreateAshmem()
216 return new Ashmem(fd, size); in CreateAshmem()
219 void Ashmem::CloseAshmem() in CloseAshmem()
230 bool Ashmem::MapAshmem(int mapType) in MapAshmem()
244 bool Ashmem::MapReadAndWriteAshmem() in MapReadAndWriteAshmem()
249 bool Ashmem::MapReadOnlyAshmem() in MapReadOnlyAshmem()
254 void Ashmem::UnmapAshmem() in UnmapAshmem()
263 bool Ashmem::SetProtection(int protectionType) in SetProtection()
[all …]
/utils/native/base/test/unittest/common/
Dutils_ashmem_test.cpp66 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
84 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
119 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
153 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
190 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
222 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), -1);
225 ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
241 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
257 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
279 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
[all …]
/utils/native/base/include/
Dashmem.h29 class Ashmem : public virtual RefBase {
31 static sptr<Ashmem> CreateAshmem(const char *name, int32_t size);
42 Ashmem(int fd, int32_t size);
43 ~Ashmem();