Lines Matching refs:Ashmem

39 std::shared_ptr<Ashmem> CreateAshmemStd(const char *name, int32_t size)  in CreateAshmemStd()
43 return std::shared_ptr<Ashmem>{}; in CreateAshmemStd()
49 return std::shared_ptr<Ashmem>{}; in CreateAshmemStd()
52 return std::make_shared<Ashmem>(fd, size); in CreateAshmemStd()
148 Ashmem::Ashmem(int fd, int32_t size) : memoryFd_(fd), memorySize_(size), flag_(0), startAddr_(nullp… in Ashmem() function in OHOS::Ashmem
152 Ashmem::~Ashmem() in ~Ashmem()
158 sptr<Ashmem> Ashmem::CreateAshmem(const char *name, int32_t size) in CreateAshmem()
171 return new Ashmem(fd, size); in CreateAshmem()
174 bool Ashmem::SetProtection(int protectionType) const in SetProtection()
180 int Ashmem::GetProtection() const in GetProtection()
185 int32_t Ashmem::GetAshmemSize() const in GetAshmemSize()
191 void Ashmem::CloseAshmem() const in CloseAshmem()
193 void Ashmem::CloseAshmem() in CloseAshmem()
206 bool Ashmem::MapAshmem(int mapType) const in MapAshmem()
208 bool Ashmem::MapAshmem(int mapType) in MapAshmem()
224 bool Ashmem::MapReadAndWriteAshmem() const in MapReadAndWriteAshmem()
226 bool Ashmem::MapReadAndWriteAshmem() in MapReadAndWriteAshmem()
233 bool Ashmem::MapReadOnlyAshmem() const in MapReadOnlyAshmem()
235 bool Ashmem::MapReadOnlyAshmem() in MapReadOnlyAshmem()
242 void Ashmem::UnmapAshmem() const in UnmapAshmem()
244 void Ashmem::UnmapAshmem() in UnmapAshmem()
255 bool Ashmem::WriteToAshmem(const void *data, int32_t size, int32_t offset) const in WriteToAshmem()
257 bool Ashmem::WriteToAshmem(const void *data, int32_t size, int32_t offset) in WriteToAshmem()
280 const void *Ashmem::ReadFromAshmem(int32_t size, int32_t offset) const in ReadFromAshmem()
282 const void *Ashmem::ReadFromAshmem(int32_t size, int32_t offset) in ReadFromAshmem()
293 bool Ashmem::CheckValid(int32_t size, int32_t offset, int cmd) const in CheckValid()