Lines Matching refs:sys

28 use crate::sys;
43 pub struct SpIBinder(ptr::NonNull<sys::AIBinder>);
76 pub(crate) unsafe fn from_raw(ptr: *mut sys::AIBinder) -> Option<Self> { in from_raw()
90 pub unsafe fn as_raw(&self) -> *mut sys::AIBinder { in as_raw()
99 unsafe { sys::AIBinder_isRemote(self.as_native()) } in is_remote()
120 let class = sys::AIBinder_getClass(self.as_native_mut()); in get_class()
132 use super::{sys, SpIBinder};
141 pub unsafe fn new_spibinder(ptr: *mut sys::AIBinder) -> Option<SpIBinder> { in new_spibinder()
166 unsafe { sys::AIBinder_associateClass(self.as_native_mut(), class.into()) } in associate_class()
175 let less_than = unsafe { sys::AIBinder_lt(self.0.as_ptr(), other.0.as_ptr()) }; in cmp()
179 let greater_than = unsafe { sys::AIBinder_lt(other.0.as_ptr(), self.0.as_ptr()) }; in cmp()
210 sys::AIBinder_incStrong(self.0.as_ptr()); in clone()
223 sys::AIBinder_decStrong(self.as_native_mut()); in drop()
228 impl<T: AsNative<sys::AIBinder>> IBinderInternal for T {
240 sys::AIBinder_prepareTransaction(self.as_native() as *mut sys::AIBinder, &mut input) in prepare_transact()
275 sys::AIBinder_transact( in submit_transact()
276 self.as_native() as *mut sys::AIBinder, in submit_transact()
298 unsafe { sys::AIBinder_isAlive(self.as_native()) } in is_binder_alive()
307 unsafe { sys::AIBinder_setRequestingSid(self.as_native_mut(), enable) }; in set_requesting_sid()
324 sys::AIBinder_dump( in dump()
343 let status = unsafe { sys::AIBinder_getExtension(self.as_native_mut(), &mut out) }; in get_extension()
354 impl<T: AsNative<sys::AIBinder>> IBinder for T {
367 sys::AIBinder_linkToDeath( in link_to_death()
383 sys::AIBinder_unlinkToDeath( in unlink_to_death()
396 let status = unsafe { sys::AIBinder_ping(self.as_native_mut()) }; in ping_binder()
441 pub struct WpIBinder(ptr::NonNull<sys::AIBinder_Weak>);
460 fn new<B: AsNative<sys::AIBinder>>(binder: &mut B) -> WpIBinder { in new()
463 let ptr = unsafe { sys::AIBinder_Weak_new(binder.as_native_mut()) }; in new()
474 let ptr = sys::AIBinder_Weak_promote(self.0.as_ptr()); in promote()
488 let ptr = unsafe { sys::AIBinder_Weak_clone(self.0.as_ptr()) }; in clone()
498 let less_than = unsafe { sys::AIBinder_Weak_lt(self.0.as_ptr(), other.0.as_ptr()) }; in cmp()
502 let greater_than = unsafe { sys::AIBinder_Weak_lt(other.0.as_ptr(), self.0.as_ptr()) }; in cmp()
532 sys::AIBinder_Weak_delete(self.0.as_ptr()); in drop()
547 recipient: *mut sys::AIBinder_DeathRecipient,
580 let recipient = unsafe { sys::AIBinder_DeathRecipient_new(Some(Self::binder_died::<F>)) }; in new()
586 sys::AIBinder_DeathRecipient_setOnUnlinked( in new()
676 unsafe impl AsNative<sys::AIBinder_DeathRecipient> for DeathRecipient {
677 fn as_native(&self) -> *const sys::AIBinder_DeathRecipient { in as_native()
681 fn as_native_mut(&mut self) -> *mut sys::AIBinder_DeathRecipient { in as_native_mut()
693 sys::AIBinder_DeathRecipient_delete(self.recipient); in drop()
723 unsafe impl<T: Proxy> AsNative<sys::AIBinder> for T {
724 fn as_native(&self) -> *const sys::AIBinder { in as_native()
728 fn as_native_mut(&mut self) -> *mut sys::AIBinder { in as_native_mut()
735 unsafe impl AsNative<sys::AIBinder> for SpIBinder {
736 fn as_native(&self) -> *const sys::AIBinder { in as_native()
740 fn as_native_mut(&mut self) -> *mut sys::AIBinder { in as_native_mut()