Lines Matching refs:sys
22 use crate::sys;
52 ptr: NonNull<sys::AParcel>,
70 ptr: NonNull<sys::AParcel>,
79 let ptr = unsafe { sys::AParcel_create() }; in new()
99 pub unsafe fn from_raw(ptr: *mut sys::AParcel) -> Option<Parcel> { in from_raw()
104 pub(crate) fn into_raw(self) -> *mut sys::AParcel { in into_raw()
159 pub unsafe fn from_raw(ptr: *mut sys::AParcel) -> Option<BorrowedParcel<'a>> { in from_raw()
175 unsafe impl AsNative<sys::AParcel> for Parcel {
176 fn as_native(&self) -> *const sys::AParcel { in as_native()
180 fn as_native_mut(&mut self) -> *mut sys::AParcel { in as_native_mut()
187 unsafe impl<'a> AsNative<sys::AParcel> for BorrowedParcel<'a> {
188 fn as_native(&self) -> *const sys::AParcel { in as_native()
192 fn as_native_mut(&mut self) -> *mut sys::AParcel { in as_native_mut()
202 unsafe { sys::AParcel_markSensitive(self.as_native()) } in mark_sensitive()
280 unsafe { sys::AParcel_getDataPosition(self.as_native()) } in get_data_position()
287 unsafe { sys::AParcel_getDataSize(self.as_native()) } in get_data_size()
302 status_result(unsafe { sys::AParcel_setDataPosition(self.as_native(), pos) }) in set_data_position()
311 other: &impl AsNative<sys::AParcel>, in append_from()
319 sys::AParcel_appendFrom(other.as_native(), self.as_native_mut(), start, size) in append_from()
325 pub fn append_all_from(&mut self, other: &impl AsNative<sys::AParcel>) -> Result<()> { in append_all_from()
328 let size = unsafe { sys::AParcel_getDataSize(other.as_native()) }; in append_all_from()
427 other: &impl AsNative<sys::AParcel>, in append_from()
435 pub fn append_all_from(&mut self, other: &impl AsNative<sys::AParcel>) -> Result<()> { in append_all_from()
663 status_result(sys::AParcel_writeStrongBinder( in write_binder()
676 let status = unsafe { sys::AParcel_readStrongBinder(self.as_native(), &mut binder) }; in read_binder()
693 unsafe { sys::AParcel_delete(self.ptr.as_ptr()) } in drop()