Lines Matching refs:i32
21 pub const PROT_NONE: i32 = 0;
23 pub const PROT_READ: i32 = 1;
25 pub const PROT_WRITE: i32 = 2;
27 pub const PROT_EXEC: i32 = 4;
40 pub unsafe fn CreateAshmemStd(name: *const c_char, size: i32) -> SharedPtr<Ashmem>; in CreateAshmemStd()
43 pub fn AshmemSetProt(fd: i32, prot: i32) -> i32; in AshmemSetProt() argument
46 pub fn AshmemGetSize(fd: i32) -> i32; in AshmemGetSize() argument
66 pub fn MapAshmem(self: &Ashmem, mapType: i32) -> bool; in MapAshmem()
78 pub fn SetProtection(self: &Ashmem, protType: i32) -> bool; in SetProtection()
81 pub fn GetProtection(self: &Ashmem) -> i32; in GetProtection() argument
84 pub fn GetAshmemSize(self: &Ashmem) -> i32; in GetAshmemSize() argument
93 size: i32, in WriteToAshmem() argument
94 offset: i32, 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() argument
121 pub fn get_ashmem_fd(&self) -> i32 { in get_ashmem_fd() argument
126 pub fn get_ashmem_size(&self) -> i32 { in get_ashmem_size() argument
131 pub fn get_protection(&self) -> i32 { in get_protection() argument
136 pub fn set_protection(&self, prot_type: i32) -> bool { in set_protection()
141 pub fn map_ashmem(&self, prot_type: i32) -> bool { in map_ashmem()
168 pub unsafe fn write_to_ashmem(&self, data: *const c_char, size: i32, offset: i32) -> bool { in write_to_ashmem() argument
184 pub unsafe fn read_from_ashmem(&self, size: i32, offset: i32) -> *const c_char { in read_from_ashmem() argument
193 pub unsafe fn create_ashmem_instance(name: &str, size: i32) -> Option<Ashmem> { in create_ashmem_instance()