Lines Matching refs:Ashmem
40 pub unsafe fn CreateAshmemStd(name: *const c_char, size: i32) -> SharedPtr<Ashmem>; in CreateAshmemStd() argument
59 pub type Ashmem; typedef
63 pub fn CloseAshmem(self: &Ashmem) -> (); in CloseAshmem() argument
66 pub fn MapAshmem(self: &Ashmem, mapType: i32) -> bool; in MapAshmem() argument
69 pub fn MapReadAndWriteAshmem(self: &Ashmem) -> bool; in MapReadAndWriteAshmem()
72 pub fn MapReadOnlyAshmem(self: &Ashmem) -> bool; in MapReadOnlyAshmem()
75 pub fn UnmapAshmem(self: &Ashmem) -> (); in UnmapAshmem() argument
78 pub fn SetProtection(self: &Ashmem, protType: i32) -> bool; in SetProtection() argument
81 pub fn GetProtection(self: &Ashmem) -> i32; in GetProtection()
84 pub fn GetAshmemSize(self: &Ashmem) -> i32; in GetAshmemSize()
91 self: &Ashmem, in WriteToAshmem() argument
101 pub unsafe fn ReadFromAshmem(self: &Ashmem, size: i32, offset: i32) -> *const c_void; in ReadFromAshmem() argument
104 pub fn GetAshmemFd(self: &Ashmem) -> i32; in GetAshmemFd()
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() argument
117 Ashmem { c_ashmem } in new()
177 pub unsafe fn c_ashmem(&self) -> &SharedPtr<ffi::Ashmem> { in c_ashmem() argument
193 pub unsafe fn create_ashmem_instance(name: &str, size: i32) -> Option<Ashmem> { in create_ashmem_instance() argument
201 Some(Ashmem::new(c_ashmem_ptr)) in create_ashmem_instance()