Loading libs/binder/rust/src/binder.rs +6 −0 Original line number Diff line number Diff line Loading @@ -581,5 +581,11 @@ macro_rules! declare_binder_interface { parcel.write(&this.map($crate::Interface::as_binder)) } } impl std::fmt::Debug for dyn $interface { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.pad(stringify!($interface)) } } }; } libs/binder/rust/src/parcel/file_descriptor.rs +1 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ use std::fs::File; use std::os::unix::io::{AsRawFd, FromRawFd}; /// Rust version of the Java class android.os.ParcelFileDescriptor #[derive(Debug)] pub struct ParcelFileDescriptor(File); impl ParcelFileDescriptor { Loading libs/binder/rust/src/proxy.rs +7 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ use crate::sys; use std::convert::TryInto; use std::ffi::{c_void, CString}; use std::fmt; use std::os::unix::io::AsRawFd; use std::ptr; Loading @@ -37,6 +38,12 @@ use std::ptr; /// is untyped; typed interface access is implemented by the AIDL compiler. pub struct SpIBinder(*mut sys::AIBinder); impl fmt::Debug for SpIBinder { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.pad("SpIBinder") } } /// # Safety /// /// An `SpIBinder` is a handle to a C++ IBinder, which is thread-safe Loading Loading
libs/binder/rust/src/binder.rs +6 −0 Original line number Diff line number Diff line Loading @@ -581,5 +581,11 @@ macro_rules! declare_binder_interface { parcel.write(&this.map($crate::Interface::as_binder)) } } impl std::fmt::Debug for dyn $interface { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.pad(stringify!($interface)) } } }; }
libs/binder/rust/src/parcel/file_descriptor.rs +1 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ use std::fs::File; use std::os::unix::io::{AsRawFd, FromRawFd}; /// Rust version of the Java class android.os.ParcelFileDescriptor #[derive(Debug)] pub struct ParcelFileDescriptor(File); impl ParcelFileDescriptor { Loading
libs/binder/rust/src/proxy.rs +7 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ use crate::sys; use std::convert::TryInto; use std::ffi::{c_void, CString}; use std::fmt; use std::os::unix::io::AsRawFd; use std::ptr; Loading @@ -37,6 +38,12 @@ use std::ptr; /// is untyped; typed interface access is implemented by the AIDL compiler. pub struct SpIBinder(*mut sys::AIBinder); impl fmt::Debug for SpIBinder { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.pad("SpIBinder") } } /// # Safety /// /// An `SpIBinder` is a handle to a C++ IBinder, which is thread-safe Loading