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