Lines Matching refs:F
310 fn dump<F: AsRawFd>(&mut self, fp: &F, args: &[&str]) -> Result<()> { in dump() argument
570 pub fn new<F>(callback: F) -> DeathRecipient in new()
572 F: Fn() + Send + Sync + 'static, in new()
574 let callback: *const F = Arc::into_raw(Arc::new(callback)); in new() constant
580 let recipient = unsafe { sys::AIBinder_DeathRecipient_new(Some(Self::binder_died::<F>)) }; in new()
588 Some(Self::cookie_decr_refcount::<F>), in new()
595 cookie_incr_refcount: Self::cookie_incr_refcount::<F>, in new()
596 cookie_decr_refcount: Self::cookie_decr_refcount::<F>, in new()
633 unsafe extern "C" fn binder_died<F>(cookie: *mut c_void) in binder_died()
635 F: Fn() + Send + Sync + 'static, in binder_died()
638 let callback = unsafe { (cookie as *const F).as_ref().unwrap() }; in binder_died() constant
649 unsafe extern "C" fn cookie_decr_refcount<F>(cookie: *mut c_void) in cookie_decr_refcount()
651 F: Fn() + Send + Sync + 'static, in cookie_decr_refcount()
654 drop(unsafe { Arc::from_raw(cookie as *const F) }); in cookie_decr_refcount() constant
663 unsafe extern "C" fn cookie_incr_refcount<F>(cookie: *mut c_void) in cookie_incr_refcount()
665 F: Fn() + Send + Sync + 'static, in cookie_incr_refcount()
668 let arc = mem::ManuallyDrop::new(unsafe { Arc::from_raw(cookie as *const F) }); in cookie_incr_refcount() constant