Lines Matching defs:c_ashmem
110 c_ashmem: SharedPtr<ffi::Ashmem>,
116 pub fn new(c_ashmem: SharedPtr<ffi::Ashmem>) -> Ashmem {
117 Ashmem { c_ashmem }
122 self.c_ashmem.GetAshmemFd()
127 self.c_ashmem.GetAshmemSize()
132 self.c_ashmem.GetProtection()
137 self.c_ashmem.SetProtection(prot_type)
142 self.c_ashmem.MapAshmem(prot_type)
147 self.c_ashmem.MapReadAndWriteAshmem()
152 self.c_ashmem.MapReadOnlyAshmem()
157 self.c_ashmem.UnmapAshmem()
162 self.c_ashmem.CloseAshmem()
170 self.c_ashmem.WriteToAshmem(c_void_ptr, size, offset)
177 pub unsafe fn c_ashmem(&self) -> &SharedPtr<ffi::Ashmem> {
178 &self.c_ashmem
185 let c_void_ptr = self.c_ashmem.ReadFromAshmem(size, offset);