Lines Matching defs:Ashmem
40 pub unsafe fn CreateAshmemStd(name: *const c_char, size: i32) -> SharedPtr<Ashmem>; in CreateAshmemStd()
59 pub type Ashmem; typedef
63 pub fn CloseAshmem(self: &Ashmem) -> (); in CloseAshmem()
66 pub fn MapAshmem(self: &Ashmem, mapType: i32) -> bool; in MapAshmem()
75 pub fn UnmapAshmem(self: &Ashmem) -> (); in UnmapAshmem()
78 pub fn SetProtection(self: &Ashmem, protType: i32) -> bool; in SetProtection()
91 self: &Ashmem, in WriteToAshmem()
101 pub unsafe fn ReadFromAshmem(self: &Ashmem, size: i32, offset: i32) -> *const c_void; in ReadFromAshmem()
109 pub struct Ashmem { struct
110 c_ashmem: SharedPtr<ffi::Ashmem>, argument
114 impl Ashmem { implementation
116 pub fn new(c_ashmem: SharedPtr<ffi::Ashmem>) -> Ashmem { in new()
177 pub unsafe fn c_ashmem(&self) -> &SharedPtr<ffi::Ashmem> { in c_ashmem()
193 pub unsafe fn create_ashmem_instance(name: &str, size: i32) -> Option<Ashmem> { in create_ashmem_instance()