diff options
Diffstat (limited to 'tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests')
36 files changed, 2610 insertions, 2085 deletions
diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ArrayOfInterfaces.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ArrayOfInterfaces.rs index 42b05dc7..93ad5907 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ArrayOfInterfaces.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ArrayOfInterfaces.rs @@ -1,15 +1,15 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug)] -pub struct ArrayOfInterfaces { +pub struct r#ArrayOfInterfaces { } -impl Default for ArrayOfInterfaces { +impl Default for r#ArrayOfInterfaces { fn default() -> Self { Self { } } } -impl binder::Parcelable for ArrayOfInterfaces { +impl binder::Parcelable for r#ArrayOfInterfaces { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { Ok(()) @@ -21,12 +21,12 @@ impl binder::Parcelable for ArrayOfInterfaces { }) } } -binder::impl_serialize_for_parcelable!(ArrayOfInterfaces); -binder::impl_deserialize_for_parcelable!(ArrayOfInterfaces); -impl binder::binder_impl::ParcelableMetadata for ArrayOfInterfaces { +binder::impl_serialize_for_parcelable!(r#ArrayOfInterfaces); +binder::impl_deserialize_for_parcelable!(r#ArrayOfInterfaces); +impl binder::binder_impl::ParcelableMetadata for r#ArrayOfInterfaces { fn get_descriptor() -> &'static str { "android.aidl.tests.ArrayOfInterfaces" } } -pub mod IEmptyInterface { +pub mod r#IEmptyInterface { #![allow(non_upper_case_globals)] #![allow(non_snake_case)] #[allow(unused_imports)] use binder::binder_impl::IBinderInternal; @@ -103,7 +103,7 @@ pub mod IEmptyInterface { } } } -pub mod IMyInterface { +pub mod r#IMyInterface { #![allow(non_upper_case_globals)] #![allow(non_snake_case)] #[allow(unused_imports)] use binder::binder_impl::IBinderInternal; @@ -118,7 +118,7 @@ pub mod IMyInterface { } pub trait IMyInterface: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ArrayOfInterfaces.IMyInterface" } - fn methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>>; + fn r#methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>>; fn getDefaultImpl() -> IMyInterfaceDefaultRef where Self: Sized { DEFAULT_IMPL.lock().unwrap().clone() } @@ -128,12 +128,12 @@ pub mod IMyInterface { } pub trait IMyInterfaceAsync<P>: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ArrayOfInterfaces.IMyInterface" } - fn methodWithInterfaces<'a>(&'a self, _arg_iface: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &'a [binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &'a mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &'a mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>>>; + fn r#methodWithInterfaces<'a>(&'a self, _arg_iface: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &'a [binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &'a mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &'a mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>>>; } #[::async_trait::async_trait] pub trait IMyInterfaceAsyncServer: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ArrayOfInterfaces.IMyInterface" } - async fn methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>>; + async fn r#methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>>; } impl BnMyInterface { /// Create a new async binder service. @@ -155,8 +155,8 @@ pub mod IMyInterface { T: IMyInterfaceAsyncServer + Send + Sync + 'static, R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, { - fn methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>> { - self._rt.block_on(self._inner.methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_array_in, _arg_iface_array_out, _arg_iface_array_inout, _arg_nullable_iface_array_in, _arg_nullable_iface_array_out, _arg_nullable_iface_array_inout)) + fn r#methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>> { + self._rt.block_on(self._inner.r#methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_array_in, _arg_iface_array_out, _arg_iface_array_inout, _arg_nullable_iface_array_in, _arg_nullable_iface_array_out, _arg_nullable_iface_array_inout)) } } let wrapped = Wrapper { _inner: inner, _rt: rt }; @@ -164,12 +164,12 @@ pub mod IMyInterface { } } pub trait IMyInterfaceDefault: Send + Sync { - fn methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>> { + fn r#methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } } pub mod transactions { - pub const methodWithInterfaces: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; + pub const r#methodWithInterfaces: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; } pub type IMyInterfaceDefaultRef = Option<std::sync::Arc<dyn IMyInterfaceDefault>>; use lazy_static::lazy_static; @@ -192,7 +192,7 @@ pub mod IMyInterface { fn read_response_methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as IMyInterface>::getDefaultImpl() { - return _aidl_default_impl.methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_array_in, _arg_iface_array_out, _arg_iface_array_inout, _arg_nullable_iface_array_in, _arg_nullable_iface_array_out, _arg_nullable_iface_array_inout); + return _aidl_default_impl.r#methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_array_in, _arg_iface_array_out, _arg_iface_array_inout, _arg_nullable_iface_array_in, _arg_nullable_iface_array_out, _arg_nullable_iface_array_inout); } } let _aidl_reply = _aidl_reply?; @@ -207,21 +207,21 @@ pub mod IMyInterface { } } impl IMyInterface for BpMyInterface { - fn methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>> { + fn r#methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>> { let _aidl_data = self.build_parcel_methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_array_in, _arg_iface_array_out, _arg_iface_array_inout, _arg_nullable_iface_array_in, _arg_nullable_iface_array_out, _arg_nullable_iface_array_inout)?; - let _aidl_reply = self.binder.submit_transact(transactions::methodWithInterfaces, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#methodWithInterfaces, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_array_in, _arg_iface_array_out, _arg_iface_array_inout, _arg_nullable_iface_array_in, _arg_nullable_iface_array_out, _arg_nullable_iface_array_inout, _aidl_reply) } } impl<P: binder::BinderAsyncPool> IMyInterfaceAsync<P> for BpMyInterface { - fn methodWithInterfaces<'a>(&'a self, _arg_iface: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &'a [binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &'a mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &'a mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>>> { + fn r#methodWithInterfaces<'a>(&'a self, _arg_iface: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &'a [binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &'a mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &'a mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>>> { let _aidl_data = match self.build_parcel_methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_array_in, _arg_iface_array_out, _arg_iface_array_inout, _arg_nullable_iface_array_in, _arg_nullable_iface_array_out, _arg_nullable_iface_array_inout) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::methodWithInterfaces, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#methodWithInterfaces, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_array_in, _arg_iface_array_out, _arg_iface_array_inout, _arg_nullable_iface_array_in, _arg_nullable_iface_array_out, _arg_nullable_iface_array_inout, _aidl_reply) } @@ -229,11 +229,11 @@ pub mod IMyInterface { } } impl IMyInterface for binder::binder_impl::Binder<BnMyInterface> { - fn methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>> { self.0.methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_array_in, _arg_iface_array_out, _arg_iface_array_inout, _arg_nullable_iface_array_in, _arg_nullable_iface_array_out, _arg_nullable_iface_array_inout) } + fn r#methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_iface_array_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>], _arg_iface_array_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>, _arg_iface_array_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_array_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_array_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_array_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>> { self.0.r#methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_array_in, _arg_iface_array_out, _arg_iface_array_inout, _arg_nullable_iface_array_in, _arg_nullable_iface_array_out, _arg_nullable_iface_array_inout) } } fn on_transact(_aidl_service: &dyn IMyInterface, _aidl_code: binder::binder_impl::TransactionCode, _aidl_data: &binder::binder_impl::BorrowedParcel<'_>, _aidl_reply: &mut binder::binder_impl::BorrowedParcel<'_>) -> std::result::Result<(), binder::StatusCode> { match _aidl_code { - transactions::methodWithInterfaces => { + transactions::r#methodWithInterfaces => { let _arg_iface: binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface> = _aidl_data.read()?; let _arg_nullable_iface: Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>> = _aidl_data.read()?; let _arg_iface_array_in: Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>> = _aidl_data.read()?; @@ -244,7 +244,7 @@ pub mod IMyInterface { let mut _arg_nullable_iface_array_out: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>> = Default::default(); _aidl_data.resize_nullable_out_vec(&mut _arg_nullable_iface_array_out)?; let mut _arg_nullable_iface_array_inout: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.methodWithInterfaces(&_arg_iface, _arg_nullable_iface.as_ref(), &_arg_iface_array_in, &mut _arg_iface_array_out, &mut _arg_iface_array_inout, _arg_nullable_iface_array_in.as_deref(), &mut _arg_nullable_iface_array_out, &mut _arg_nullable_iface_array_inout); + let _aidl_return = _aidl_service.r#methodWithInterfaces(&_arg_iface, _arg_nullable_iface.as_ref(), &_arg_iface_array_in, &mut _arg_iface_array_out, &mut _arg_iface_array_inout, _arg_nullable_iface_array_in.as_deref(), &mut _arg_nullable_iface_array_out, &mut _arg_nullable_iface_array_inout); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -262,73 +262,73 @@ pub mod IMyInterface { } } } -pub mod MyParcelable { +pub mod r#MyParcelable { #[derive(Debug)] - pub struct MyParcelable { - pub iface: Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, - pub nullable_iface: Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, - pub iface_array: Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, - pub nullable_iface_array: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, + pub struct r#MyParcelable { + pub r#iface: Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, + pub r#nullable_iface: Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, + pub r#iface_array: Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>, + pub r#nullable_iface_array: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>, } - impl Default for MyParcelable { + impl Default for r#MyParcelable { fn default() -> Self { Self { - iface: Default::default(), - nullable_iface: Default::default(), - iface_array: Default::default(), - nullable_iface_array: Default::default(), + r#iface: Default::default(), + r#nullable_iface: Default::default(), + r#iface_array: Default::default(), + r#nullable_iface_array: Default::default(), } } } - impl binder::Parcelable for MyParcelable { + impl binder::Parcelable for r#MyParcelable { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - let __field_ref = self.iface.as_ref().ok_or(binder::StatusCode::UNEXPECTED_NULL)?; + let __field_ref = self.r#iface.as_ref().ok_or(binder::StatusCode::UNEXPECTED_NULL)?; subparcel.write(__field_ref)?; - subparcel.write(&self.nullable_iface)?; - subparcel.write(&self.iface_array)?; - subparcel.write(&self.nullable_iface_array)?; + subparcel.write(&self.r#nullable_iface)?; + subparcel.write(&self.r#iface_array)?; + subparcel.write(&self.r#nullable_iface_array)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.iface = Some(subparcel.read()?); + self.r#iface = Some(subparcel.read()?); } if subparcel.has_more_data() { - self.nullable_iface = subparcel.read()?; + self.r#nullable_iface = subparcel.read()?; } if subparcel.has_more_data() { - self.iface_array = subparcel.read()?; + self.r#iface_array = subparcel.read()?; } if subparcel.has_more_data() { - self.nullable_iface_array = subparcel.read()?; + self.r#nullable_iface_array = subparcel.read()?; } Ok(()) }) } } - binder::impl_serialize_for_parcelable!(MyParcelable); - binder::impl_deserialize_for_parcelable!(MyParcelable); - impl binder::binder_impl::ParcelableMetadata for MyParcelable { + binder::impl_serialize_for_parcelable!(r#MyParcelable); + binder::impl_deserialize_for_parcelable!(r#MyParcelable); + impl binder::binder_impl::ParcelableMetadata for r#MyParcelable { fn get_descriptor() -> &'static str { "android.aidl.tests.ArrayOfInterfaces.MyParcelable" } } } -pub mod MyUnion { +pub mod r#MyUnion { #[derive(Debug)] - pub enum MyUnion { + pub enum r#MyUnion { Iface(Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>), Nullable_iface(Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>), Iface_array(Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>), Nullable_iface_array(Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface>>>>), } - impl Default for MyUnion { + impl Default for r#MyUnion { fn default() -> Self { Self::Iface(Default::default()) } } - impl binder::Parcelable for MyUnion { + impl binder::Parcelable for r#MyUnion { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { match self { Self::Iface(v) => { @@ -379,29 +379,29 @@ pub mod MyUnion { } } } - binder::impl_serialize_for_parcelable!(MyUnion); - binder::impl_deserialize_for_parcelable!(MyUnion); - impl binder::binder_impl::ParcelableMetadata for MyUnion { + binder::impl_serialize_for_parcelable!(r#MyUnion); + binder::impl_deserialize_for_parcelable!(r#MyUnion); + impl binder::binder_impl::ParcelableMetadata for r#MyUnion { fn get_descriptor() -> &'static str { "android.aidl.tests.ArrayOfInterfaces.MyUnion" } } - pub mod Tag { + pub mod r#Tag { #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - Tag : [i32; 4] { - iface = 0, - nullable_iface = 1, - iface_array = 2, - nullable_iface_array = 3, + r#Tag : [i32; 4] { + r#iface = 0, + r#nullable_iface = 1, + r#iface_array = 2, + r#nullable_iface_array = 3, } } } } pub(crate) mod mangled { - pub use super::ArrayOfInterfaces as _7_android_4_aidl_5_tests_17_ArrayOfInterfaces; - pub use super::IEmptyInterface::IEmptyInterface as _7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface; - pub use super::IMyInterface::IMyInterface as _7_android_4_aidl_5_tests_17_ArrayOfInterfaces_12_IMyInterface; - pub use super::MyParcelable::MyParcelable as _7_android_4_aidl_5_tests_17_ArrayOfInterfaces_12_MyParcelable; - pub use super::MyUnion::MyUnion as _7_android_4_aidl_5_tests_17_ArrayOfInterfaces_7_MyUnion; - pub use super::MyUnion::Tag::Tag as _7_android_4_aidl_5_tests_17_ArrayOfInterfaces_7_MyUnion_3_Tag; + pub use super::r#ArrayOfInterfaces as _7_android_4_aidl_5_tests_17_ArrayOfInterfaces; + pub use super::r#IEmptyInterface::r#IEmptyInterface as _7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IEmptyInterface; + pub use super::r#IMyInterface::r#IMyInterface as _7_android_4_aidl_5_tests_17_ArrayOfInterfaces_12_IMyInterface; + pub use super::r#MyParcelable::r#MyParcelable as _7_android_4_aidl_5_tests_17_ArrayOfInterfaces_12_MyParcelable; + pub use super::r#MyUnion::r#MyUnion as _7_android_4_aidl_5_tests_17_ArrayOfInterfaces_7_MyUnion; + pub use super::r#MyUnion::r#Tag::r#Tag as _7_android_4_aidl_5_tests_17_ArrayOfInterfaces_7_MyUnion_3_Tag; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/BackendType.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/BackendType.rs index 7f4be564..30160f75 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/BackendType.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/BackendType.rs @@ -3,13 +3,13 @@ #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - BackendType : [i8; 4] { - CPP = 0, - JAVA = 1, - NDK = 2, - RUST = 3, + r#BackendType : [i8; 4] { + r#CPP = 0, + r#JAVA = 1, + r#NDK = 2, + r#RUST = 3, } } pub(crate) mod mangled { - pub use super::BackendType as _7_android_4_aidl_5_tests_11_BackendType; + pub use super::r#BackendType as _7_android_4_aidl_5_tests_11_BackendType; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ByteEnum.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ByteEnum.rs index 57c61eed..f7926cbe 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ByteEnum.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ByteEnum.rs @@ -3,12 +3,12 @@ #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - ByteEnum : [i8; 3] { - FOO = 1, - BAR = 2, - BAZ = 3, + r#ByteEnum : [i8; 3] { + r#FOO = 1, + r#BAR = 2, + r#BAZ = 3, } } pub(crate) mod mangled { - pub use super::ByteEnum as _7_android_4_aidl_5_tests_8_ByteEnum; + pub use super::r#ByteEnum as _7_android_4_aidl_5_tests_8_ByteEnum; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/CircularParcelable.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/CircularParcelable.rs new file mode 100644 index 00000000..89bcb37a --- /dev/null +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/CircularParcelable.rs @@ -0,0 +1,37 @@ +#![forbid(unsafe_code)] +#![rustfmt::skip] +#[derive(Debug)] +pub struct r#CircularParcelable { + pub r#testService: Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_12_ITestService>>, +} +impl Default for r#CircularParcelable { + fn default() -> Self { + Self { + r#testService: Default::default(), + } + } +} +impl binder::Parcelable for r#CircularParcelable { + fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { + parcel.sized_write(|subparcel| { + subparcel.write(&self.r#testService)?; + Ok(()) + }) + } + fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { + parcel.sized_read(|subparcel| { + if subparcel.has_more_data() { + self.r#testService = subparcel.read()?; + } + Ok(()) + }) + } +} +binder::impl_serialize_for_parcelable!(r#CircularParcelable); +binder::impl_deserialize_for_parcelable!(r#CircularParcelable); +impl binder::binder_impl::ParcelableMetadata for r#CircularParcelable { + fn get_descriptor() -> &'static str { "android.aidl.tests.CircularParcelable" } +} +pub(crate) mod mangled { + pub use super::r#CircularParcelable as _7_android_4_aidl_5_tests_18_CircularParcelable; +} diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/CircularParcelable.rs.d b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/CircularParcelable.rs.d new file mode 100644 index 00000000..f0318082 --- /dev/null +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/CircularParcelable.rs.d @@ -0,0 +1,16 @@ +out/soong/.intermediates/system/tools/aidl/aidl-test-interface-rust-source/gen/android/aidl/tests/CircularParcelable.rs : \ + system/tools/aidl/tests/android/aidl/tests/CircularParcelable.aidl \ + system/tools/aidl/tests/android/aidl/tests/ITestService.aidl \ + system/tools/aidl/tests/android/aidl/tests/ByteEnum.aidl \ + system/tools/aidl/tests/android/aidl/tests/IntEnum.aidl \ + system/tools/aidl/tests/android/aidl/tests/LongEnum.aidl \ + system/tools/aidl/tests/android/aidl/tests/INamedCallback.aidl \ + system/tools/aidl/tests/android/aidl/tests/StructuredParcelable.aidl \ + system/tools/aidl/tests/android/aidl/tests/extension/ExtendableParcelable.aidl \ + system/tools/aidl/tests/android/aidl/tests/RecursiveList.aidl \ + system/tools/aidl/tests/android/aidl/tests/IOldName.aidl \ + system/tools/aidl/tests/android/aidl/tests/INewName.aidl \ + system/tools/aidl/tests/android/aidl/tests/Union.aidl \ + system/tools/aidl/tests/android/aidl/tests/BackendType.aidl \ + system/tools/aidl/tests/android/aidl/tests/ICircular.aidl \ + system/tools/aidl/tests/android/aidl/tests/ConstantExpressionEnum.aidl diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ConstantExpressionEnum.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ConstantExpressionEnum.rs index 32a19426..eac40f11 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ConstantExpressionEnum.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ConstantExpressionEnum.rs @@ -3,19 +3,19 @@ #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - ConstantExpressionEnum : [i32; 10] { - decInt32_1 = 1, - decInt32_2 = 1, - decInt64_1 = 1, - decInt64_2 = 1, - decInt64_3 = 1, - decInt64_4 = 1, - hexInt32_1 = 1, - hexInt32_2 = 1, - hexInt32_3 = 1, - hexInt64_1 = 1, + r#ConstantExpressionEnum : [i32; 10] { + r#decInt32_1 = 1, + r#decInt32_2 = 1, + r#decInt64_1 = 1, + r#decInt64_2 = 1, + r#decInt64_3 = 1, + r#decInt64_4 = 1, + r#hexInt32_1 = 1, + r#hexInt32_2 = 1, + r#hexInt32_3 = 1, + r#hexInt64_1 = 1, } } pub(crate) mod mangled { - pub use super::ConstantExpressionEnum as _7_android_4_aidl_5_tests_22_ConstantExpressionEnum; + pub use super::r#ConstantExpressionEnum as _7_android_4_aidl_5_tests_22_ConstantExpressionEnum; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/DeprecatedEnum.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/DeprecatedEnum.rs index 5d3b054f..e3e4c232 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/DeprecatedEnum.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/DeprecatedEnum.rs @@ -4,12 +4,12 @@ use binder::declare_binder_enum; declare_binder_enum! { #[deprecated = "test"] - DeprecatedEnum : [i32; 3] { - A = 0, - B = 1, - C = 2, + r#DeprecatedEnum : [i32; 3] { + r#A = 0, + r#B = 1, + r#C = 2, } } pub(crate) mod mangled { - pub use super::DeprecatedEnum as _7_android_4_aidl_5_tests_14_DeprecatedEnum; + pub use super::r#DeprecatedEnum as _7_android_4_aidl_5_tests_14_DeprecatedEnum; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/DeprecatedParcelable.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/DeprecatedParcelable.rs index a13deb67..621f5f6b 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/DeprecatedParcelable.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/DeprecatedParcelable.rs @@ -2,15 +2,15 @@ #![rustfmt::skip] #[derive(Debug)] #[deprecated = "test"] -pub struct DeprecatedParcelable { +pub struct r#DeprecatedParcelable { } -impl Default for DeprecatedParcelable { +impl Default for r#DeprecatedParcelable { fn default() -> Self { Self { } } } -impl binder::Parcelable for DeprecatedParcelable { +impl binder::Parcelable for r#DeprecatedParcelable { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { Ok(()) @@ -22,11 +22,11 @@ impl binder::Parcelable for DeprecatedParcelable { }) } } -binder::impl_serialize_for_parcelable!(DeprecatedParcelable); -binder::impl_deserialize_for_parcelable!(DeprecatedParcelable); -impl binder::binder_impl::ParcelableMetadata for DeprecatedParcelable { +binder::impl_serialize_for_parcelable!(r#DeprecatedParcelable); +binder::impl_deserialize_for_parcelable!(r#DeprecatedParcelable); +impl binder::binder_impl::ParcelableMetadata for r#DeprecatedParcelable { fn get_descriptor() -> &'static str { "android.aidl.tests.DeprecatedParcelable" } } pub(crate) mod mangled { - pub use super::DeprecatedParcelable as _7_android_4_aidl_5_tests_20_DeprecatedParcelable; + pub use super::r#DeprecatedParcelable as _7_android_4_aidl_5_tests_20_DeprecatedParcelable; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/FixedSize.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/FixedSize.rs index 2ea4430b..cd73b70d 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/FixedSize.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/FixedSize.rs @@ -1,15 +1,15 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug)] -pub struct FixedSize { +pub struct r#FixedSize { } -impl Default for FixedSize { +impl Default for r#FixedSize { fn default() -> Self { Self { } } } -impl binder::Parcelable for FixedSize { +impl binder::Parcelable for r#FixedSize { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { Ok(()) @@ -21,96 +21,96 @@ impl binder::Parcelable for FixedSize { }) } } -binder::impl_serialize_for_parcelable!(FixedSize); -binder::impl_deserialize_for_parcelable!(FixedSize); -impl binder::binder_impl::ParcelableMetadata for FixedSize { +binder::impl_serialize_for_parcelable!(r#FixedSize); +binder::impl_deserialize_for_parcelable!(r#FixedSize); +impl binder::binder_impl::ParcelableMetadata for r#FixedSize { fn get_descriptor() -> &'static str { "android.aidl.tests.FixedSize" } } -pub mod FixedParcelable { +pub mod r#FixedParcelable { #[derive(Debug)] - pub struct FixedParcelable { - pub booleanValue: bool, - pub byteValue: i8, - pub charValue: u16, - pub intValue: i32, - pub longValue: i64, - pub floatValue: f32, - pub doubleValue: f64, - pub enumValue: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum, - pub parcelableValue: crate::mangled::_7_android_4_aidl_5_tests_9_FixedSize_10_FixedUnion, + pub struct r#FixedParcelable { + pub r#booleanValue: bool, + pub r#byteValue: i8, + pub r#charValue: u16, + pub r#intValue: i32, + pub r#longValue: i64, + pub r#floatValue: f32, + pub r#doubleValue: f64, + pub r#enumValue: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum, + pub r#parcelableValue: crate::mangled::_7_android_4_aidl_5_tests_9_FixedSize_10_FixedUnion, } - impl Default for FixedParcelable { + impl Default for r#FixedParcelable { fn default() -> Self { Self { - booleanValue: false, - byteValue: 0, - charValue: '\0' as u16, - intValue: 0, - longValue: 0, - floatValue: 0.000000f32, - doubleValue: 0.000000f64, - enumValue: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum::FOO, - parcelableValue: Default::default(), + r#booleanValue: false, + r#byteValue: 0, + r#charValue: '\0' as u16, + r#intValue: 0, + r#longValue: 0, + r#floatValue: 0.000000f32, + r#doubleValue: 0.000000f64, + r#enumValue: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum::FOO, + r#parcelableValue: Default::default(), } } } - impl binder::Parcelable for FixedParcelable { + impl binder::Parcelable for r#FixedParcelable { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - subparcel.write(&self.booleanValue)?; - subparcel.write(&self.byteValue)?; - subparcel.write(&self.charValue)?; - subparcel.write(&self.intValue)?; - subparcel.write(&self.longValue)?; - subparcel.write(&self.floatValue)?; - subparcel.write(&self.doubleValue)?; - subparcel.write(&self.enumValue)?; - subparcel.write(&self.parcelableValue)?; + subparcel.write(&self.r#booleanValue)?; + subparcel.write(&self.r#byteValue)?; + subparcel.write(&self.r#charValue)?; + subparcel.write(&self.r#intValue)?; + subparcel.write(&self.r#longValue)?; + subparcel.write(&self.r#floatValue)?; + subparcel.write(&self.r#doubleValue)?; + subparcel.write(&self.r#enumValue)?; + subparcel.write(&self.r#parcelableValue)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.booleanValue = subparcel.read()?; + self.r#booleanValue = subparcel.read()?; } if subparcel.has_more_data() { - self.byteValue = subparcel.read()?; + self.r#byteValue = subparcel.read()?; } if subparcel.has_more_data() { - self.charValue = subparcel.read()?; + self.r#charValue = subparcel.read()?; } if subparcel.has_more_data() { - self.intValue = subparcel.read()?; + self.r#intValue = subparcel.read()?; } if subparcel.has_more_data() { - self.longValue = subparcel.read()?; + self.r#longValue = subparcel.read()?; } if subparcel.has_more_data() { - self.floatValue = subparcel.read()?; + self.r#floatValue = subparcel.read()?; } if subparcel.has_more_data() { - self.doubleValue = subparcel.read()?; + self.r#doubleValue = subparcel.read()?; } if subparcel.has_more_data() { - self.enumValue = subparcel.read()?; + self.r#enumValue = subparcel.read()?; } if subparcel.has_more_data() { - self.parcelableValue = subparcel.read()?; + self.r#parcelableValue = subparcel.read()?; } Ok(()) }) } } - binder::impl_serialize_for_parcelable!(FixedParcelable); - binder::impl_deserialize_for_parcelable!(FixedParcelable); - impl binder::binder_impl::ParcelableMetadata for FixedParcelable { + binder::impl_serialize_for_parcelable!(r#FixedParcelable); + binder::impl_deserialize_for_parcelable!(r#FixedParcelable); + impl binder::binder_impl::ParcelableMetadata for r#FixedParcelable { fn get_descriptor() -> &'static str { "android.aidl.tests.FixedSize.FixedParcelable" } } } -pub mod FixedUnion { +pub mod r#FixedUnion { #[derive(Debug)] - pub enum FixedUnion { + pub enum r#FixedUnion { BooleanValue(bool), ByteValue(i8), CharValue(u16), @@ -120,12 +120,12 @@ pub mod FixedUnion { DoubleValue(f64), EnumValue(crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum), } - impl Default for FixedUnion { + impl Default for r#FixedUnion { fn default() -> Self { Self::BooleanValue(false) } } - impl binder::Parcelable for FixedUnion { + impl binder::Parcelable for r#FixedUnion { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { match self { Self::BooleanValue(v) => { @@ -211,31 +211,31 @@ pub mod FixedUnion { } } } - binder::impl_serialize_for_parcelable!(FixedUnion); - binder::impl_deserialize_for_parcelable!(FixedUnion); - impl binder::binder_impl::ParcelableMetadata for FixedUnion { + binder::impl_serialize_for_parcelable!(r#FixedUnion); + binder::impl_deserialize_for_parcelable!(r#FixedUnion); + impl binder::binder_impl::ParcelableMetadata for r#FixedUnion { fn get_descriptor() -> &'static str { "android.aidl.tests.FixedSize.FixedUnion" } } - pub mod Tag { + pub mod r#Tag { #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - Tag : [i8; 8] { - booleanValue = 0, - byteValue = 1, - charValue = 2, - intValue = 3, - longValue = 4, - floatValue = 5, - doubleValue = 6, - enumValue = 7, + r#Tag : [i8; 8] { + r#booleanValue = 0, + r#byteValue = 1, + r#charValue = 2, + r#intValue = 3, + r#longValue = 4, + r#floatValue = 5, + r#doubleValue = 6, + r#enumValue = 7, } } } } pub(crate) mod mangled { - pub use super::FixedSize as _7_android_4_aidl_5_tests_9_FixedSize; - pub use super::FixedParcelable::FixedParcelable as _7_android_4_aidl_5_tests_9_FixedSize_15_FixedParcelable; - pub use super::FixedUnion::FixedUnion as _7_android_4_aidl_5_tests_9_FixedSize_10_FixedUnion; - pub use super::FixedUnion::Tag::Tag as _7_android_4_aidl_5_tests_9_FixedSize_10_FixedUnion_3_Tag; + pub use super::r#FixedSize as _7_android_4_aidl_5_tests_9_FixedSize; + pub use super::r#FixedParcelable::r#FixedParcelable as _7_android_4_aidl_5_tests_9_FixedSize_15_FixedParcelable; + pub use super::r#FixedUnion::r#FixedUnion as _7_android_4_aidl_5_tests_9_FixedSize_10_FixedUnion; + pub use super::r#FixedUnion::r#Tag::r#Tag as _7_android_4_aidl_5_tests_9_FixedSize_10_FixedUnion_3_Tag; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/GenericStructuredParcelable.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/GenericStructuredParcelable.rs index 2729f519..9323b155 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/GenericStructuredParcelable.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/GenericStructuredParcelable.rs @@ -1,43 +1,49 @@ #![forbid(unsafe_code)] #![rustfmt::skip] -#[derive(Debug)] -pub struct GenericStructuredParcelable { - pub a: i32, - pub b: i32, +#[derive(Debug, Clone, Copy, Eq, PartialEq)] +pub struct r#GenericStructuredParcelable<T,U,B,> { + pub r#a: i32, + pub r#b: i32, + _phantom_B: std::marker::PhantomData<B>, + _phantom_T: std::marker::PhantomData<T>, + _phantom_U: std::marker::PhantomData<U>, } -impl Default for GenericStructuredParcelable { +impl<T: Default,U: Default,B: Default,> Default for r#GenericStructuredParcelable<T,U,B,> { fn default() -> Self { Self { - a: 0, - b: 0, + r#a: 0, + r#b: 0, + r#_phantom_B: Default::default(), + r#_phantom_T: Default::default(), + r#_phantom_U: Default::default(), } } } -impl binder::Parcelable for GenericStructuredParcelable { +impl<T,U,B,> binder::Parcelable for r#GenericStructuredParcelable<T,U,B,> { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - subparcel.write(&self.a)?; - subparcel.write(&self.b)?; + subparcel.write(&self.r#a)?; + subparcel.write(&self.r#b)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.a = subparcel.read()?; + self.r#a = subparcel.read()?; } if subparcel.has_more_data() { - self.b = subparcel.read()?; + self.r#b = subparcel.read()?; } Ok(()) }) } } -binder::impl_serialize_for_parcelable!(GenericStructuredParcelable); -binder::impl_deserialize_for_parcelable!(GenericStructuredParcelable); -impl binder::binder_impl::ParcelableMetadata for GenericStructuredParcelable { +binder::impl_serialize_for_parcelable!(r#GenericStructuredParcelable<T,U,B,>); +binder::impl_deserialize_for_parcelable!(r#GenericStructuredParcelable<T,U,B,>); +impl<T,U,B,> binder::binder_impl::ParcelableMetadata for r#GenericStructuredParcelable<T,U,B,> { fn get_descriptor() -> &'static str { "android.aidl.tests.GenericStructuredParcelable" } } pub(crate) mod mangled { - pub use super::GenericStructuredParcelable as _7_android_4_aidl_5_tests_27_GenericStructuredParcelable; + pub use super::r#GenericStructuredParcelable as _7_android_4_aidl_5_tests_27_GenericStructuredParcelable; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ICircular.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ICircular.rs new file mode 100644 index 00000000..b6b55bda --- /dev/null +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ICircular.rs @@ -0,0 +1,136 @@ +#![forbid(unsafe_code)] +#![rustfmt::skip] +#![allow(non_upper_case_globals)] +#![allow(non_snake_case)] +#[allow(unused_imports)] use binder::binder_impl::IBinderInternal; +use binder::declare_binder_interface; +declare_binder_interface! { + ICircular["android.aidl.tests.ICircular"] { + native: BnCircular(on_transact), + proxy: BpCircular { + }, + async: ICircularAsync, + } +} +pub trait ICircular: binder::Interface + Send { + fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ICircular" } + fn r#GetTestService(&self) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_12_ITestService>>>; + fn getDefaultImpl() -> ICircularDefaultRef where Self: Sized { + DEFAULT_IMPL.lock().unwrap().clone() + } + fn setDefaultImpl(d: ICircularDefaultRef) -> ICircularDefaultRef where Self: Sized { + std::mem::replace(&mut *DEFAULT_IMPL.lock().unwrap(), d) + } +} +pub trait ICircularAsync<P>: binder::Interface + Send { + fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ICircular" } + fn r#GetTestService<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_12_ITestService>>>>; +} +#[::async_trait::async_trait] +pub trait ICircularAsyncServer: binder::Interface + Send { + fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ICircular" } + async fn r#GetTestService(&self) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_12_ITestService>>>; +} +impl BnCircular { + /// Create a new async binder service. + pub fn new_async_binder<T, R>(inner: T, rt: R, features: binder::BinderFeatures) -> binder::Strong<dyn ICircular> + where + T: ICircularAsyncServer + binder::Interface + Send + Sync + 'static, + R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, + { + struct Wrapper<T, R> { + _inner: T, + _rt: R, + } + impl<T, R> binder::Interface for Wrapper<T, R> where T: binder::Interface, R: Send + Sync { + fn as_binder(&self) -> binder::SpIBinder { self._inner.as_binder() } + fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder::StatusCode> { self._inner.dump(_file, _args) } + } + impl<T, R> ICircular for Wrapper<T, R> + where + T: ICircularAsyncServer + Send + Sync + 'static, + R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, + { + fn r#GetTestService(&self) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_12_ITestService>>> { + self._rt.block_on(self._inner.r#GetTestService()) + } + } + let wrapped = Wrapper { _inner: inner, _rt: rt }; + Self::new_binder(wrapped, features) + } +} +pub trait ICircularDefault: Send + Sync { + fn r#GetTestService(&self) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_12_ITestService>>> { + Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) + } +} +pub mod transactions { + pub const r#GetTestService: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; +} +pub type ICircularDefaultRef = Option<std::sync::Arc<dyn ICircularDefault>>; +use lazy_static::lazy_static; +lazy_static! { + static ref DEFAULT_IMPL: std::sync::Mutex<ICircularDefaultRef> = std::sync::Mutex::new(None); +} +impl BpCircular { + fn build_parcel_GetTestService(&self) -> binder::Result<binder::binder_impl::Parcel> { + let mut aidl_data = self.binder.prepare_transact()?; + Ok(aidl_data) + } + fn read_response_GetTestService(&self, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_12_ITestService>>> { + if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { + if let Some(_aidl_default_impl) = <Self as ICircular>::getDefaultImpl() { + return _aidl_default_impl.r#GetTestService(); + } + } + let _aidl_reply = _aidl_reply?; + let _aidl_status: binder::Status = _aidl_reply.read()?; + if !_aidl_status.is_ok() { return Err(_aidl_status); } + let _aidl_return: Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_12_ITestService>> = _aidl_reply.read()?; + Ok(_aidl_return) + } +} +impl ICircular for BpCircular { + fn r#GetTestService(&self) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_12_ITestService>>> { + let _aidl_data = self.build_parcel_GetTestService()?; + let _aidl_reply = self.binder.submit_transact(transactions::r#GetTestService, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); + self.read_response_GetTestService(_aidl_reply) + } +} +impl<P: binder::BinderAsyncPool> ICircularAsync<P> for BpCircular { + fn r#GetTestService<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_12_ITestService>>>> { + let _aidl_data = match self.build_parcel_GetTestService() { + Ok(_aidl_data) => _aidl_data, + Err(err) => return Box::pin(std::future::ready(Err(err))), + }; + let binder = self.binder.clone(); + P::spawn( + move || binder.submit_transact(transactions::r#GetTestService, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), + move |_aidl_reply| async move { + self.read_response_GetTestService(_aidl_reply) + } + ) + } +} +impl ICircular for binder::binder_impl::Binder<BnCircular> { + fn r#GetTestService(&self) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_12_ITestService>>> { self.0.r#GetTestService() } +} +fn on_transact(_aidl_service: &dyn ICircular, _aidl_code: binder::binder_impl::TransactionCode, _aidl_data: &binder::binder_impl::BorrowedParcel<'_>, _aidl_reply: &mut binder::binder_impl::BorrowedParcel<'_>) -> std::result::Result<(), binder::StatusCode> { + match _aidl_code { + transactions::r#GetTestService => { + let _aidl_return = _aidl_service.r#GetTestService(); + match &_aidl_return { + Ok(_aidl_return) => { + _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; + _aidl_reply.write(_aidl_return)?; + } + Err(_aidl_status) => _aidl_reply.write(_aidl_status)? + } + Ok(()) + } + _ => Err(binder::StatusCode::UNKNOWN_TRANSACTION) + } +} +pub(crate) mod mangled { + pub use super::r#ICircular as _7_android_4_aidl_5_tests_9_ICircular; +} diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ICircular.rs.d b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ICircular.rs.d new file mode 100644 index 00000000..22373374 --- /dev/null +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ICircular.rs.d @@ -0,0 +1,16 @@ +out/soong/.intermediates/system/tools/aidl/aidl-test-interface-rust-source/gen/android/aidl/tests/ICircular.rs : \ + system/tools/aidl/tests/android/aidl/tests/ICircular.aidl \ + system/tools/aidl/tests/android/aidl/tests/ITestService.aidl \ + system/tools/aidl/tests/android/aidl/tests/ByteEnum.aidl \ + system/tools/aidl/tests/android/aidl/tests/IntEnum.aidl \ + system/tools/aidl/tests/android/aidl/tests/LongEnum.aidl \ + system/tools/aidl/tests/android/aidl/tests/INamedCallback.aidl \ + system/tools/aidl/tests/android/aidl/tests/StructuredParcelable.aidl \ + system/tools/aidl/tests/android/aidl/tests/extension/ExtendableParcelable.aidl \ + system/tools/aidl/tests/android/aidl/tests/RecursiveList.aidl \ + system/tools/aidl/tests/android/aidl/tests/IOldName.aidl \ + system/tools/aidl/tests/android/aidl/tests/INewName.aidl \ + system/tools/aidl/tests/android/aidl/tests/Union.aidl \ + system/tools/aidl/tests/android/aidl/tests/BackendType.aidl \ + system/tools/aidl/tests/android/aidl/tests/CircularParcelable.aidl \ + system/tools/aidl/tests/android/aidl/tests/ConstantExpressionEnum.aidl diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/IDeprecated.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/IDeprecated.rs index 599a651f..5e67e1b2 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/IDeprecated.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/IDeprecated.rs @@ -79,5 +79,5 @@ fn on_transact(_aidl_service: &dyn IDeprecated, _aidl_code: binder::binder_impl: } } pub(crate) mod mangled { - pub use super::IDeprecated as _7_android_4_aidl_5_tests_11_IDeprecated; + pub use super::r#IDeprecated as _7_android_4_aidl_5_tests_11_IDeprecated; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/INamedCallback.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/INamedCallback.rs index 49ae5846..9ba10f04 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/INamedCallback.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/INamedCallback.rs @@ -14,7 +14,7 @@ declare_binder_interface! { } pub trait INamedCallback: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.INamedCallback" } - fn GetName(&self) -> binder::Result<String>; + fn r#GetName(&self) -> binder::Result<String>; fn getDefaultImpl() -> INamedCallbackDefaultRef where Self: Sized { DEFAULT_IMPL.lock().unwrap().clone() } @@ -24,12 +24,12 @@ pub trait INamedCallback: binder::Interface + Send { } pub trait INamedCallbackAsync<P>: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.INamedCallback" } - fn GetName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>>; + fn r#GetName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>>; } #[::async_trait::async_trait] pub trait INamedCallbackAsyncServer: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.INamedCallback" } - async fn GetName(&self) -> binder::Result<String>; + async fn r#GetName(&self) -> binder::Result<String>; } impl BnNamedCallback { /// Create a new async binder service. @@ -51,8 +51,8 @@ impl BnNamedCallback { T: INamedCallbackAsyncServer + Send + Sync + 'static, R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, { - fn GetName(&self) -> binder::Result<String> { - self._rt.block_on(self._inner.GetName()) + fn r#GetName(&self) -> binder::Result<String> { + self._rt.block_on(self._inner.r#GetName()) } } let wrapped = Wrapper { _inner: inner, _rt: rt }; @@ -60,12 +60,12 @@ impl BnNamedCallback { } } pub trait INamedCallbackDefault: Send + Sync { - fn GetName(&self) -> binder::Result<String> { + fn r#GetName(&self) -> binder::Result<String> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } } pub mod transactions { - pub const GetName: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; + pub const r#GetName: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; } pub type INamedCallbackDefaultRef = Option<std::sync::Arc<dyn INamedCallbackDefault>>; use lazy_static::lazy_static; @@ -80,7 +80,7 @@ impl BpNamedCallback { fn read_response_GetName(&self, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<String> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as INamedCallback>::getDefaultImpl() { - return _aidl_default_impl.GetName(); + return _aidl_default_impl.r#GetName(); } } let _aidl_reply = _aidl_reply?; @@ -91,21 +91,21 @@ impl BpNamedCallback { } } impl INamedCallback for BpNamedCallback { - fn GetName(&self) -> binder::Result<String> { + fn r#GetName(&self) -> binder::Result<String> { let _aidl_data = self.build_parcel_GetName()?; - let _aidl_reply = self.binder.submit_transact(transactions::GetName, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#GetName, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_GetName(_aidl_reply) } } impl<P: binder::BinderAsyncPool> INamedCallbackAsync<P> for BpNamedCallback { - fn GetName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>> { + fn r#GetName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>> { let _aidl_data = match self.build_parcel_GetName() { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::GetName, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#GetName, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_GetName(_aidl_reply) } @@ -113,12 +113,12 @@ impl<P: binder::BinderAsyncPool> INamedCallbackAsync<P> for BpNamedCallback { } } impl INamedCallback for binder::binder_impl::Binder<BnNamedCallback> { - fn GetName(&self) -> binder::Result<String> { self.0.GetName() } + fn r#GetName(&self) -> binder::Result<String> { self.0.r#GetName() } } fn on_transact(_aidl_service: &dyn INamedCallback, _aidl_code: binder::binder_impl::TransactionCode, _aidl_data: &binder::binder_impl::BorrowedParcel<'_>, _aidl_reply: &mut binder::binder_impl::BorrowedParcel<'_>) -> std::result::Result<(), binder::StatusCode> { match _aidl_code { - transactions::GetName => { - let _aidl_return = _aidl_service.GetName(); + transactions::r#GetName => { + let _aidl_return = _aidl_service.r#GetName(); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -132,5 +132,5 @@ fn on_transact(_aidl_service: &dyn INamedCallback, _aidl_code: binder::binder_im } } pub(crate) mod mangled { - pub use super::INamedCallback as _7_android_4_aidl_5_tests_14_INamedCallback; + pub use super::r#INamedCallback as _7_android_4_aidl_5_tests_14_INamedCallback; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/INewName.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/INewName.rs index f8003b5f..b0fdf91d 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/INewName.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/INewName.rs @@ -14,7 +14,7 @@ declare_binder_interface! { } pub trait INewName: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.IOldName" } - fn RealName(&self) -> binder::Result<String>; + fn r#RealName(&self) -> binder::Result<String>; fn getDefaultImpl() -> INewNameDefaultRef where Self: Sized { DEFAULT_IMPL.lock().unwrap().clone() } @@ -24,12 +24,12 @@ pub trait INewName: binder::Interface + Send { } pub trait INewNameAsync<P>: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.IOldName" } - fn RealName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>>; + fn r#RealName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>>; } #[::async_trait::async_trait] pub trait INewNameAsyncServer: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.IOldName" } - async fn RealName(&self) -> binder::Result<String>; + async fn r#RealName(&self) -> binder::Result<String>; } impl BnNewName { /// Create a new async binder service. @@ -51,8 +51,8 @@ impl BnNewName { T: INewNameAsyncServer + Send + Sync + 'static, R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, { - fn RealName(&self) -> binder::Result<String> { - self._rt.block_on(self._inner.RealName()) + fn r#RealName(&self) -> binder::Result<String> { + self._rt.block_on(self._inner.r#RealName()) } } let wrapped = Wrapper { _inner: inner, _rt: rt }; @@ -60,12 +60,12 @@ impl BnNewName { } } pub trait INewNameDefault: Send + Sync { - fn RealName(&self) -> binder::Result<String> { + fn r#RealName(&self) -> binder::Result<String> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } } pub mod transactions { - pub const RealName: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; + pub const r#RealName: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; } pub type INewNameDefaultRef = Option<std::sync::Arc<dyn INewNameDefault>>; use lazy_static::lazy_static; @@ -80,7 +80,7 @@ impl BpNewName { fn read_response_RealName(&self, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<String> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as INewName>::getDefaultImpl() { - return _aidl_default_impl.RealName(); + return _aidl_default_impl.r#RealName(); } } let _aidl_reply = _aidl_reply?; @@ -91,21 +91,21 @@ impl BpNewName { } } impl INewName for BpNewName { - fn RealName(&self) -> binder::Result<String> { + fn r#RealName(&self) -> binder::Result<String> { let _aidl_data = self.build_parcel_RealName()?; - let _aidl_reply = self.binder.submit_transact(transactions::RealName, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RealName, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RealName(_aidl_reply) } } impl<P: binder::BinderAsyncPool> INewNameAsync<P> for BpNewName { - fn RealName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>> { + fn r#RealName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>> { let _aidl_data = match self.build_parcel_RealName() { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RealName, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RealName, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RealName(_aidl_reply) } @@ -113,12 +113,12 @@ impl<P: binder::BinderAsyncPool> INewNameAsync<P> for BpNewName { } } impl INewName for binder::binder_impl::Binder<BnNewName> { - fn RealName(&self) -> binder::Result<String> { self.0.RealName() } + fn r#RealName(&self) -> binder::Result<String> { self.0.r#RealName() } } fn on_transact(_aidl_service: &dyn INewName, _aidl_code: binder::binder_impl::TransactionCode, _aidl_data: &binder::binder_impl::BorrowedParcel<'_>, _aidl_reply: &mut binder::binder_impl::BorrowedParcel<'_>) -> std::result::Result<(), binder::StatusCode> { match _aidl_code { - transactions::RealName => { - let _aidl_return = _aidl_service.RealName(); + transactions::r#RealName => { + let _aidl_return = _aidl_service.r#RealName(); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -132,5 +132,5 @@ fn on_transact(_aidl_service: &dyn INewName, _aidl_code: binder::binder_impl::Tr } } pub(crate) mod mangled { - pub use super::INewName as _7_android_4_aidl_5_tests_8_INewName; + pub use super::r#INewName as _7_android_4_aidl_5_tests_8_INewName; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/IOldName.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/IOldName.rs index e10bf923..97d330b7 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/IOldName.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/IOldName.rs @@ -14,7 +14,7 @@ declare_binder_interface! { } pub trait IOldName: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.IOldName" } - fn RealName(&self) -> binder::Result<String>; + fn r#RealName(&self) -> binder::Result<String>; fn getDefaultImpl() -> IOldNameDefaultRef where Self: Sized { DEFAULT_IMPL.lock().unwrap().clone() } @@ -24,12 +24,12 @@ pub trait IOldName: binder::Interface + Send { } pub trait IOldNameAsync<P>: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.IOldName" } - fn RealName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>>; + fn r#RealName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>>; } #[::async_trait::async_trait] pub trait IOldNameAsyncServer: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.IOldName" } - async fn RealName(&self) -> binder::Result<String>; + async fn r#RealName(&self) -> binder::Result<String>; } impl BnOldName { /// Create a new async binder service. @@ -51,8 +51,8 @@ impl BnOldName { T: IOldNameAsyncServer + Send + Sync + 'static, R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, { - fn RealName(&self) -> binder::Result<String> { - self._rt.block_on(self._inner.RealName()) + fn r#RealName(&self) -> binder::Result<String> { + self._rt.block_on(self._inner.r#RealName()) } } let wrapped = Wrapper { _inner: inner, _rt: rt }; @@ -60,12 +60,12 @@ impl BnOldName { } } pub trait IOldNameDefault: Send + Sync { - fn RealName(&self) -> binder::Result<String> { + fn r#RealName(&self) -> binder::Result<String> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } } pub mod transactions { - pub const RealName: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; + pub const r#RealName: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; } pub type IOldNameDefaultRef = Option<std::sync::Arc<dyn IOldNameDefault>>; use lazy_static::lazy_static; @@ -80,7 +80,7 @@ impl BpOldName { fn read_response_RealName(&self, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<String> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as IOldName>::getDefaultImpl() { - return _aidl_default_impl.RealName(); + return _aidl_default_impl.r#RealName(); } } let _aidl_reply = _aidl_reply?; @@ -91,21 +91,21 @@ impl BpOldName { } } impl IOldName for BpOldName { - fn RealName(&self) -> binder::Result<String> { + fn r#RealName(&self) -> binder::Result<String> { let _aidl_data = self.build_parcel_RealName()?; - let _aidl_reply = self.binder.submit_transact(transactions::RealName, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RealName, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RealName(_aidl_reply) } } impl<P: binder::BinderAsyncPool> IOldNameAsync<P> for BpOldName { - fn RealName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>> { + fn r#RealName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>> { let _aidl_data = match self.build_parcel_RealName() { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RealName, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RealName, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RealName(_aidl_reply) } @@ -113,12 +113,12 @@ impl<P: binder::BinderAsyncPool> IOldNameAsync<P> for BpOldName { } } impl IOldName for binder::binder_impl::Binder<BnOldName> { - fn RealName(&self) -> binder::Result<String> { self.0.RealName() } + fn r#RealName(&self) -> binder::Result<String> { self.0.r#RealName() } } fn on_transact(_aidl_service: &dyn IOldName, _aidl_code: binder::binder_impl::TransactionCode, _aidl_data: &binder::binder_impl::BorrowedParcel<'_>, _aidl_reply: &mut binder::binder_impl::BorrowedParcel<'_>) -> std::result::Result<(), binder::StatusCode> { match _aidl_code { - transactions::RealName => { - let _aidl_return = _aidl_service.RealName(); + transactions::r#RealName => { + let _aidl_return = _aidl_service.r#RealName(); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -132,5 +132,5 @@ fn on_transact(_aidl_service: &dyn IOldName, _aidl_code: binder::binder_impl::Tr } } pub(crate) mod mangled { - pub use super::IOldName as _7_android_4_aidl_5_tests_8_IOldName; + pub use super::r#IOldName as _7_android_4_aidl_5_tests_8_IOldName; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ITestService.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ITestService.rs index 36c03d44..b9b36d37 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ITestService.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ITestService.rs @@ -14,73 +14,75 @@ declare_binder_interface! { } pub trait ITestService: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ITestService" } - fn UnimplementedMethod(&self, _arg_arg: i32) -> binder::Result<i32>; + fn r#UnimplementedMethod(&self, _arg_arg: i32) -> binder::Result<i32>; #[deprecated = "to make sure we have something in system/tools/aidl which does a compile check of deprecated and make sure this is reflected in goldens"] - fn Deprecated(&self) -> binder::Result<()>; - fn TestOneway(&self) -> binder::Result<()>; - fn RepeatBoolean(&self, _arg_token: bool) -> binder::Result<bool>; - fn RepeatByte(&self, _arg_token: i8) -> binder::Result<i8>; - fn RepeatChar(&self, _arg_token: u16) -> binder::Result<u16>; - fn RepeatInt(&self, _arg_token: i32) -> binder::Result<i32>; - fn RepeatLong(&self, _arg_token: i64) -> binder::Result<i64>; - fn RepeatFloat(&self, _arg_token: f32) -> binder::Result<f32>; - fn RepeatDouble(&self, _arg_token: f64) -> binder::Result<f64>; - fn RepeatString(&self, _arg_token: &str) -> binder::Result<String>; - fn RepeatByteEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>; - fn RepeatIntEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>; - fn RepeatLongEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>; - fn ReverseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>>; - fn ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>>; - fn ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u16>>; - fn ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32>>; - fn ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i64>>; - fn ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f32>>; - fn ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<f64>>; - fn ReverseString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>>; - fn ReverseByteEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>; - fn ReverseIntEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>; - fn ReverseLongEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>; - fn GetOtherTestService(&self, _arg_name: &str) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>; - fn VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str) -> binder::Result<bool>; - fn GetInterfaceArray(&self, _arg_names: &[String]) -> binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>; - fn VerifyNamesWithInterfaceArray(&self, _arg_services: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &[String]) -> binder::Result<bool>; - fn GetNullableInterfaceArray(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>; - fn VerifyNamesWithNullableInterfaceArray(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool>; - fn GetInterfaceList(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>; - fn VerifyNamesWithInterfaceList(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool>; - fn ReverseStringList(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>>; - fn RepeatParcelFileDescriptor(&self, _arg_read: &binder::ParcelFileDescriptor) -> binder::Result<binder::ParcelFileDescriptor>; - fn ReverseParcelFileDescriptorArray(&self, _arg_input: &[binder::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::Result<Vec<binder::ParcelFileDescriptor>>; - fn ThrowServiceException(&self, _arg_code: i32) -> binder::Result<()>; - fn RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>) -> binder::Result<Option<Vec<i32>>>; - fn RepeatNullableByteEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>>; - fn RepeatNullableIntEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>>; - fn RepeatNullableLongEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>>; - fn RepeatNullableString(&self, _arg_input: Option<&str>) -> binder::Result<Option<String>>; - fn RepeatNullableStringList(&self, _arg_input: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<String>>>>; - fn RepeatNullableParcelable(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>; - fn RepeatNullableParcelableArray(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>; - fn RepeatNullableParcelableList(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>; - fn TakesAnIBinder(&self, _arg_input: &binder::SpIBinder) -> binder::Result<()>; - fn TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>) -> binder::Result<()>; - fn TakesAnIBinderList(&self, _arg_input: &[binder::SpIBinder]) -> binder::Result<()>; - fn TakesANullableIBinderList(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>) -> binder::Result<()>; - fn RepeatUtf8CppString(&self, _arg_token: &str) -> binder::Result<String>; - fn RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>) -> binder::Result<Option<String>>; - fn ReverseUtf8CppString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>>; - fn ReverseNullableUtf8CppString(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>>; - fn ReverseUtf8CppStringList(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>>; - fn GetCallback(&self, _arg_return_null: bool) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>; - fn FillOutStructuredParcelable(&self, _arg_parcel: &mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::Result<()>; - fn RepeatExtendableParcelable(&self, _arg_ep: &crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::Result<()>; - fn ReverseList(&self, _arg_list: &crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList>; - fn ReverseIBinderArray(&self, _arg_input: &[binder::SpIBinder], _arg_repeated: &mut Vec<Option<binder::SpIBinder>>) -> binder::Result<Vec<binder::SpIBinder>>; - fn ReverseNullableIBinderArray(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _arg_repeated: &mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::Result<Option<Vec<Option<binder::SpIBinder>>>>; - fn GetOldNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>>; - fn GetNewNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>>; - fn GetUnionTags(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>>; - fn GetCppJavaTests(&self) -> binder::Result<Option<binder::SpIBinder>>; - fn getBackendType(&self) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType>; + fn r#Deprecated(&self) -> binder::Result<()>; + fn r#TestOneway(&self) -> binder::Result<()>; + fn r#RepeatBoolean(&self, _arg_token: bool) -> binder::Result<bool>; + fn r#RepeatByte(&self, _arg_token: i8) -> binder::Result<i8>; + fn r#RepeatChar(&self, _arg_token: u16) -> binder::Result<u16>; + fn r#RepeatInt(&self, _arg_token: i32) -> binder::Result<i32>; + fn r#RepeatLong(&self, _arg_token: i64) -> binder::Result<i64>; + fn r#RepeatFloat(&self, _arg_token: f32) -> binder::Result<f32>; + fn r#RepeatDouble(&self, _arg_token: f64) -> binder::Result<f64>; + fn r#RepeatString(&self, _arg_token: &str) -> binder::Result<String>; + fn r#RepeatByteEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>; + fn r#RepeatIntEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>; + fn r#RepeatLongEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>; + fn r#ReverseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>>; + fn r#ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>>; + fn r#ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u16>>; + fn r#ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32>>; + fn r#ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i64>>; + fn r#ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f32>>; + fn r#ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<f64>>; + fn r#ReverseString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>>; + fn r#ReverseByteEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>; + fn r#ReverseIntEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>; + fn r#ReverseLongEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>; + fn r#GetOtherTestService(&self, _arg_name: &str) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>; + fn r#SetOtherTestService(&self, _arg_name: &str, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>) -> binder::Result<bool>; + fn r#VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str) -> binder::Result<bool>; + fn r#GetInterfaceArray(&self, _arg_names: &[String]) -> binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>; + fn r#VerifyNamesWithInterfaceArray(&self, _arg_services: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &[String]) -> binder::Result<bool>; + fn r#GetNullableInterfaceArray(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>; + fn r#VerifyNamesWithNullableInterfaceArray(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool>; + fn r#GetInterfaceList(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>; + fn r#VerifyNamesWithInterfaceList(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool>; + fn r#ReverseStringList(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>>; + fn r#RepeatParcelFileDescriptor(&self, _arg_read: &binder::ParcelFileDescriptor) -> binder::Result<binder::ParcelFileDescriptor>; + fn r#ReverseParcelFileDescriptorArray(&self, _arg_input: &[binder::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::Result<Vec<binder::ParcelFileDescriptor>>; + fn r#ThrowServiceException(&self, _arg_code: i32) -> binder::Result<()>; + fn r#RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>) -> binder::Result<Option<Vec<i32>>>; + fn r#RepeatNullableByteEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>>; + fn r#RepeatNullableIntEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>>; + fn r#RepeatNullableLongEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>>; + fn r#RepeatNullableString(&self, _arg_input: Option<&str>) -> binder::Result<Option<String>>; + fn r#RepeatNullableStringList(&self, _arg_input: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<String>>>>; + fn r#RepeatNullableParcelable(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>; + fn r#RepeatNullableParcelableArray(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>; + fn r#RepeatNullableParcelableList(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>; + fn r#TakesAnIBinder(&self, _arg_input: &binder::SpIBinder) -> binder::Result<()>; + fn r#TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>) -> binder::Result<()>; + fn r#TakesAnIBinderList(&self, _arg_input: &[binder::SpIBinder]) -> binder::Result<()>; + fn r#TakesANullableIBinderList(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>) -> binder::Result<()>; + fn r#RepeatUtf8CppString(&self, _arg_token: &str) -> binder::Result<String>; + fn r#RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>) -> binder::Result<Option<String>>; + fn r#ReverseUtf8CppString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>>; + fn r#ReverseNullableUtf8CppString(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>>; + fn r#ReverseUtf8CppStringList(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>>; + fn r#GetCallback(&self, _arg_return_null: bool) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>; + fn r#FillOutStructuredParcelable(&self, _arg_parcel: &mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::Result<()>; + fn r#RepeatExtendableParcelable(&self, _arg_ep: &crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::Result<()>; + fn r#ReverseList(&self, _arg_list: &crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList>; + fn r#ReverseIBinderArray(&self, _arg_input: &[binder::SpIBinder], _arg_repeated: &mut Vec<Option<binder::SpIBinder>>) -> binder::Result<Vec<binder::SpIBinder>>; + fn r#ReverseNullableIBinderArray(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _arg_repeated: &mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::Result<Option<Vec<Option<binder::SpIBinder>>>>; + fn r#GetOldNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>>; + fn r#GetNewNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>>; + fn r#GetUnionTags(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>>; + fn r#GetCppJavaTests(&self) -> binder::Result<Option<binder::SpIBinder>>; + fn r#getBackendType(&self) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType>; + fn r#GetCircular(&self, _arg_cp: &mut crate::mangled::_7_android_4_aidl_5_tests_18_CircularParcelable) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_9_ICircular>>; fn getDefaultImpl() -> ITestServiceDefaultRef where Self: Sized { DEFAULT_IMPL.lock().unwrap().clone() } @@ -90,144 +92,148 @@ pub trait ITestService: binder::Interface + Send { } pub trait ITestServiceAsync<P>: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ITestService" } - fn UnimplementedMethod<'a>(&'a self, _arg_arg: i32) -> binder::BoxFuture<'a, binder::Result<i32>>; + fn r#UnimplementedMethod<'a>(&'a self, _arg_arg: i32) -> binder::BoxFuture<'a, binder::Result<i32>>; #[deprecated = "to make sure we have something in system/tools/aidl which does a compile check of deprecated and make sure this is reflected in goldens"] - fn Deprecated<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<()>>; - fn TestOneway(&self) -> std::future::Ready<binder::Result<()>>; - fn RepeatBoolean<'a>(&'a self, _arg_token: bool) -> binder::BoxFuture<'a, binder::Result<bool>>; - fn RepeatByte<'a>(&'a self, _arg_token: i8) -> binder::BoxFuture<'a, binder::Result<i8>>; - fn RepeatChar<'a>(&'a self, _arg_token: u16) -> binder::BoxFuture<'a, binder::Result<u16>>; - fn RepeatInt<'a>(&'a self, _arg_token: i32) -> binder::BoxFuture<'a, binder::Result<i32>>; - fn RepeatLong<'a>(&'a self, _arg_token: i64) -> binder::BoxFuture<'a, binder::Result<i64>>; - fn RepeatFloat<'a>(&'a self, _arg_token: f32) -> binder::BoxFuture<'a, binder::Result<f32>>; - fn RepeatDouble<'a>(&'a self, _arg_token: f64) -> binder::BoxFuture<'a, binder::Result<f64>>; - fn RepeatString<'a>(&'a self, _arg_token: &'a str) -> binder::BoxFuture<'a, binder::Result<String>>; - fn RepeatByteEnum<'a>(&'a self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>; - fn RepeatIntEnum<'a>(&'a self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>; - fn RepeatLongEnum<'a>(&'a self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>; - fn ReverseBoolean<'a>(&'a self, _arg_input: &'a [bool], _arg_repeated: &'a mut Vec<bool>) -> binder::BoxFuture<'a, binder::Result<Vec<bool>>>; - fn ReverseByte<'a>(&'a self, _arg_input: &'a [u8], _arg_repeated: &'a mut Vec<u8>) -> binder::BoxFuture<'a, binder::Result<Vec<u8>>>; - fn ReverseChar<'a>(&'a self, _arg_input: &'a [u16], _arg_repeated: &'a mut Vec<u16>) -> binder::BoxFuture<'a, binder::Result<Vec<u16>>>; - fn ReverseInt<'a>(&'a self, _arg_input: &'a [i32], _arg_repeated: &'a mut Vec<i32>) -> binder::BoxFuture<'a, binder::Result<Vec<i32>>>; - fn ReverseLong<'a>(&'a self, _arg_input: &'a [i64], _arg_repeated: &'a mut Vec<i64>) -> binder::BoxFuture<'a, binder::Result<Vec<i64>>>; - fn ReverseFloat<'a>(&'a self, _arg_input: &'a [f32], _arg_repeated: &'a mut Vec<f32>) -> binder::BoxFuture<'a, binder::Result<Vec<f32>>>; - fn ReverseDouble<'a>(&'a self, _arg_input: &'a [f64], _arg_repeated: &'a mut Vec<f64>) -> binder::BoxFuture<'a, binder::Result<Vec<f64>>>; - fn ReverseString<'a>(&'a self, _arg_input: &'a [String], _arg_repeated: &'a mut Vec<String>) -> binder::BoxFuture<'a, binder::Result<Vec<String>>>; - fn ReverseByteEnum<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &'a mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>>; - fn ReverseIntEnum<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &'a mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>>; - fn ReverseLongEnum<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &'a mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>>; - fn GetOtherTestService<'a>(&'a self, _arg_name: &'a str) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>; - fn VerifyName<'a>(&'a self, _arg_service: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &'a str) -> binder::BoxFuture<'a, binder::Result<bool>>; - fn GetInterfaceArray<'a>(&'a self, _arg_names: &'a [String]) -> binder::BoxFuture<'a, binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>; - fn VerifyNamesWithInterfaceArray<'a>(&'a self, _arg_services: &'a [binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &'a [String]) -> binder::BoxFuture<'a, binder::Result<bool>>; - fn GetNullableInterfaceArray<'a>(&'a self, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>>; - fn VerifyNamesWithNullableInterfaceArray<'a>(&'a self, _arg_services: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<bool>>; - fn GetInterfaceList<'a>(&'a self, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>>; - fn VerifyNamesWithInterfaceList<'a>(&'a self, _arg_services: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<bool>>; - fn ReverseStringList<'a>(&'a self, _arg_input: &'a [String], _arg_repeated: &'a mut Vec<String>) -> binder::BoxFuture<'a, binder::Result<Vec<String>>>; - fn RepeatParcelFileDescriptor<'a>(&'a self, _arg_read: &'a binder::ParcelFileDescriptor) -> binder::BoxFuture<'a, binder::Result<binder::ParcelFileDescriptor>>; - fn ReverseParcelFileDescriptorArray<'a>(&'a self, _arg_input: &'a [binder::ParcelFileDescriptor], _arg_repeated: &'a mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::BoxFuture<'a, binder::Result<Vec<binder::ParcelFileDescriptor>>>; - fn ThrowServiceException<'a>(&'a self, _arg_code: i32) -> binder::BoxFuture<'a, binder::Result<()>>; - fn RepeatNullableIntArray<'a>(&'a self, _arg_input: Option<&'a [i32]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<i32>>>>; - fn RepeatNullableByteEnumArray<'a>(&'a self, _arg_input: Option<&'a [crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>>>; - fn RepeatNullableIntEnumArray<'a>(&'a self, _arg_input: Option<&'a [crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>>>; - fn RepeatNullableLongEnumArray<'a>(&'a self, _arg_input: Option<&'a [crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>>>; - fn RepeatNullableString<'a>(&'a self, _arg_input: Option<&'a str>) -> binder::BoxFuture<'a, binder::Result<Option<String>>>; - fn RepeatNullableStringList<'a>(&'a self, _arg_input: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<String>>>>>; - fn RepeatNullableParcelable<'a>(&'a self, _arg_input: Option<&'a crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::BoxFuture<'a, binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>; - fn RepeatNullableParcelableArray<'a>(&'a self, _arg_input: Option<&'a [Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>>; - fn RepeatNullableParcelableList<'a>(&'a self, _arg_input: Option<&'a [Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>>; - fn TakesAnIBinder<'a>(&'a self, _arg_input: &'a binder::SpIBinder) -> binder::BoxFuture<'a, binder::Result<()>>; - fn TakesANullableIBinder<'a>(&'a self, _arg_input: Option<&'a binder::SpIBinder>) -> binder::BoxFuture<'a, binder::Result<()>>; - fn TakesAnIBinderList<'a>(&'a self, _arg_input: &'a [binder::SpIBinder]) -> binder::BoxFuture<'a, binder::Result<()>>; - fn TakesANullableIBinderList<'a>(&'a self, _arg_input: Option<&'a [Option<binder::SpIBinder>]>) -> binder::BoxFuture<'a, binder::Result<()>>; - fn RepeatUtf8CppString<'a>(&'a self, _arg_token: &'a str) -> binder::BoxFuture<'a, binder::Result<String>>; - fn RepeatNullableUtf8CppString<'a>(&'a self, _arg_token: Option<&'a str>) -> binder::BoxFuture<'a, binder::Result<Option<String>>>; - fn ReverseUtf8CppString<'a>(&'a self, _arg_input: &'a [String], _arg_repeated: &'a mut Vec<String>) -> binder::BoxFuture<'a, binder::Result<Vec<String>>>; - fn ReverseNullableUtf8CppString<'a>(&'a self, _arg_input: Option<&'a [Option<String>]>, _arg_repeated: &'a mut Option<Vec<Option<String>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<String>>>>>; - fn ReverseUtf8CppStringList<'a>(&'a self, _arg_input: Option<&'a [Option<String>]>, _arg_repeated: &'a mut Option<Vec<Option<String>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<String>>>>>; - fn GetCallback<'a>(&'a self, _arg_return_null: bool) -> binder::BoxFuture<'a, binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>; - fn FillOutStructuredParcelable<'a>(&'a self, _arg_parcel: &'a mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::BoxFuture<'a, binder::Result<()>>; - fn RepeatExtendableParcelable<'a>(&'a self, _arg_ep: &'a crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &'a mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::BoxFuture<'a, binder::Result<()>>; - fn ReverseList<'a>(&'a self, _arg_list: &'a crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList>>; - fn ReverseIBinderArray<'a>(&'a self, _arg_input: &'a [binder::SpIBinder], _arg_repeated: &'a mut Vec<Option<binder::SpIBinder>>) -> binder::BoxFuture<'a, binder::Result<Vec<binder::SpIBinder>>>; - fn ReverseNullableIBinderArray<'a>(&'a self, _arg_input: Option<&'a [Option<binder::SpIBinder>]>, _arg_repeated: &'a mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::SpIBinder>>>>>; - fn GetOldNameInterface<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>>>; - fn GetNewNameInterface<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>>>; - fn GetUnionTags<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>>>; - fn GetCppJavaTests<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<Option<binder::SpIBinder>>>; - fn getBackendType<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType>>; + fn r#Deprecated<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<()>>; + fn r#TestOneway(&self) -> std::future::Ready<binder::Result<()>>; + fn r#RepeatBoolean<'a>(&'a self, _arg_token: bool) -> binder::BoxFuture<'a, binder::Result<bool>>; + fn r#RepeatByte<'a>(&'a self, _arg_token: i8) -> binder::BoxFuture<'a, binder::Result<i8>>; + fn r#RepeatChar<'a>(&'a self, _arg_token: u16) -> binder::BoxFuture<'a, binder::Result<u16>>; + fn r#RepeatInt<'a>(&'a self, _arg_token: i32) -> binder::BoxFuture<'a, binder::Result<i32>>; + fn r#RepeatLong<'a>(&'a self, _arg_token: i64) -> binder::BoxFuture<'a, binder::Result<i64>>; + fn r#RepeatFloat<'a>(&'a self, _arg_token: f32) -> binder::BoxFuture<'a, binder::Result<f32>>; + fn r#RepeatDouble<'a>(&'a self, _arg_token: f64) -> binder::BoxFuture<'a, binder::Result<f64>>; + fn r#RepeatString<'a>(&'a self, _arg_token: &'a str) -> binder::BoxFuture<'a, binder::Result<String>>; + fn r#RepeatByteEnum<'a>(&'a self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>; + fn r#RepeatIntEnum<'a>(&'a self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>; + fn r#RepeatLongEnum<'a>(&'a self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>; + fn r#ReverseBoolean<'a>(&'a self, _arg_input: &'a [bool], _arg_repeated: &'a mut Vec<bool>) -> binder::BoxFuture<'a, binder::Result<Vec<bool>>>; + fn r#ReverseByte<'a>(&'a self, _arg_input: &'a [u8], _arg_repeated: &'a mut Vec<u8>) -> binder::BoxFuture<'a, binder::Result<Vec<u8>>>; + fn r#ReverseChar<'a>(&'a self, _arg_input: &'a [u16], _arg_repeated: &'a mut Vec<u16>) -> binder::BoxFuture<'a, binder::Result<Vec<u16>>>; + fn r#ReverseInt<'a>(&'a self, _arg_input: &'a [i32], _arg_repeated: &'a mut Vec<i32>) -> binder::BoxFuture<'a, binder::Result<Vec<i32>>>; + fn r#ReverseLong<'a>(&'a self, _arg_input: &'a [i64], _arg_repeated: &'a mut Vec<i64>) -> binder::BoxFuture<'a, binder::Result<Vec<i64>>>; + fn r#ReverseFloat<'a>(&'a self, _arg_input: &'a [f32], _arg_repeated: &'a mut Vec<f32>) -> binder::BoxFuture<'a, binder::Result<Vec<f32>>>; + fn r#ReverseDouble<'a>(&'a self, _arg_input: &'a [f64], _arg_repeated: &'a mut Vec<f64>) -> binder::BoxFuture<'a, binder::Result<Vec<f64>>>; + fn r#ReverseString<'a>(&'a self, _arg_input: &'a [String], _arg_repeated: &'a mut Vec<String>) -> binder::BoxFuture<'a, binder::Result<Vec<String>>>; + fn r#ReverseByteEnum<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &'a mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>>; + fn r#ReverseIntEnum<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &'a mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>>; + fn r#ReverseLongEnum<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &'a mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>>; + fn r#GetOtherTestService<'a>(&'a self, _arg_name: &'a str) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>; + fn r#SetOtherTestService<'a>(&'a self, _arg_name: &'a str, _arg_service: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>) -> binder::BoxFuture<'a, binder::Result<bool>>; + fn r#VerifyName<'a>(&'a self, _arg_service: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &'a str) -> binder::BoxFuture<'a, binder::Result<bool>>; + fn r#GetInterfaceArray<'a>(&'a self, _arg_names: &'a [String]) -> binder::BoxFuture<'a, binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>; + fn r#VerifyNamesWithInterfaceArray<'a>(&'a self, _arg_services: &'a [binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &'a [String]) -> binder::BoxFuture<'a, binder::Result<bool>>; + fn r#GetNullableInterfaceArray<'a>(&'a self, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>>; + fn r#VerifyNamesWithNullableInterfaceArray<'a>(&'a self, _arg_services: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<bool>>; + fn r#GetInterfaceList<'a>(&'a self, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>>; + fn r#VerifyNamesWithInterfaceList<'a>(&'a self, _arg_services: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<bool>>; + fn r#ReverseStringList<'a>(&'a self, _arg_input: &'a [String], _arg_repeated: &'a mut Vec<String>) -> binder::BoxFuture<'a, binder::Result<Vec<String>>>; + fn r#RepeatParcelFileDescriptor<'a>(&'a self, _arg_read: &'a binder::ParcelFileDescriptor) -> binder::BoxFuture<'a, binder::Result<binder::ParcelFileDescriptor>>; + fn r#ReverseParcelFileDescriptorArray<'a>(&'a self, _arg_input: &'a [binder::ParcelFileDescriptor], _arg_repeated: &'a mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::BoxFuture<'a, binder::Result<Vec<binder::ParcelFileDescriptor>>>; + fn r#ThrowServiceException<'a>(&'a self, _arg_code: i32) -> binder::BoxFuture<'a, binder::Result<()>>; + fn r#RepeatNullableIntArray<'a>(&'a self, _arg_input: Option<&'a [i32]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<i32>>>>; + fn r#RepeatNullableByteEnumArray<'a>(&'a self, _arg_input: Option<&'a [crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>>>; + fn r#RepeatNullableIntEnumArray<'a>(&'a self, _arg_input: Option<&'a [crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>>>; + fn r#RepeatNullableLongEnumArray<'a>(&'a self, _arg_input: Option<&'a [crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>>>; + fn r#RepeatNullableString<'a>(&'a self, _arg_input: Option<&'a str>) -> binder::BoxFuture<'a, binder::Result<Option<String>>>; + fn r#RepeatNullableStringList<'a>(&'a self, _arg_input: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<String>>>>>; + fn r#RepeatNullableParcelable<'a>(&'a self, _arg_input: Option<&'a crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::BoxFuture<'a, binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>; + fn r#RepeatNullableParcelableArray<'a>(&'a self, _arg_input: Option<&'a [Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>>; + fn r#RepeatNullableParcelableList<'a>(&'a self, _arg_input: Option<&'a [Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>>; + fn r#TakesAnIBinder<'a>(&'a self, _arg_input: &'a binder::SpIBinder) -> binder::BoxFuture<'a, binder::Result<()>>; + fn r#TakesANullableIBinder<'a>(&'a self, _arg_input: Option<&'a binder::SpIBinder>) -> binder::BoxFuture<'a, binder::Result<()>>; + fn r#TakesAnIBinderList<'a>(&'a self, _arg_input: &'a [binder::SpIBinder]) -> binder::BoxFuture<'a, binder::Result<()>>; + fn r#TakesANullableIBinderList<'a>(&'a self, _arg_input: Option<&'a [Option<binder::SpIBinder>]>) -> binder::BoxFuture<'a, binder::Result<()>>; + fn r#RepeatUtf8CppString<'a>(&'a self, _arg_token: &'a str) -> binder::BoxFuture<'a, binder::Result<String>>; + fn r#RepeatNullableUtf8CppString<'a>(&'a self, _arg_token: Option<&'a str>) -> binder::BoxFuture<'a, binder::Result<Option<String>>>; + fn r#ReverseUtf8CppString<'a>(&'a self, _arg_input: &'a [String], _arg_repeated: &'a mut Vec<String>) -> binder::BoxFuture<'a, binder::Result<Vec<String>>>; + fn r#ReverseNullableUtf8CppString<'a>(&'a self, _arg_input: Option<&'a [Option<String>]>, _arg_repeated: &'a mut Option<Vec<Option<String>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<String>>>>>; + fn r#ReverseUtf8CppStringList<'a>(&'a self, _arg_input: Option<&'a [Option<String>]>, _arg_repeated: &'a mut Option<Vec<Option<String>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<String>>>>>; + fn r#GetCallback<'a>(&'a self, _arg_return_null: bool) -> binder::BoxFuture<'a, binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>; + fn r#FillOutStructuredParcelable<'a>(&'a self, _arg_parcel: &'a mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::BoxFuture<'a, binder::Result<()>>; + fn r#RepeatExtendableParcelable<'a>(&'a self, _arg_ep: &'a crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &'a mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::BoxFuture<'a, binder::Result<()>>; + fn r#ReverseList<'a>(&'a self, _arg_list: &'a crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList>>; + fn r#ReverseIBinderArray<'a>(&'a self, _arg_input: &'a [binder::SpIBinder], _arg_repeated: &'a mut Vec<Option<binder::SpIBinder>>) -> binder::BoxFuture<'a, binder::Result<Vec<binder::SpIBinder>>>; + fn r#ReverseNullableIBinderArray<'a>(&'a self, _arg_input: Option<&'a [Option<binder::SpIBinder>]>, _arg_repeated: &'a mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::SpIBinder>>>>>; + fn r#GetOldNameInterface<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>>>; + fn r#GetNewNameInterface<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>>>; + fn r#GetUnionTags<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>>>; + fn r#GetCppJavaTests<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<Option<binder::SpIBinder>>>; + fn r#getBackendType<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType>>; + fn r#GetCircular<'a>(&'a self, _arg_cp: &'a mut crate::mangled::_7_android_4_aidl_5_tests_18_CircularParcelable) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_9_ICircular>>>; } #[::async_trait::async_trait] pub trait ITestServiceAsyncServer: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ITestService" } - async fn UnimplementedMethod(&self, _arg_arg: i32) -> binder::Result<i32>; + async fn r#UnimplementedMethod(&self, _arg_arg: i32) -> binder::Result<i32>; #[deprecated = "to make sure we have something in system/tools/aidl which does a compile check of deprecated and make sure this is reflected in goldens"] - async fn Deprecated(&self) -> binder::Result<()>; - async fn TestOneway(&self) -> binder::Result<()>; - async fn RepeatBoolean(&self, _arg_token: bool) -> binder::Result<bool>; - async fn RepeatByte(&self, _arg_token: i8) -> binder::Result<i8>; - async fn RepeatChar(&self, _arg_token: u16) -> binder::Result<u16>; - async fn RepeatInt(&self, _arg_token: i32) -> binder::Result<i32>; - async fn RepeatLong(&self, _arg_token: i64) -> binder::Result<i64>; - async fn RepeatFloat(&self, _arg_token: f32) -> binder::Result<f32>; - async fn RepeatDouble(&self, _arg_token: f64) -> binder::Result<f64>; - async fn RepeatString(&self, _arg_token: &str) -> binder::Result<String>; - async fn RepeatByteEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>; - async fn RepeatIntEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>; - async fn RepeatLongEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>; - async fn ReverseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>>; - async fn ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>>; - async fn ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u16>>; - async fn ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32>>; - async fn ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i64>>; - async fn ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f32>>; - async fn ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<f64>>; - async fn ReverseString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>>; - async fn ReverseByteEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>; - async fn ReverseIntEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>; - async fn ReverseLongEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>; - async fn GetOtherTestService(&self, _arg_name: &str) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>; - async fn VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str) -> binder::Result<bool>; - async fn GetInterfaceArray(&self, _arg_names: &[String]) -> binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>; - async fn VerifyNamesWithInterfaceArray(&self, _arg_services: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &[String]) -> binder::Result<bool>; - async fn GetNullableInterfaceArray(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>; - async fn VerifyNamesWithNullableInterfaceArray(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool>; - async fn GetInterfaceList(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>; - async fn VerifyNamesWithInterfaceList(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool>; - async fn ReverseStringList(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>>; - async fn RepeatParcelFileDescriptor(&self, _arg_read: &binder::ParcelFileDescriptor) -> binder::Result<binder::ParcelFileDescriptor>; - async fn ReverseParcelFileDescriptorArray(&self, _arg_input: &[binder::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::Result<Vec<binder::ParcelFileDescriptor>>; - async fn ThrowServiceException(&self, _arg_code: i32) -> binder::Result<()>; - async fn RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>) -> binder::Result<Option<Vec<i32>>>; - async fn RepeatNullableByteEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>>; - async fn RepeatNullableIntEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>>; - async fn RepeatNullableLongEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>>; - async fn RepeatNullableString(&self, _arg_input: Option<&str>) -> binder::Result<Option<String>>; - async fn RepeatNullableStringList(&self, _arg_input: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<String>>>>; - async fn RepeatNullableParcelable(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>; - async fn RepeatNullableParcelableArray(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>; - async fn RepeatNullableParcelableList(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>; - async fn TakesAnIBinder(&self, _arg_input: &binder::SpIBinder) -> binder::Result<()>; - async fn TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>) -> binder::Result<()>; - async fn TakesAnIBinderList(&self, _arg_input: &[binder::SpIBinder]) -> binder::Result<()>; - async fn TakesANullableIBinderList(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>) -> binder::Result<()>; - async fn RepeatUtf8CppString(&self, _arg_token: &str) -> binder::Result<String>; - async fn RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>) -> binder::Result<Option<String>>; - async fn ReverseUtf8CppString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>>; - async fn ReverseNullableUtf8CppString(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>>; - async fn ReverseUtf8CppStringList(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>>; - async fn GetCallback(&self, _arg_return_null: bool) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>; - async fn FillOutStructuredParcelable(&self, _arg_parcel: &mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::Result<()>; - async fn RepeatExtendableParcelable(&self, _arg_ep: &crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::Result<()>; - async fn ReverseList(&self, _arg_list: &crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList>; - async fn ReverseIBinderArray(&self, _arg_input: &[binder::SpIBinder], _arg_repeated: &mut Vec<Option<binder::SpIBinder>>) -> binder::Result<Vec<binder::SpIBinder>>; - async fn ReverseNullableIBinderArray(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _arg_repeated: &mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::Result<Option<Vec<Option<binder::SpIBinder>>>>; - async fn GetOldNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>>; - async fn GetNewNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>>; - async fn GetUnionTags(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>>; - async fn GetCppJavaTests(&self) -> binder::Result<Option<binder::SpIBinder>>; - async fn getBackendType(&self) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType>; + async fn r#Deprecated(&self) -> binder::Result<()>; + async fn r#TestOneway(&self) -> binder::Result<()>; + async fn r#RepeatBoolean(&self, _arg_token: bool) -> binder::Result<bool>; + async fn r#RepeatByte(&self, _arg_token: i8) -> binder::Result<i8>; + async fn r#RepeatChar(&self, _arg_token: u16) -> binder::Result<u16>; + async fn r#RepeatInt(&self, _arg_token: i32) -> binder::Result<i32>; + async fn r#RepeatLong(&self, _arg_token: i64) -> binder::Result<i64>; + async fn r#RepeatFloat(&self, _arg_token: f32) -> binder::Result<f32>; + async fn r#RepeatDouble(&self, _arg_token: f64) -> binder::Result<f64>; + async fn r#RepeatString(&self, _arg_token: &str) -> binder::Result<String>; + async fn r#RepeatByteEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>; + async fn r#RepeatIntEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>; + async fn r#RepeatLongEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>; + async fn r#ReverseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>>; + async fn r#ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>>; + async fn r#ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u16>>; + async fn r#ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32>>; + async fn r#ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i64>>; + async fn r#ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f32>>; + async fn r#ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<f64>>; + async fn r#ReverseString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>>; + async fn r#ReverseByteEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>; + async fn r#ReverseIntEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>; + async fn r#ReverseLongEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>; + async fn r#GetOtherTestService(&self, _arg_name: &str) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>; + async fn r#SetOtherTestService(&self, _arg_name: &str, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>) -> binder::Result<bool>; + async fn r#VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str) -> binder::Result<bool>; + async fn r#GetInterfaceArray(&self, _arg_names: &[String]) -> binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>; + async fn r#VerifyNamesWithInterfaceArray(&self, _arg_services: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &[String]) -> binder::Result<bool>; + async fn r#GetNullableInterfaceArray(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>; + async fn r#VerifyNamesWithNullableInterfaceArray(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool>; + async fn r#GetInterfaceList(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>; + async fn r#VerifyNamesWithInterfaceList(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool>; + async fn r#ReverseStringList(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>>; + async fn r#RepeatParcelFileDescriptor(&self, _arg_read: &binder::ParcelFileDescriptor) -> binder::Result<binder::ParcelFileDescriptor>; + async fn r#ReverseParcelFileDescriptorArray(&self, _arg_input: &[binder::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::Result<Vec<binder::ParcelFileDescriptor>>; + async fn r#ThrowServiceException(&self, _arg_code: i32) -> binder::Result<()>; + async fn r#RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>) -> binder::Result<Option<Vec<i32>>>; + async fn r#RepeatNullableByteEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>>; + async fn r#RepeatNullableIntEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>>; + async fn r#RepeatNullableLongEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>>; + async fn r#RepeatNullableString(&self, _arg_input: Option<&str>) -> binder::Result<Option<String>>; + async fn r#RepeatNullableStringList(&self, _arg_input: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<String>>>>; + async fn r#RepeatNullableParcelable(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>; + async fn r#RepeatNullableParcelableArray(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>; + async fn r#RepeatNullableParcelableList(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>; + async fn r#TakesAnIBinder(&self, _arg_input: &binder::SpIBinder) -> binder::Result<()>; + async fn r#TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>) -> binder::Result<()>; + async fn r#TakesAnIBinderList(&self, _arg_input: &[binder::SpIBinder]) -> binder::Result<()>; + async fn r#TakesANullableIBinderList(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>) -> binder::Result<()>; + async fn r#RepeatUtf8CppString(&self, _arg_token: &str) -> binder::Result<String>; + async fn r#RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>) -> binder::Result<Option<String>>; + async fn r#ReverseUtf8CppString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>>; + async fn r#ReverseNullableUtf8CppString(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>>; + async fn r#ReverseUtf8CppStringList(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>>; + async fn r#GetCallback(&self, _arg_return_null: bool) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>; + async fn r#FillOutStructuredParcelable(&self, _arg_parcel: &mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::Result<()>; + async fn r#RepeatExtendableParcelable(&self, _arg_ep: &crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::Result<()>; + async fn r#ReverseList(&self, _arg_list: &crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList>; + async fn r#ReverseIBinderArray(&self, _arg_input: &[binder::SpIBinder], _arg_repeated: &mut Vec<Option<binder::SpIBinder>>) -> binder::Result<Vec<binder::SpIBinder>>; + async fn r#ReverseNullableIBinderArray(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _arg_repeated: &mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::Result<Option<Vec<Option<binder::SpIBinder>>>>; + async fn r#GetOldNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>>; + async fn r#GetNewNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>>; + async fn r#GetUnionTags(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>>; + async fn r#GetCppJavaTests(&self) -> binder::Result<Option<binder::SpIBinder>>; + async fn r#getBackendType(&self) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType>; + async fn r#GetCircular(&self, _arg_cp: &mut crate::mangled::_7_android_4_aidl_5_tests_18_CircularParcelable) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_9_ICircular>>; } impl BnTestService { /// Create a new async binder service. @@ -249,203 +255,209 @@ impl BnTestService { T: ITestServiceAsyncServer + Send + Sync + 'static, R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, { - fn UnimplementedMethod(&self, _arg_arg: i32) -> binder::Result<i32> { - self._rt.block_on(self._inner.UnimplementedMethod(_arg_arg)) + fn r#UnimplementedMethod(&self, _arg_arg: i32) -> binder::Result<i32> { + self._rt.block_on(self._inner.r#UnimplementedMethod(_arg_arg)) } - fn Deprecated(&self) -> binder::Result<()> { - self._rt.block_on(self._inner.Deprecated()) + fn r#Deprecated(&self) -> binder::Result<()> { + self._rt.block_on(self._inner.r#Deprecated()) } - fn TestOneway(&self) -> binder::Result<()> { - self._rt.block_on(self._inner.TestOneway()) + fn r#TestOneway(&self) -> binder::Result<()> { + self._rt.block_on(self._inner.r#TestOneway()) } - fn RepeatBoolean(&self, _arg_token: bool) -> binder::Result<bool> { - self._rt.block_on(self._inner.RepeatBoolean(_arg_token)) + fn r#RepeatBoolean(&self, _arg_token: bool) -> binder::Result<bool> { + self._rt.block_on(self._inner.r#RepeatBoolean(_arg_token)) } - fn RepeatByte(&self, _arg_token: i8) -> binder::Result<i8> { - self._rt.block_on(self._inner.RepeatByte(_arg_token)) + fn r#RepeatByte(&self, _arg_token: i8) -> binder::Result<i8> { + self._rt.block_on(self._inner.r#RepeatByte(_arg_token)) } - fn RepeatChar(&self, _arg_token: u16) -> binder::Result<u16> { - self._rt.block_on(self._inner.RepeatChar(_arg_token)) + fn r#RepeatChar(&self, _arg_token: u16) -> binder::Result<u16> { + self._rt.block_on(self._inner.r#RepeatChar(_arg_token)) } - fn RepeatInt(&self, _arg_token: i32) -> binder::Result<i32> { - self._rt.block_on(self._inner.RepeatInt(_arg_token)) + fn r#RepeatInt(&self, _arg_token: i32) -> binder::Result<i32> { + self._rt.block_on(self._inner.r#RepeatInt(_arg_token)) } - fn RepeatLong(&self, _arg_token: i64) -> binder::Result<i64> { - self._rt.block_on(self._inner.RepeatLong(_arg_token)) + fn r#RepeatLong(&self, _arg_token: i64) -> binder::Result<i64> { + self._rt.block_on(self._inner.r#RepeatLong(_arg_token)) } - fn RepeatFloat(&self, _arg_token: f32) -> binder::Result<f32> { - self._rt.block_on(self._inner.RepeatFloat(_arg_token)) + fn r#RepeatFloat(&self, _arg_token: f32) -> binder::Result<f32> { + self._rt.block_on(self._inner.r#RepeatFloat(_arg_token)) } - fn RepeatDouble(&self, _arg_token: f64) -> binder::Result<f64> { - self._rt.block_on(self._inner.RepeatDouble(_arg_token)) + fn r#RepeatDouble(&self, _arg_token: f64) -> binder::Result<f64> { + self._rt.block_on(self._inner.r#RepeatDouble(_arg_token)) } - fn RepeatString(&self, _arg_token: &str) -> binder::Result<String> { - self._rt.block_on(self._inner.RepeatString(_arg_token)) + fn r#RepeatString(&self, _arg_token: &str) -> binder::Result<String> { + self._rt.block_on(self._inner.r#RepeatString(_arg_token)) } - fn RepeatByteEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum> { - self._rt.block_on(self._inner.RepeatByteEnum(_arg_token)) + fn r#RepeatByteEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum> { + self._rt.block_on(self._inner.r#RepeatByteEnum(_arg_token)) } - fn RepeatIntEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum> { - self._rt.block_on(self._inner.RepeatIntEnum(_arg_token)) + fn r#RepeatIntEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum> { + self._rt.block_on(self._inner.r#RepeatIntEnum(_arg_token)) } - fn RepeatLongEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum> { - self._rt.block_on(self._inner.RepeatLongEnum(_arg_token)) + fn r#RepeatLongEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum> { + self._rt.block_on(self._inner.r#RepeatLongEnum(_arg_token)) } - fn ReverseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>> { - self._rt.block_on(self._inner.ReverseBoolean(_arg_input, _arg_repeated)) + fn r#ReverseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>> { + self._rt.block_on(self._inner.r#ReverseBoolean(_arg_input, _arg_repeated)) } - fn ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>> { - self._rt.block_on(self._inner.ReverseByte(_arg_input, _arg_repeated)) + fn r#ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>> { + self._rt.block_on(self._inner.r#ReverseByte(_arg_input, _arg_repeated)) } - fn ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u16>> { - self._rt.block_on(self._inner.ReverseChar(_arg_input, _arg_repeated)) + fn r#ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u16>> { + self._rt.block_on(self._inner.r#ReverseChar(_arg_input, _arg_repeated)) } - fn ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32>> { - self._rt.block_on(self._inner.ReverseInt(_arg_input, _arg_repeated)) + fn r#ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32>> { + self._rt.block_on(self._inner.r#ReverseInt(_arg_input, _arg_repeated)) } - fn ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i64>> { - self._rt.block_on(self._inner.ReverseLong(_arg_input, _arg_repeated)) + fn r#ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i64>> { + self._rt.block_on(self._inner.r#ReverseLong(_arg_input, _arg_repeated)) } - fn ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f32>> { - self._rt.block_on(self._inner.ReverseFloat(_arg_input, _arg_repeated)) + fn r#ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f32>> { + self._rt.block_on(self._inner.r#ReverseFloat(_arg_input, _arg_repeated)) } - fn ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<f64>> { - self._rt.block_on(self._inner.ReverseDouble(_arg_input, _arg_repeated)) + fn r#ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<f64>> { + self._rt.block_on(self._inner.r#ReverseDouble(_arg_input, _arg_repeated)) } - fn ReverseString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { - self._rt.block_on(self._inner.ReverseString(_arg_input, _arg_repeated)) + fn r#ReverseString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { + self._rt.block_on(self._inner.r#ReverseString(_arg_input, _arg_repeated)) } - fn ReverseByteEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>> { - self._rt.block_on(self._inner.ReverseByteEnum(_arg_input, _arg_repeated)) + fn r#ReverseByteEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>> { + self._rt.block_on(self._inner.r#ReverseByteEnum(_arg_input, _arg_repeated)) } - fn ReverseIntEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>> { - self._rt.block_on(self._inner.ReverseIntEnum(_arg_input, _arg_repeated)) + fn r#ReverseIntEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>> { + self._rt.block_on(self._inner.r#ReverseIntEnum(_arg_input, _arg_repeated)) } - fn ReverseLongEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>> { - self._rt.block_on(self._inner.ReverseLongEnum(_arg_input, _arg_repeated)) + fn r#ReverseLongEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>> { + self._rt.block_on(self._inner.r#ReverseLongEnum(_arg_input, _arg_repeated)) } - fn GetOtherTestService(&self, _arg_name: &str) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>> { - self._rt.block_on(self._inner.GetOtherTestService(_arg_name)) + fn r#GetOtherTestService(&self, _arg_name: &str) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>> { + self._rt.block_on(self._inner.r#GetOtherTestService(_arg_name)) } - fn VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str) -> binder::Result<bool> { - self._rt.block_on(self._inner.VerifyName(_arg_service, _arg_name)) + fn r#SetOtherTestService(&self, _arg_name: &str, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>) -> binder::Result<bool> { + self._rt.block_on(self._inner.r#SetOtherTestService(_arg_name, _arg_service)) } - fn GetInterfaceArray(&self, _arg_names: &[String]) -> binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { - self._rt.block_on(self._inner.GetInterfaceArray(_arg_names)) + fn r#VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str) -> binder::Result<bool> { + self._rt.block_on(self._inner.r#VerifyName(_arg_service, _arg_name)) } - fn VerifyNamesWithInterfaceArray(&self, _arg_services: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &[String]) -> binder::Result<bool> { - self._rt.block_on(self._inner.VerifyNamesWithInterfaceArray(_arg_services, _arg_names)) + fn r#GetInterfaceArray(&self, _arg_names: &[String]) -> binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { + self._rt.block_on(self._inner.r#GetInterfaceArray(_arg_names)) } - fn GetNullableInterfaceArray(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { - self._rt.block_on(self._inner.GetNullableInterfaceArray(_arg_names)) + fn r#VerifyNamesWithInterfaceArray(&self, _arg_services: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &[String]) -> binder::Result<bool> { + self._rt.block_on(self._inner.r#VerifyNamesWithInterfaceArray(_arg_services, _arg_names)) } - fn VerifyNamesWithNullableInterfaceArray(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { - self._rt.block_on(self._inner.VerifyNamesWithNullableInterfaceArray(_arg_services, _arg_names)) + fn r#GetNullableInterfaceArray(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { + self._rt.block_on(self._inner.r#GetNullableInterfaceArray(_arg_names)) } - fn GetInterfaceList(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { - self._rt.block_on(self._inner.GetInterfaceList(_arg_names)) + fn r#VerifyNamesWithNullableInterfaceArray(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { + self._rt.block_on(self._inner.r#VerifyNamesWithNullableInterfaceArray(_arg_services, _arg_names)) } - fn VerifyNamesWithInterfaceList(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { - self._rt.block_on(self._inner.VerifyNamesWithInterfaceList(_arg_services, _arg_names)) + fn r#GetInterfaceList(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { + self._rt.block_on(self._inner.r#GetInterfaceList(_arg_names)) } - fn ReverseStringList(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { - self._rt.block_on(self._inner.ReverseStringList(_arg_input, _arg_repeated)) + fn r#VerifyNamesWithInterfaceList(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { + self._rt.block_on(self._inner.r#VerifyNamesWithInterfaceList(_arg_services, _arg_names)) } - fn RepeatParcelFileDescriptor(&self, _arg_read: &binder::ParcelFileDescriptor) -> binder::Result<binder::ParcelFileDescriptor> { - self._rt.block_on(self._inner.RepeatParcelFileDescriptor(_arg_read)) + fn r#ReverseStringList(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { + self._rt.block_on(self._inner.r#ReverseStringList(_arg_input, _arg_repeated)) } - fn ReverseParcelFileDescriptorArray(&self, _arg_input: &[binder::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::Result<Vec<binder::ParcelFileDescriptor>> { - self._rt.block_on(self._inner.ReverseParcelFileDescriptorArray(_arg_input, _arg_repeated)) + fn r#RepeatParcelFileDescriptor(&self, _arg_read: &binder::ParcelFileDescriptor) -> binder::Result<binder::ParcelFileDescriptor> { + self._rt.block_on(self._inner.r#RepeatParcelFileDescriptor(_arg_read)) } - fn ThrowServiceException(&self, _arg_code: i32) -> binder::Result<()> { - self._rt.block_on(self._inner.ThrowServiceException(_arg_code)) + fn r#ReverseParcelFileDescriptorArray(&self, _arg_input: &[binder::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::Result<Vec<binder::ParcelFileDescriptor>> { + self._rt.block_on(self._inner.r#ReverseParcelFileDescriptorArray(_arg_input, _arg_repeated)) } - fn RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>) -> binder::Result<Option<Vec<i32>>> { - self._rt.block_on(self._inner.RepeatNullableIntArray(_arg_input)) + fn r#ThrowServiceException(&self, _arg_code: i32) -> binder::Result<()> { + self._rt.block_on(self._inner.r#ThrowServiceException(_arg_code)) } - fn RepeatNullableByteEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>> { - self._rt.block_on(self._inner.RepeatNullableByteEnumArray(_arg_input)) + fn r#RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>) -> binder::Result<Option<Vec<i32>>> { + self._rt.block_on(self._inner.r#RepeatNullableIntArray(_arg_input)) } - fn RepeatNullableIntEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>> { - self._rt.block_on(self._inner.RepeatNullableIntEnumArray(_arg_input)) + fn r#RepeatNullableByteEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>> { + self._rt.block_on(self._inner.r#RepeatNullableByteEnumArray(_arg_input)) } - fn RepeatNullableLongEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>> { - self._rt.block_on(self._inner.RepeatNullableLongEnumArray(_arg_input)) + fn r#RepeatNullableIntEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>> { + self._rt.block_on(self._inner.r#RepeatNullableIntEnumArray(_arg_input)) } - fn RepeatNullableString(&self, _arg_input: Option<&str>) -> binder::Result<Option<String>> { - self._rt.block_on(self._inner.RepeatNullableString(_arg_input)) + fn r#RepeatNullableLongEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>> { + self._rt.block_on(self._inner.r#RepeatNullableLongEnumArray(_arg_input)) } - fn RepeatNullableStringList(&self, _arg_input: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<String>>>> { - self._rt.block_on(self._inner.RepeatNullableStringList(_arg_input)) + fn r#RepeatNullableString(&self, _arg_input: Option<&str>) -> binder::Result<Option<String>> { + self._rt.block_on(self._inner.r#RepeatNullableString(_arg_input)) } - fn RepeatNullableParcelable(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>> { - self._rt.block_on(self._inner.RepeatNullableParcelable(_arg_input)) + fn r#RepeatNullableStringList(&self, _arg_input: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<String>>>> { + self._rt.block_on(self._inner.r#RepeatNullableStringList(_arg_input)) } - fn RepeatNullableParcelableArray(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { - self._rt.block_on(self._inner.RepeatNullableParcelableArray(_arg_input)) + fn r#RepeatNullableParcelable(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>> { + self._rt.block_on(self._inner.r#RepeatNullableParcelable(_arg_input)) } - fn RepeatNullableParcelableList(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { - self._rt.block_on(self._inner.RepeatNullableParcelableList(_arg_input)) + fn r#RepeatNullableParcelableArray(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { + self._rt.block_on(self._inner.r#RepeatNullableParcelableArray(_arg_input)) } - fn TakesAnIBinder(&self, _arg_input: &binder::SpIBinder) -> binder::Result<()> { - self._rt.block_on(self._inner.TakesAnIBinder(_arg_input)) + fn r#RepeatNullableParcelableList(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { + self._rt.block_on(self._inner.r#RepeatNullableParcelableList(_arg_input)) } - fn TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>) -> binder::Result<()> { - self._rt.block_on(self._inner.TakesANullableIBinder(_arg_input)) + fn r#TakesAnIBinder(&self, _arg_input: &binder::SpIBinder) -> binder::Result<()> { + self._rt.block_on(self._inner.r#TakesAnIBinder(_arg_input)) } - fn TakesAnIBinderList(&self, _arg_input: &[binder::SpIBinder]) -> binder::Result<()> { - self._rt.block_on(self._inner.TakesAnIBinderList(_arg_input)) + fn r#TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>) -> binder::Result<()> { + self._rt.block_on(self._inner.r#TakesANullableIBinder(_arg_input)) } - fn TakesANullableIBinderList(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>) -> binder::Result<()> { - self._rt.block_on(self._inner.TakesANullableIBinderList(_arg_input)) + fn r#TakesAnIBinderList(&self, _arg_input: &[binder::SpIBinder]) -> binder::Result<()> { + self._rt.block_on(self._inner.r#TakesAnIBinderList(_arg_input)) } - fn RepeatUtf8CppString(&self, _arg_token: &str) -> binder::Result<String> { - self._rt.block_on(self._inner.RepeatUtf8CppString(_arg_token)) + fn r#TakesANullableIBinderList(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>) -> binder::Result<()> { + self._rt.block_on(self._inner.r#TakesANullableIBinderList(_arg_input)) } - fn RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>) -> binder::Result<Option<String>> { - self._rt.block_on(self._inner.RepeatNullableUtf8CppString(_arg_token)) + fn r#RepeatUtf8CppString(&self, _arg_token: &str) -> binder::Result<String> { + self._rt.block_on(self._inner.r#RepeatUtf8CppString(_arg_token)) } - fn ReverseUtf8CppString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { - self._rt.block_on(self._inner.ReverseUtf8CppString(_arg_input, _arg_repeated)) + fn r#RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>) -> binder::Result<Option<String>> { + self._rt.block_on(self._inner.r#RepeatNullableUtf8CppString(_arg_token)) } - fn ReverseNullableUtf8CppString(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { - self._rt.block_on(self._inner.ReverseNullableUtf8CppString(_arg_input, _arg_repeated)) + fn r#ReverseUtf8CppString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { + self._rt.block_on(self._inner.r#ReverseUtf8CppString(_arg_input, _arg_repeated)) } - fn ReverseUtf8CppStringList(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { - self._rt.block_on(self._inner.ReverseUtf8CppStringList(_arg_input, _arg_repeated)) + fn r#ReverseNullableUtf8CppString(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { + self._rt.block_on(self._inner.r#ReverseNullableUtf8CppString(_arg_input, _arg_repeated)) } - fn GetCallback(&self, _arg_return_null: bool) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { - self._rt.block_on(self._inner.GetCallback(_arg_return_null)) + fn r#ReverseUtf8CppStringList(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { + self._rt.block_on(self._inner.r#ReverseUtf8CppStringList(_arg_input, _arg_repeated)) } - fn FillOutStructuredParcelable(&self, _arg_parcel: &mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::Result<()> { - self._rt.block_on(self._inner.FillOutStructuredParcelable(_arg_parcel)) + fn r#GetCallback(&self, _arg_return_null: bool) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { + self._rt.block_on(self._inner.r#GetCallback(_arg_return_null)) } - fn RepeatExtendableParcelable(&self, _arg_ep: &crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::Result<()> { - self._rt.block_on(self._inner.RepeatExtendableParcelable(_arg_ep, _arg_ep2)) + fn r#FillOutStructuredParcelable(&self, _arg_parcel: &mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::Result<()> { + self._rt.block_on(self._inner.r#FillOutStructuredParcelable(_arg_parcel)) } - fn ReverseList(&self, _arg_list: &crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList> { - self._rt.block_on(self._inner.ReverseList(_arg_list)) + fn r#RepeatExtendableParcelable(&self, _arg_ep: &crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::Result<()> { + self._rt.block_on(self._inner.r#RepeatExtendableParcelable(_arg_ep, _arg_ep2)) } - fn ReverseIBinderArray(&self, _arg_input: &[binder::SpIBinder], _arg_repeated: &mut Vec<Option<binder::SpIBinder>>) -> binder::Result<Vec<binder::SpIBinder>> { - self._rt.block_on(self._inner.ReverseIBinderArray(_arg_input, _arg_repeated)) + fn r#ReverseList(&self, _arg_list: &crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList> { + self._rt.block_on(self._inner.r#ReverseList(_arg_list)) } - fn ReverseNullableIBinderArray(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _arg_repeated: &mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::Result<Option<Vec<Option<binder::SpIBinder>>>> { - self._rt.block_on(self._inner.ReverseNullableIBinderArray(_arg_input, _arg_repeated)) + fn r#ReverseIBinderArray(&self, _arg_input: &[binder::SpIBinder], _arg_repeated: &mut Vec<Option<binder::SpIBinder>>) -> binder::Result<Vec<binder::SpIBinder>> { + self._rt.block_on(self._inner.r#ReverseIBinderArray(_arg_input, _arg_repeated)) } - fn GetOldNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>> { - self._rt.block_on(self._inner.GetOldNameInterface()) + fn r#ReverseNullableIBinderArray(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _arg_repeated: &mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::Result<Option<Vec<Option<binder::SpIBinder>>>> { + self._rt.block_on(self._inner.r#ReverseNullableIBinderArray(_arg_input, _arg_repeated)) } - fn GetNewNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>> { - self._rt.block_on(self._inner.GetNewNameInterface()) + fn r#GetOldNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>> { + self._rt.block_on(self._inner.r#GetOldNameInterface()) } - fn GetUnionTags(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>> { - self._rt.block_on(self._inner.GetUnionTags(_arg_input)) + fn r#GetNewNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>> { + self._rt.block_on(self._inner.r#GetNewNameInterface()) } - fn GetCppJavaTests(&self) -> binder::Result<Option<binder::SpIBinder>> { - self._rt.block_on(self._inner.GetCppJavaTests()) + fn r#GetUnionTags(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>> { + self._rt.block_on(self._inner.r#GetUnionTags(_arg_input)) } - fn getBackendType(&self) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType> { - self._rt.block_on(self._inner.getBackendType()) + fn r#GetCppJavaTests(&self) -> binder::Result<Option<binder::SpIBinder>> { + self._rt.block_on(self._inner.r#GetCppJavaTests()) + } + fn r#getBackendType(&self) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType> { + self._rt.block_on(self._inner.r#getBackendType()) + } + fn r#GetCircular(&self, _arg_cp: &mut crate::mangled::_7_android_4_aidl_5_tests_18_CircularParcelable) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_9_ICircular>> { + self._rt.block_on(self._inner.r#GetCircular(_arg_cp)) } } let wrapped = Wrapper { _inner: inner, _rt: rt }; @@ -453,352 +465,376 @@ impl BnTestService { } } pub trait ITestServiceDefault: Send + Sync { - fn UnimplementedMethod(&self, _arg_arg: i32) -> binder::Result<i32> { + fn r#UnimplementedMethod(&self, _arg_arg: i32) -> binder::Result<i32> { + Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) + } + fn r#Deprecated(&self) -> binder::Result<()> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn Deprecated(&self) -> binder::Result<()> { + fn r#TestOneway(&self) -> binder::Result<()> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn TestOneway(&self) -> binder::Result<()> { + fn r#RepeatBoolean(&self, _arg_token: bool) -> binder::Result<bool> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatBoolean(&self, _arg_token: bool) -> binder::Result<bool> { + fn r#RepeatByte(&self, _arg_token: i8) -> binder::Result<i8> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatByte(&self, _arg_token: i8) -> binder::Result<i8> { + fn r#RepeatChar(&self, _arg_token: u16) -> binder::Result<u16> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatChar(&self, _arg_token: u16) -> binder::Result<u16> { + fn r#RepeatInt(&self, _arg_token: i32) -> binder::Result<i32> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatInt(&self, _arg_token: i32) -> binder::Result<i32> { + fn r#RepeatLong(&self, _arg_token: i64) -> binder::Result<i64> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatLong(&self, _arg_token: i64) -> binder::Result<i64> { + fn r#RepeatFloat(&self, _arg_token: f32) -> binder::Result<f32> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatFloat(&self, _arg_token: f32) -> binder::Result<f32> { + fn r#RepeatDouble(&self, _arg_token: f64) -> binder::Result<f64> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatDouble(&self, _arg_token: f64) -> binder::Result<f64> { + fn r#RepeatString(&self, _arg_token: &str) -> binder::Result<String> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatString(&self, _arg_token: &str) -> binder::Result<String> { + fn r#RepeatByteEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatByteEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum> { + fn r#RepeatIntEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatIntEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum> { + fn r#RepeatLongEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatLongEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum> { + fn r#ReverseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>> { + fn r#ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>> { + fn r#ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u16>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u16>> { + fn r#ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32>> { + fn r#ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i64>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i64>> { + fn r#ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f32>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f32>> { + fn r#ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<f64>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<f64>> { + fn r#ReverseString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { + fn r#ReverseByteEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseByteEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>> { + fn r#ReverseIntEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseIntEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>> { + fn r#ReverseLongEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseLongEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>> { + fn r#GetOtherTestService(&self, _arg_name: &str) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn GetOtherTestService(&self, _arg_name: &str) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>> { + fn r#SetOtherTestService(&self, _arg_name: &str, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>) -> binder::Result<bool> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str) -> binder::Result<bool> { + fn r#VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str) -> binder::Result<bool> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn GetInterfaceArray(&self, _arg_names: &[String]) -> binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { + fn r#GetInterfaceArray(&self, _arg_names: &[String]) -> binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn VerifyNamesWithInterfaceArray(&self, _arg_services: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &[String]) -> binder::Result<bool> { + fn r#VerifyNamesWithInterfaceArray(&self, _arg_services: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &[String]) -> binder::Result<bool> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn GetNullableInterfaceArray(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { + fn r#GetNullableInterfaceArray(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn VerifyNamesWithNullableInterfaceArray(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { + fn r#VerifyNamesWithNullableInterfaceArray(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn GetInterfaceList(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { + fn r#GetInterfaceList(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn VerifyNamesWithInterfaceList(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { + fn r#VerifyNamesWithInterfaceList(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseStringList(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { + fn r#ReverseStringList(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatParcelFileDescriptor(&self, _arg_read: &binder::ParcelFileDescriptor) -> binder::Result<binder::ParcelFileDescriptor> { + fn r#RepeatParcelFileDescriptor(&self, _arg_read: &binder::ParcelFileDescriptor) -> binder::Result<binder::ParcelFileDescriptor> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseParcelFileDescriptorArray(&self, _arg_input: &[binder::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::Result<Vec<binder::ParcelFileDescriptor>> { + fn r#ReverseParcelFileDescriptorArray(&self, _arg_input: &[binder::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::Result<Vec<binder::ParcelFileDescriptor>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ThrowServiceException(&self, _arg_code: i32) -> binder::Result<()> { + fn r#ThrowServiceException(&self, _arg_code: i32) -> binder::Result<()> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>) -> binder::Result<Option<Vec<i32>>> { + fn r#RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>) -> binder::Result<Option<Vec<i32>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatNullableByteEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>> { + fn r#RepeatNullableByteEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatNullableIntEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>> { + fn r#RepeatNullableIntEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatNullableLongEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>> { + fn r#RepeatNullableLongEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatNullableString(&self, _arg_input: Option<&str>) -> binder::Result<Option<String>> { + fn r#RepeatNullableString(&self, _arg_input: Option<&str>) -> binder::Result<Option<String>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatNullableStringList(&self, _arg_input: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<String>>>> { + fn r#RepeatNullableStringList(&self, _arg_input: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<String>>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatNullableParcelable(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>> { + fn r#RepeatNullableParcelable(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatNullableParcelableArray(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { + fn r#RepeatNullableParcelableArray(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatNullableParcelableList(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { + fn r#RepeatNullableParcelableList(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn TakesAnIBinder(&self, _arg_input: &binder::SpIBinder) -> binder::Result<()> { + fn r#TakesAnIBinder(&self, _arg_input: &binder::SpIBinder) -> binder::Result<()> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>) -> binder::Result<()> { + fn r#TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>) -> binder::Result<()> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn TakesAnIBinderList(&self, _arg_input: &[binder::SpIBinder]) -> binder::Result<()> { + fn r#TakesAnIBinderList(&self, _arg_input: &[binder::SpIBinder]) -> binder::Result<()> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn TakesANullableIBinderList(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>) -> binder::Result<()> { + fn r#TakesANullableIBinderList(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>) -> binder::Result<()> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatUtf8CppString(&self, _arg_token: &str) -> binder::Result<String> { + fn r#RepeatUtf8CppString(&self, _arg_token: &str) -> binder::Result<String> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>) -> binder::Result<Option<String>> { + fn r#RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>) -> binder::Result<Option<String>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseUtf8CppString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { + fn r#ReverseUtf8CppString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseNullableUtf8CppString(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { + fn r#ReverseNullableUtf8CppString(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseUtf8CppStringList(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { + fn r#ReverseUtf8CppStringList(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn GetCallback(&self, _arg_return_null: bool) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { + fn r#GetCallback(&self, _arg_return_null: bool) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn FillOutStructuredParcelable(&self, _arg_parcel: &mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::Result<()> { + fn r#FillOutStructuredParcelable(&self, _arg_parcel: &mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::Result<()> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn RepeatExtendableParcelable(&self, _arg_ep: &crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::Result<()> { + fn r#RepeatExtendableParcelable(&self, _arg_ep: &crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::Result<()> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseList(&self, _arg_list: &crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList> { + fn r#ReverseList(&self, _arg_list: &crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseIBinderArray(&self, _arg_input: &[binder::SpIBinder], _arg_repeated: &mut Vec<Option<binder::SpIBinder>>) -> binder::Result<Vec<binder::SpIBinder>> { + fn r#ReverseIBinderArray(&self, _arg_input: &[binder::SpIBinder], _arg_repeated: &mut Vec<Option<binder::SpIBinder>>) -> binder::Result<Vec<binder::SpIBinder>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn ReverseNullableIBinderArray(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _arg_repeated: &mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::Result<Option<Vec<Option<binder::SpIBinder>>>> { + fn r#ReverseNullableIBinderArray(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _arg_repeated: &mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::Result<Option<Vec<Option<binder::SpIBinder>>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn GetOldNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>> { + fn r#GetOldNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn GetNewNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>> { + fn r#GetNewNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn GetUnionTags(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>> { + fn r#GetUnionTags(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn GetCppJavaTests(&self) -> binder::Result<Option<binder::SpIBinder>> { + fn r#GetCppJavaTests(&self) -> binder::Result<Option<binder::SpIBinder>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn getBackendType(&self) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType> { + fn r#getBackendType(&self) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType> { + Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) + } + fn r#GetCircular(&self, _arg_cp: &mut crate::mangled::_7_android_4_aidl_5_tests_18_CircularParcelable) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_9_ICircular>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } } pub mod transactions { - pub const UnimplementedMethod: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; - pub const Deprecated: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 1; - pub const TestOneway: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 2; - pub const RepeatBoolean: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 3; - pub const RepeatByte: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 4; - pub const RepeatChar: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 5; - pub const RepeatInt: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 6; - pub const RepeatLong: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 7; - pub const RepeatFloat: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 8; - pub const RepeatDouble: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 9; - pub const RepeatString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 10; - pub const RepeatByteEnum: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 11; - pub const RepeatIntEnum: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 12; - pub const RepeatLongEnum: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 13; - pub const ReverseBoolean: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 14; - pub const ReverseByte: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 15; - pub const ReverseChar: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 16; - pub const ReverseInt: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 17; - pub const ReverseLong: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 18; - pub const ReverseFloat: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 19; - pub const ReverseDouble: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 20; - pub const ReverseString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 21; - pub const ReverseByteEnum: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 22; - pub const ReverseIntEnum: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 23; - pub const ReverseLongEnum: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 24; - pub const GetOtherTestService: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 25; - pub const VerifyName: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 26; - pub const GetInterfaceArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 27; - pub const VerifyNamesWithInterfaceArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 28; - pub const GetNullableInterfaceArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 29; - pub const VerifyNamesWithNullableInterfaceArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 30; - pub const GetInterfaceList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 31; - pub const VerifyNamesWithInterfaceList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 32; - pub const ReverseStringList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 33; - pub const RepeatParcelFileDescriptor: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 34; - pub const ReverseParcelFileDescriptorArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 35; - pub const ThrowServiceException: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 36; - pub const RepeatNullableIntArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 37; - pub const RepeatNullableByteEnumArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 38; - pub const RepeatNullableIntEnumArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 39; - pub const RepeatNullableLongEnumArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 40; - pub const RepeatNullableString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 41; - pub const RepeatNullableStringList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 42; - pub const RepeatNullableParcelable: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 43; - pub const RepeatNullableParcelableArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 44; - pub const RepeatNullableParcelableList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 45; - pub const TakesAnIBinder: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 46; - pub const TakesANullableIBinder: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 47; - pub const TakesAnIBinderList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 48; - pub const TakesANullableIBinderList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 49; - pub const RepeatUtf8CppString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 50; - pub const RepeatNullableUtf8CppString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 51; - pub const ReverseUtf8CppString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 52; - pub const ReverseNullableUtf8CppString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 53; - pub const ReverseUtf8CppStringList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 54; - pub const GetCallback: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 55; - pub const FillOutStructuredParcelable: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 56; - pub const RepeatExtendableParcelable: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 57; - pub const ReverseList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 58; - pub const ReverseIBinderArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 59; - pub const ReverseNullableIBinderArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 60; - pub const GetOldNameInterface: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 61; - pub const GetNewNameInterface: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 62; - pub const GetUnionTags: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 63; - pub const GetCppJavaTests: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 64; - pub const getBackendType: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 65; + pub const r#UnimplementedMethod: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; + pub const r#Deprecated: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 1; + pub const r#TestOneway: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 2; + pub const r#RepeatBoolean: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 3; + pub const r#RepeatByte: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 4; + pub const r#RepeatChar: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 5; + pub const r#RepeatInt: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 6; + pub const r#RepeatLong: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 7; + pub const r#RepeatFloat: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 8; + pub const r#RepeatDouble: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 9; + pub const r#RepeatString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 10; + pub const r#RepeatByteEnum: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 11; + pub const r#RepeatIntEnum: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 12; + pub const r#RepeatLongEnum: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 13; + pub const r#ReverseBoolean: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 14; + pub const r#ReverseByte: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 15; + pub const r#ReverseChar: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 16; + pub const r#ReverseInt: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 17; + pub const r#ReverseLong: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 18; + pub const r#ReverseFloat: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 19; + pub const r#ReverseDouble: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 20; + pub const r#ReverseString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 21; + pub const r#ReverseByteEnum: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 22; + pub const r#ReverseIntEnum: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 23; + pub const r#ReverseLongEnum: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 24; + pub const r#GetOtherTestService: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 25; + pub const r#SetOtherTestService: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 26; + pub const r#VerifyName: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 27; + pub const r#GetInterfaceArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 28; + pub const r#VerifyNamesWithInterfaceArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 29; + pub const r#GetNullableInterfaceArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 30; + pub const r#VerifyNamesWithNullableInterfaceArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 31; + pub const r#GetInterfaceList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 32; + pub const r#VerifyNamesWithInterfaceList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 33; + pub const r#ReverseStringList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 34; + pub const r#RepeatParcelFileDescriptor: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 35; + pub const r#ReverseParcelFileDescriptorArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 36; + pub const r#ThrowServiceException: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 37; + pub const r#RepeatNullableIntArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 38; + pub const r#RepeatNullableByteEnumArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 39; + pub const r#RepeatNullableIntEnumArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 40; + pub const r#RepeatNullableLongEnumArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 41; + pub const r#RepeatNullableString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 42; + pub const r#RepeatNullableStringList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 43; + pub const r#RepeatNullableParcelable: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 44; + pub const r#RepeatNullableParcelableArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 45; + pub const r#RepeatNullableParcelableList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 46; + pub const r#TakesAnIBinder: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 47; + pub const r#TakesANullableIBinder: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 48; + pub const r#TakesAnIBinderList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 49; + pub const r#TakesANullableIBinderList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 50; + pub const r#RepeatUtf8CppString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 51; + pub const r#RepeatNullableUtf8CppString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 52; + pub const r#ReverseUtf8CppString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 53; + pub const r#ReverseNullableUtf8CppString: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 54; + pub const r#ReverseUtf8CppStringList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 55; + pub const r#GetCallback: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 56; + pub const r#FillOutStructuredParcelable: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 57; + pub const r#RepeatExtendableParcelable: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 58; + pub const r#ReverseList: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 59; + pub const r#ReverseIBinderArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 60; + pub const r#ReverseNullableIBinderArray: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 61; + pub const r#GetOldNameInterface: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 62; + pub const r#GetNewNameInterface: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 63; + pub const r#GetUnionTags: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 64; + pub const r#GetCppJavaTests: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 65; + pub const r#getBackendType: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 66; + pub const r#GetCircular: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 67; } pub type ITestServiceDefaultRef = Option<std::sync::Arc<dyn ITestServiceDefault>>; use lazy_static::lazy_static; lazy_static! { static ref DEFAULT_IMPL: std::sync::Mutex<ITestServiceDefaultRef> = std::sync::Mutex::new(None); } -pub const TEST_CONSTANT: i32 = 42; -pub const TEST_CONSTANT2: i32 = -42; -pub const TEST_CONSTANT3: i32 = 42; -pub const TEST_CONSTANT4: i32 = 4; -pub const TEST_CONSTANT5: i32 = -4; -pub const TEST_CONSTANT6: i32 = 0; -pub const TEST_CONSTANT7: i32 = 0; -pub const TEST_CONSTANT8: i32 = 0; -pub const TEST_CONSTANT9: i32 = 86; -pub const TEST_CONSTANT10: i32 = 165; -pub const TEST_CONSTANT11: i32 = 250; -pub const TEST_CONSTANT12: i32 = -1; -pub const BYTE_TEST_CONSTANT: i8 = 17; -pub const LONG_TEST_CONSTANT: i64 = 1099511627776; -pub const STRING_TEST_CONSTANT: &str = "foo"; -pub const STRING_TEST_CONSTANT2: &str = "bar"; -pub const STRING_TEST_CONSTANT_UTF8: &str = "baz"; -pub const A1: i32 = 1; -pub const A2: i32 = 1; -pub const A3: i32 = 1; -pub const A4: i32 = 1; -pub const A5: i32 = 1; -pub const A6: i32 = 1; -pub const A7: i32 = 1; -pub const A8: i32 = 1; -pub const A9: i32 = 1; -pub const A10: i32 = 1; -pub const A11: i32 = 1; -pub const A12: i32 = 1; -pub const A13: i32 = 1; -pub const A14: i32 = 1; -pub const A15: i32 = 1; -pub const A16: i32 = 1; -pub const A17: i32 = 1; -pub const A18: i32 = 1; -pub const A19: i32 = 1; -pub const A20: i32 = 1; -pub const A21: i32 = 1; -pub const A22: i32 = 1; -pub const A23: i32 = 1; -pub const A24: i32 = 1; -pub const A25: i32 = 1; -pub const A26: i32 = 1; -pub const A27: i32 = 1; -pub const A28: i32 = 1; -pub const A29: i32 = 1; -pub const A30: i32 = 1; -pub const A31: i32 = 1; -pub const A32: i32 = 1; -pub const A33: i32 = 1; -pub const A34: i32 = 1; -pub const A35: i32 = 1; -pub const A36: i32 = 1; -pub const A37: i32 = 1; -pub const A38: i32 = 1; -pub const A39: i32 = 1; -pub const A40: i32 = 1; -pub const A41: i32 = 1; -pub const A42: i32 = 1; -pub const A43: i32 = 1; -pub const A44: i32 = 1; -pub const A45: i32 = 1; -pub const A46: i32 = 1; -pub const A47: i32 = 1; -pub const A48: i32 = 1; -pub const A49: i32 = 1; -pub const A50: i32 = 1; -pub const A51: i32 = 1; -pub const A52: i32 = 1; -pub const A53: i32 = 1; -pub const A54: i32 = 1; -pub const A55: i32 = 1; -pub const A56: i32 = 1; -pub const A57: i32 = 1; +pub const r#TEST_CONSTANT: i32 = 42; +pub const r#TEST_CONSTANT2: i32 = -42; +pub const r#TEST_CONSTANT3: i32 = 42; +pub const r#TEST_CONSTANT4: i32 = 4; +pub const r#TEST_CONSTANT5: i32 = -4; +pub const r#TEST_CONSTANT6: i32 = 0; +pub const r#TEST_CONSTANT7: i32 = 0; +pub const r#TEST_CONSTANT8: i32 = 0; +pub const r#TEST_CONSTANT9: i32 = 86; +pub const r#TEST_CONSTANT10: i32 = 165; +pub const r#TEST_CONSTANT11: i32 = 250; +pub const r#TEST_CONSTANT12: i32 = -1; +pub const r#BYTE_TEST_CONSTANT: i8 = 17; +pub const r#LONG_TEST_CONSTANT: i64 = 1099511627776; +pub const r#STRING_TEST_CONSTANT: &str = "foo"; +pub const r#STRING_TEST_CONSTANT2: &str = "bar"; +pub const r#FLOAT_TEST_CONSTANT: f32 = 1.000000f32; +pub const r#FLOAT_TEST_CONSTANT2: f32 = -1.000000f32; +pub const r#FLOAT_TEST_CONSTANT3: f32 = 1.000000f32; +pub const r#FLOAT_TEST_CONSTANT4: f32 = 2.200000f32; +pub const r#FLOAT_TEST_CONSTANT5: f32 = -2.200000f32; +pub const r#FLOAT_TEST_CONSTANT6: f32 = -0.000000f32; +pub const r#FLOAT_TEST_CONSTANT7: f32 = 0.000000f32; +pub const r#DOUBLE_TEST_CONSTANT: f64 = 1.000000f64; +pub const r#DOUBLE_TEST_CONSTANT2: f64 = -1.000000f64; +pub const r#DOUBLE_TEST_CONSTANT3: f64 = 1.000000f64; +pub const r#DOUBLE_TEST_CONSTANT4: f64 = 2.200000f64; +pub const r#DOUBLE_TEST_CONSTANT5: f64 = -2.200000f64; +pub const r#DOUBLE_TEST_CONSTANT6: f64 = -0.000000f64; +pub const r#DOUBLE_TEST_CONSTANT7: f64 = 0.000000f64; +pub const r#DOUBLE_TEST_CONSTANT8: f64 = 1.100000f64; +pub const r#DOUBLE_TEST_CONSTANT9: f64 = -1.100000f64; +pub const r#STRING_TEST_CONSTANT_UTF8: &str = "baz"; +pub const r#A1: i32 = 1; +pub const r#A2: i32 = 1; +pub const r#A3: i32 = 1; +pub const r#A4: i32 = 1; +pub const r#A5: i32 = 1; +pub const r#A6: i32 = 1; +pub const r#A7: i32 = 1; +pub const r#A8: i32 = 1; +pub const r#A9: i32 = 1; +pub const r#A10: i32 = 1; +pub const r#A11: i32 = 1; +pub const r#A12: i32 = 1; +pub const r#A13: i32 = 1; +pub const r#A14: i32 = 1; +pub const r#A15: i32 = 1; +pub const r#A16: i32 = 1; +pub const r#A17: i32 = 1; +pub const r#A18: i32 = 1; +pub const r#A19: i32 = 1; +pub const r#A20: i32 = 1; +pub const r#A21: i32 = 1; +pub const r#A22: i32 = 1; +pub const r#A23: i32 = 1; +pub const r#A24: i32 = 1; +pub const r#A25: i32 = 1; +pub const r#A26: i32 = 1; +pub const r#A27: i32 = 1; +pub const r#A28: i32 = 1; +pub const r#A29: i32 = 1; +pub const r#A30: i32 = 1; +pub const r#A31: i32 = 1; +pub const r#A32: i32 = 1; +pub const r#A33: i32 = 1; +pub const r#A34: i32 = 1; +pub const r#A35: i32 = 1; +pub const r#A36: i32 = 1; +pub const r#A37: i32 = 1; +pub const r#A38: i32 = 1; +pub const r#A39: i32 = 1; +pub const r#A40: i32 = 1; +pub const r#A41: i32 = 1; +pub const r#A42: i32 = 1; +pub const r#A43: i32 = 1; +pub const r#A44: i32 = 1; +pub const r#A45: i32 = 1; +pub const r#A46: i32 = 1; +pub const r#A47: i32 = 1; +pub const r#A48: i32 = 1; +pub const r#A49: i32 = 1; +pub const r#A50: i32 = 1; +pub const r#A51: i32 = 1; +pub const r#A52: i32 = 1; +pub const r#A53: i32 = 1; +pub const r#A54: i32 = 1; +pub const r#A55: i32 = 1; +pub const r#A56: i32 = 1; +pub const r#A57: i32 = 1; impl BpTestService { fn build_parcel_UnimplementedMethod(&self, _arg_arg: i32) -> binder::Result<binder::binder_impl::Parcel> { let mut aidl_data = self.binder.prepare_transact()?; @@ -809,7 +845,7 @@ impl BpTestService { fn read_response_UnimplementedMethod(&self, _arg_arg: i32, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<i32> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.UnimplementedMethod(_arg_arg); + return _aidl_default_impl.r#UnimplementedMethod(_arg_arg); } } let _aidl_reply = _aidl_reply?; @@ -826,7 +862,7 @@ impl BpTestService { fn read_response_Deprecated(&self, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<()> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.Deprecated(); + return _aidl_default_impl.r#Deprecated(); } } let _aidl_reply = _aidl_reply?; @@ -842,7 +878,7 @@ impl BpTestService { fn read_response_TestOneway(&self, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<()> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.TestOneway(); + return _aidl_default_impl.r#TestOneway(); } } let _aidl_reply = _aidl_reply?; @@ -857,7 +893,7 @@ impl BpTestService { fn read_response_RepeatBoolean(&self, _arg_token: bool, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<bool> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatBoolean(_arg_token); + return _aidl_default_impl.r#RepeatBoolean(_arg_token); } } let _aidl_reply = _aidl_reply?; @@ -875,7 +911,7 @@ impl BpTestService { fn read_response_RepeatByte(&self, _arg_token: i8, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<i8> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatByte(_arg_token); + return _aidl_default_impl.r#RepeatByte(_arg_token); } } let _aidl_reply = _aidl_reply?; @@ -893,7 +929,7 @@ impl BpTestService { fn read_response_RepeatChar(&self, _arg_token: u16, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<u16> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatChar(_arg_token); + return _aidl_default_impl.r#RepeatChar(_arg_token); } } let _aidl_reply = _aidl_reply?; @@ -911,7 +947,7 @@ impl BpTestService { fn read_response_RepeatInt(&self, _arg_token: i32, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<i32> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatInt(_arg_token); + return _aidl_default_impl.r#RepeatInt(_arg_token); } } let _aidl_reply = _aidl_reply?; @@ -929,7 +965,7 @@ impl BpTestService { fn read_response_RepeatLong(&self, _arg_token: i64, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<i64> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatLong(_arg_token); + return _aidl_default_impl.r#RepeatLong(_arg_token); } } let _aidl_reply = _aidl_reply?; @@ -947,7 +983,7 @@ impl BpTestService { fn read_response_RepeatFloat(&self, _arg_token: f32, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<f32> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatFloat(_arg_token); + return _aidl_default_impl.r#RepeatFloat(_arg_token); } } let _aidl_reply = _aidl_reply?; @@ -965,7 +1001,7 @@ impl BpTestService { fn read_response_RepeatDouble(&self, _arg_token: f64, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<f64> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatDouble(_arg_token); + return _aidl_default_impl.r#RepeatDouble(_arg_token); } } let _aidl_reply = _aidl_reply?; @@ -983,7 +1019,7 @@ impl BpTestService { fn read_response_RepeatString(&self, _arg_token: &str, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<String> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatString(_arg_token); + return _aidl_default_impl.r#RepeatString(_arg_token); } } let _aidl_reply = _aidl_reply?; @@ -1001,7 +1037,7 @@ impl BpTestService { fn read_response_RepeatByteEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatByteEnum(_arg_token); + return _aidl_default_impl.r#RepeatByteEnum(_arg_token); } } let _aidl_reply = _aidl_reply?; @@ -1019,7 +1055,7 @@ impl BpTestService { fn read_response_RepeatIntEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatIntEnum(_arg_token); + return _aidl_default_impl.r#RepeatIntEnum(_arg_token); } } let _aidl_reply = _aidl_reply?; @@ -1037,7 +1073,7 @@ impl BpTestService { fn read_response_RepeatLongEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatLongEnum(_arg_token); + return _aidl_default_impl.r#RepeatLongEnum(_arg_token); } } let _aidl_reply = _aidl_reply?; @@ -1056,7 +1092,7 @@ impl BpTestService { fn read_response_ReverseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<bool>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseBoolean(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseBoolean(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1076,7 +1112,7 @@ impl BpTestService { fn read_response_ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<u8>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseByte(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseByte(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1096,7 +1132,7 @@ impl BpTestService { fn read_response_ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<u16>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseChar(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseChar(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1116,7 +1152,7 @@ impl BpTestService { fn read_response_ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<i32>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseInt(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseInt(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1136,7 +1172,7 @@ impl BpTestService { fn read_response_ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<i64>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseLong(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseLong(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1156,7 +1192,7 @@ impl BpTestService { fn read_response_ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<f32>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseFloat(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseFloat(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1176,7 +1212,7 @@ impl BpTestService { fn read_response_ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<f64>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseDouble(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseDouble(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1196,7 +1232,7 @@ impl BpTestService { fn read_response_ReverseString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<String>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseString(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseString(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1216,7 +1252,7 @@ impl BpTestService { fn read_response_ReverseByteEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseByteEnum(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseByteEnum(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1236,7 +1272,7 @@ impl BpTestService { fn read_response_ReverseIntEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseIntEnum(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseIntEnum(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1256,7 +1292,7 @@ impl BpTestService { fn read_response_ReverseLongEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseLongEnum(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseLongEnum(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1275,7 +1311,7 @@ impl BpTestService { fn read_response_GetOtherTestService(&self, _arg_name: &str, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.GetOtherTestService(_arg_name); + return _aidl_default_impl.r#GetOtherTestService(_arg_name); } } let _aidl_reply = _aidl_reply?; @@ -1284,6 +1320,25 @@ impl BpTestService { let _aidl_return: binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback> = _aidl_reply.read()?; Ok(_aidl_return) } + fn build_parcel_SetOtherTestService(&self, _arg_name: &str, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>) -> binder::Result<binder::binder_impl::Parcel> { + let mut aidl_data = self.binder.prepare_transact()?; + aidl_data.mark_sensitive(); + aidl_data.write(_arg_name)?; + aidl_data.write(_arg_service)?; + Ok(aidl_data) + } + fn read_response_SetOtherTestService(&self, _arg_name: &str, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<bool> { + if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { + if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { + return _aidl_default_impl.r#SetOtherTestService(_arg_name, _arg_service); + } + } + let _aidl_reply = _aidl_reply?; + let _aidl_status: binder::Status = _aidl_reply.read()?; + if !_aidl_status.is_ok() { return Err(_aidl_status); } + let _aidl_return: bool = _aidl_reply.read()?; + Ok(_aidl_return) + } fn build_parcel_VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str) -> binder::Result<binder::binder_impl::Parcel> { let mut aidl_data = self.binder.prepare_transact()?; aidl_data.mark_sensitive(); @@ -1294,7 +1349,7 @@ impl BpTestService { fn read_response_VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<bool> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.VerifyName(_arg_service, _arg_name); + return _aidl_default_impl.r#VerifyName(_arg_service, _arg_name); } } let _aidl_reply = _aidl_reply?; @@ -1312,7 +1367,7 @@ impl BpTestService { fn read_response_GetInterfaceArray(&self, _arg_names: &[String], _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.GetInterfaceArray(_arg_names); + return _aidl_default_impl.r#GetInterfaceArray(_arg_names); } } let _aidl_reply = _aidl_reply?; @@ -1331,7 +1386,7 @@ impl BpTestService { fn read_response_VerifyNamesWithInterfaceArray(&self, _arg_services: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &[String], _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<bool> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.VerifyNamesWithInterfaceArray(_arg_services, _arg_names); + return _aidl_default_impl.r#VerifyNamesWithInterfaceArray(_arg_services, _arg_names); } } let _aidl_reply = _aidl_reply?; @@ -1349,7 +1404,7 @@ impl BpTestService { fn read_response_GetNullableInterfaceArray(&self, _arg_names: Option<&[Option<String>]>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.GetNullableInterfaceArray(_arg_names); + return _aidl_default_impl.r#GetNullableInterfaceArray(_arg_names); } } let _aidl_reply = _aidl_reply?; @@ -1368,7 +1423,7 @@ impl BpTestService { fn read_response_VerifyNamesWithNullableInterfaceArray(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<bool> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.VerifyNamesWithNullableInterfaceArray(_arg_services, _arg_names); + return _aidl_default_impl.r#VerifyNamesWithNullableInterfaceArray(_arg_services, _arg_names); } } let _aidl_reply = _aidl_reply?; @@ -1386,7 +1441,7 @@ impl BpTestService { fn read_response_GetInterfaceList(&self, _arg_names: Option<&[Option<String>]>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.GetInterfaceList(_arg_names); + return _aidl_default_impl.r#GetInterfaceList(_arg_names); } } let _aidl_reply = _aidl_reply?; @@ -1405,7 +1460,7 @@ impl BpTestService { fn read_response_VerifyNamesWithInterfaceList(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<bool> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.VerifyNamesWithInterfaceList(_arg_services, _arg_names); + return _aidl_default_impl.r#VerifyNamesWithInterfaceList(_arg_services, _arg_names); } } let _aidl_reply = _aidl_reply?; @@ -1423,7 +1478,7 @@ impl BpTestService { fn read_response_ReverseStringList(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<String>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseStringList(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseStringList(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1442,7 +1497,7 @@ impl BpTestService { fn read_response_RepeatParcelFileDescriptor(&self, _arg_read: &binder::ParcelFileDescriptor, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<binder::ParcelFileDescriptor> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatParcelFileDescriptor(_arg_read); + return _aidl_default_impl.r#RepeatParcelFileDescriptor(_arg_read); } } let _aidl_reply = _aidl_reply?; @@ -1461,7 +1516,7 @@ impl BpTestService { fn read_response_ReverseParcelFileDescriptorArray(&self, _arg_input: &[binder::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::ParcelFileDescriptor>>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<binder::ParcelFileDescriptor>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseParcelFileDescriptorArray(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseParcelFileDescriptorArray(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1480,7 +1535,7 @@ impl BpTestService { fn read_response_ThrowServiceException(&self, _arg_code: i32, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<()> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ThrowServiceException(_arg_code); + return _aidl_default_impl.r#ThrowServiceException(_arg_code); } } let _aidl_reply = _aidl_reply?; @@ -1497,7 +1552,7 @@ impl BpTestService { fn read_response_RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<i32>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatNullableIntArray(_arg_input); + return _aidl_default_impl.r#RepeatNullableIntArray(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1515,7 +1570,7 @@ impl BpTestService { fn read_response_RepeatNullableByteEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatNullableByteEnumArray(_arg_input); + return _aidl_default_impl.r#RepeatNullableByteEnumArray(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1533,7 +1588,7 @@ impl BpTestService { fn read_response_RepeatNullableIntEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatNullableIntEnumArray(_arg_input); + return _aidl_default_impl.r#RepeatNullableIntEnumArray(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1551,7 +1606,7 @@ impl BpTestService { fn read_response_RepeatNullableLongEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatNullableLongEnumArray(_arg_input); + return _aidl_default_impl.r#RepeatNullableLongEnumArray(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1569,7 +1624,7 @@ impl BpTestService { fn read_response_RepeatNullableString(&self, _arg_input: Option<&str>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<String>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatNullableString(_arg_input); + return _aidl_default_impl.r#RepeatNullableString(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1587,7 +1642,7 @@ impl BpTestService { fn read_response_RepeatNullableStringList(&self, _arg_input: Option<&[Option<String>]>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<Option<String>>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatNullableStringList(_arg_input); + return _aidl_default_impl.r#RepeatNullableStringList(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1605,7 +1660,7 @@ impl BpTestService { fn read_response_RepeatNullableParcelable(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatNullableParcelable(_arg_input); + return _aidl_default_impl.r#RepeatNullableParcelable(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1623,7 +1678,7 @@ impl BpTestService { fn read_response_RepeatNullableParcelableArray(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatNullableParcelableArray(_arg_input); + return _aidl_default_impl.r#RepeatNullableParcelableArray(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1641,7 +1696,7 @@ impl BpTestService { fn read_response_RepeatNullableParcelableList(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatNullableParcelableList(_arg_input); + return _aidl_default_impl.r#RepeatNullableParcelableList(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1659,7 +1714,7 @@ impl BpTestService { fn read_response_TakesAnIBinder(&self, _arg_input: &binder::SpIBinder, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<()> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.TakesAnIBinder(_arg_input); + return _aidl_default_impl.r#TakesAnIBinder(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1676,7 +1731,7 @@ impl BpTestService { fn read_response_TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<()> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.TakesANullableIBinder(_arg_input); + return _aidl_default_impl.r#TakesANullableIBinder(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1693,7 +1748,7 @@ impl BpTestService { fn read_response_TakesAnIBinderList(&self, _arg_input: &[binder::SpIBinder], _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<()> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.TakesAnIBinderList(_arg_input); + return _aidl_default_impl.r#TakesAnIBinderList(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1710,7 +1765,7 @@ impl BpTestService { fn read_response_TakesANullableIBinderList(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<()> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.TakesANullableIBinderList(_arg_input); + return _aidl_default_impl.r#TakesANullableIBinderList(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1727,7 +1782,7 @@ impl BpTestService { fn read_response_RepeatUtf8CppString(&self, _arg_token: &str, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<String> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatUtf8CppString(_arg_token); + return _aidl_default_impl.r#RepeatUtf8CppString(_arg_token); } } let _aidl_reply = _aidl_reply?; @@ -1745,7 +1800,7 @@ impl BpTestService { fn read_response_RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<String>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatNullableUtf8CppString(_arg_token); + return _aidl_default_impl.r#RepeatNullableUtf8CppString(_arg_token); } } let _aidl_reply = _aidl_reply?; @@ -1764,7 +1819,7 @@ impl BpTestService { fn read_response_ReverseUtf8CppString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<String>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseUtf8CppString(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseUtf8CppString(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1784,7 +1839,7 @@ impl BpTestService { fn read_response_ReverseNullableUtf8CppString(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<Option<String>>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseNullableUtf8CppString(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseNullableUtf8CppString(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1803,7 +1858,7 @@ impl BpTestService { fn read_response_ReverseUtf8CppStringList(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<Option<String>>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseUtf8CppStringList(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseUtf8CppStringList(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1822,7 +1877,7 @@ impl BpTestService { fn read_response_GetCallback(&self, _arg_return_null: bool, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.GetCallback(_arg_return_null); + return _aidl_default_impl.r#GetCallback(_arg_return_null); } } let _aidl_reply = _aidl_reply?; @@ -1840,7 +1895,7 @@ impl BpTestService { fn read_response_FillOutStructuredParcelable(&self, _arg_parcel: &mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<()> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.FillOutStructuredParcelable(_arg_parcel); + return _aidl_default_impl.r#FillOutStructuredParcelable(_arg_parcel); } } let _aidl_reply = _aidl_reply?; @@ -1858,7 +1913,7 @@ impl BpTestService { fn read_response_RepeatExtendableParcelable(&self, _arg_ep: &crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<()> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.RepeatExtendableParcelable(_arg_ep, _arg_ep2); + return _aidl_default_impl.r#RepeatExtendableParcelable(_arg_ep, _arg_ep2); } } let _aidl_reply = _aidl_reply?; @@ -1876,7 +1931,7 @@ impl BpTestService { fn read_response_ReverseList(&self, _arg_list: &crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseList(_arg_list); + return _aidl_default_impl.r#ReverseList(_arg_list); } } let _aidl_reply = _aidl_reply?; @@ -1895,7 +1950,7 @@ impl BpTestService { fn read_response_ReverseIBinderArray(&self, _arg_input: &[binder::SpIBinder], _arg_repeated: &mut Vec<Option<binder::SpIBinder>>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<binder::SpIBinder>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseIBinderArray(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseIBinderArray(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1915,7 +1970,7 @@ impl BpTestService { fn read_response_ReverseNullableIBinderArray(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _arg_repeated: &mut Option<Vec<Option<binder::SpIBinder>>>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<Option<binder::SpIBinder>>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.ReverseNullableIBinderArray(_arg_input, _arg_repeated); + return _aidl_default_impl.r#ReverseNullableIBinderArray(_arg_input, _arg_repeated); } } let _aidl_reply = _aidl_reply?; @@ -1933,7 +1988,7 @@ impl BpTestService { fn read_response_GetOldNameInterface(&self, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.GetOldNameInterface(); + return _aidl_default_impl.r#GetOldNameInterface(); } } let _aidl_reply = _aidl_reply?; @@ -1950,7 +2005,7 @@ impl BpTestService { fn read_response_GetNewNameInterface(&self, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.GetNewNameInterface(); + return _aidl_default_impl.r#GetNewNameInterface(); } } let _aidl_reply = _aidl_reply?; @@ -1968,7 +2023,7 @@ impl BpTestService { fn read_response_GetUnionTags(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_5_Union], _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.GetUnionTags(_arg_input); + return _aidl_default_impl.r#GetUnionTags(_arg_input); } } let _aidl_reply = _aidl_reply?; @@ -1985,7 +2040,7 @@ impl BpTestService { fn read_response_GetCppJavaTests(&self, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<binder::SpIBinder>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.GetCppJavaTests(); + return _aidl_default_impl.r#GetCppJavaTests(); } } let _aidl_reply = _aidl_reply?; @@ -2002,7 +2057,7 @@ impl BpTestService { fn read_response_getBackendType(&self, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { - return _aidl_default_impl.getBackendType(); + return _aidl_default_impl.r#getBackendType(); } } let _aidl_reply = _aidl_reply?; @@ -2011,1267 +2066,1323 @@ impl BpTestService { let _aidl_return: crate::mangled::_7_android_4_aidl_5_tests_11_BackendType = _aidl_reply.read()?; Ok(_aidl_return) } + fn build_parcel_GetCircular(&self, _arg_cp: &mut crate::mangled::_7_android_4_aidl_5_tests_18_CircularParcelable) -> binder::Result<binder::binder_impl::Parcel> { + let mut aidl_data = self.binder.prepare_transact()?; + aidl_data.mark_sensitive(); + Ok(aidl_data) + } + fn read_response_GetCircular(&self, _arg_cp: &mut crate::mangled::_7_android_4_aidl_5_tests_18_CircularParcelable, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_9_ICircular>> { + if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { + if let Some(_aidl_default_impl) = <Self as ITestService>::getDefaultImpl() { + return _aidl_default_impl.r#GetCircular(_arg_cp); + } + } + let _aidl_reply = _aidl_reply?; + let _aidl_status: binder::Status = _aidl_reply.read()?; + if !_aidl_status.is_ok() { return Err(_aidl_status); } + let _aidl_return: binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_9_ICircular> = _aidl_reply.read()?; + _aidl_reply.read_onto(_arg_cp)?; + Ok(_aidl_return) + } } impl ITestService for BpTestService { - fn UnimplementedMethod(&self, _arg_arg: i32) -> binder::Result<i32> { + fn r#UnimplementedMethod(&self, _arg_arg: i32) -> binder::Result<i32> { let _aidl_data = self.build_parcel_UnimplementedMethod(_arg_arg)?; - let _aidl_reply = self.binder.submit_transact(transactions::UnimplementedMethod, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#UnimplementedMethod, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_UnimplementedMethod(_arg_arg, _aidl_reply) } - fn Deprecated(&self) -> binder::Result<()> { + fn r#Deprecated(&self) -> binder::Result<()> { let _aidl_data = self.build_parcel_Deprecated()?; - let _aidl_reply = self.binder.submit_transact(transactions::Deprecated, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#Deprecated, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_Deprecated(_aidl_reply) } - fn TestOneway(&self) -> binder::Result<()> { + fn r#TestOneway(&self) -> binder::Result<()> { let _aidl_data = self.build_parcel_TestOneway()?; - let _aidl_reply = self.binder.submit_transact(transactions::TestOneway, _aidl_data, binder::binder_impl::FLAG_ONEWAY | binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#TestOneway, _aidl_data, binder::binder_impl::FLAG_ONEWAY | binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_TestOneway(_aidl_reply) } - fn RepeatBoolean(&self, _arg_token: bool) -> binder::Result<bool> { + fn r#RepeatBoolean(&self, _arg_token: bool) -> binder::Result<bool> { let _aidl_data = self.build_parcel_RepeatBoolean(_arg_token)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatBoolean, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatBoolean, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatBoolean(_arg_token, _aidl_reply) } - fn RepeatByte(&self, _arg_token: i8) -> binder::Result<i8> { + fn r#RepeatByte(&self, _arg_token: i8) -> binder::Result<i8> { let _aidl_data = self.build_parcel_RepeatByte(_arg_token)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatByte, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatByte, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatByte(_arg_token, _aidl_reply) } - fn RepeatChar(&self, _arg_token: u16) -> binder::Result<u16> { + fn r#RepeatChar(&self, _arg_token: u16) -> binder::Result<u16> { let _aidl_data = self.build_parcel_RepeatChar(_arg_token)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatChar, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatChar, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatChar(_arg_token, _aidl_reply) } - fn RepeatInt(&self, _arg_token: i32) -> binder::Result<i32> { + fn r#RepeatInt(&self, _arg_token: i32) -> binder::Result<i32> { let _aidl_data = self.build_parcel_RepeatInt(_arg_token)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatInt, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatInt, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatInt(_arg_token, _aidl_reply) } - fn RepeatLong(&self, _arg_token: i64) -> binder::Result<i64> { + fn r#RepeatLong(&self, _arg_token: i64) -> binder::Result<i64> { let _aidl_data = self.build_parcel_RepeatLong(_arg_token)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatLong, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatLong, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatLong(_arg_token, _aidl_reply) } - fn RepeatFloat(&self, _arg_token: f32) -> binder::Result<f32> { + fn r#RepeatFloat(&self, _arg_token: f32) -> binder::Result<f32> { let _aidl_data = self.build_parcel_RepeatFloat(_arg_token)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatFloat, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatFloat, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatFloat(_arg_token, _aidl_reply) } - fn RepeatDouble(&self, _arg_token: f64) -> binder::Result<f64> { + fn r#RepeatDouble(&self, _arg_token: f64) -> binder::Result<f64> { let _aidl_data = self.build_parcel_RepeatDouble(_arg_token)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatDouble, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatDouble, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatDouble(_arg_token, _aidl_reply) } - fn RepeatString(&self, _arg_token: &str) -> binder::Result<String> { + fn r#RepeatString(&self, _arg_token: &str) -> binder::Result<String> { let _aidl_data = self.build_parcel_RepeatString(_arg_token)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatString(_arg_token, _aidl_reply) } - fn RepeatByteEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum> { + fn r#RepeatByteEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum> { let _aidl_data = self.build_parcel_RepeatByteEnum(_arg_token)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatByteEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatByteEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatByteEnum(_arg_token, _aidl_reply) } - fn RepeatIntEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum> { + fn r#RepeatIntEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum> { let _aidl_data = self.build_parcel_RepeatIntEnum(_arg_token)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatIntEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatIntEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatIntEnum(_arg_token, _aidl_reply) } - fn RepeatLongEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum> { + fn r#RepeatLongEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum> { let _aidl_data = self.build_parcel_RepeatLongEnum(_arg_token)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatLongEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatLongEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatLongEnum(_arg_token, _aidl_reply) } - fn ReverseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>> { + fn r#ReverseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>> { let _aidl_data = self.build_parcel_ReverseBoolean(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseBoolean, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseBoolean, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseBoolean(_arg_input, _arg_repeated, _aidl_reply) } - fn ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>> { + fn r#ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>> { let _aidl_data = self.build_parcel_ReverseByte(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseByte, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseByte, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseByte(_arg_input, _arg_repeated, _aidl_reply) } - fn ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u16>> { + fn r#ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u16>> { let _aidl_data = self.build_parcel_ReverseChar(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseChar, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseChar, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseChar(_arg_input, _arg_repeated, _aidl_reply) } - fn ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32>> { + fn r#ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32>> { let _aidl_data = self.build_parcel_ReverseInt(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseInt, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseInt, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseInt(_arg_input, _arg_repeated, _aidl_reply) } - fn ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i64>> { + fn r#ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i64>> { let _aidl_data = self.build_parcel_ReverseLong(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseLong, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseLong, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseLong(_arg_input, _arg_repeated, _aidl_reply) } - fn ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f32>> { + fn r#ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f32>> { let _aidl_data = self.build_parcel_ReverseFloat(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseFloat, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseFloat, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseFloat(_arg_input, _arg_repeated, _aidl_reply) } - fn ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<f64>> { + fn r#ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<f64>> { let _aidl_data = self.build_parcel_ReverseDouble(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseDouble, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseDouble, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseDouble(_arg_input, _arg_repeated, _aidl_reply) } - fn ReverseString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { + fn r#ReverseString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { let _aidl_data = self.build_parcel_ReverseString(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseString(_arg_input, _arg_repeated, _aidl_reply) } - fn ReverseByteEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>> { + fn r#ReverseByteEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>> { let _aidl_data = self.build_parcel_ReverseByteEnum(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseByteEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseByteEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseByteEnum(_arg_input, _arg_repeated, _aidl_reply) } - fn ReverseIntEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>> { + fn r#ReverseIntEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>> { let _aidl_data = self.build_parcel_ReverseIntEnum(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseIntEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseIntEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseIntEnum(_arg_input, _arg_repeated, _aidl_reply) } - fn ReverseLongEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>> { + fn r#ReverseLongEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>> { let _aidl_data = self.build_parcel_ReverseLongEnum(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseLongEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseLongEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseLongEnum(_arg_input, _arg_repeated, _aidl_reply) } - fn GetOtherTestService(&self, _arg_name: &str) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>> { + fn r#GetOtherTestService(&self, _arg_name: &str) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>> { let _aidl_data = self.build_parcel_GetOtherTestService(_arg_name)?; - let _aidl_reply = self.binder.submit_transact(transactions::GetOtherTestService, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#GetOtherTestService, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_GetOtherTestService(_arg_name, _aidl_reply) } - fn VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str) -> binder::Result<bool> { + fn r#SetOtherTestService(&self, _arg_name: &str, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>) -> binder::Result<bool> { + let _aidl_data = self.build_parcel_SetOtherTestService(_arg_name, _arg_service)?; + let _aidl_reply = self.binder.submit_transact(transactions::r#SetOtherTestService, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + self.read_response_SetOtherTestService(_arg_name, _arg_service, _aidl_reply) + } + fn r#VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str) -> binder::Result<bool> { let _aidl_data = self.build_parcel_VerifyName(_arg_service, _arg_name)?; - let _aidl_reply = self.binder.submit_transact(transactions::VerifyName, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#VerifyName, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_VerifyName(_arg_service, _arg_name, _aidl_reply) } - fn GetInterfaceArray(&self, _arg_names: &[String]) -> binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { + fn r#GetInterfaceArray(&self, _arg_names: &[String]) -> binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { let _aidl_data = self.build_parcel_GetInterfaceArray(_arg_names)?; - let _aidl_reply = self.binder.submit_transact(transactions::GetInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#GetInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_GetInterfaceArray(_arg_names, _aidl_reply) } - fn VerifyNamesWithInterfaceArray(&self, _arg_services: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &[String]) -> binder::Result<bool> { + fn r#VerifyNamesWithInterfaceArray(&self, _arg_services: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &[String]) -> binder::Result<bool> { let _aidl_data = self.build_parcel_VerifyNamesWithInterfaceArray(_arg_services, _arg_names)?; - let _aidl_reply = self.binder.submit_transact(transactions::VerifyNamesWithInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#VerifyNamesWithInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_VerifyNamesWithInterfaceArray(_arg_services, _arg_names, _aidl_reply) } - fn GetNullableInterfaceArray(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { + fn r#GetNullableInterfaceArray(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { let _aidl_data = self.build_parcel_GetNullableInterfaceArray(_arg_names)?; - let _aidl_reply = self.binder.submit_transact(transactions::GetNullableInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#GetNullableInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_GetNullableInterfaceArray(_arg_names, _aidl_reply) } - fn VerifyNamesWithNullableInterfaceArray(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { + fn r#VerifyNamesWithNullableInterfaceArray(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { let _aidl_data = self.build_parcel_VerifyNamesWithNullableInterfaceArray(_arg_services, _arg_names)?; - let _aidl_reply = self.binder.submit_transact(transactions::VerifyNamesWithNullableInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#VerifyNamesWithNullableInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_VerifyNamesWithNullableInterfaceArray(_arg_services, _arg_names, _aidl_reply) } - fn GetInterfaceList(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { + fn r#GetInterfaceList(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { let _aidl_data = self.build_parcel_GetInterfaceList(_arg_names)?; - let _aidl_reply = self.binder.submit_transact(transactions::GetInterfaceList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#GetInterfaceList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_GetInterfaceList(_arg_names, _aidl_reply) } - fn VerifyNamesWithInterfaceList(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { + fn r#VerifyNamesWithInterfaceList(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { let _aidl_data = self.build_parcel_VerifyNamesWithInterfaceList(_arg_services, _arg_names)?; - let _aidl_reply = self.binder.submit_transact(transactions::VerifyNamesWithInterfaceList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#VerifyNamesWithInterfaceList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_VerifyNamesWithInterfaceList(_arg_services, _arg_names, _aidl_reply) } - fn ReverseStringList(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { + fn r#ReverseStringList(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { let _aidl_data = self.build_parcel_ReverseStringList(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseStringList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseStringList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseStringList(_arg_input, _arg_repeated, _aidl_reply) } - fn RepeatParcelFileDescriptor(&self, _arg_read: &binder::ParcelFileDescriptor) -> binder::Result<binder::ParcelFileDescriptor> { + fn r#RepeatParcelFileDescriptor(&self, _arg_read: &binder::ParcelFileDescriptor) -> binder::Result<binder::ParcelFileDescriptor> { let _aidl_data = self.build_parcel_RepeatParcelFileDescriptor(_arg_read)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatParcelFileDescriptor, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatParcelFileDescriptor, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatParcelFileDescriptor(_arg_read, _aidl_reply) } - fn ReverseParcelFileDescriptorArray(&self, _arg_input: &[binder::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::Result<Vec<binder::ParcelFileDescriptor>> { + fn r#ReverseParcelFileDescriptorArray(&self, _arg_input: &[binder::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::Result<Vec<binder::ParcelFileDescriptor>> { let _aidl_data = self.build_parcel_ReverseParcelFileDescriptorArray(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseParcelFileDescriptorArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseParcelFileDescriptorArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseParcelFileDescriptorArray(_arg_input, _arg_repeated, _aidl_reply) } - fn ThrowServiceException(&self, _arg_code: i32) -> binder::Result<()> { + fn r#ThrowServiceException(&self, _arg_code: i32) -> binder::Result<()> { let _aidl_data = self.build_parcel_ThrowServiceException(_arg_code)?; - let _aidl_reply = self.binder.submit_transact(transactions::ThrowServiceException, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ThrowServiceException, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ThrowServiceException(_arg_code, _aidl_reply) } - fn RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>) -> binder::Result<Option<Vec<i32>>> { + fn r#RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>) -> binder::Result<Option<Vec<i32>>> { let _aidl_data = self.build_parcel_RepeatNullableIntArray(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatNullableIntArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatNullableIntArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatNullableIntArray(_arg_input, _aidl_reply) } - fn RepeatNullableByteEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>> { + fn r#RepeatNullableByteEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>> { let _aidl_data = self.build_parcel_RepeatNullableByteEnumArray(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatNullableByteEnumArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatNullableByteEnumArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatNullableByteEnumArray(_arg_input, _aidl_reply) } - fn RepeatNullableIntEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>> { + fn r#RepeatNullableIntEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>> { let _aidl_data = self.build_parcel_RepeatNullableIntEnumArray(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatNullableIntEnumArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatNullableIntEnumArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatNullableIntEnumArray(_arg_input, _aidl_reply) } - fn RepeatNullableLongEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>> { + fn r#RepeatNullableLongEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>> { let _aidl_data = self.build_parcel_RepeatNullableLongEnumArray(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatNullableLongEnumArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatNullableLongEnumArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatNullableLongEnumArray(_arg_input, _aidl_reply) } - fn RepeatNullableString(&self, _arg_input: Option<&str>) -> binder::Result<Option<String>> { + fn r#RepeatNullableString(&self, _arg_input: Option<&str>) -> binder::Result<Option<String>> { let _aidl_data = self.build_parcel_RepeatNullableString(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatNullableString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatNullableString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatNullableString(_arg_input, _aidl_reply) } - fn RepeatNullableStringList(&self, _arg_input: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<String>>>> { + fn r#RepeatNullableStringList(&self, _arg_input: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<String>>>> { let _aidl_data = self.build_parcel_RepeatNullableStringList(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatNullableStringList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatNullableStringList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatNullableStringList(_arg_input, _aidl_reply) } - fn RepeatNullableParcelable(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>> { + fn r#RepeatNullableParcelable(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>> { let _aidl_data = self.build_parcel_RepeatNullableParcelable(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatNullableParcelable, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatNullableParcelable, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatNullableParcelable(_arg_input, _aidl_reply) } - fn RepeatNullableParcelableArray(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { + fn r#RepeatNullableParcelableArray(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { let _aidl_data = self.build_parcel_RepeatNullableParcelableArray(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatNullableParcelableArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatNullableParcelableArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatNullableParcelableArray(_arg_input, _aidl_reply) } - fn RepeatNullableParcelableList(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { + fn r#RepeatNullableParcelableList(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { let _aidl_data = self.build_parcel_RepeatNullableParcelableList(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatNullableParcelableList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatNullableParcelableList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatNullableParcelableList(_arg_input, _aidl_reply) } - fn TakesAnIBinder(&self, _arg_input: &binder::SpIBinder) -> binder::Result<()> { + fn r#TakesAnIBinder(&self, _arg_input: &binder::SpIBinder) -> binder::Result<()> { let _aidl_data = self.build_parcel_TakesAnIBinder(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::TakesAnIBinder, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#TakesAnIBinder, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_TakesAnIBinder(_arg_input, _aidl_reply) } - fn TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>) -> binder::Result<()> { + fn r#TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>) -> binder::Result<()> { let _aidl_data = self.build_parcel_TakesANullableIBinder(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::TakesANullableIBinder, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#TakesANullableIBinder, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_TakesANullableIBinder(_arg_input, _aidl_reply) } - fn TakesAnIBinderList(&self, _arg_input: &[binder::SpIBinder]) -> binder::Result<()> { + fn r#TakesAnIBinderList(&self, _arg_input: &[binder::SpIBinder]) -> binder::Result<()> { let _aidl_data = self.build_parcel_TakesAnIBinderList(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::TakesAnIBinderList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#TakesAnIBinderList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_TakesAnIBinderList(_arg_input, _aidl_reply) } - fn TakesANullableIBinderList(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>) -> binder::Result<()> { + fn r#TakesANullableIBinderList(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>) -> binder::Result<()> { let _aidl_data = self.build_parcel_TakesANullableIBinderList(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::TakesANullableIBinderList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#TakesANullableIBinderList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_TakesANullableIBinderList(_arg_input, _aidl_reply) } - fn RepeatUtf8CppString(&self, _arg_token: &str) -> binder::Result<String> { + fn r#RepeatUtf8CppString(&self, _arg_token: &str) -> binder::Result<String> { let _aidl_data = self.build_parcel_RepeatUtf8CppString(_arg_token)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatUtf8CppString(_arg_token, _aidl_reply) } - fn RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>) -> binder::Result<Option<String>> { + fn r#RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>) -> binder::Result<Option<String>> { let _aidl_data = self.build_parcel_RepeatNullableUtf8CppString(_arg_token)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatNullableUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatNullableUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatNullableUtf8CppString(_arg_token, _aidl_reply) } - fn ReverseUtf8CppString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { + fn r#ReverseUtf8CppString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { let _aidl_data = self.build_parcel_ReverseUtf8CppString(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseUtf8CppString(_arg_input, _arg_repeated, _aidl_reply) } - fn ReverseNullableUtf8CppString(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { + fn r#ReverseNullableUtf8CppString(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { let _aidl_data = self.build_parcel_ReverseNullableUtf8CppString(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseNullableUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseNullableUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseNullableUtf8CppString(_arg_input, _arg_repeated, _aidl_reply) } - fn ReverseUtf8CppStringList(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { + fn r#ReverseUtf8CppStringList(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { let _aidl_data = self.build_parcel_ReverseUtf8CppStringList(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseUtf8CppStringList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseUtf8CppStringList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseUtf8CppStringList(_arg_input, _arg_repeated, _aidl_reply) } - fn GetCallback(&self, _arg_return_null: bool) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { + fn r#GetCallback(&self, _arg_return_null: bool) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { let _aidl_data = self.build_parcel_GetCallback(_arg_return_null)?; - let _aidl_reply = self.binder.submit_transact(transactions::GetCallback, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#GetCallback, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_GetCallback(_arg_return_null, _aidl_reply) } - fn FillOutStructuredParcelable(&self, _arg_parcel: &mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::Result<()> { + fn r#FillOutStructuredParcelable(&self, _arg_parcel: &mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::Result<()> { let _aidl_data = self.build_parcel_FillOutStructuredParcelable(_arg_parcel)?; - let _aidl_reply = self.binder.submit_transact(transactions::FillOutStructuredParcelable, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#FillOutStructuredParcelable, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_FillOutStructuredParcelable(_arg_parcel, _aidl_reply) } - fn RepeatExtendableParcelable(&self, _arg_ep: &crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::Result<()> { + fn r#RepeatExtendableParcelable(&self, _arg_ep: &crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::Result<()> { let _aidl_data = self.build_parcel_RepeatExtendableParcelable(_arg_ep, _arg_ep2)?; - let _aidl_reply = self.binder.submit_transact(transactions::RepeatExtendableParcelable, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatExtendableParcelable, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_RepeatExtendableParcelable(_arg_ep, _arg_ep2, _aidl_reply) } - fn ReverseList(&self, _arg_list: &crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList> { + fn r#ReverseList(&self, _arg_list: &crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList> { let _aidl_data = self.build_parcel_ReverseList(_arg_list)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseList(_arg_list, _aidl_reply) } - fn ReverseIBinderArray(&self, _arg_input: &[binder::SpIBinder], _arg_repeated: &mut Vec<Option<binder::SpIBinder>>) -> binder::Result<Vec<binder::SpIBinder>> { + fn r#ReverseIBinderArray(&self, _arg_input: &[binder::SpIBinder], _arg_repeated: &mut Vec<Option<binder::SpIBinder>>) -> binder::Result<Vec<binder::SpIBinder>> { let _aidl_data = self.build_parcel_ReverseIBinderArray(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseIBinderArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseIBinderArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseIBinderArray(_arg_input, _arg_repeated, _aidl_reply) } - fn ReverseNullableIBinderArray(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _arg_repeated: &mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::Result<Option<Vec<Option<binder::SpIBinder>>>> { + fn r#ReverseNullableIBinderArray(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _arg_repeated: &mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::Result<Option<Vec<Option<binder::SpIBinder>>>> { let _aidl_data = self.build_parcel_ReverseNullableIBinderArray(_arg_input, _arg_repeated)?; - let _aidl_reply = self.binder.submit_transact(transactions::ReverseNullableIBinderArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#ReverseNullableIBinderArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_ReverseNullableIBinderArray(_arg_input, _arg_repeated, _aidl_reply) } - fn GetOldNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>> { + fn r#GetOldNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>> { let _aidl_data = self.build_parcel_GetOldNameInterface()?; - let _aidl_reply = self.binder.submit_transact(transactions::GetOldNameInterface, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#GetOldNameInterface, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_GetOldNameInterface(_aidl_reply) } - fn GetNewNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>> { + fn r#GetNewNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>> { let _aidl_data = self.build_parcel_GetNewNameInterface()?; - let _aidl_reply = self.binder.submit_transact(transactions::GetNewNameInterface, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#GetNewNameInterface, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_GetNewNameInterface(_aidl_reply) } - fn GetUnionTags(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>> { + fn r#GetUnionTags(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>> { let _aidl_data = self.build_parcel_GetUnionTags(_arg_input)?; - let _aidl_reply = self.binder.submit_transact(transactions::GetUnionTags, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#GetUnionTags, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_GetUnionTags(_arg_input, _aidl_reply) } - fn GetCppJavaTests(&self) -> binder::Result<Option<binder::SpIBinder>> { + fn r#GetCppJavaTests(&self) -> binder::Result<Option<binder::SpIBinder>> { let _aidl_data = self.build_parcel_GetCppJavaTests()?; - let _aidl_reply = self.binder.submit_transact(transactions::GetCppJavaTests, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#GetCppJavaTests, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_GetCppJavaTests(_aidl_reply) } - fn getBackendType(&self) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType> { + fn r#getBackendType(&self) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType> { let _aidl_data = self.build_parcel_getBackendType()?; - let _aidl_reply = self.binder.submit_transact(transactions::getBackendType, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#getBackendType, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_getBackendType(_aidl_reply) } + fn r#GetCircular(&self, _arg_cp: &mut crate::mangled::_7_android_4_aidl_5_tests_18_CircularParcelable) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_9_ICircular>> { + let _aidl_data = self.build_parcel_GetCircular(_arg_cp)?; + let _aidl_reply = self.binder.submit_transact(transactions::r#GetCircular, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + self.read_response_GetCircular(_arg_cp, _aidl_reply) + } } impl<P: binder::BinderAsyncPool> ITestServiceAsync<P> for BpTestService { - fn UnimplementedMethod<'a>(&'a self, _arg_arg: i32) -> binder::BoxFuture<'a, binder::Result<i32>> { + fn r#UnimplementedMethod<'a>(&'a self, _arg_arg: i32) -> binder::BoxFuture<'a, binder::Result<i32>> { let _aidl_data = match self.build_parcel_UnimplementedMethod(_arg_arg) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::UnimplementedMethod, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#UnimplementedMethod, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_UnimplementedMethod(_arg_arg, _aidl_reply) } ) } - fn Deprecated<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<()>> { + fn r#Deprecated<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<()>> { let _aidl_data = match self.build_parcel_Deprecated() { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::Deprecated, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#Deprecated, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_Deprecated(_aidl_reply) } ) } - fn TestOneway(&self) -> std::future::Ready<binder::Result<()>> { + fn r#TestOneway(&self) -> std::future::Ready<binder::Result<()>> { let _aidl_data = match self.build_parcel_TestOneway() { Ok(_aidl_data) => _aidl_data, Err(err) => return std::future::ready(Err(err)), }; - let _aidl_reply = self.binder.submit_transact(transactions::TestOneway, _aidl_data, binder::binder_impl::FLAG_ONEWAY | binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#TestOneway, _aidl_data, binder::binder_impl::FLAG_ONEWAY | binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL); std::future::ready(self.read_response_TestOneway(_aidl_reply)) } - fn RepeatBoolean<'a>(&'a self, _arg_token: bool) -> binder::BoxFuture<'a, binder::Result<bool>> { + fn r#RepeatBoolean<'a>(&'a self, _arg_token: bool) -> binder::BoxFuture<'a, binder::Result<bool>> { let _aidl_data = match self.build_parcel_RepeatBoolean(_arg_token) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatBoolean, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatBoolean, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatBoolean(_arg_token, _aidl_reply) } ) } - fn RepeatByte<'a>(&'a self, _arg_token: i8) -> binder::BoxFuture<'a, binder::Result<i8>> { + fn r#RepeatByte<'a>(&'a self, _arg_token: i8) -> binder::BoxFuture<'a, binder::Result<i8>> { let _aidl_data = match self.build_parcel_RepeatByte(_arg_token) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatByte, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatByte, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatByte(_arg_token, _aidl_reply) } ) } - fn RepeatChar<'a>(&'a self, _arg_token: u16) -> binder::BoxFuture<'a, binder::Result<u16>> { + fn r#RepeatChar<'a>(&'a self, _arg_token: u16) -> binder::BoxFuture<'a, binder::Result<u16>> { let _aidl_data = match self.build_parcel_RepeatChar(_arg_token) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatChar, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatChar, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatChar(_arg_token, _aidl_reply) } ) } - fn RepeatInt<'a>(&'a self, _arg_token: i32) -> binder::BoxFuture<'a, binder::Result<i32>> { + fn r#RepeatInt<'a>(&'a self, _arg_token: i32) -> binder::BoxFuture<'a, binder::Result<i32>> { let _aidl_data = match self.build_parcel_RepeatInt(_arg_token) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatInt, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatInt, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatInt(_arg_token, _aidl_reply) } ) } - fn RepeatLong<'a>(&'a self, _arg_token: i64) -> binder::BoxFuture<'a, binder::Result<i64>> { + fn r#RepeatLong<'a>(&'a self, _arg_token: i64) -> binder::BoxFuture<'a, binder::Result<i64>> { let _aidl_data = match self.build_parcel_RepeatLong(_arg_token) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatLong, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatLong, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatLong(_arg_token, _aidl_reply) } ) } - fn RepeatFloat<'a>(&'a self, _arg_token: f32) -> binder::BoxFuture<'a, binder::Result<f32>> { + fn r#RepeatFloat<'a>(&'a self, _arg_token: f32) -> binder::BoxFuture<'a, binder::Result<f32>> { let _aidl_data = match self.build_parcel_RepeatFloat(_arg_token) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatFloat, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatFloat, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatFloat(_arg_token, _aidl_reply) } ) } - fn RepeatDouble<'a>(&'a self, _arg_token: f64) -> binder::BoxFuture<'a, binder::Result<f64>> { + fn r#RepeatDouble<'a>(&'a self, _arg_token: f64) -> binder::BoxFuture<'a, binder::Result<f64>> { let _aidl_data = match self.build_parcel_RepeatDouble(_arg_token) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatDouble, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatDouble, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatDouble(_arg_token, _aidl_reply) } ) } - fn RepeatString<'a>(&'a self, _arg_token: &'a str) -> binder::BoxFuture<'a, binder::Result<String>> { + fn r#RepeatString<'a>(&'a self, _arg_token: &'a str) -> binder::BoxFuture<'a, binder::Result<String>> { let _aidl_data = match self.build_parcel_RepeatString(_arg_token) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatString(_arg_token, _aidl_reply) } ) } - fn RepeatByteEnum<'a>(&'a self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>> { + fn r#RepeatByteEnum<'a>(&'a self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>> { let _aidl_data = match self.build_parcel_RepeatByteEnum(_arg_token) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatByteEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatByteEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatByteEnum(_arg_token, _aidl_reply) } ) } - fn RepeatIntEnum<'a>(&'a self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>> { + fn r#RepeatIntEnum<'a>(&'a self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>> { let _aidl_data = match self.build_parcel_RepeatIntEnum(_arg_token) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatIntEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatIntEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatIntEnum(_arg_token, _aidl_reply) } ) } - fn RepeatLongEnum<'a>(&'a self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>> { + fn r#RepeatLongEnum<'a>(&'a self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>> { let _aidl_data = match self.build_parcel_RepeatLongEnum(_arg_token) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatLongEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatLongEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatLongEnum(_arg_token, _aidl_reply) } ) } - fn ReverseBoolean<'a>(&'a self, _arg_input: &'a [bool], _arg_repeated: &'a mut Vec<bool>) -> binder::BoxFuture<'a, binder::Result<Vec<bool>>> { + fn r#ReverseBoolean<'a>(&'a self, _arg_input: &'a [bool], _arg_repeated: &'a mut Vec<bool>) -> binder::BoxFuture<'a, binder::Result<Vec<bool>>> { let _aidl_data = match self.build_parcel_ReverseBoolean(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseBoolean, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseBoolean, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseBoolean(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ReverseByte<'a>(&'a self, _arg_input: &'a [u8], _arg_repeated: &'a mut Vec<u8>) -> binder::BoxFuture<'a, binder::Result<Vec<u8>>> { + fn r#ReverseByte<'a>(&'a self, _arg_input: &'a [u8], _arg_repeated: &'a mut Vec<u8>) -> binder::BoxFuture<'a, binder::Result<Vec<u8>>> { let _aidl_data = match self.build_parcel_ReverseByte(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseByte, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseByte, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseByte(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ReverseChar<'a>(&'a self, _arg_input: &'a [u16], _arg_repeated: &'a mut Vec<u16>) -> binder::BoxFuture<'a, binder::Result<Vec<u16>>> { + fn r#ReverseChar<'a>(&'a self, _arg_input: &'a [u16], _arg_repeated: &'a mut Vec<u16>) -> binder::BoxFuture<'a, binder::Result<Vec<u16>>> { let _aidl_data = match self.build_parcel_ReverseChar(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseChar, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseChar, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseChar(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ReverseInt<'a>(&'a self, _arg_input: &'a [i32], _arg_repeated: &'a mut Vec<i32>) -> binder::BoxFuture<'a, binder::Result<Vec<i32>>> { + fn r#ReverseInt<'a>(&'a self, _arg_input: &'a [i32], _arg_repeated: &'a mut Vec<i32>) -> binder::BoxFuture<'a, binder::Result<Vec<i32>>> { let _aidl_data = match self.build_parcel_ReverseInt(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseInt, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseInt, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseInt(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ReverseLong<'a>(&'a self, _arg_input: &'a [i64], _arg_repeated: &'a mut Vec<i64>) -> binder::BoxFuture<'a, binder::Result<Vec<i64>>> { + fn r#ReverseLong<'a>(&'a self, _arg_input: &'a [i64], _arg_repeated: &'a mut Vec<i64>) -> binder::BoxFuture<'a, binder::Result<Vec<i64>>> { let _aidl_data = match self.build_parcel_ReverseLong(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseLong, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseLong, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseLong(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ReverseFloat<'a>(&'a self, _arg_input: &'a [f32], _arg_repeated: &'a mut Vec<f32>) -> binder::BoxFuture<'a, binder::Result<Vec<f32>>> { + fn r#ReverseFloat<'a>(&'a self, _arg_input: &'a [f32], _arg_repeated: &'a mut Vec<f32>) -> binder::BoxFuture<'a, binder::Result<Vec<f32>>> { let _aidl_data = match self.build_parcel_ReverseFloat(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseFloat, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseFloat, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseFloat(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ReverseDouble<'a>(&'a self, _arg_input: &'a [f64], _arg_repeated: &'a mut Vec<f64>) -> binder::BoxFuture<'a, binder::Result<Vec<f64>>> { + fn r#ReverseDouble<'a>(&'a self, _arg_input: &'a [f64], _arg_repeated: &'a mut Vec<f64>) -> binder::BoxFuture<'a, binder::Result<Vec<f64>>> { let _aidl_data = match self.build_parcel_ReverseDouble(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseDouble, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseDouble, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseDouble(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ReverseString<'a>(&'a self, _arg_input: &'a [String], _arg_repeated: &'a mut Vec<String>) -> binder::BoxFuture<'a, binder::Result<Vec<String>>> { + fn r#ReverseString<'a>(&'a self, _arg_input: &'a [String], _arg_repeated: &'a mut Vec<String>) -> binder::BoxFuture<'a, binder::Result<Vec<String>>> { let _aidl_data = match self.build_parcel_ReverseString(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseString(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ReverseByteEnum<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &'a mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>> { + fn r#ReverseByteEnum<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &'a mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>> { let _aidl_data = match self.build_parcel_ReverseByteEnum(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseByteEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseByteEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseByteEnum(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ReverseIntEnum<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &'a mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>> { + fn r#ReverseIntEnum<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &'a mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>> { let _aidl_data = match self.build_parcel_ReverseIntEnum(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseIntEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseIntEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseIntEnum(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ReverseLongEnum<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &'a mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>> { + fn r#ReverseLongEnum<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &'a mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>> { let _aidl_data = match self.build_parcel_ReverseLongEnum(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseLongEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseLongEnum, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseLongEnum(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn GetOtherTestService<'a>(&'a self, _arg_name: &'a str) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { + fn r#GetOtherTestService<'a>(&'a self, _arg_name: &'a str) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { let _aidl_data = match self.build_parcel_GetOtherTestService(_arg_name) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::GetOtherTestService, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#GetOtherTestService, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_GetOtherTestService(_arg_name, _aidl_reply) } ) } - fn VerifyName<'a>(&'a self, _arg_service: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &'a str) -> binder::BoxFuture<'a, binder::Result<bool>> { + fn r#SetOtherTestService<'a>(&'a self, _arg_name: &'a str, _arg_service: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>) -> binder::BoxFuture<'a, binder::Result<bool>> { + let _aidl_data = match self.build_parcel_SetOtherTestService(_arg_name, _arg_service) { + Ok(_aidl_data) => _aidl_data, + Err(err) => return Box::pin(std::future::ready(Err(err))), + }; + let binder = self.binder.clone(); + P::spawn( + move || binder.submit_transact(transactions::r#SetOtherTestService, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move |_aidl_reply| async move { + self.read_response_SetOtherTestService(_arg_name, _arg_service, _aidl_reply) + } + ) + } + fn r#VerifyName<'a>(&'a self, _arg_service: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &'a str) -> binder::BoxFuture<'a, binder::Result<bool>> { let _aidl_data = match self.build_parcel_VerifyName(_arg_service, _arg_name) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::VerifyName, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#VerifyName, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_VerifyName(_arg_service, _arg_name, _aidl_reply) } ) } - fn GetInterfaceArray<'a>(&'a self, _arg_names: &'a [String]) -> binder::BoxFuture<'a, binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>> { + fn r#GetInterfaceArray<'a>(&'a self, _arg_names: &'a [String]) -> binder::BoxFuture<'a, binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>> { let _aidl_data = match self.build_parcel_GetInterfaceArray(_arg_names) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::GetInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#GetInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_GetInterfaceArray(_arg_names, _aidl_reply) } ) } - fn VerifyNamesWithInterfaceArray<'a>(&'a self, _arg_services: &'a [binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &'a [String]) -> binder::BoxFuture<'a, binder::Result<bool>> { + fn r#VerifyNamesWithInterfaceArray<'a>(&'a self, _arg_services: &'a [binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &'a [String]) -> binder::BoxFuture<'a, binder::Result<bool>> { let _aidl_data = match self.build_parcel_VerifyNamesWithInterfaceArray(_arg_services, _arg_names) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::VerifyNamesWithInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#VerifyNamesWithInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_VerifyNamesWithInterfaceArray(_arg_services, _arg_names, _aidl_reply) } ) } - fn GetNullableInterfaceArray<'a>(&'a self, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>> { + fn r#GetNullableInterfaceArray<'a>(&'a self, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>> { let _aidl_data = match self.build_parcel_GetNullableInterfaceArray(_arg_names) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::GetNullableInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#GetNullableInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_GetNullableInterfaceArray(_arg_names, _aidl_reply) } ) } - fn VerifyNamesWithNullableInterfaceArray<'a>(&'a self, _arg_services: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<bool>> { + fn r#VerifyNamesWithNullableInterfaceArray<'a>(&'a self, _arg_services: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<bool>> { let _aidl_data = match self.build_parcel_VerifyNamesWithNullableInterfaceArray(_arg_services, _arg_names) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::VerifyNamesWithNullableInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#VerifyNamesWithNullableInterfaceArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_VerifyNamesWithNullableInterfaceArray(_arg_services, _arg_names, _aidl_reply) } ) } - fn GetInterfaceList<'a>(&'a self, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>> { + fn r#GetInterfaceList<'a>(&'a self, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>>> { let _aidl_data = match self.build_parcel_GetInterfaceList(_arg_names) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::GetInterfaceList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#GetInterfaceList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_GetInterfaceList(_arg_names, _aidl_reply) } ) } - fn VerifyNamesWithInterfaceList<'a>(&'a self, _arg_services: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<bool>> { + fn r#VerifyNamesWithInterfaceList<'a>(&'a self, _arg_services: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<bool>> { let _aidl_data = match self.build_parcel_VerifyNamesWithInterfaceList(_arg_services, _arg_names) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::VerifyNamesWithInterfaceList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#VerifyNamesWithInterfaceList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_VerifyNamesWithInterfaceList(_arg_services, _arg_names, _aidl_reply) } ) } - fn ReverseStringList<'a>(&'a self, _arg_input: &'a [String], _arg_repeated: &'a mut Vec<String>) -> binder::BoxFuture<'a, binder::Result<Vec<String>>> { + fn r#ReverseStringList<'a>(&'a self, _arg_input: &'a [String], _arg_repeated: &'a mut Vec<String>) -> binder::BoxFuture<'a, binder::Result<Vec<String>>> { let _aidl_data = match self.build_parcel_ReverseStringList(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseStringList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseStringList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseStringList(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn RepeatParcelFileDescriptor<'a>(&'a self, _arg_read: &'a binder::ParcelFileDescriptor) -> binder::BoxFuture<'a, binder::Result<binder::ParcelFileDescriptor>> { + fn r#RepeatParcelFileDescriptor<'a>(&'a self, _arg_read: &'a binder::ParcelFileDescriptor) -> binder::BoxFuture<'a, binder::Result<binder::ParcelFileDescriptor>> { let _aidl_data = match self.build_parcel_RepeatParcelFileDescriptor(_arg_read) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatParcelFileDescriptor, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatParcelFileDescriptor, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatParcelFileDescriptor(_arg_read, _aidl_reply) } ) } - fn ReverseParcelFileDescriptorArray<'a>(&'a self, _arg_input: &'a [binder::ParcelFileDescriptor], _arg_repeated: &'a mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::BoxFuture<'a, binder::Result<Vec<binder::ParcelFileDescriptor>>> { + fn r#ReverseParcelFileDescriptorArray<'a>(&'a self, _arg_input: &'a [binder::ParcelFileDescriptor], _arg_repeated: &'a mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::BoxFuture<'a, binder::Result<Vec<binder::ParcelFileDescriptor>>> { let _aidl_data = match self.build_parcel_ReverseParcelFileDescriptorArray(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseParcelFileDescriptorArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseParcelFileDescriptorArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseParcelFileDescriptorArray(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ThrowServiceException<'a>(&'a self, _arg_code: i32) -> binder::BoxFuture<'a, binder::Result<()>> { + fn r#ThrowServiceException<'a>(&'a self, _arg_code: i32) -> binder::BoxFuture<'a, binder::Result<()>> { let _aidl_data = match self.build_parcel_ThrowServiceException(_arg_code) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ThrowServiceException, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ThrowServiceException, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ThrowServiceException(_arg_code, _aidl_reply) } ) } - fn RepeatNullableIntArray<'a>(&'a self, _arg_input: Option<&'a [i32]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<i32>>>> { + fn r#RepeatNullableIntArray<'a>(&'a self, _arg_input: Option<&'a [i32]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<i32>>>> { let _aidl_data = match self.build_parcel_RepeatNullableIntArray(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatNullableIntArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatNullableIntArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatNullableIntArray(_arg_input, _aidl_reply) } ) } - fn RepeatNullableByteEnumArray<'a>(&'a self, _arg_input: Option<&'a [crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>>> { + fn r#RepeatNullableByteEnumArray<'a>(&'a self, _arg_input: Option<&'a [crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>>> { let _aidl_data = match self.build_parcel_RepeatNullableByteEnumArray(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatNullableByteEnumArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatNullableByteEnumArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatNullableByteEnumArray(_arg_input, _aidl_reply) } ) } - fn RepeatNullableIntEnumArray<'a>(&'a self, _arg_input: Option<&'a [crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>>> { + fn r#RepeatNullableIntEnumArray<'a>(&'a self, _arg_input: Option<&'a [crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>>> { let _aidl_data = match self.build_parcel_RepeatNullableIntEnumArray(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatNullableIntEnumArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatNullableIntEnumArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatNullableIntEnumArray(_arg_input, _aidl_reply) } ) } - fn RepeatNullableLongEnumArray<'a>(&'a self, _arg_input: Option<&'a [crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>>> { + fn r#RepeatNullableLongEnumArray<'a>(&'a self, _arg_input: Option<&'a [crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>>> { let _aidl_data = match self.build_parcel_RepeatNullableLongEnumArray(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatNullableLongEnumArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatNullableLongEnumArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatNullableLongEnumArray(_arg_input, _aidl_reply) } ) } - fn RepeatNullableString<'a>(&'a self, _arg_input: Option<&'a str>) -> binder::BoxFuture<'a, binder::Result<Option<String>>> { + fn r#RepeatNullableString<'a>(&'a self, _arg_input: Option<&'a str>) -> binder::BoxFuture<'a, binder::Result<Option<String>>> { let _aidl_data = match self.build_parcel_RepeatNullableString(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatNullableString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatNullableString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatNullableString(_arg_input, _aidl_reply) } ) } - fn RepeatNullableStringList<'a>(&'a self, _arg_input: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<String>>>>> { + fn r#RepeatNullableStringList<'a>(&'a self, _arg_input: Option<&'a [Option<String>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<String>>>>> { let _aidl_data = match self.build_parcel_RepeatNullableStringList(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatNullableStringList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatNullableStringList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatNullableStringList(_arg_input, _aidl_reply) } ) } - fn RepeatNullableParcelable<'a>(&'a self, _arg_input: Option<&'a crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::BoxFuture<'a, binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>> { + fn r#RepeatNullableParcelable<'a>(&'a self, _arg_input: Option<&'a crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::BoxFuture<'a, binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>> { let _aidl_data = match self.build_parcel_RepeatNullableParcelable(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatNullableParcelable, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatNullableParcelable, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatNullableParcelable(_arg_input, _aidl_reply) } ) } - fn RepeatNullableParcelableArray<'a>(&'a self, _arg_input: Option<&'a [Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>> { + fn r#RepeatNullableParcelableArray<'a>(&'a self, _arg_input: Option<&'a [Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>> { let _aidl_data = match self.build_parcel_RepeatNullableParcelableArray(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatNullableParcelableArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatNullableParcelableArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatNullableParcelableArray(_arg_input, _aidl_reply) } ) } - fn RepeatNullableParcelableList<'a>(&'a self, _arg_input: Option<&'a [Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>> { + fn r#RepeatNullableParcelableList<'a>(&'a self, _arg_input: Option<&'a [Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>>> { let _aidl_data = match self.build_parcel_RepeatNullableParcelableList(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatNullableParcelableList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatNullableParcelableList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatNullableParcelableList(_arg_input, _aidl_reply) } ) } - fn TakesAnIBinder<'a>(&'a self, _arg_input: &'a binder::SpIBinder) -> binder::BoxFuture<'a, binder::Result<()>> { + fn r#TakesAnIBinder<'a>(&'a self, _arg_input: &'a binder::SpIBinder) -> binder::BoxFuture<'a, binder::Result<()>> { let _aidl_data = match self.build_parcel_TakesAnIBinder(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::TakesAnIBinder, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#TakesAnIBinder, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_TakesAnIBinder(_arg_input, _aidl_reply) } ) } - fn TakesANullableIBinder<'a>(&'a self, _arg_input: Option<&'a binder::SpIBinder>) -> binder::BoxFuture<'a, binder::Result<()>> { + fn r#TakesANullableIBinder<'a>(&'a self, _arg_input: Option<&'a binder::SpIBinder>) -> binder::BoxFuture<'a, binder::Result<()>> { let _aidl_data = match self.build_parcel_TakesANullableIBinder(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::TakesANullableIBinder, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#TakesANullableIBinder, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_TakesANullableIBinder(_arg_input, _aidl_reply) } ) } - fn TakesAnIBinderList<'a>(&'a self, _arg_input: &'a [binder::SpIBinder]) -> binder::BoxFuture<'a, binder::Result<()>> { + fn r#TakesAnIBinderList<'a>(&'a self, _arg_input: &'a [binder::SpIBinder]) -> binder::BoxFuture<'a, binder::Result<()>> { let _aidl_data = match self.build_parcel_TakesAnIBinderList(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::TakesAnIBinderList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#TakesAnIBinderList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_TakesAnIBinderList(_arg_input, _aidl_reply) } ) } - fn TakesANullableIBinderList<'a>(&'a self, _arg_input: Option<&'a [Option<binder::SpIBinder>]>) -> binder::BoxFuture<'a, binder::Result<()>> { + fn r#TakesANullableIBinderList<'a>(&'a self, _arg_input: Option<&'a [Option<binder::SpIBinder>]>) -> binder::BoxFuture<'a, binder::Result<()>> { let _aidl_data = match self.build_parcel_TakesANullableIBinderList(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::TakesANullableIBinderList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#TakesANullableIBinderList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_TakesANullableIBinderList(_arg_input, _aidl_reply) } ) } - fn RepeatUtf8CppString<'a>(&'a self, _arg_token: &'a str) -> binder::BoxFuture<'a, binder::Result<String>> { + fn r#RepeatUtf8CppString<'a>(&'a self, _arg_token: &'a str) -> binder::BoxFuture<'a, binder::Result<String>> { let _aidl_data = match self.build_parcel_RepeatUtf8CppString(_arg_token) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatUtf8CppString(_arg_token, _aidl_reply) } ) } - fn RepeatNullableUtf8CppString<'a>(&'a self, _arg_token: Option<&'a str>) -> binder::BoxFuture<'a, binder::Result<Option<String>>> { + fn r#RepeatNullableUtf8CppString<'a>(&'a self, _arg_token: Option<&'a str>) -> binder::BoxFuture<'a, binder::Result<Option<String>>> { let _aidl_data = match self.build_parcel_RepeatNullableUtf8CppString(_arg_token) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatNullableUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatNullableUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatNullableUtf8CppString(_arg_token, _aidl_reply) } ) } - fn ReverseUtf8CppString<'a>(&'a self, _arg_input: &'a [String], _arg_repeated: &'a mut Vec<String>) -> binder::BoxFuture<'a, binder::Result<Vec<String>>> { + fn r#ReverseUtf8CppString<'a>(&'a self, _arg_input: &'a [String], _arg_repeated: &'a mut Vec<String>) -> binder::BoxFuture<'a, binder::Result<Vec<String>>> { let _aidl_data = match self.build_parcel_ReverseUtf8CppString(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseUtf8CppString(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ReverseNullableUtf8CppString<'a>(&'a self, _arg_input: Option<&'a [Option<String>]>, _arg_repeated: &'a mut Option<Vec<Option<String>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<String>>>>> { + fn r#ReverseNullableUtf8CppString<'a>(&'a self, _arg_input: Option<&'a [Option<String>]>, _arg_repeated: &'a mut Option<Vec<Option<String>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<String>>>>> { let _aidl_data = match self.build_parcel_ReverseNullableUtf8CppString(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseNullableUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseNullableUtf8CppString, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseNullableUtf8CppString(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ReverseUtf8CppStringList<'a>(&'a self, _arg_input: Option<&'a [Option<String>]>, _arg_repeated: &'a mut Option<Vec<Option<String>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<String>>>>> { + fn r#ReverseUtf8CppStringList<'a>(&'a self, _arg_input: Option<&'a [Option<String>]>, _arg_repeated: &'a mut Option<Vec<Option<String>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<String>>>>> { let _aidl_data = match self.build_parcel_ReverseUtf8CppStringList(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseUtf8CppStringList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseUtf8CppStringList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseUtf8CppStringList(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn GetCallback<'a>(&'a self, _arg_return_null: bool) -> binder::BoxFuture<'a, binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>> { + fn r#GetCallback<'a>(&'a self, _arg_return_null: bool) -> binder::BoxFuture<'a, binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>> { let _aidl_data = match self.build_parcel_GetCallback(_arg_return_null) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::GetCallback, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#GetCallback, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_GetCallback(_arg_return_null, _aidl_reply) } ) } - fn FillOutStructuredParcelable<'a>(&'a self, _arg_parcel: &'a mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::BoxFuture<'a, binder::Result<()>> { + fn r#FillOutStructuredParcelable<'a>(&'a self, _arg_parcel: &'a mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::BoxFuture<'a, binder::Result<()>> { let _aidl_data = match self.build_parcel_FillOutStructuredParcelable(_arg_parcel) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::FillOutStructuredParcelable, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#FillOutStructuredParcelable, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_FillOutStructuredParcelable(_arg_parcel, _aidl_reply) } ) } - fn RepeatExtendableParcelable<'a>(&'a self, _arg_ep: &'a crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &'a mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::BoxFuture<'a, binder::Result<()>> { + fn r#RepeatExtendableParcelable<'a>(&'a self, _arg_ep: &'a crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &'a mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::BoxFuture<'a, binder::Result<()>> { let _aidl_data = match self.build_parcel_RepeatExtendableParcelable(_arg_ep, _arg_ep2) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::RepeatExtendableParcelable, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#RepeatExtendableParcelable, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_RepeatExtendableParcelable(_arg_ep, _arg_ep2, _aidl_reply) } ) } - fn ReverseList<'a>(&'a self, _arg_list: &'a crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList>> { + fn r#ReverseList<'a>(&'a self, _arg_list: &'a crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList>> { let _aidl_data = match self.build_parcel_ReverseList(_arg_list) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseList, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseList(_arg_list, _aidl_reply) } ) } - fn ReverseIBinderArray<'a>(&'a self, _arg_input: &'a [binder::SpIBinder], _arg_repeated: &'a mut Vec<Option<binder::SpIBinder>>) -> binder::BoxFuture<'a, binder::Result<Vec<binder::SpIBinder>>> { + fn r#ReverseIBinderArray<'a>(&'a self, _arg_input: &'a [binder::SpIBinder], _arg_repeated: &'a mut Vec<Option<binder::SpIBinder>>) -> binder::BoxFuture<'a, binder::Result<Vec<binder::SpIBinder>>> { let _aidl_data = match self.build_parcel_ReverseIBinderArray(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseIBinderArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseIBinderArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseIBinderArray(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn ReverseNullableIBinderArray<'a>(&'a self, _arg_input: Option<&'a [Option<binder::SpIBinder>]>, _arg_repeated: &'a mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::SpIBinder>>>>> { + fn r#ReverseNullableIBinderArray<'a>(&'a self, _arg_input: Option<&'a [Option<binder::SpIBinder>]>, _arg_repeated: &'a mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::SpIBinder>>>>> { let _aidl_data = match self.build_parcel_ReverseNullableIBinderArray(_arg_input, _arg_repeated) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::ReverseNullableIBinderArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#ReverseNullableIBinderArray, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_ReverseNullableIBinderArray(_arg_input, _arg_repeated, _aidl_reply) } ) } - fn GetOldNameInterface<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>>> { + fn r#GetOldNameInterface<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>>> { let _aidl_data = match self.build_parcel_GetOldNameInterface() { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::GetOldNameInterface, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#GetOldNameInterface, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_GetOldNameInterface(_aidl_reply) } ) } - fn GetNewNameInterface<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>>> { + fn r#GetNewNameInterface<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>>> { let _aidl_data = match self.build_parcel_GetNewNameInterface() { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::GetNewNameInterface, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#GetNewNameInterface, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_GetNewNameInterface(_aidl_reply) } ) } - fn GetUnionTags<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>>> { + fn r#GetUnionTags<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::BoxFuture<'a, binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>>> { let _aidl_data = match self.build_parcel_GetUnionTags(_arg_input) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::GetUnionTags, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#GetUnionTags, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_GetUnionTags(_arg_input, _aidl_reply) } ) } - fn GetCppJavaTests<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<Option<binder::SpIBinder>>> { + fn r#GetCppJavaTests<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<Option<binder::SpIBinder>>> { let _aidl_data = match self.build_parcel_GetCppJavaTests() { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::GetCppJavaTests, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#GetCppJavaTests, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_GetCppJavaTests(_aidl_reply) } ) } - fn getBackendType<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType>> { + fn r#getBackendType<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType>> { let _aidl_data = match self.build_parcel_getBackendType() { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::getBackendType, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#getBackendType, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_getBackendType(_aidl_reply) } ) } + fn r#GetCircular<'a>(&'a self, _arg_cp: &'a mut crate::mangled::_7_android_4_aidl_5_tests_18_CircularParcelable) -> binder::BoxFuture<'a, binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_9_ICircular>>> { + let _aidl_data = match self.build_parcel_GetCircular(_arg_cp) { + Ok(_aidl_data) => _aidl_data, + Err(err) => return Box::pin(std::future::ready(Err(err))), + }; + let binder = self.binder.clone(); + P::spawn( + move || binder.submit_transact(transactions::r#GetCircular, _aidl_data, binder::binder_impl::FLAG_CLEAR_BUF | binder::binder_impl::FLAG_PRIVATE_LOCAL), + move |_aidl_reply| async move { + self.read_response_GetCircular(_arg_cp, _aidl_reply) + } + ) + } } impl ITestService for binder::binder_impl::Binder<BnTestService> { - fn UnimplementedMethod(&self, _arg_arg: i32) -> binder::Result<i32> { self.0.UnimplementedMethod(_arg_arg) } - fn Deprecated(&self) -> binder::Result<()> { self.0.Deprecated() } - fn TestOneway(&self) -> binder::Result<()> { self.0.TestOneway() } - fn RepeatBoolean(&self, _arg_token: bool) -> binder::Result<bool> { self.0.RepeatBoolean(_arg_token) } - fn RepeatByte(&self, _arg_token: i8) -> binder::Result<i8> { self.0.RepeatByte(_arg_token) } - fn RepeatChar(&self, _arg_token: u16) -> binder::Result<u16> { self.0.RepeatChar(_arg_token) } - fn RepeatInt(&self, _arg_token: i32) -> binder::Result<i32> { self.0.RepeatInt(_arg_token) } - fn RepeatLong(&self, _arg_token: i64) -> binder::Result<i64> { self.0.RepeatLong(_arg_token) } - fn RepeatFloat(&self, _arg_token: f32) -> binder::Result<f32> { self.0.RepeatFloat(_arg_token) } - fn RepeatDouble(&self, _arg_token: f64) -> binder::Result<f64> { self.0.RepeatDouble(_arg_token) } - fn RepeatString(&self, _arg_token: &str) -> binder::Result<String> { self.0.RepeatString(_arg_token) } - fn RepeatByteEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum> { self.0.RepeatByteEnum(_arg_token) } - fn RepeatIntEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum> { self.0.RepeatIntEnum(_arg_token) } - fn RepeatLongEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum> { self.0.RepeatLongEnum(_arg_token) } - fn ReverseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>> { self.0.ReverseBoolean(_arg_input, _arg_repeated) } - fn ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>> { self.0.ReverseByte(_arg_input, _arg_repeated) } - fn ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u16>> { self.0.ReverseChar(_arg_input, _arg_repeated) } - fn ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32>> { self.0.ReverseInt(_arg_input, _arg_repeated) } - fn ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i64>> { self.0.ReverseLong(_arg_input, _arg_repeated) } - fn ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f32>> { self.0.ReverseFloat(_arg_input, _arg_repeated) } - fn ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<f64>> { self.0.ReverseDouble(_arg_input, _arg_repeated) } - fn ReverseString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { self.0.ReverseString(_arg_input, _arg_repeated) } - fn ReverseByteEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>> { self.0.ReverseByteEnum(_arg_input, _arg_repeated) } - fn ReverseIntEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>> { self.0.ReverseIntEnum(_arg_input, _arg_repeated) } - fn ReverseLongEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>> { self.0.ReverseLongEnum(_arg_input, _arg_repeated) } - fn GetOtherTestService(&self, _arg_name: &str) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>> { self.0.GetOtherTestService(_arg_name) } - fn VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str) -> binder::Result<bool> { self.0.VerifyName(_arg_service, _arg_name) } - fn GetInterfaceArray(&self, _arg_names: &[String]) -> binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { self.0.GetInterfaceArray(_arg_names) } - fn VerifyNamesWithInterfaceArray(&self, _arg_services: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &[String]) -> binder::Result<bool> { self.0.VerifyNamesWithInterfaceArray(_arg_services, _arg_names) } - fn GetNullableInterfaceArray(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { self.0.GetNullableInterfaceArray(_arg_names) } - fn VerifyNamesWithNullableInterfaceArray(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { self.0.VerifyNamesWithNullableInterfaceArray(_arg_services, _arg_names) } - fn GetInterfaceList(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { self.0.GetInterfaceList(_arg_names) } - fn VerifyNamesWithInterfaceList(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { self.0.VerifyNamesWithInterfaceList(_arg_services, _arg_names) } - fn ReverseStringList(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { self.0.ReverseStringList(_arg_input, _arg_repeated) } - fn RepeatParcelFileDescriptor(&self, _arg_read: &binder::ParcelFileDescriptor) -> binder::Result<binder::ParcelFileDescriptor> { self.0.RepeatParcelFileDescriptor(_arg_read) } - fn ReverseParcelFileDescriptorArray(&self, _arg_input: &[binder::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::Result<Vec<binder::ParcelFileDescriptor>> { self.0.ReverseParcelFileDescriptorArray(_arg_input, _arg_repeated) } - fn ThrowServiceException(&self, _arg_code: i32) -> binder::Result<()> { self.0.ThrowServiceException(_arg_code) } - fn RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>) -> binder::Result<Option<Vec<i32>>> { self.0.RepeatNullableIntArray(_arg_input) } - fn RepeatNullableByteEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>> { self.0.RepeatNullableByteEnumArray(_arg_input) } - fn RepeatNullableIntEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>> { self.0.RepeatNullableIntEnumArray(_arg_input) } - fn RepeatNullableLongEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>> { self.0.RepeatNullableLongEnumArray(_arg_input) } - fn RepeatNullableString(&self, _arg_input: Option<&str>) -> binder::Result<Option<String>> { self.0.RepeatNullableString(_arg_input) } - fn RepeatNullableStringList(&self, _arg_input: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<String>>>> { self.0.RepeatNullableStringList(_arg_input) } - fn RepeatNullableParcelable(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>> { self.0.RepeatNullableParcelable(_arg_input) } - fn RepeatNullableParcelableArray(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { self.0.RepeatNullableParcelableArray(_arg_input) } - fn RepeatNullableParcelableList(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { self.0.RepeatNullableParcelableList(_arg_input) } - fn TakesAnIBinder(&self, _arg_input: &binder::SpIBinder) -> binder::Result<()> { self.0.TakesAnIBinder(_arg_input) } - fn TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>) -> binder::Result<()> { self.0.TakesANullableIBinder(_arg_input) } - fn TakesAnIBinderList(&self, _arg_input: &[binder::SpIBinder]) -> binder::Result<()> { self.0.TakesAnIBinderList(_arg_input) } - fn TakesANullableIBinderList(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>) -> binder::Result<()> { self.0.TakesANullableIBinderList(_arg_input) } - fn RepeatUtf8CppString(&self, _arg_token: &str) -> binder::Result<String> { self.0.RepeatUtf8CppString(_arg_token) } - fn RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>) -> binder::Result<Option<String>> { self.0.RepeatNullableUtf8CppString(_arg_token) } - fn ReverseUtf8CppString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { self.0.ReverseUtf8CppString(_arg_input, _arg_repeated) } - fn ReverseNullableUtf8CppString(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { self.0.ReverseNullableUtf8CppString(_arg_input, _arg_repeated) } - fn ReverseUtf8CppStringList(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { self.0.ReverseUtf8CppStringList(_arg_input, _arg_repeated) } - fn GetCallback(&self, _arg_return_null: bool) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { self.0.GetCallback(_arg_return_null) } - fn FillOutStructuredParcelable(&self, _arg_parcel: &mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::Result<()> { self.0.FillOutStructuredParcelable(_arg_parcel) } - fn RepeatExtendableParcelable(&self, _arg_ep: &crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::Result<()> { self.0.RepeatExtendableParcelable(_arg_ep, _arg_ep2) } - fn ReverseList(&self, _arg_list: &crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList> { self.0.ReverseList(_arg_list) } - fn ReverseIBinderArray(&self, _arg_input: &[binder::SpIBinder], _arg_repeated: &mut Vec<Option<binder::SpIBinder>>) -> binder::Result<Vec<binder::SpIBinder>> { self.0.ReverseIBinderArray(_arg_input, _arg_repeated) } - fn ReverseNullableIBinderArray(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _arg_repeated: &mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::Result<Option<Vec<Option<binder::SpIBinder>>>> { self.0.ReverseNullableIBinderArray(_arg_input, _arg_repeated) } - fn GetOldNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>> { self.0.GetOldNameInterface() } - fn GetNewNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>> { self.0.GetNewNameInterface() } - fn GetUnionTags(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>> { self.0.GetUnionTags(_arg_input) } - fn GetCppJavaTests(&self) -> binder::Result<Option<binder::SpIBinder>> { self.0.GetCppJavaTests() } - fn getBackendType(&self) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType> { self.0.getBackendType() } + fn r#UnimplementedMethod(&self, _arg_arg: i32) -> binder::Result<i32> { self.0.r#UnimplementedMethod(_arg_arg) } + fn r#Deprecated(&self) -> binder::Result<()> { self.0.r#Deprecated() } + fn r#TestOneway(&self) -> binder::Result<()> { self.0.r#TestOneway() } + fn r#RepeatBoolean(&self, _arg_token: bool) -> binder::Result<bool> { self.0.r#RepeatBoolean(_arg_token) } + fn r#RepeatByte(&self, _arg_token: i8) -> binder::Result<i8> { self.0.r#RepeatByte(_arg_token) } + fn r#RepeatChar(&self, _arg_token: u16) -> binder::Result<u16> { self.0.r#RepeatChar(_arg_token) } + fn r#RepeatInt(&self, _arg_token: i32) -> binder::Result<i32> { self.0.r#RepeatInt(_arg_token) } + fn r#RepeatLong(&self, _arg_token: i64) -> binder::Result<i64> { self.0.r#RepeatLong(_arg_token) } + fn r#RepeatFloat(&self, _arg_token: f32) -> binder::Result<f32> { self.0.r#RepeatFloat(_arg_token) } + fn r#RepeatDouble(&self, _arg_token: f64) -> binder::Result<f64> { self.0.r#RepeatDouble(_arg_token) } + fn r#RepeatString(&self, _arg_token: &str) -> binder::Result<String> { self.0.r#RepeatString(_arg_token) } + fn r#RepeatByteEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum> { self.0.r#RepeatByteEnum(_arg_token) } + fn r#RepeatIntEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum> { self.0.r#RepeatIntEnum(_arg_token) } + fn r#RepeatLongEnum(&self, _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum> { self.0.r#RepeatLongEnum(_arg_token) } + fn r#ReverseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>> { self.0.r#ReverseBoolean(_arg_input, _arg_repeated) } + fn r#ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>> { self.0.r#ReverseByte(_arg_input, _arg_repeated) } + fn r#ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u16>> { self.0.r#ReverseChar(_arg_input, _arg_repeated) } + fn r#ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32>> { self.0.r#ReverseInt(_arg_input, _arg_repeated) } + fn r#ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i64>> { self.0.r#ReverseLong(_arg_input, _arg_repeated) } + fn r#ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f32>> { self.0.r#ReverseFloat(_arg_input, _arg_repeated) } + fn r#ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<f64>> { self.0.r#ReverseDouble(_arg_input, _arg_repeated) } + fn r#ReverseString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { self.0.r#ReverseString(_arg_input, _arg_repeated) } + fn r#ReverseByteEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>> { self.0.r#ReverseByteEnum(_arg_input, _arg_repeated) } + fn r#ReverseIntEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>> { self.0.r#ReverseIntEnum(_arg_input, _arg_repeated) } + fn r#ReverseLongEnum(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>> { self.0.r#ReverseLongEnum(_arg_input, _arg_repeated) } + fn r#GetOtherTestService(&self, _arg_name: &str) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>> { self.0.r#GetOtherTestService(_arg_name) } + fn r#SetOtherTestService(&self, _arg_name: &str, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>) -> binder::Result<bool> { self.0.r#SetOtherTestService(_arg_name, _arg_service) } + fn r#VerifyName(&self, _arg_service: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>, _arg_name: &str) -> binder::Result<bool> { self.0.r#VerifyName(_arg_service, _arg_name) } + fn r#GetInterfaceArray(&self, _arg_names: &[String]) -> binder::Result<Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { self.0.r#GetInterfaceArray(_arg_names) } + fn r#VerifyNamesWithInterfaceArray(&self, _arg_services: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>], _arg_names: &[String]) -> binder::Result<bool> { self.0.r#VerifyNamesWithInterfaceArray(_arg_services, _arg_names) } + fn r#GetNullableInterfaceArray(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { self.0.r#GetNullableInterfaceArray(_arg_names) } + fn r#VerifyNamesWithNullableInterfaceArray(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { self.0.r#VerifyNamesWithNullableInterfaceArray(_arg_services, _arg_names) } + fn r#GetInterfaceList(&self, _arg_names: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>>> { self.0.r#GetInterfaceList(_arg_names) } + fn r#VerifyNamesWithInterfaceList(&self, _arg_services: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>]>, _arg_names: Option<&[Option<String>]>) -> binder::Result<bool> { self.0.r#VerifyNamesWithInterfaceList(_arg_services, _arg_names) } + fn r#ReverseStringList(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { self.0.r#ReverseStringList(_arg_input, _arg_repeated) } + fn r#RepeatParcelFileDescriptor(&self, _arg_read: &binder::ParcelFileDescriptor) -> binder::Result<binder::ParcelFileDescriptor> { self.0.r#RepeatParcelFileDescriptor(_arg_read) } + fn r#ReverseParcelFileDescriptorArray(&self, _arg_input: &[binder::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::ParcelFileDescriptor>>) -> binder::Result<Vec<binder::ParcelFileDescriptor>> { self.0.r#ReverseParcelFileDescriptorArray(_arg_input, _arg_repeated) } + fn r#ThrowServiceException(&self, _arg_code: i32) -> binder::Result<()> { self.0.r#ThrowServiceException(_arg_code) } + fn r#RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>) -> binder::Result<Option<Vec<i32>>> { self.0.r#RepeatNullableIntArray(_arg_input) } + fn r#RepeatNullableByteEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>>> { self.0.r#RepeatNullableByteEnumArray(_arg_input) } + fn r#RepeatNullableIntEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>>> { self.0.r#RepeatNullableIntEnumArray(_arg_input) } + fn r#RepeatNullableLongEnumArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> binder::Result<Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>>> { self.0.r#RepeatNullableLongEnumArray(_arg_input) } + fn r#RepeatNullableString(&self, _arg_input: Option<&str>) -> binder::Result<Option<String>> { self.0.r#RepeatNullableString(_arg_input) } + fn r#RepeatNullableStringList(&self, _arg_input: Option<&[Option<String>]>) -> binder::Result<Option<Vec<Option<String>>>> { self.0.r#RepeatNullableStringList(_arg_input) } + fn r#RepeatNullableParcelable(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>) -> binder::Result<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>> { self.0.r#RepeatNullableParcelable(_arg_input) } + fn r#RepeatNullableParcelableArray(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { self.0.r#RepeatNullableParcelableArray(_arg_input) } + fn r#RepeatNullableParcelableList(&self, _arg_input: Option<&[Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>]>) -> binder::Result<Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>> { self.0.r#RepeatNullableParcelableList(_arg_input) } + fn r#TakesAnIBinder(&self, _arg_input: &binder::SpIBinder) -> binder::Result<()> { self.0.r#TakesAnIBinder(_arg_input) } + fn r#TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>) -> binder::Result<()> { self.0.r#TakesANullableIBinder(_arg_input) } + fn r#TakesAnIBinderList(&self, _arg_input: &[binder::SpIBinder]) -> binder::Result<()> { self.0.r#TakesAnIBinderList(_arg_input) } + fn r#TakesANullableIBinderList(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>) -> binder::Result<()> { self.0.r#TakesANullableIBinderList(_arg_input) } + fn r#RepeatUtf8CppString(&self, _arg_token: &str) -> binder::Result<String> { self.0.r#RepeatUtf8CppString(_arg_token) } + fn r#RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>) -> binder::Result<Option<String>> { self.0.r#RepeatNullableUtf8CppString(_arg_token) } + fn r#ReverseUtf8CppString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<String>> { self.0.r#ReverseUtf8CppString(_arg_input, _arg_repeated) } + fn r#ReverseNullableUtf8CppString(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { self.0.r#ReverseNullableUtf8CppString(_arg_input, _arg_repeated) } + fn r#ReverseUtf8CppStringList(&self, _arg_input: Option<&[Option<String>]>, _arg_repeated: &mut Option<Vec<Option<String>>>) -> binder::Result<Option<Vec<Option<String>>>> { self.0.r#ReverseUtf8CppStringList(_arg_input, _arg_repeated) } + fn r#GetCallback(&self, _arg_return_null: bool) -> binder::Result<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>> { self.0.r#GetCallback(_arg_return_null) } + fn r#FillOutStructuredParcelable(&self, _arg_parcel: &mut crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable) -> binder::Result<()> { self.0.r#FillOutStructuredParcelable(_arg_parcel) } + fn r#RepeatExtendableParcelable(&self, _arg_ep: &crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable, _arg_ep2: &mut crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable) -> binder::Result<()> { self.0.r#RepeatExtendableParcelable(_arg_ep, _arg_ep2) } + fn r#ReverseList(&self, _arg_list: &crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList> { self.0.r#ReverseList(_arg_list) } + fn r#ReverseIBinderArray(&self, _arg_input: &[binder::SpIBinder], _arg_repeated: &mut Vec<Option<binder::SpIBinder>>) -> binder::Result<Vec<binder::SpIBinder>> { self.0.r#ReverseIBinderArray(_arg_input, _arg_repeated) } + fn r#ReverseNullableIBinderArray(&self, _arg_input: Option<&[Option<binder::SpIBinder>]>, _arg_repeated: &mut Option<Vec<Option<binder::SpIBinder>>>) -> binder::Result<Option<Vec<Option<binder::SpIBinder>>>> { self.0.r#ReverseNullableIBinderArray(_arg_input, _arg_repeated) } + fn r#GetOldNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_IOldName>> { self.0.r#GetOldNameInterface() } + fn r#GetNewNameInterface(&self) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_8_INewName>> { self.0.r#GetNewNameInterface() } + fn r#GetUnionTags(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_5_tests_5_Union]) -> binder::Result<Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union_3_Tag>> { self.0.r#GetUnionTags(_arg_input) } + fn r#GetCppJavaTests(&self) -> binder::Result<Option<binder::SpIBinder>> { self.0.r#GetCppJavaTests() } + fn r#getBackendType(&self) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_11_BackendType> { self.0.r#getBackendType() } + fn r#GetCircular(&self, _arg_cp: &mut crate::mangled::_7_android_4_aidl_5_tests_18_CircularParcelable) -> binder::Result<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_9_ICircular>> { self.0.r#GetCircular(_arg_cp) } } fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl::TransactionCode, _aidl_data: &binder::binder_impl::BorrowedParcel<'_>, _aidl_reply: &mut binder::binder_impl::BorrowedParcel<'_>) -> std::result::Result<(), binder::StatusCode> { match _aidl_code { - transactions::UnimplementedMethod => { + transactions::r#UnimplementedMethod => { let _arg_arg: i32 = _aidl_data.read()?; - let _aidl_return = _aidl_service.UnimplementedMethod(_arg_arg); + let _aidl_return = _aidl_service.r#UnimplementedMethod(_arg_arg); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3281,8 +3392,8 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::Deprecated => { - let _aidl_return = _aidl_service.Deprecated(); + transactions::r#Deprecated => { + let _aidl_return = _aidl_service.r#Deprecated(); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3291,13 +3402,13 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::TestOneway => { - let _aidl_return = _aidl_service.TestOneway(); + transactions::r#TestOneway => { + let _aidl_return = _aidl_service.r#TestOneway(); Ok(()) } - transactions::RepeatBoolean => { + transactions::r#RepeatBoolean => { let _arg_token: bool = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatBoolean(_arg_token); + let _aidl_return = _aidl_service.r#RepeatBoolean(_arg_token); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3307,9 +3418,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatByte => { + transactions::r#RepeatByte => { let _arg_token: i8 = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatByte(_arg_token); + let _aidl_return = _aidl_service.r#RepeatByte(_arg_token); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3319,9 +3430,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatChar => { + transactions::r#RepeatChar => { let _arg_token: u16 = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatChar(_arg_token); + let _aidl_return = _aidl_service.r#RepeatChar(_arg_token); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3331,9 +3442,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatInt => { + transactions::r#RepeatInt => { let _arg_token: i32 = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatInt(_arg_token); + let _aidl_return = _aidl_service.r#RepeatInt(_arg_token); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3343,9 +3454,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatLong => { + transactions::r#RepeatLong => { let _arg_token: i64 = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatLong(_arg_token); + let _aidl_return = _aidl_service.r#RepeatLong(_arg_token); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3355,9 +3466,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatFloat => { + transactions::r#RepeatFloat => { let _arg_token: f32 = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatFloat(_arg_token); + let _aidl_return = _aidl_service.r#RepeatFloat(_arg_token); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3367,9 +3478,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatDouble => { + transactions::r#RepeatDouble => { let _arg_token: f64 = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatDouble(_arg_token); + let _aidl_return = _aidl_service.r#RepeatDouble(_arg_token); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3379,9 +3490,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatString => { + transactions::r#RepeatString => { let _arg_token: String = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatString(&_arg_token); + let _aidl_return = _aidl_service.r#RepeatString(&_arg_token); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3391,9 +3502,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatByteEnum => { + transactions::r#RepeatByteEnum => { let _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatByteEnum(_arg_token); + let _aidl_return = _aidl_service.r#RepeatByteEnum(_arg_token); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3403,9 +3514,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatIntEnum => { + transactions::r#RepeatIntEnum => { let _arg_token: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatIntEnum(_arg_token); + let _aidl_return = _aidl_service.r#RepeatIntEnum(_arg_token); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3415,9 +3526,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatLongEnum => { + transactions::r#RepeatLongEnum => { let _arg_token: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatLongEnum(_arg_token); + let _aidl_return = _aidl_service.r#RepeatLongEnum(_arg_token); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3427,11 +3538,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseBoolean => { + transactions::r#ReverseBoolean => { let _arg_input: Vec<bool> = _aidl_data.read()?; let mut _arg_repeated: Vec<bool> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseBoolean(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseBoolean(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3442,11 +3553,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseByte => { + transactions::r#ReverseByte => { let _arg_input: Vec<u8> = _aidl_data.read()?; let mut _arg_repeated: Vec<u8> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseByte(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseByte(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3457,11 +3568,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseChar => { + transactions::r#ReverseChar => { let _arg_input: Vec<u16> = _aidl_data.read()?; let mut _arg_repeated: Vec<u16> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseChar(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseChar(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3472,11 +3583,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseInt => { + transactions::r#ReverseInt => { let _arg_input: Vec<i32> = _aidl_data.read()?; let mut _arg_repeated: Vec<i32> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseInt(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseInt(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3487,11 +3598,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseLong => { + transactions::r#ReverseLong => { let _arg_input: Vec<i64> = _aidl_data.read()?; let mut _arg_repeated: Vec<i64> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseLong(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseLong(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3502,11 +3613,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseFloat => { + transactions::r#ReverseFloat => { let _arg_input: Vec<f32> = _aidl_data.read()?; let mut _arg_repeated: Vec<f32> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseFloat(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseFloat(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3517,11 +3628,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseDouble => { + transactions::r#ReverseDouble => { let _arg_input: Vec<f64> = _aidl_data.read()?; let mut _arg_repeated: Vec<f64> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseDouble(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseDouble(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3532,11 +3643,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseString => { + transactions::r#ReverseString => { let _arg_input: Vec<String> = _aidl_data.read()?; let mut _arg_repeated: Vec<String> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseString(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseString(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3547,11 +3658,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseByteEnum => { + transactions::r#ReverseByteEnum => { let _arg_input: Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum> = _aidl_data.read()?; let mut _arg_repeated: Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseByteEnum(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseByteEnum(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3562,11 +3673,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseIntEnum => { + transactions::r#ReverseIntEnum => { let _arg_input: Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum> = _aidl_data.read()?; let mut _arg_repeated: Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseIntEnum(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseIntEnum(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3577,11 +3688,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseLongEnum => { + transactions::r#ReverseLongEnum => { let _arg_input: Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum> = _aidl_data.read()?; let mut _arg_repeated: Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseLongEnum(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseLongEnum(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3592,9 +3703,22 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::GetOtherTestService => { + transactions::r#GetOtherTestService => { + let _arg_name: String = _aidl_data.read()?; + let _aidl_return = _aidl_service.r#GetOtherTestService(&_arg_name); + match &_aidl_return { + Ok(_aidl_return) => { + _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; + _aidl_reply.write(_aidl_return)?; + } + Err(_aidl_status) => _aidl_reply.write(_aidl_status)? + } + Ok(()) + } + transactions::r#SetOtherTestService => { let _arg_name: String = _aidl_data.read()?; - let _aidl_return = _aidl_service.GetOtherTestService(&_arg_name); + let _arg_service: binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback> = _aidl_data.read()?; + let _aidl_return = _aidl_service.r#SetOtherTestService(&_arg_name, &_arg_service); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3604,10 +3728,10 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::VerifyName => { + transactions::r#VerifyName => { let _arg_service: binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback> = _aidl_data.read()?; let _arg_name: String = _aidl_data.read()?; - let _aidl_return = _aidl_service.VerifyName(&_arg_service, &_arg_name); + let _aidl_return = _aidl_service.r#VerifyName(&_arg_service, &_arg_name); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3617,9 +3741,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::GetInterfaceArray => { + transactions::r#GetInterfaceArray => { let _arg_names: Vec<String> = _aidl_data.read()?; - let _aidl_return = _aidl_service.GetInterfaceArray(&_arg_names); + let _aidl_return = _aidl_service.r#GetInterfaceArray(&_arg_names); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3629,10 +3753,10 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::VerifyNamesWithInterfaceArray => { + transactions::r#VerifyNamesWithInterfaceArray => { let _arg_services: Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>> = _aidl_data.read()?; let _arg_names: Vec<String> = _aidl_data.read()?; - let _aidl_return = _aidl_service.VerifyNamesWithInterfaceArray(&_arg_services, &_arg_names); + let _aidl_return = _aidl_service.r#VerifyNamesWithInterfaceArray(&_arg_services, &_arg_names); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3642,9 +3766,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::GetNullableInterfaceArray => { + transactions::r#GetNullableInterfaceArray => { let _arg_names: Option<Vec<Option<String>>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.GetNullableInterfaceArray(_arg_names.as_deref()); + let _aidl_return = _aidl_service.r#GetNullableInterfaceArray(_arg_names.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3654,10 +3778,10 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::VerifyNamesWithNullableInterfaceArray => { + transactions::r#VerifyNamesWithNullableInterfaceArray => { let _arg_services: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>> = _aidl_data.read()?; let _arg_names: Option<Vec<Option<String>>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.VerifyNamesWithNullableInterfaceArray(_arg_services.as_deref(), _arg_names.as_deref()); + let _aidl_return = _aidl_service.r#VerifyNamesWithNullableInterfaceArray(_arg_services.as_deref(), _arg_names.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3667,9 +3791,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::GetInterfaceList => { + transactions::r#GetInterfaceList => { let _arg_names: Option<Vec<Option<String>>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.GetInterfaceList(_arg_names.as_deref()); + let _aidl_return = _aidl_service.r#GetInterfaceList(_arg_names.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3679,10 +3803,10 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::VerifyNamesWithInterfaceList => { + transactions::r#VerifyNamesWithInterfaceList => { let _arg_services: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_14_INamedCallback>>>> = _aidl_data.read()?; let _arg_names: Option<Vec<Option<String>>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.VerifyNamesWithInterfaceList(_arg_services.as_deref(), _arg_names.as_deref()); + let _aidl_return = _aidl_service.r#VerifyNamesWithInterfaceList(_arg_services.as_deref(), _arg_names.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3692,10 +3816,10 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseStringList => { + transactions::r#ReverseStringList => { let _arg_input: Vec<String> = _aidl_data.read()?; let mut _arg_repeated: Vec<String> = Default::default(); - let _aidl_return = _aidl_service.ReverseStringList(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseStringList(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3706,9 +3830,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatParcelFileDescriptor => { + transactions::r#RepeatParcelFileDescriptor => { let _arg_read: binder::ParcelFileDescriptor = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatParcelFileDescriptor(&_arg_read); + let _aidl_return = _aidl_service.r#RepeatParcelFileDescriptor(&_arg_read); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3718,11 +3842,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseParcelFileDescriptorArray => { + transactions::r#ReverseParcelFileDescriptorArray => { let _arg_input: Vec<binder::ParcelFileDescriptor> = _aidl_data.read()?; let mut _arg_repeated: Vec<Option<binder::ParcelFileDescriptor>> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseParcelFileDescriptorArray(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseParcelFileDescriptorArray(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3734,9 +3858,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ThrowServiceException => { + transactions::r#ThrowServiceException => { let _arg_code: i32 = _aidl_data.read()?; - let _aidl_return = _aidl_service.ThrowServiceException(_arg_code); + let _aidl_return = _aidl_service.r#ThrowServiceException(_arg_code); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3745,9 +3869,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatNullableIntArray => { + transactions::r#RepeatNullableIntArray => { let _arg_input: Option<Vec<i32>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatNullableIntArray(_arg_input.as_deref()); + let _aidl_return = _aidl_service.r#RepeatNullableIntArray(_arg_input.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3757,9 +3881,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatNullableByteEnumArray => { + transactions::r#RepeatNullableByteEnumArray => { let _arg_input: Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatNullableByteEnumArray(_arg_input.as_deref()); + let _aidl_return = _aidl_service.r#RepeatNullableByteEnumArray(_arg_input.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3769,9 +3893,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatNullableIntEnumArray => { + transactions::r#RepeatNullableIntEnumArray => { let _arg_input: Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatNullableIntEnumArray(_arg_input.as_deref()); + let _aidl_return = _aidl_service.r#RepeatNullableIntEnumArray(_arg_input.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3781,9 +3905,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatNullableLongEnumArray => { + transactions::r#RepeatNullableLongEnumArray => { let _arg_input: Option<Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatNullableLongEnumArray(_arg_input.as_deref()); + let _aidl_return = _aidl_service.r#RepeatNullableLongEnumArray(_arg_input.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3793,9 +3917,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatNullableString => { + transactions::r#RepeatNullableString => { let _arg_input: Option<String> = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatNullableString(_arg_input.as_deref()); + let _aidl_return = _aidl_service.r#RepeatNullableString(_arg_input.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3805,9 +3929,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatNullableStringList => { + transactions::r#RepeatNullableStringList => { let _arg_input: Option<Vec<Option<String>>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatNullableStringList(_arg_input.as_deref()); + let _aidl_return = _aidl_service.r#RepeatNullableStringList(_arg_input.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3817,9 +3941,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatNullableParcelable => { + transactions::r#RepeatNullableParcelable => { let _arg_input: Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty> = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatNullableParcelable(_arg_input.as_ref()); + let _aidl_return = _aidl_service.r#RepeatNullableParcelable(_arg_input.as_ref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3829,9 +3953,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatNullableParcelableArray => { + transactions::r#RepeatNullableParcelableArray => { let _arg_input: Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatNullableParcelableArray(_arg_input.as_deref()); + let _aidl_return = _aidl_service.r#RepeatNullableParcelableArray(_arg_input.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3841,9 +3965,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatNullableParcelableList => { + transactions::r#RepeatNullableParcelableList => { let _arg_input: Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatNullableParcelableList(_arg_input.as_deref()); + let _aidl_return = _aidl_service.r#RepeatNullableParcelableList(_arg_input.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3853,9 +3977,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::TakesAnIBinder => { + transactions::r#TakesAnIBinder => { let _arg_input: binder::SpIBinder = _aidl_data.read()?; - let _aidl_return = _aidl_service.TakesAnIBinder(&_arg_input); + let _aidl_return = _aidl_service.r#TakesAnIBinder(&_arg_input); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3864,9 +3988,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::TakesANullableIBinder => { + transactions::r#TakesANullableIBinder => { let _arg_input: Option<binder::SpIBinder> = _aidl_data.read()?; - let _aidl_return = _aidl_service.TakesANullableIBinder(_arg_input.as_ref()); + let _aidl_return = _aidl_service.r#TakesANullableIBinder(_arg_input.as_ref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3875,9 +3999,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::TakesAnIBinderList => { + transactions::r#TakesAnIBinderList => { let _arg_input: Vec<binder::SpIBinder> = _aidl_data.read()?; - let _aidl_return = _aidl_service.TakesAnIBinderList(&_arg_input); + let _aidl_return = _aidl_service.r#TakesAnIBinderList(&_arg_input); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3886,9 +4010,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::TakesANullableIBinderList => { + transactions::r#TakesANullableIBinderList => { let _arg_input: Option<Vec<Option<binder::SpIBinder>>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.TakesANullableIBinderList(_arg_input.as_deref()); + let _aidl_return = _aidl_service.r#TakesANullableIBinderList(_arg_input.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3897,9 +4021,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatUtf8CppString => { + transactions::r#RepeatUtf8CppString => { let _arg_token: String = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatUtf8CppString(&_arg_token); + let _aidl_return = _aidl_service.r#RepeatUtf8CppString(&_arg_token); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3909,9 +4033,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatNullableUtf8CppString => { + transactions::r#RepeatNullableUtf8CppString => { let _arg_token: Option<String> = _aidl_data.read()?; - let _aidl_return = _aidl_service.RepeatNullableUtf8CppString(_arg_token.as_deref()); + let _aidl_return = _aidl_service.r#RepeatNullableUtf8CppString(_arg_token.as_deref()); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3921,11 +4045,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseUtf8CppString => { + transactions::r#ReverseUtf8CppString => { let _arg_input: Vec<String> = _aidl_data.read()?; let mut _arg_repeated: Vec<String> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseUtf8CppString(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseUtf8CppString(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3936,11 +4060,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseNullableUtf8CppString => { + transactions::r#ReverseNullableUtf8CppString => { let _arg_input: Option<Vec<Option<String>>> = _aidl_data.read()?; let mut _arg_repeated: Option<Vec<Option<String>>> = Default::default(); _aidl_data.resize_nullable_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseNullableUtf8CppString(_arg_input.as_deref(), &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseNullableUtf8CppString(_arg_input.as_deref(), &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3951,10 +4075,10 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseUtf8CppStringList => { + transactions::r#ReverseUtf8CppStringList => { let _arg_input: Option<Vec<Option<String>>> = _aidl_data.read()?; let mut _arg_repeated: Option<Vec<Option<String>>> = Default::default(); - let _aidl_return = _aidl_service.ReverseUtf8CppStringList(_arg_input.as_deref(), &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseUtf8CppStringList(_arg_input.as_deref(), &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3965,9 +4089,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::GetCallback => { + transactions::r#GetCallback => { let _arg_return_null: bool = _aidl_data.read()?; - let _aidl_return = _aidl_service.GetCallback(_arg_return_null); + let _aidl_return = _aidl_service.r#GetCallback(_arg_return_null); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3977,9 +4101,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::FillOutStructuredParcelable => { + transactions::r#FillOutStructuredParcelable => { let mut _arg_parcel: crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable = _aidl_data.read()?; - let _aidl_return = _aidl_service.FillOutStructuredParcelable(&mut _arg_parcel); + let _aidl_return = _aidl_service.r#FillOutStructuredParcelable(&mut _arg_parcel); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -3989,10 +4113,10 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::RepeatExtendableParcelable => { + transactions::r#RepeatExtendableParcelable => { let _arg_ep: crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable = _aidl_data.read()?; let mut _arg_ep2: crate::mangled::_7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable = Default::default(); - let _aidl_return = _aidl_service.RepeatExtendableParcelable(&_arg_ep, &mut _arg_ep2); + let _aidl_return = _aidl_service.r#RepeatExtendableParcelable(&_arg_ep, &mut _arg_ep2); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -4002,9 +4126,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseList => { + transactions::r#ReverseList => { let _arg_list: crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList = _aidl_data.read()?; - let _aidl_return = _aidl_service.ReverseList(&_arg_list); + let _aidl_return = _aidl_service.r#ReverseList(&_arg_list); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -4014,11 +4138,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseIBinderArray => { + transactions::r#ReverseIBinderArray => { let _arg_input: Vec<binder::SpIBinder> = _aidl_data.read()?; let mut _arg_repeated: Vec<Option<binder::SpIBinder>> = Default::default(); _aidl_data.resize_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseIBinderArray(&_arg_input, &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseIBinderArray(&_arg_input, &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -4029,11 +4153,11 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::ReverseNullableIBinderArray => { + transactions::r#ReverseNullableIBinderArray => { let _arg_input: Option<Vec<Option<binder::SpIBinder>>> = _aidl_data.read()?; let mut _arg_repeated: Option<Vec<Option<binder::SpIBinder>>> = Default::default(); _aidl_data.resize_nullable_out_vec(&mut _arg_repeated)?; - let _aidl_return = _aidl_service.ReverseNullableIBinderArray(_arg_input.as_deref(), &mut _arg_repeated); + let _aidl_return = _aidl_service.r#ReverseNullableIBinderArray(_arg_input.as_deref(), &mut _arg_repeated); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -4044,8 +4168,8 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::GetOldNameInterface => { - let _aidl_return = _aidl_service.GetOldNameInterface(); + transactions::r#GetOldNameInterface => { + let _aidl_return = _aidl_service.r#GetOldNameInterface(); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -4055,8 +4179,8 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::GetNewNameInterface => { - let _aidl_return = _aidl_service.GetNewNameInterface(); + transactions::r#GetNewNameInterface => { + let _aidl_return = _aidl_service.r#GetNewNameInterface(); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -4066,9 +4190,9 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::GetUnionTags => { + transactions::r#GetUnionTags => { let _arg_input: Vec<crate::mangled::_7_android_4_aidl_5_tests_5_Union> = _aidl_data.read()?; - let _aidl_return = _aidl_service.GetUnionTags(&_arg_input); + let _aidl_return = _aidl_service.r#GetUnionTags(&_arg_input); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -4078,8 +4202,8 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::GetCppJavaTests => { - let _aidl_return = _aidl_service.GetCppJavaTests(); + transactions::r#GetCppJavaTests => { + let _aidl_return = _aidl_service.r#GetCppJavaTests(); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -4089,8 +4213,8 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } - transactions::getBackendType => { - let _aidl_return = _aidl_service.getBackendType(); + transactions::r#getBackendType => { + let _aidl_return = _aidl_service.r#getBackendType(); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -4100,20 +4224,33 @@ fn on_transact(_aidl_service: &dyn ITestService, _aidl_code: binder::binder_impl } Ok(()) } + transactions::r#GetCircular => { + let mut _arg_cp: crate::mangled::_7_android_4_aidl_5_tests_18_CircularParcelable = Default::default(); + let _aidl_return = _aidl_service.r#GetCircular(&mut _arg_cp); + match &_aidl_return { + Ok(_aidl_return) => { + _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; + _aidl_reply.write(_aidl_return)?; + _aidl_reply.write(&_arg_cp)?; + } + Err(_aidl_status) => _aidl_reply.write(_aidl_status)? + } + Ok(()) + } _ => Err(binder::StatusCode::UNKNOWN_TRANSACTION) } } -pub mod Empty { +pub mod r#Empty { #[derive(Debug, Clone, PartialEq)] - pub struct Empty { + pub struct r#Empty { } - impl Default for Empty { + impl Default for r#Empty { fn default() -> Self { Self { } } } - impl binder::Parcelable for Empty { + impl binder::Parcelable for r#Empty { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { Ok(()) @@ -4125,152 +4262,327 @@ pub mod Empty { }) } } - binder::impl_serialize_for_parcelable!(Empty); - binder::impl_deserialize_for_parcelable!(Empty); - impl binder::binder_impl::ParcelableMetadata for Empty { + binder::impl_serialize_for_parcelable!(r#Empty); + binder::impl_deserialize_for_parcelable!(r#Empty); + impl binder::binder_impl::ParcelableMetadata for r#Empty { fn get_descriptor() -> &'static str { "android.aidl.tests.ITestService.Empty" } } } -pub mod CompilerChecks { +pub mod r#CompilerChecks { #[derive(Debug)] - pub struct CompilerChecks { - pub binder: Option<binder::SpIBinder>, - pub nullable_binder: Option<binder::SpIBinder>, - pub binder_array: Vec<binder::SpIBinder>, - pub nullable_binder_array: Option<Vec<Option<binder::SpIBinder>>>, - pub binder_list: Vec<binder::SpIBinder>, - pub nullable_binder_list: Option<Vec<Option<binder::SpIBinder>>>, - pub pfd: Option<binder::ParcelFileDescriptor>, - pub nullable_pfd: Option<binder::ParcelFileDescriptor>, - pub pfd_array: Vec<binder::ParcelFileDescriptor>, - pub nullable_pfd_array: Option<Vec<Option<binder::ParcelFileDescriptor>>>, - pub pfd_list: Vec<binder::ParcelFileDescriptor>, - pub nullable_pfd_list: Option<Vec<Option<binder::ParcelFileDescriptor>>>, - pub parcel: crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty, - pub nullable_parcel: Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>, - pub parcel_array: Vec<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>, - pub nullable_parcel_array: Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>, - pub parcel_list: Vec<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>, - pub nullable_parcel_list: Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>, - } - impl Default for CompilerChecks { + pub struct r#CompilerChecks { + pub r#binder: Option<binder::SpIBinder>, + pub r#nullable_binder: Option<binder::SpIBinder>, + pub r#binder_array: Vec<binder::SpIBinder>, + pub r#nullable_binder_array: Option<Vec<Option<binder::SpIBinder>>>, + pub r#binder_list: Vec<binder::SpIBinder>, + pub r#nullable_binder_list: Option<Vec<Option<binder::SpIBinder>>>, + pub r#pfd: Option<binder::ParcelFileDescriptor>, + pub r#nullable_pfd: Option<binder::ParcelFileDescriptor>, + pub r#pfd_array: Vec<binder::ParcelFileDescriptor>, + pub r#nullable_pfd_array: Option<Vec<Option<binder::ParcelFileDescriptor>>>, + pub r#pfd_list: Vec<binder::ParcelFileDescriptor>, + pub r#nullable_pfd_list: Option<Vec<Option<binder::ParcelFileDescriptor>>>, + pub r#parcel: crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty, + pub r#nullable_parcel: Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>, + pub r#parcel_array: Vec<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>, + pub r#nullable_parcel_array: Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>, + pub r#parcel_list: Vec<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>, + pub r#nullable_parcel_list: Option<Vec<Option<crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_5_Empty>>>, + } + impl Default for r#CompilerChecks { fn default() -> Self { Self { - binder: Default::default(), - nullable_binder: Default::default(), - binder_array: Default::default(), - nullable_binder_array: Default::default(), - binder_list: Default::default(), - nullable_binder_list: Default::default(), - pfd: Default::default(), - nullable_pfd: Default::default(), - pfd_array: Default::default(), - nullable_pfd_array: Default::default(), - pfd_list: Default::default(), - nullable_pfd_list: Default::default(), - parcel: Default::default(), - nullable_parcel: Default::default(), - parcel_array: Default::default(), - nullable_parcel_array: Default::default(), - parcel_list: Default::default(), - nullable_parcel_list: Default::default(), - } - } - } - impl binder::Parcelable for CompilerChecks { + r#binder: Default::default(), + r#nullable_binder: Default::default(), + r#binder_array: Default::default(), + r#nullable_binder_array: Default::default(), + r#binder_list: Default::default(), + r#nullable_binder_list: Default::default(), + r#pfd: Default::default(), + r#nullable_pfd: Default::default(), + r#pfd_array: Default::default(), + r#nullable_pfd_array: Default::default(), + r#pfd_list: Default::default(), + r#nullable_pfd_list: Default::default(), + r#parcel: Default::default(), + r#nullable_parcel: Default::default(), + r#parcel_array: Default::default(), + r#nullable_parcel_array: Default::default(), + r#parcel_list: Default::default(), + r#nullable_parcel_list: Default::default(), + } + } + } + impl binder::Parcelable for r#CompilerChecks { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - let __field_ref = self.binder.as_ref().ok_or(binder::StatusCode::UNEXPECTED_NULL)?; + let __field_ref = self.r#binder.as_ref().ok_or(binder::StatusCode::UNEXPECTED_NULL)?; subparcel.write(__field_ref)?; - subparcel.write(&self.nullable_binder)?; - subparcel.write(&self.binder_array)?; - subparcel.write(&self.nullable_binder_array)?; - subparcel.write(&self.binder_list)?; - subparcel.write(&self.nullable_binder_list)?; - let __field_ref = self.pfd.as_ref().ok_or(binder::StatusCode::UNEXPECTED_NULL)?; + subparcel.write(&self.r#nullable_binder)?; + subparcel.write(&self.r#binder_array)?; + subparcel.write(&self.r#nullable_binder_array)?; + subparcel.write(&self.r#binder_list)?; + subparcel.write(&self.r#nullable_binder_list)?; + let __field_ref = self.r#pfd.as_ref().ok_or(binder::StatusCode::UNEXPECTED_NULL)?; subparcel.write(__field_ref)?; - subparcel.write(&self.nullable_pfd)?; - subparcel.write(&self.pfd_array)?; - subparcel.write(&self.nullable_pfd_array)?; - subparcel.write(&self.pfd_list)?; - subparcel.write(&self.nullable_pfd_list)?; - subparcel.write(&self.parcel)?; - subparcel.write(&self.nullable_parcel)?; - subparcel.write(&self.parcel_array)?; - subparcel.write(&self.nullable_parcel_array)?; - subparcel.write(&self.parcel_list)?; - subparcel.write(&self.nullable_parcel_list)?; + subparcel.write(&self.r#nullable_pfd)?; + subparcel.write(&self.r#pfd_array)?; + subparcel.write(&self.r#nullable_pfd_array)?; + subparcel.write(&self.r#pfd_list)?; + subparcel.write(&self.r#nullable_pfd_list)?; + subparcel.write(&self.r#parcel)?; + subparcel.write(&self.r#nullable_parcel)?; + subparcel.write(&self.r#parcel_array)?; + subparcel.write(&self.r#nullable_parcel_array)?; + subparcel.write(&self.r#parcel_list)?; + subparcel.write(&self.r#nullable_parcel_list)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.binder = Some(subparcel.read()?); + self.r#binder = Some(subparcel.read()?); } if subparcel.has_more_data() { - self.nullable_binder = subparcel.read()?; + self.r#nullable_binder = subparcel.read()?; } if subparcel.has_more_data() { - self.binder_array = subparcel.read()?; + self.r#binder_array = subparcel.read()?; } if subparcel.has_more_data() { - self.nullable_binder_array = subparcel.read()?; + self.r#nullable_binder_array = subparcel.read()?; } if subparcel.has_more_data() { - self.binder_list = subparcel.read()?; + self.r#binder_list = subparcel.read()?; } if subparcel.has_more_data() { - self.nullable_binder_list = subparcel.read()?; + self.r#nullable_binder_list = subparcel.read()?; } if subparcel.has_more_data() { - self.pfd = Some(subparcel.read()?); + self.r#pfd = Some(subparcel.read()?); } if subparcel.has_more_data() { - self.nullable_pfd = subparcel.read()?; + self.r#nullable_pfd = subparcel.read()?; } if subparcel.has_more_data() { - self.pfd_array = subparcel.read()?; + self.r#pfd_array = subparcel.read()?; } if subparcel.has_more_data() { - self.nullable_pfd_array = subparcel.read()?; + self.r#nullable_pfd_array = subparcel.read()?; } if subparcel.has_more_data() { - self.pfd_list = subparcel.read()?; + self.r#pfd_list = subparcel.read()?; } if subparcel.has_more_data() { - self.nullable_pfd_list = subparcel.read()?; + self.r#nullable_pfd_list = subparcel.read()?; } if subparcel.has_more_data() { - self.parcel = subparcel.read()?; + self.r#parcel = subparcel.read()?; } if subparcel.has_more_data() { - self.nullable_parcel = subparcel.read()?; + self.r#nullable_parcel = subparcel.read()?; } if subparcel.has_more_data() { - self.parcel_array = subparcel.read()?; + self.r#parcel_array = subparcel.read()?; } if subparcel.has_more_data() { - self.nullable_parcel_array = subparcel.read()?; + self.r#nullable_parcel_array = subparcel.read()?; } if subparcel.has_more_data() { - self.parcel_list = subparcel.read()?; + self.r#parcel_list = subparcel.read()?; } if subparcel.has_more_data() { - self.nullable_parcel_list = subparcel.read()?; + self.r#nullable_parcel_list = subparcel.read()?; } Ok(()) }) } } - binder::impl_serialize_for_parcelable!(CompilerChecks); - binder::impl_deserialize_for_parcelable!(CompilerChecks); - impl binder::binder_impl::ParcelableMetadata for CompilerChecks { + binder::impl_serialize_for_parcelable!(r#CompilerChecks); + binder::impl_deserialize_for_parcelable!(r#CompilerChecks); + impl binder::binder_impl::ParcelableMetadata for r#CompilerChecks { fn get_descriptor() -> &'static str { "android.aidl.tests.ITestService.CompilerChecks" } } + pub mod r#Foo { + #![allow(non_upper_case_globals)] + #![allow(non_snake_case)] + #[allow(unused_imports)] use binder::binder_impl::IBinderInternal; + use binder::declare_binder_interface; + declare_binder_interface! { + IFoo["android.aidl.tests.ITestService.CompilerChecks.Foo"] { + native: BnFoo(on_transact), + proxy: BpFoo { + }, + async: IFooAsync, + } + } + pub trait IFoo: binder::Interface + Send { + fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ITestService.CompilerChecks.Foo" } + fn getDefaultImpl() -> IFooDefaultRef where Self: Sized { + DEFAULT_IMPL.lock().unwrap().clone() + } + fn setDefaultImpl(d: IFooDefaultRef) -> IFooDefaultRef where Self: Sized { + std::mem::replace(&mut *DEFAULT_IMPL.lock().unwrap(), d) + } + } + pub trait IFooAsync<P>: binder::Interface + Send { + fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ITestService.CompilerChecks.Foo" } + } + #[::async_trait::async_trait] + pub trait IFooAsyncServer: binder::Interface + Send { + fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ITestService.CompilerChecks.Foo" } + } + impl BnFoo { + /// Create a new async binder service. + pub fn new_async_binder<T, R>(inner: T, rt: R, features: binder::BinderFeatures) -> binder::Strong<dyn IFoo> + where + T: IFooAsyncServer + binder::Interface + Send + Sync + 'static, + R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, + { + struct Wrapper<T, R> { + _inner: T, + _rt: R, + } + impl<T, R> binder::Interface for Wrapper<T, R> where T: binder::Interface, R: Send + Sync { + fn as_binder(&self) -> binder::SpIBinder { self._inner.as_binder() } + fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder::StatusCode> { self._inner.dump(_file, _args) } + } + impl<T, R> IFoo for Wrapper<T, R> + where + T: IFooAsyncServer + Send + Sync + 'static, + R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, + { + } + let wrapped = Wrapper { _inner: inner, _rt: rt }; + Self::new_binder(wrapped, features) + } + } + pub trait IFooDefault: Send + Sync { + } + pub mod transactions { + } + pub type IFooDefaultRef = Option<std::sync::Arc<dyn IFooDefault>>; + use lazy_static::lazy_static; + lazy_static! { + static ref DEFAULT_IMPL: std::sync::Mutex<IFooDefaultRef> = std::sync::Mutex::new(None); + } + impl BpFoo { + } + impl IFoo for BpFoo { + } + impl<P: binder::BinderAsyncPool> IFooAsync<P> for BpFoo { + } + impl IFoo for binder::binder_impl::Binder<BnFoo> { + } + fn on_transact(_aidl_service: &dyn IFoo, _aidl_code: binder::binder_impl::TransactionCode, _aidl_data: &binder::binder_impl::BorrowedParcel<'_>, _aidl_reply: &mut binder::binder_impl::BorrowedParcel<'_>) -> std::result::Result<(), binder::StatusCode> { + match _aidl_code { + _ => Err(binder::StatusCode::UNKNOWN_TRANSACTION) + } + } + } + pub mod r#HasDeprecated { + #[derive(Debug)] + pub struct r#HasDeprecated { + #[deprecated = "field"] + pub r#deprecated: i32, + } + impl Default for r#HasDeprecated { + fn default() -> Self { + Self { + r#deprecated: 0, + } + } + } + impl binder::Parcelable for r#HasDeprecated { + fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { + parcel.sized_write(|subparcel| { + subparcel.write(&self.r#deprecated)?; + Ok(()) + }) + } + fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { + parcel.sized_read(|subparcel| { + if subparcel.has_more_data() { + self.r#deprecated = subparcel.read()?; + } + Ok(()) + }) + } + } + binder::impl_serialize_for_parcelable!(r#HasDeprecated); + binder::impl_deserialize_for_parcelable!(r#HasDeprecated); + impl binder::binder_impl::ParcelableMetadata for r#HasDeprecated { + fn get_descriptor() -> &'static str { "android.aidl.tests.ITestService.CompilerChecks.HasDeprecated" } + } + } + pub mod r#UsingHasDeprecated { + #[derive(Debug)] + pub enum r#UsingHasDeprecated { + N(i32), + M(crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_14_CompilerChecks_13_HasDeprecated), + } + impl Default for r#UsingHasDeprecated { + fn default() -> Self { + Self::N(0) + } + } + impl binder::Parcelable for r#UsingHasDeprecated { + fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { + match self { + Self::N(v) => { + parcel.write(&0i32)?; + parcel.write(v) + } + Self::M(v) => { + parcel.write(&1i32)?; + parcel.write(v) + } + } + } + fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { + let tag: i32 = parcel.read()?; + match tag { + 0 => { + let value: i32 = parcel.read()?; + *self = Self::N(value); + Ok(()) + } + 1 => { + let value: crate::mangled::_7_android_4_aidl_5_tests_12_ITestService_14_CompilerChecks_13_HasDeprecated = parcel.read()?; + *self = Self::M(value); + Ok(()) + } + _ => { + Err(binder::StatusCode::BAD_VALUE) + } + } + } + } + binder::impl_serialize_for_parcelable!(r#UsingHasDeprecated); + binder::impl_deserialize_for_parcelable!(r#UsingHasDeprecated); + impl binder::binder_impl::ParcelableMetadata for r#UsingHasDeprecated { + fn get_descriptor() -> &'static str { "android.aidl.tests.ITestService.CompilerChecks.UsingHasDeprecated" } + } + pub mod r#Tag { + #![allow(non_upper_case_globals)] + use binder::declare_binder_enum; + declare_binder_enum! { + r#Tag : [i32; 2] { + r#n = 0, + r#m = 1, + } + } + } + } } pub(crate) mod mangled { - pub use super::ITestService as _7_android_4_aidl_5_tests_12_ITestService; - pub use super::Empty::Empty as _7_android_4_aidl_5_tests_12_ITestService_5_Empty; - pub use super::CompilerChecks::CompilerChecks as _7_android_4_aidl_5_tests_12_ITestService_14_CompilerChecks; + pub use super::r#ITestService as _7_android_4_aidl_5_tests_12_ITestService; + pub use super::r#Empty::r#Empty as _7_android_4_aidl_5_tests_12_ITestService_5_Empty; + pub use super::r#CompilerChecks::r#CompilerChecks as _7_android_4_aidl_5_tests_12_ITestService_14_CompilerChecks; + pub use super::r#CompilerChecks::r#Foo::r#IFoo as _7_android_4_aidl_5_tests_12_ITestService_14_CompilerChecks_3_Foo; + pub use super::r#CompilerChecks::r#HasDeprecated::r#HasDeprecated as _7_android_4_aidl_5_tests_12_ITestService_14_CompilerChecks_13_HasDeprecated; + pub use super::r#CompilerChecks::r#UsingHasDeprecated::r#UsingHasDeprecated as _7_android_4_aidl_5_tests_12_ITestService_14_CompilerChecks_18_UsingHasDeprecated; + pub use super::r#CompilerChecks::r#UsingHasDeprecated::r#Tag::r#Tag as _7_android_4_aidl_5_tests_12_ITestService_14_CompilerChecks_18_UsingHasDeprecated_3_Tag; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ITestService.rs.d b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ITestService.rs.d index 9786dc12..80d694b3 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ITestService.rs.d +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ITestService.rs.d @@ -2,6 +2,8 @@ out/soong/.intermediates/system/tools/aidl/aidl-test-interface-rust-source/gen/a system/tools/aidl/tests/android/aidl/tests/ITestService.aidl \ system/tools/aidl/tests/android/aidl/tests/BackendType.aidl \ system/tools/aidl/tests/android/aidl/tests/ByteEnum.aidl \ + system/tools/aidl/tests/android/aidl/tests/CircularParcelable.aidl \ + system/tools/aidl/tests/android/aidl/tests/ICircular.aidl \ system/tools/aidl/tests/android/aidl/tests/INamedCallback.aidl \ system/tools/aidl/tests/android/aidl/tests/INewName.aidl \ system/tools/aidl/tests/android/aidl/tests/IOldName.aidl \ diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/IntEnum.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/IntEnum.rs index 70e71dde..a2bf3cc7 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/IntEnum.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/IntEnum.rs @@ -3,14 +3,14 @@ #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - IntEnum : [i32; 4] { - FOO = 1000, - BAR = 2000, - BAZ = 2001, + r#IntEnum : [i32; 4] { + r#FOO = 1000, + r#BAR = 2000, + r#BAZ = 2001, #[deprecated = "do not use this"] - QUX = 2002, + r#QUX = 2002, } } pub(crate) mod mangled { - pub use super::IntEnum as _7_android_4_aidl_5_tests_7_IntEnum; + pub use super::r#IntEnum as _7_android_4_aidl_5_tests_7_IntEnum; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ListOfInterfaces.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ListOfInterfaces.rs index 4f5d5c6c..7f426ce4 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ListOfInterfaces.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ListOfInterfaces.rs @@ -1,15 +1,15 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug)] -pub struct ListOfInterfaces { +pub struct r#ListOfInterfaces { } -impl Default for ListOfInterfaces { +impl Default for r#ListOfInterfaces { fn default() -> Self { Self { } } } -impl binder::Parcelable for ListOfInterfaces { +impl binder::Parcelable for r#ListOfInterfaces { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { Ok(()) @@ -21,12 +21,12 @@ impl binder::Parcelable for ListOfInterfaces { }) } } -binder::impl_serialize_for_parcelable!(ListOfInterfaces); -binder::impl_deserialize_for_parcelable!(ListOfInterfaces); -impl binder::binder_impl::ParcelableMetadata for ListOfInterfaces { +binder::impl_serialize_for_parcelable!(r#ListOfInterfaces); +binder::impl_deserialize_for_parcelable!(r#ListOfInterfaces); +impl binder::binder_impl::ParcelableMetadata for r#ListOfInterfaces { fn get_descriptor() -> &'static str { "android.aidl.tests.ListOfInterfaces" } } -pub mod IEmptyInterface { +pub mod r#IEmptyInterface { #![allow(non_upper_case_globals)] #![allow(non_snake_case)] #[allow(unused_imports)] use binder::binder_impl::IBinderInternal; @@ -103,7 +103,7 @@ pub mod IEmptyInterface { } } } -pub mod IMyInterface { +pub mod r#IMyInterface { #![allow(non_upper_case_globals)] #![allow(non_snake_case)] #[allow(unused_imports)] use binder::binder_impl::IBinderInternal; @@ -118,7 +118,7 @@ pub mod IMyInterface { } pub trait IMyInterface: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ListOfInterfaces.IMyInterface" } - fn methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>>; + fn r#methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>>; fn getDefaultImpl() -> IMyInterfaceDefaultRef where Self: Sized { DEFAULT_IMPL.lock().unwrap().clone() } @@ -128,12 +128,12 @@ pub mod IMyInterface { } pub trait IMyInterfaceAsync<P>: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ListOfInterfaces.IMyInterface" } - fn methodWithInterfaces<'a>(&'a self, _arg_iface: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &'a [binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &'a mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &'a mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>>>; + fn r#methodWithInterfaces<'a>(&'a self, _arg_iface: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &'a [binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &'a mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &'a mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>>>; } #[::async_trait::async_trait] pub trait IMyInterfaceAsyncServer: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.ListOfInterfaces.IMyInterface" } - async fn methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>>; + async fn r#methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>>; } impl BnMyInterface { /// Create a new async binder service. @@ -155,8 +155,8 @@ pub mod IMyInterface { T: IMyInterfaceAsyncServer + Send + Sync + 'static, R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, { - fn methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>> { - self._rt.block_on(self._inner.methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_list_in, _arg_iface_list_out, _arg_iface_list_inout, _arg_nullable_iface_list_in, _arg_nullable_iface_list_out, _arg_nullable_iface_list_inout)) + fn r#methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>> { + self._rt.block_on(self._inner.r#methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_list_in, _arg_iface_list_out, _arg_iface_list_inout, _arg_nullable_iface_list_in, _arg_nullable_iface_list_out, _arg_nullable_iface_list_inout)) } } let wrapped = Wrapper { _inner: inner, _rt: rt }; @@ -164,12 +164,12 @@ pub mod IMyInterface { } } pub trait IMyInterfaceDefault: Send + Sync { - fn methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>> { + fn r#methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } } pub mod transactions { - pub const methodWithInterfaces: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; + pub const r#methodWithInterfaces: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; } pub type IMyInterfaceDefaultRef = Option<std::sync::Arc<dyn IMyInterfaceDefault>>; use lazy_static::lazy_static; @@ -190,7 +190,7 @@ pub mod IMyInterface { fn read_response_methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as IMyInterface>::getDefaultImpl() { - return _aidl_default_impl.methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_list_in, _arg_iface_list_out, _arg_iface_list_inout, _arg_nullable_iface_list_in, _arg_nullable_iface_list_out, _arg_nullable_iface_list_inout); + return _aidl_default_impl.r#methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_list_in, _arg_iface_list_out, _arg_iface_list_inout, _arg_nullable_iface_list_in, _arg_nullable_iface_list_out, _arg_nullable_iface_list_inout); } } let _aidl_reply = _aidl_reply?; @@ -205,21 +205,21 @@ pub mod IMyInterface { } } impl IMyInterface for BpMyInterface { - fn methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>> { + fn r#methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>> { let _aidl_data = self.build_parcel_methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_list_in, _arg_iface_list_out, _arg_iface_list_inout, _arg_nullable_iface_list_in, _arg_nullable_iface_list_out, _arg_nullable_iface_list_inout)?; - let _aidl_reply = self.binder.submit_transact(transactions::methodWithInterfaces, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#methodWithInterfaces, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_list_in, _arg_iface_list_out, _arg_iface_list_inout, _arg_nullable_iface_list_in, _arg_nullable_iface_list_out, _arg_nullable_iface_list_inout, _aidl_reply) } } impl<P: binder::BinderAsyncPool> IMyInterfaceAsync<P> for BpMyInterface { - fn methodWithInterfaces<'a>(&'a self, _arg_iface: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &'a [binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &'a mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &'a mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>>> { + fn r#methodWithInterfaces<'a>(&'a self, _arg_iface: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &'a [binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &'a mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &'a mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&'a [Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &'a mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::BoxFuture<'a, binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>>> { let _aidl_data = match self.build_parcel_methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_list_in, _arg_iface_list_out, _arg_iface_list_inout, _arg_nullable_iface_list_in, _arg_nullable_iface_list_out, _arg_nullable_iface_list_inout) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::methodWithInterfaces, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#methodWithInterfaces, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_list_in, _arg_iface_list_out, _arg_iface_list_inout, _arg_nullable_iface_list_in, _arg_nullable_iface_list_out, _arg_nullable_iface_list_inout, _aidl_reply) } @@ -227,11 +227,11 @@ pub mod IMyInterface { } } impl IMyInterface for binder::binder_impl::Binder<BnMyInterface> { - fn methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>> { self.0.methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_list_in, _arg_iface_list_out, _arg_iface_list_inout, _arg_nullable_iface_list_in, _arg_nullable_iface_list_out, _arg_nullable_iface_list_inout) } + fn r#methodWithInterfaces(&self, _arg_iface: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>, _arg_nullable_iface: Option<&binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_iface_list_in: &[binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>], _arg_iface_list_out: &mut Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>, _arg_iface_list_inout: &mut Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, _arg_nullable_iface_list_in: Option<&[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>]>, _arg_nullable_iface_list_out: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, _arg_nullable_iface_list_inout: &mut Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>) -> binder::Result<Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>> { self.0.r#methodWithInterfaces(_arg_iface, _arg_nullable_iface, _arg_iface_list_in, _arg_iface_list_out, _arg_iface_list_inout, _arg_nullable_iface_list_in, _arg_nullable_iface_list_out, _arg_nullable_iface_list_inout) } } fn on_transact(_aidl_service: &dyn IMyInterface, _aidl_code: binder::binder_impl::TransactionCode, _aidl_data: &binder::binder_impl::BorrowedParcel<'_>, _aidl_reply: &mut binder::binder_impl::BorrowedParcel<'_>) -> std::result::Result<(), binder::StatusCode> { match _aidl_code { - transactions::methodWithInterfaces => { + transactions::r#methodWithInterfaces => { let _arg_iface: binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface> = _aidl_data.read()?; let _arg_nullable_iface: Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>> = _aidl_data.read()?; let _arg_iface_list_in: Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>> = _aidl_data.read()?; @@ -240,7 +240,7 @@ pub mod IMyInterface { let _arg_nullable_iface_list_in: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>> = _aidl_data.read()?; let mut _arg_nullable_iface_list_out: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>> = Default::default(); let mut _arg_nullable_iface_list_inout: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>> = _aidl_data.read()?; - let _aidl_return = _aidl_service.methodWithInterfaces(&_arg_iface, _arg_nullable_iface.as_ref(), &_arg_iface_list_in, &mut _arg_iface_list_out, &mut _arg_iface_list_inout, _arg_nullable_iface_list_in.as_deref(), &mut _arg_nullable_iface_list_out, &mut _arg_nullable_iface_list_inout); + let _aidl_return = _aidl_service.r#methodWithInterfaces(&_arg_iface, _arg_nullable_iface.as_ref(), &_arg_iface_list_in, &mut _arg_iface_list_out, &mut _arg_iface_list_inout, _arg_nullable_iface_list_in.as_deref(), &mut _arg_nullable_iface_list_out, &mut _arg_nullable_iface_list_inout); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -258,73 +258,73 @@ pub mod IMyInterface { } } } -pub mod MyParcelable { +pub mod r#MyParcelable { #[derive(Debug)] - pub struct MyParcelable { - pub iface: Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, - pub nullable_iface: Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, - pub iface_list: Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, - pub nullable_iface_list: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, + pub struct r#MyParcelable { + pub r#iface: Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, + pub r#nullable_iface: Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, + pub r#iface_list: Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>, + pub r#nullable_iface_list: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>, } - impl Default for MyParcelable { + impl Default for r#MyParcelable { fn default() -> Self { Self { - iface: Default::default(), - nullable_iface: Default::default(), - iface_list: Default::default(), - nullable_iface_list: Default::default(), + r#iface: Default::default(), + r#nullable_iface: Default::default(), + r#iface_list: Default::default(), + r#nullable_iface_list: Default::default(), } } } - impl binder::Parcelable for MyParcelable { + impl binder::Parcelable for r#MyParcelable { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - let __field_ref = self.iface.as_ref().ok_or(binder::StatusCode::UNEXPECTED_NULL)?; + let __field_ref = self.r#iface.as_ref().ok_or(binder::StatusCode::UNEXPECTED_NULL)?; subparcel.write(__field_ref)?; - subparcel.write(&self.nullable_iface)?; - subparcel.write(&self.iface_list)?; - subparcel.write(&self.nullable_iface_list)?; + subparcel.write(&self.r#nullable_iface)?; + subparcel.write(&self.r#iface_list)?; + subparcel.write(&self.r#nullable_iface_list)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.iface = Some(subparcel.read()?); + self.r#iface = Some(subparcel.read()?); } if subparcel.has_more_data() { - self.nullable_iface = subparcel.read()?; + self.r#nullable_iface = subparcel.read()?; } if subparcel.has_more_data() { - self.iface_list = subparcel.read()?; + self.r#iface_list = subparcel.read()?; } if subparcel.has_more_data() { - self.nullable_iface_list = subparcel.read()?; + self.r#nullable_iface_list = subparcel.read()?; } Ok(()) }) } } - binder::impl_serialize_for_parcelable!(MyParcelable); - binder::impl_deserialize_for_parcelable!(MyParcelable); - impl binder::binder_impl::ParcelableMetadata for MyParcelable { + binder::impl_serialize_for_parcelable!(r#MyParcelable); + binder::impl_deserialize_for_parcelable!(r#MyParcelable); + impl binder::binder_impl::ParcelableMetadata for r#MyParcelable { fn get_descriptor() -> &'static str { "android.aidl.tests.ListOfInterfaces.MyParcelable" } } } -pub mod MyUnion { +pub mod r#MyUnion { #[derive(Debug)] - pub enum MyUnion { + pub enum r#MyUnion { Iface(Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>), Nullable_iface(Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>), Iface_list(Vec<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>), Nullable_iface_list(Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface>>>>), } - impl Default for MyUnion { + impl Default for r#MyUnion { fn default() -> Self { Self::Iface(Default::default()) } } - impl binder::Parcelable for MyUnion { + impl binder::Parcelable for r#MyUnion { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { match self { Self::Iface(v) => { @@ -375,29 +375,29 @@ pub mod MyUnion { } } } - binder::impl_serialize_for_parcelable!(MyUnion); - binder::impl_deserialize_for_parcelable!(MyUnion); - impl binder::binder_impl::ParcelableMetadata for MyUnion { + binder::impl_serialize_for_parcelable!(r#MyUnion); + binder::impl_deserialize_for_parcelable!(r#MyUnion); + impl binder::binder_impl::ParcelableMetadata for r#MyUnion { fn get_descriptor() -> &'static str { "android.aidl.tests.ListOfInterfaces.MyUnion" } } - pub mod Tag { + pub mod r#Tag { #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - Tag : [i32; 4] { - iface = 0, - nullable_iface = 1, - iface_list = 2, - nullable_iface_list = 3, + r#Tag : [i32; 4] { + r#iface = 0, + r#nullable_iface = 1, + r#iface_list = 2, + r#nullable_iface_list = 3, } } } } pub(crate) mod mangled { - pub use super::ListOfInterfaces as _7_android_4_aidl_5_tests_16_ListOfInterfaces; - pub use super::IEmptyInterface::IEmptyInterface as _7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface; - pub use super::IMyInterface::IMyInterface as _7_android_4_aidl_5_tests_16_ListOfInterfaces_12_IMyInterface; - pub use super::MyParcelable::MyParcelable as _7_android_4_aidl_5_tests_16_ListOfInterfaces_12_MyParcelable; - pub use super::MyUnion::MyUnion as _7_android_4_aidl_5_tests_16_ListOfInterfaces_7_MyUnion; - pub use super::MyUnion::Tag::Tag as _7_android_4_aidl_5_tests_16_ListOfInterfaces_7_MyUnion_3_Tag; + pub use super::r#ListOfInterfaces as _7_android_4_aidl_5_tests_16_ListOfInterfaces; + pub use super::r#IEmptyInterface::r#IEmptyInterface as _7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEmptyInterface; + pub use super::r#IMyInterface::r#IMyInterface as _7_android_4_aidl_5_tests_16_ListOfInterfaces_12_IMyInterface; + pub use super::r#MyParcelable::r#MyParcelable as _7_android_4_aidl_5_tests_16_ListOfInterfaces_12_MyParcelable; + pub use super::r#MyUnion::r#MyUnion as _7_android_4_aidl_5_tests_16_ListOfInterfaces_7_MyUnion; + pub use super::r#MyUnion::r#Tag::r#Tag as _7_android_4_aidl_5_tests_16_ListOfInterfaces_7_MyUnion_3_Tag; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/LongEnum.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/LongEnum.rs index ae93821c..75084a41 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/LongEnum.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/LongEnum.rs @@ -3,12 +3,12 @@ #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - LongEnum : [i64; 3] { - FOO = 100000000000, - BAR = 200000000000, - BAZ = 200000000001, + r#LongEnum : [i64; 3] { + r#FOO = 100000000000, + r#BAR = 200000000000, + r#BAZ = 200000000001, } } pub(crate) mod mangled { - pub use super::LongEnum as _7_android_4_aidl_5_tests_8_LongEnum; + pub use super::r#LongEnum as _7_android_4_aidl_5_tests_8_LongEnum; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/OtherParcelableForToString.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/OtherParcelableForToString.rs index 0facb4b2..6b415e01 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/OtherParcelableForToString.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/OtherParcelableForToString.rs @@ -1,37 +1,37 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug)] -pub struct OtherParcelableForToString { - pub field: String, +pub struct r#OtherParcelableForToString { + pub r#field: String, } -impl Default for OtherParcelableForToString { +impl Default for r#OtherParcelableForToString { fn default() -> Self { Self { - field: Default::default(), + r#field: Default::default(), } } } -impl binder::Parcelable for OtherParcelableForToString { +impl binder::Parcelable for r#OtherParcelableForToString { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - subparcel.write(&self.field)?; + subparcel.write(&self.r#field)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.field = subparcel.read()?; + self.r#field = subparcel.read()?; } Ok(()) }) } } -binder::impl_serialize_for_parcelable!(OtherParcelableForToString); -binder::impl_deserialize_for_parcelable!(OtherParcelableForToString); -impl binder::binder_impl::ParcelableMetadata for OtherParcelableForToString { +binder::impl_serialize_for_parcelable!(r#OtherParcelableForToString); +binder::impl_deserialize_for_parcelable!(r#OtherParcelableForToString); +impl binder::binder_impl::ParcelableMetadata for r#OtherParcelableForToString { fn get_descriptor() -> &'static str { "android.aidl.tests.OtherParcelableForToString" } } pub(crate) mod mangled { - pub use super::OtherParcelableForToString as _7_android_4_aidl_5_tests_26_OtherParcelableForToString; + pub use super::r#OtherParcelableForToString as _7_android_4_aidl_5_tests_26_OtherParcelableForToString; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ParcelableForToString.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ParcelableForToString.rs index 753ba366..9dec2a4e 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ParcelableForToString.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ParcelableForToString.rs @@ -1,169 +1,169 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug)] -pub struct ParcelableForToString { - pub intValue: i32, - pub intArray: Vec<i32>, - pub longValue: i64, - pub longArray: Vec<i64>, - pub doubleValue: f64, - pub doubleArray: Vec<f64>, - pub floatValue: f32, - pub floatArray: Vec<f32>, - pub byteValue: i8, - pub byteArray: Vec<u8>, - pub booleanValue: bool, - pub booleanArray: Vec<bool>, - pub stringValue: String, - pub stringArray: Vec<String>, - pub stringList: Vec<String>, - pub parcelableValue: crate::mangled::_7_android_4_aidl_5_tests_26_OtherParcelableForToString, - pub parcelableArray: Vec<crate::mangled::_7_android_4_aidl_5_tests_26_OtherParcelableForToString>, - pub enumValue: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum, - pub enumArray: Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>, - pub nullArray: Vec<String>, - pub nullList: Vec<String>, - pub parcelableGeneric: i32, - pub unionValue: crate::mangled::_7_android_4_aidl_5_tests_5_Union, +pub struct r#ParcelableForToString { + pub r#intValue: i32, + pub r#intArray: Vec<i32>, + pub r#longValue: i64, + pub r#longArray: Vec<i64>, + pub r#doubleValue: f64, + pub r#doubleArray: Vec<f64>, + pub r#floatValue: f32, + pub r#floatArray: Vec<f32>, + pub r#byteValue: i8, + pub r#byteArray: Vec<u8>, + pub r#booleanValue: bool, + pub r#booleanArray: Vec<bool>, + pub r#stringValue: String, + pub r#stringArray: Vec<String>, + pub r#stringList: Vec<String>, + pub r#parcelableValue: crate::mangled::_7_android_4_aidl_5_tests_26_OtherParcelableForToString, + pub r#parcelableArray: Vec<crate::mangled::_7_android_4_aidl_5_tests_26_OtherParcelableForToString>, + pub r#enumValue: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum, + pub r#enumArray: Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>, + pub r#nullArray: Vec<String>, + pub r#nullList: Vec<String>, + pub r#parcelableGeneric: crate::mangled::_7_android_4_aidl_5_tests_27_GenericStructuredParcelable<i32,crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable,crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum,>, + pub r#unionValue: crate::mangled::_7_android_4_aidl_5_tests_5_Union, } -impl Default for ParcelableForToString { +impl Default for r#ParcelableForToString { fn default() -> Self { Self { - intValue: 0, - intArray: Default::default(), - longValue: 0, - longArray: Default::default(), - doubleValue: 0.000000f64, - doubleArray: Default::default(), - floatValue: 0.000000f32, - floatArray: Default::default(), - byteValue: 0, - byteArray: Default::default(), - booleanValue: false, - booleanArray: Default::default(), - stringValue: Default::default(), - stringArray: Default::default(), - stringList: Default::default(), - parcelableValue: Default::default(), - parcelableArray: Default::default(), - enumValue: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum::FOO, - enumArray: Default::default(), - nullArray: Default::default(), - nullList: Default::default(), - parcelableGeneric: Default::default(), - unionValue: Default::default(), + r#intValue: 0, + r#intArray: Default::default(), + r#longValue: 0, + r#longArray: Default::default(), + r#doubleValue: 0.000000f64, + r#doubleArray: Default::default(), + r#floatValue: 0.000000f32, + r#floatArray: Default::default(), + r#byteValue: 0, + r#byteArray: Default::default(), + r#booleanValue: false, + r#booleanArray: Default::default(), + r#stringValue: Default::default(), + r#stringArray: Default::default(), + r#stringList: Default::default(), + r#parcelableValue: Default::default(), + r#parcelableArray: Default::default(), + r#enumValue: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum::FOO, + r#enumArray: Default::default(), + r#nullArray: Default::default(), + r#nullList: Default::default(), + r#parcelableGeneric: Default::default(), + r#unionValue: Default::default(), } } } -impl binder::Parcelable for ParcelableForToString { +impl binder::Parcelable for r#ParcelableForToString { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - subparcel.write(&self.intValue)?; - subparcel.write(&self.intArray)?; - subparcel.write(&self.longValue)?; - subparcel.write(&self.longArray)?; - subparcel.write(&self.doubleValue)?; - subparcel.write(&self.doubleArray)?; - subparcel.write(&self.floatValue)?; - subparcel.write(&self.floatArray)?; - subparcel.write(&self.byteValue)?; - subparcel.write(&self.byteArray)?; - subparcel.write(&self.booleanValue)?; - subparcel.write(&self.booleanArray)?; - subparcel.write(&self.stringValue)?; - subparcel.write(&self.stringArray)?; - subparcel.write(&self.stringList)?; - subparcel.write(&self.parcelableValue)?; - subparcel.write(&self.parcelableArray)?; - subparcel.write(&self.enumValue)?; - subparcel.write(&self.enumArray)?; - subparcel.write(&self.nullArray)?; - subparcel.write(&self.nullList)?; - subparcel.write(&self.parcelableGeneric)?; - subparcel.write(&self.unionValue)?; + subparcel.write(&self.r#intValue)?; + subparcel.write(&self.r#intArray)?; + subparcel.write(&self.r#longValue)?; + subparcel.write(&self.r#longArray)?; + subparcel.write(&self.r#doubleValue)?; + subparcel.write(&self.r#doubleArray)?; + subparcel.write(&self.r#floatValue)?; + subparcel.write(&self.r#floatArray)?; + subparcel.write(&self.r#byteValue)?; + subparcel.write(&self.r#byteArray)?; + subparcel.write(&self.r#booleanValue)?; + subparcel.write(&self.r#booleanArray)?; + subparcel.write(&self.r#stringValue)?; + subparcel.write(&self.r#stringArray)?; + subparcel.write(&self.r#stringList)?; + subparcel.write(&self.r#parcelableValue)?; + subparcel.write(&self.r#parcelableArray)?; + subparcel.write(&self.r#enumValue)?; + subparcel.write(&self.r#enumArray)?; + subparcel.write(&self.r#nullArray)?; + subparcel.write(&self.r#nullList)?; + subparcel.write(&self.r#parcelableGeneric)?; + subparcel.write(&self.r#unionValue)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.intValue = subparcel.read()?; + self.r#intValue = subparcel.read()?; } if subparcel.has_more_data() { - self.intArray = subparcel.read()?; + self.r#intArray = subparcel.read()?; } if subparcel.has_more_data() { - self.longValue = subparcel.read()?; + self.r#longValue = subparcel.read()?; } if subparcel.has_more_data() { - self.longArray = subparcel.read()?; + self.r#longArray = subparcel.read()?; } if subparcel.has_more_data() { - self.doubleValue = subparcel.read()?; + self.r#doubleValue = subparcel.read()?; } if subparcel.has_more_data() { - self.doubleArray = subparcel.read()?; + self.r#doubleArray = subparcel.read()?; } if subparcel.has_more_data() { - self.floatValue = subparcel.read()?; + self.r#floatValue = subparcel.read()?; } if subparcel.has_more_data() { - self.floatArray = subparcel.read()?; + self.r#floatArray = subparcel.read()?; } if subparcel.has_more_data() { - self.byteValue = subparcel.read()?; + self.r#byteValue = subparcel.read()?; } if subparcel.has_more_data() { - self.byteArray = subparcel.read()?; + self.r#byteArray = subparcel.read()?; } if subparcel.has_more_data() { - self.booleanValue = subparcel.read()?; + self.r#booleanValue = subparcel.read()?; } if subparcel.has_more_data() { - self.booleanArray = subparcel.read()?; + self.r#booleanArray = subparcel.read()?; } if subparcel.has_more_data() { - self.stringValue = subparcel.read()?; + self.r#stringValue = subparcel.read()?; } if subparcel.has_more_data() { - self.stringArray = subparcel.read()?; + self.r#stringArray = subparcel.read()?; } if subparcel.has_more_data() { - self.stringList = subparcel.read()?; + self.r#stringList = subparcel.read()?; } if subparcel.has_more_data() { - self.parcelableValue = subparcel.read()?; + self.r#parcelableValue = subparcel.read()?; } if subparcel.has_more_data() { - self.parcelableArray = subparcel.read()?; + self.r#parcelableArray = subparcel.read()?; } if subparcel.has_more_data() { - self.enumValue = subparcel.read()?; + self.r#enumValue = subparcel.read()?; } if subparcel.has_more_data() { - self.enumArray = subparcel.read()?; + self.r#enumArray = subparcel.read()?; } if subparcel.has_more_data() { - self.nullArray = subparcel.read()?; + self.r#nullArray = subparcel.read()?; } if subparcel.has_more_data() { - self.nullList = subparcel.read()?; + self.r#nullList = subparcel.read()?; } if subparcel.has_more_data() { - self.parcelableGeneric = subparcel.read()?; + self.r#parcelableGeneric = subparcel.read()?; } if subparcel.has_more_data() { - self.unionValue = subparcel.read()?; + self.r#unionValue = subparcel.read()?; } Ok(()) }) } } -binder::impl_serialize_for_parcelable!(ParcelableForToString); -binder::impl_deserialize_for_parcelable!(ParcelableForToString); -impl binder::binder_impl::ParcelableMetadata for ParcelableForToString { +binder::impl_serialize_for_parcelable!(r#ParcelableForToString); +binder::impl_deserialize_for_parcelable!(r#ParcelableForToString); +impl binder::binder_impl::ParcelableMetadata for r#ParcelableForToString { fn get_descriptor() -> &'static str { "android.aidl.tests.ParcelableForToString" } } pub(crate) mod mangled { - pub use super::ParcelableForToString as _7_android_4_aidl_5_tests_21_ParcelableForToString; + pub use super::r#ParcelableForToString as _7_android_4_aidl_5_tests_21_ParcelableForToString; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/RecursiveList.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/RecursiveList.rs index d03f48e6..f439d5f5 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/RecursiveList.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/RecursiveList.rs @@ -1,43 +1,43 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug)] -pub struct RecursiveList { - pub value: i32, - pub next: Option<Box<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList>>, +pub struct r#RecursiveList { + pub r#value: i32, + pub r#next: Option<Box<crate::mangled::_7_android_4_aidl_5_tests_13_RecursiveList>>, } -impl Default for RecursiveList { +impl Default for r#RecursiveList { fn default() -> Self { Self { - value: 0, - next: Default::default(), + r#value: 0, + r#next: Default::default(), } } } -impl binder::Parcelable for RecursiveList { +impl binder::Parcelable for r#RecursiveList { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - subparcel.write(&self.value)?; - subparcel.write(&self.next)?; + subparcel.write(&self.r#value)?; + subparcel.write(&self.r#next)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.value = subparcel.read()?; + self.r#value = subparcel.read()?; } if subparcel.has_more_data() { - self.next = subparcel.read()?; + self.r#next = subparcel.read()?; } Ok(()) }) } } -binder::impl_serialize_for_parcelable!(RecursiveList); -binder::impl_deserialize_for_parcelable!(RecursiveList); -impl binder::binder_impl::ParcelableMetadata for RecursiveList { +binder::impl_serialize_for_parcelable!(r#RecursiveList); +binder::impl_deserialize_for_parcelable!(r#RecursiveList); +impl binder::binder_impl::ParcelableMetadata for r#RecursiveList { fn get_descriptor() -> &'static str { "android.aidl.tests.RecursiveList" } } pub(crate) mod mangled { - pub use super::RecursiveList as _7_android_4_aidl_5_tests_13_RecursiveList; + pub use super::r#RecursiveList as _7_android_4_aidl_5_tests_13_RecursiveList; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/StructuredParcelable.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/StructuredParcelable.rs index df666b3a..1c7c016d 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/StructuredParcelable.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/StructuredParcelable.rs @@ -1,375 +1,375 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug, Clone, PartialEq)] -pub struct StructuredParcelable { - pub shouldContainThreeFs: Vec<i32>, - pub f: i32, - pub shouldBeJerry: String, - pub shouldBeByteBar: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum, - pub shouldBeIntBar: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum, - pub shouldBeLongBar: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum, - pub shouldContainTwoByteFoos: Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>, - pub shouldContainTwoIntFoos: Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>, - pub shouldContainTwoLongFoos: Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>, - pub stringDefaultsToFoo: String, - pub byteDefaultsToFour: i8, - pub intDefaultsToFive: i32, - pub longDefaultsToNegativeSeven: i64, - pub booleanDefaultsToTrue: bool, - pub charDefaultsToC: u16, - pub floatDefaultsToPi: f32, - pub doubleWithDefault: f64, - pub arrayDefaultsTo123: Vec<i32>, - pub arrayDefaultsToEmpty: Vec<i32>, - pub boolDefault: bool, - pub byteDefault: i8, - pub intDefault: i32, - pub longDefault: i64, - pub floatDefault: f32, - pub doubleDefault: f64, - pub checkDoubleFromFloat: f64, - pub checkStringArray1: Vec<String>, - pub checkStringArray2: Vec<String>, - pub int32_min: i32, - pub int32_max: i32, - pub int64_max: i64, - pub hexInt32_neg_1: i32, - pub ibinder: Option<binder::SpIBinder>, - pub empty: crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable_5_Empty, - pub int8_1: Vec<u8>, - pub int32_1: Vec<i32>, - pub int64_1: Vec<i64>, - pub hexInt32_pos_1: i32, - pub hexInt64_pos_1: i32, - pub const_exprs_1: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, - pub const_exprs_2: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, - pub const_exprs_3: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, - pub const_exprs_4: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, - pub const_exprs_5: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, - pub const_exprs_6: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, - pub const_exprs_7: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, - pub const_exprs_8: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, - pub const_exprs_9: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, - pub const_exprs_10: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, - pub addString1: String, - pub addString2: String, - pub shouldSetBit0AndBit2: i32, - pub u: Option<crate::mangled::_7_android_4_aidl_5_tests_5_Union>, - pub shouldBeConstS1: Option<crate::mangled::_7_android_4_aidl_5_tests_5_Union>, - pub defaultWithFoo: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum, +pub struct r#StructuredParcelable { + pub r#shouldContainThreeFs: Vec<i32>, + pub r#f: i32, + pub r#shouldBeJerry: String, + pub r#shouldBeByteBar: crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum, + pub r#shouldBeIntBar: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum, + pub r#shouldBeLongBar: crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum, + pub r#shouldContainTwoByteFoos: Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>, + pub r#shouldContainTwoIntFoos: Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>, + pub r#shouldContainTwoLongFoos: Vec<crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum>, + pub r#stringDefaultsToFoo: String, + pub r#byteDefaultsToFour: i8, + pub r#intDefaultsToFive: i32, + pub r#longDefaultsToNegativeSeven: i64, + pub r#booleanDefaultsToTrue: bool, + pub r#charDefaultsToC: u16, + pub r#floatDefaultsToPi: f32, + pub r#doubleWithDefault: f64, + pub r#arrayDefaultsTo123: Vec<i32>, + pub r#arrayDefaultsToEmpty: Vec<i32>, + pub r#boolDefault: bool, + pub r#byteDefault: i8, + pub r#intDefault: i32, + pub r#longDefault: i64, + pub r#floatDefault: f32, + pub r#doubleDefault: f64, + pub r#checkDoubleFromFloat: f64, + pub r#checkStringArray1: Vec<String>, + pub r#checkStringArray2: Vec<String>, + pub r#int32_min: i32, + pub r#int32_max: i32, + pub r#int64_max: i64, + pub r#hexInt32_neg_1: i32, + pub r#ibinder: Option<binder::SpIBinder>, + pub r#empty: crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable_5_Empty, + pub r#int8_1: Vec<u8>, + pub r#int32_1: Vec<i32>, + pub r#int64_1: Vec<i64>, + pub r#hexInt32_pos_1: i32, + pub r#hexInt64_pos_1: i32, + pub r#const_exprs_1: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, + pub r#const_exprs_2: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, + pub r#const_exprs_3: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, + pub r#const_exprs_4: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, + pub r#const_exprs_5: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, + pub r#const_exprs_6: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, + pub r#const_exprs_7: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, + pub r#const_exprs_8: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, + pub r#const_exprs_9: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, + pub r#const_exprs_10: crate::mangled::_7_android_4_aidl_5_tests_22_ConstantExpressionEnum, + pub r#addString1: String, + pub r#addString2: String, + pub r#shouldSetBit0AndBit2: i32, + pub r#u: Option<crate::mangled::_7_android_4_aidl_5_tests_5_Union>, + pub r#shouldBeConstS1: Option<crate::mangled::_7_android_4_aidl_5_tests_5_Union>, + pub r#defaultWithFoo: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum, } -pub const BIT0: i32 = 1; -pub const BIT1: i32 = 2; -pub const BIT2: i32 = 4; -impl Default for StructuredParcelable { +pub const r#BIT0: i32 = 1; +pub const r#BIT1: i32 = 2; +pub const r#BIT2: i32 = 4; +impl Default for r#StructuredParcelable { fn default() -> Self { Self { - shouldContainThreeFs: Default::default(), - f: 0, - shouldBeJerry: Default::default(), - shouldBeByteBar: Default::default(), - shouldBeIntBar: Default::default(), - shouldBeLongBar: Default::default(), - shouldContainTwoByteFoos: Default::default(), - shouldContainTwoIntFoos: Default::default(), - shouldContainTwoLongFoos: Default::default(), - stringDefaultsToFoo: "foo".into(), - byteDefaultsToFour: 4, - intDefaultsToFive: 5, - longDefaultsToNegativeSeven: -7, - booleanDefaultsToTrue: true, - charDefaultsToC: 'C' as u16, - floatDefaultsToPi: 3.140000f32, - doubleWithDefault: -314000000000000000.000000f64, - arrayDefaultsTo123: vec![1, 2, 3], - arrayDefaultsToEmpty: vec![], - boolDefault: false, - byteDefault: 0, - intDefault: 0, - longDefault: 0, - floatDefault: 0.000000f32, - doubleDefault: 0.000000f64, - checkDoubleFromFloat: 3.140000f64, - checkStringArray1: vec!["a".into(), "b".into()], - checkStringArray2: vec!["a".into(), "b".into()], - int32_min: -2147483648, - int32_max: 2147483647, - int64_max: 9223372036854775807, - hexInt32_neg_1: -1, - ibinder: Default::default(), - empty: Default::default(), - int8_1: vec![1, 1, 1, 1, 1], - int32_1: vec![1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], - int64_1: vec![1, 1, 1, 1, 1, 1, 1, 1, 1, 1], - hexInt32_pos_1: 1, - hexInt64_pos_1: 1, - const_exprs_1: Default::default(), - const_exprs_2: Default::default(), - const_exprs_3: Default::default(), - const_exprs_4: Default::default(), - const_exprs_5: Default::default(), - const_exprs_6: Default::default(), - const_exprs_7: Default::default(), - const_exprs_8: Default::default(), - const_exprs_9: Default::default(), - const_exprs_10: Default::default(), - addString1: "hello world!".into(), - addString2: "The quick brown fox jumps over the lazy dog.".into(), - shouldSetBit0AndBit2: 0, - u: Default::default(), - shouldBeConstS1: Default::default(), - defaultWithFoo: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum::FOO, + r#shouldContainThreeFs: Default::default(), + r#f: 0, + r#shouldBeJerry: Default::default(), + r#shouldBeByteBar: Default::default(), + r#shouldBeIntBar: Default::default(), + r#shouldBeLongBar: Default::default(), + r#shouldContainTwoByteFoos: Default::default(), + r#shouldContainTwoIntFoos: Default::default(), + r#shouldContainTwoLongFoos: Default::default(), + r#stringDefaultsToFoo: "foo".into(), + r#byteDefaultsToFour: 4, + r#intDefaultsToFive: 5, + r#longDefaultsToNegativeSeven: -7, + r#booleanDefaultsToTrue: true, + r#charDefaultsToC: 'C' as u16, + r#floatDefaultsToPi: 3.140000f32, + r#doubleWithDefault: -314000000000000000.000000f64, + r#arrayDefaultsTo123: vec![1, 2, 3], + r#arrayDefaultsToEmpty: vec![], + r#boolDefault: false, + r#byteDefault: 0, + r#intDefault: 0, + r#longDefault: 0, + r#floatDefault: 0.000000f32, + r#doubleDefault: 0.000000f64, + r#checkDoubleFromFloat: 3.140000f64, + r#checkStringArray1: vec!["a".into(), "b".into()], + r#checkStringArray2: vec!["a".into(), "b".into()], + r#int32_min: -2147483648, + r#int32_max: 2147483647, + r#int64_max: 9223372036854775807, + r#hexInt32_neg_1: -1, + r#ibinder: Default::default(), + r#empty: Default::default(), + r#int8_1: vec![1, 1, 1, 1, 1], + r#int32_1: vec![1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], + r#int64_1: vec![1, 1, 1, 1, 1, 1, 1, 1, 1, 1], + r#hexInt32_pos_1: 1, + r#hexInt64_pos_1: 1, + r#const_exprs_1: Default::default(), + r#const_exprs_2: Default::default(), + r#const_exprs_3: Default::default(), + r#const_exprs_4: Default::default(), + r#const_exprs_5: Default::default(), + r#const_exprs_6: Default::default(), + r#const_exprs_7: Default::default(), + r#const_exprs_8: Default::default(), + r#const_exprs_9: Default::default(), + r#const_exprs_10: Default::default(), + r#addString1: "hello world!".into(), + r#addString2: "The quick brown fox jumps over the lazy dog.".into(), + r#shouldSetBit0AndBit2: 0, + r#u: Default::default(), + r#shouldBeConstS1: Default::default(), + r#defaultWithFoo: crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum::FOO, } } } -impl binder::Parcelable for StructuredParcelable { +impl binder::Parcelable for r#StructuredParcelable { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - subparcel.write(&self.shouldContainThreeFs)?; - subparcel.write(&self.f)?; - subparcel.write(&self.shouldBeJerry)?; - subparcel.write(&self.shouldBeByteBar)?; - subparcel.write(&self.shouldBeIntBar)?; - subparcel.write(&self.shouldBeLongBar)?; - subparcel.write(&self.shouldContainTwoByteFoos)?; - subparcel.write(&self.shouldContainTwoIntFoos)?; - subparcel.write(&self.shouldContainTwoLongFoos)?; - subparcel.write(&self.stringDefaultsToFoo)?; - subparcel.write(&self.byteDefaultsToFour)?; - subparcel.write(&self.intDefaultsToFive)?; - subparcel.write(&self.longDefaultsToNegativeSeven)?; - subparcel.write(&self.booleanDefaultsToTrue)?; - subparcel.write(&self.charDefaultsToC)?; - subparcel.write(&self.floatDefaultsToPi)?; - subparcel.write(&self.doubleWithDefault)?; - subparcel.write(&self.arrayDefaultsTo123)?; - subparcel.write(&self.arrayDefaultsToEmpty)?; - subparcel.write(&self.boolDefault)?; - subparcel.write(&self.byteDefault)?; - subparcel.write(&self.intDefault)?; - subparcel.write(&self.longDefault)?; - subparcel.write(&self.floatDefault)?; - subparcel.write(&self.doubleDefault)?; - subparcel.write(&self.checkDoubleFromFloat)?; - subparcel.write(&self.checkStringArray1)?; - subparcel.write(&self.checkStringArray2)?; - subparcel.write(&self.int32_min)?; - subparcel.write(&self.int32_max)?; - subparcel.write(&self.int64_max)?; - subparcel.write(&self.hexInt32_neg_1)?; - subparcel.write(&self.ibinder)?; - subparcel.write(&self.empty)?; - subparcel.write(&self.int8_1)?; - subparcel.write(&self.int32_1)?; - subparcel.write(&self.int64_1)?; - subparcel.write(&self.hexInt32_pos_1)?; - subparcel.write(&self.hexInt64_pos_1)?; - subparcel.write(&self.const_exprs_1)?; - subparcel.write(&self.const_exprs_2)?; - subparcel.write(&self.const_exprs_3)?; - subparcel.write(&self.const_exprs_4)?; - subparcel.write(&self.const_exprs_5)?; - subparcel.write(&self.const_exprs_6)?; - subparcel.write(&self.const_exprs_7)?; - subparcel.write(&self.const_exprs_8)?; - subparcel.write(&self.const_exprs_9)?; - subparcel.write(&self.const_exprs_10)?; - subparcel.write(&self.addString1)?; - subparcel.write(&self.addString2)?; - subparcel.write(&self.shouldSetBit0AndBit2)?; - subparcel.write(&self.u)?; - subparcel.write(&self.shouldBeConstS1)?; - subparcel.write(&self.defaultWithFoo)?; + subparcel.write(&self.r#shouldContainThreeFs)?; + subparcel.write(&self.r#f)?; + subparcel.write(&self.r#shouldBeJerry)?; + subparcel.write(&self.r#shouldBeByteBar)?; + subparcel.write(&self.r#shouldBeIntBar)?; + subparcel.write(&self.r#shouldBeLongBar)?; + subparcel.write(&self.r#shouldContainTwoByteFoos)?; + subparcel.write(&self.r#shouldContainTwoIntFoos)?; + subparcel.write(&self.r#shouldContainTwoLongFoos)?; + subparcel.write(&self.r#stringDefaultsToFoo)?; + subparcel.write(&self.r#byteDefaultsToFour)?; + subparcel.write(&self.r#intDefaultsToFive)?; + subparcel.write(&self.r#longDefaultsToNegativeSeven)?; + subparcel.write(&self.r#booleanDefaultsToTrue)?; + subparcel.write(&self.r#charDefaultsToC)?; + subparcel.write(&self.r#floatDefaultsToPi)?; + subparcel.write(&self.r#doubleWithDefault)?; + subparcel.write(&self.r#arrayDefaultsTo123)?; + subparcel.write(&self.r#arrayDefaultsToEmpty)?; + subparcel.write(&self.r#boolDefault)?; + subparcel.write(&self.r#byteDefault)?; + subparcel.write(&self.r#intDefault)?; + subparcel.write(&self.r#longDefault)?; + subparcel.write(&self.r#floatDefault)?; + subparcel.write(&self.r#doubleDefault)?; + subparcel.write(&self.r#checkDoubleFromFloat)?; + subparcel.write(&self.r#checkStringArray1)?; + subparcel.write(&self.r#checkStringArray2)?; + subparcel.write(&self.r#int32_min)?; + subparcel.write(&self.r#int32_max)?; + subparcel.write(&self.r#int64_max)?; + subparcel.write(&self.r#hexInt32_neg_1)?; + subparcel.write(&self.r#ibinder)?; + subparcel.write(&self.r#empty)?; + subparcel.write(&self.r#int8_1)?; + subparcel.write(&self.r#int32_1)?; + subparcel.write(&self.r#int64_1)?; + subparcel.write(&self.r#hexInt32_pos_1)?; + subparcel.write(&self.r#hexInt64_pos_1)?; + subparcel.write(&self.r#const_exprs_1)?; + subparcel.write(&self.r#const_exprs_2)?; + subparcel.write(&self.r#const_exprs_3)?; + subparcel.write(&self.r#const_exprs_4)?; + subparcel.write(&self.r#const_exprs_5)?; + subparcel.write(&self.r#const_exprs_6)?; + subparcel.write(&self.r#const_exprs_7)?; + subparcel.write(&self.r#const_exprs_8)?; + subparcel.write(&self.r#const_exprs_9)?; + subparcel.write(&self.r#const_exprs_10)?; + subparcel.write(&self.r#addString1)?; + subparcel.write(&self.r#addString2)?; + subparcel.write(&self.r#shouldSetBit0AndBit2)?; + subparcel.write(&self.r#u)?; + subparcel.write(&self.r#shouldBeConstS1)?; + subparcel.write(&self.r#defaultWithFoo)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.shouldContainThreeFs = subparcel.read()?; + self.r#shouldContainThreeFs = subparcel.read()?; } if subparcel.has_more_data() { - self.f = subparcel.read()?; + self.r#f = subparcel.read()?; } if subparcel.has_more_data() { - self.shouldBeJerry = subparcel.read()?; + self.r#shouldBeJerry = subparcel.read()?; } if subparcel.has_more_data() { - self.shouldBeByteBar = subparcel.read()?; + self.r#shouldBeByteBar = subparcel.read()?; } if subparcel.has_more_data() { - self.shouldBeIntBar = subparcel.read()?; + self.r#shouldBeIntBar = subparcel.read()?; } if subparcel.has_more_data() { - self.shouldBeLongBar = subparcel.read()?; + self.r#shouldBeLongBar = subparcel.read()?; } if subparcel.has_more_data() { - self.shouldContainTwoByteFoos = subparcel.read()?; + self.r#shouldContainTwoByteFoos = subparcel.read()?; } if subparcel.has_more_data() { - self.shouldContainTwoIntFoos = subparcel.read()?; + self.r#shouldContainTwoIntFoos = subparcel.read()?; } if subparcel.has_more_data() { - self.shouldContainTwoLongFoos = subparcel.read()?; + self.r#shouldContainTwoLongFoos = subparcel.read()?; } if subparcel.has_more_data() { - self.stringDefaultsToFoo = subparcel.read()?; + self.r#stringDefaultsToFoo = subparcel.read()?; } if subparcel.has_more_data() { - self.byteDefaultsToFour = subparcel.read()?; + self.r#byteDefaultsToFour = subparcel.read()?; } if subparcel.has_more_data() { - self.intDefaultsToFive = subparcel.read()?; + self.r#intDefaultsToFive = subparcel.read()?; } if subparcel.has_more_data() { - self.longDefaultsToNegativeSeven = subparcel.read()?; + self.r#longDefaultsToNegativeSeven = subparcel.read()?; } if subparcel.has_more_data() { - self.booleanDefaultsToTrue = subparcel.read()?; + self.r#booleanDefaultsToTrue = subparcel.read()?; } if subparcel.has_more_data() { - self.charDefaultsToC = subparcel.read()?; + self.r#charDefaultsToC = subparcel.read()?; } if subparcel.has_more_data() { - self.floatDefaultsToPi = subparcel.read()?; + self.r#floatDefaultsToPi = subparcel.read()?; } if subparcel.has_more_data() { - self.doubleWithDefault = subparcel.read()?; + self.r#doubleWithDefault = subparcel.read()?; } if subparcel.has_more_data() { - self.arrayDefaultsTo123 = subparcel.read()?; + self.r#arrayDefaultsTo123 = subparcel.read()?; } if subparcel.has_more_data() { - self.arrayDefaultsToEmpty = subparcel.read()?; + self.r#arrayDefaultsToEmpty = subparcel.read()?; } if subparcel.has_more_data() { - self.boolDefault = subparcel.read()?; + self.r#boolDefault = subparcel.read()?; } if subparcel.has_more_data() { - self.byteDefault = subparcel.read()?; + self.r#byteDefault = subparcel.read()?; } if subparcel.has_more_data() { - self.intDefault = subparcel.read()?; + self.r#intDefault = subparcel.read()?; } if subparcel.has_more_data() { - self.longDefault = subparcel.read()?; + self.r#longDefault = subparcel.read()?; } if subparcel.has_more_data() { - self.floatDefault = subparcel.read()?; + self.r#floatDefault = subparcel.read()?; } if subparcel.has_more_data() { - self.doubleDefault = subparcel.read()?; + self.r#doubleDefault = subparcel.read()?; } if subparcel.has_more_data() { - self.checkDoubleFromFloat = subparcel.read()?; + self.r#checkDoubleFromFloat = subparcel.read()?; } if subparcel.has_more_data() { - self.checkStringArray1 = subparcel.read()?; + self.r#checkStringArray1 = subparcel.read()?; } if subparcel.has_more_data() { - self.checkStringArray2 = subparcel.read()?; + self.r#checkStringArray2 = subparcel.read()?; } if subparcel.has_more_data() { - self.int32_min = subparcel.read()?; + self.r#int32_min = subparcel.read()?; } if subparcel.has_more_data() { - self.int32_max = subparcel.read()?; + self.r#int32_max = subparcel.read()?; } if subparcel.has_more_data() { - self.int64_max = subparcel.read()?; + self.r#int64_max = subparcel.read()?; } if subparcel.has_more_data() { - self.hexInt32_neg_1 = subparcel.read()?; + self.r#hexInt32_neg_1 = subparcel.read()?; } if subparcel.has_more_data() { - self.ibinder = subparcel.read()?; + self.r#ibinder = subparcel.read()?; } if subparcel.has_more_data() { - self.empty = subparcel.read()?; + self.r#empty = subparcel.read()?; } if subparcel.has_more_data() { - self.int8_1 = subparcel.read()?; + self.r#int8_1 = subparcel.read()?; } if subparcel.has_more_data() { - self.int32_1 = subparcel.read()?; + self.r#int32_1 = subparcel.read()?; } if subparcel.has_more_data() { - self.int64_1 = subparcel.read()?; + self.r#int64_1 = subparcel.read()?; } if subparcel.has_more_data() { - self.hexInt32_pos_1 = subparcel.read()?; + self.r#hexInt32_pos_1 = subparcel.read()?; } if subparcel.has_more_data() { - self.hexInt64_pos_1 = subparcel.read()?; + self.r#hexInt64_pos_1 = subparcel.read()?; } if subparcel.has_more_data() { - self.const_exprs_1 = subparcel.read()?; + self.r#const_exprs_1 = subparcel.read()?; } if subparcel.has_more_data() { - self.const_exprs_2 = subparcel.read()?; + self.r#const_exprs_2 = subparcel.read()?; } if subparcel.has_more_data() { - self.const_exprs_3 = subparcel.read()?; + self.r#const_exprs_3 = subparcel.read()?; } if subparcel.has_more_data() { - self.const_exprs_4 = subparcel.read()?; + self.r#const_exprs_4 = subparcel.read()?; } if subparcel.has_more_data() { - self.const_exprs_5 = subparcel.read()?; + self.r#const_exprs_5 = subparcel.read()?; } if subparcel.has_more_data() { - self.const_exprs_6 = subparcel.read()?; + self.r#const_exprs_6 = subparcel.read()?; } if subparcel.has_more_data() { - self.const_exprs_7 = subparcel.read()?; + self.r#const_exprs_7 = subparcel.read()?; } if subparcel.has_more_data() { - self.const_exprs_8 = subparcel.read()?; + self.r#const_exprs_8 = subparcel.read()?; } if subparcel.has_more_data() { - self.const_exprs_9 = subparcel.read()?; + self.r#const_exprs_9 = subparcel.read()?; } if subparcel.has_more_data() { - self.const_exprs_10 = subparcel.read()?; + self.r#const_exprs_10 = subparcel.read()?; } if subparcel.has_more_data() { - self.addString1 = subparcel.read()?; + self.r#addString1 = subparcel.read()?; } if subparcel.has_more_data() { - self.addString2 = subparcel.read()?; + self.r#addString2 = subparcel.read()?; } if subparcel.has_more_data() { - self.shouldSetBit0AndBit2 = subparcel.read()?; + self.r#shouldSetBit0AndBit2 = subparcel.read()?; } if subparcel.has_more_data() { - self.u = subparcel.read()?; + self.r#u = subparcel.read()?; } if subparcel.has_more_data() { - self.shouldBeConstS1 = subparcel.read()?; + self.r#shouldBeConstS1 = subparcel.read()?; } if subparcel.has_more_data() { - self.defaultWithFoo = subparcel.read()?; + self.r#defaultWithFoo = subparcel.read()?; } Ok(()) }) } } -binder::impl_serialize_for_parcelable!(StructuredParcelable); -binder::impl_deserialize_for_parcelable!(StructuredParcelable); -impl binder::binder_impl::ParcelableMetadata for StructuredParcelable { +binder::impl_serialize_for_parcelable!(r#StructuredParcelable); +binder::impl_deserialize_for_parcelable!(r#StructuredParcelable); +impl binder::binder_impl::ParcelableMetadata for r#StructuredParcelable { fn get_descriptor() -> &'static str { "android.aidl.tests.StructuredParcelable" } } -pub mod Empty { +pub mod r#Empty { #[derive(Debug, Clone, PartialEq)] - pub struct Empty { + pub struct r#Empty { } - impl Default for Empty { + impl Default for r#Empty { fn default() -> Self { Self { } } } - impl binder::Parcelable for Empty { + impl binder::Parcelable for r#Empty { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { Ok(()) @@ -381,13 +381,13 @@ pub mod Empty { }) } } - binder::impl_serialize_for_parcelable!(Empty); - binder::impl_deserialize_for_parcelable!(Empty); - impl binder::binder_impl::ParcelableMetadata for Empty { + binder::impl_serialize_for_parcelable!(r#Empty); + binder::impl_deserialize_for_parcelable!(r#Empty); + impl binder::binder_impl::ParcelableMetadata for r#Empty { fn get_descriptor() -> &'static str { "android.aidl.tests.StructuredParcelable.Empty" } } } pub(crate) mod mangled { - pub use super::StructuredParcelable as _7_android_4_aidl_5_tests_20_StructuredParcelable; - pub use super::Empty::Empty as _7_android_4_aidl_5_tests_20_StructuredParcelable_5_Empty; + pub use super::r#StructuredParcelable as _7_android_4_aidl_5_tests_20_StructuredParcelable; + pub use super::r#Empty::r#Empty as _7_android_4_aidl_5_tests_20_StructuredParcelable_5_Empty; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/Union.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/Union.rs index a2f9295c..ab574644 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/Union.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/Union.rs @@ -1,7 +1,7 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug, Clone, PartialEq)] -pub enum Union { +pub enum r#Union { Ns(Vec<i32>), N(i32), M(i32), @@ -10,13 +10,13 @@ pub enum Union { Ss(Vec<String>), Be(crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum), } -pub const S1: &str = "a string constant in union"; -impl Default for Union { +pub const r#S1: &str = "a string constant in union"; +impl Default for r#Union { fn default() -> Self { Self::Ns(vec![]) } } -impl binder::Parcelable for Union { +impl binder::Parcelable for r#Union { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { match self { Self::Ns(v) => { @@ -93,27 +93,27 @@ impl binder::Parcelable for Union { } } } -binder::impl_serialize_for_parcelable!(Union); -binder::impl_deserialize_for_parcelable!(Union); -impl binder::binder_impl::ParcelableMetadata for Union { +binder::impl_serialize_for_parcelable!(r#Union); +binder::impl_deserialize_for_parcelable!(r#Union); +impl binder::binder_impl::ParcelableMetadata for r#Union { fn get_descriptor() -> &'static str { "android.aidl.tests.Union" } } -pub mod Tag { +pub mod r#Tag { #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - Tag : [i32; 7] { - ns = 0, - n = 1, - m = 2, - s = 3, - ibinder = 4, - ss = 5, - be = 6, + r#Tag : [i32; 7] { + r#ns = 0, + r#n = 1, + r#m = 2, + r#s = 3, + r#ibinder = 4, + r#ss = 5, + r#be = 6, } } } pub(crate) mod mangled { - pub use super::Union as _7_android_4_aidl_5_tests_5_Union; - pub use super::Tag::Tag as _7_android_4_aidl_5_tests_5_Union_3_Tag; + pub use super::r#Union as _7_android_4_aidl_5_tests_5_Union; + pub use super::r#Tag::r#Tag as _7_android_4_aidl_5_tests_5_Union_3_Tag; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/UnionWithFd.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/UnionWithFd.rs index 49f9f16f..bce4d546 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/UnionWithFd.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/UnionWithFd.rs @@ -1,16 +1,16 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug)] -pub enum UnionWithFd { +pub enum r#UnionWithFd { Num(i32), Pfd(Option<binder::ParcelFileDescriptor>), } -impl Default for UnionWithFd { +impl Default for r#UnionWithFd { fn default() -> Self { Self::Num(0) } } -impl binder::Parcelable for UnionWithFd { +impl binder::Parcelable for r#UnionWithFd { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { match self { Self::Num(v) => { @@ -43,22 +43,22 @@ impl binder::Parcelable for UnionWithFd { } } } -binder::impl_serialize_for_parcelable!(UnionWithFd); -binder::impl_deserialize_for_parcelable!(UnionWithFd); -impl binder::binder_impl::ParcelableMetadata for UnionWithFd { +binder::impl_serialize_for_parcelable!(r#UnionWithFd); +binder::impl_deserialize_for_parcelable!(r#UnionWithFd); +impl binder::binder_impl::ParcelableMetadata for r#UnionWithFd { fn get_descriptor() -> &'static str { "android.aidl.tests.UnionWithFd" } } -pub mod Tag { +pub mod r#Tag { #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - Tag : [i32; 2] { - num = 0, - pfd = 1, + r#Tag : [i32; 2] { + r#num = 0, + r#pfd = 1, } } } pub(crate) mod mangled { - pub use super::UnionWithFd as _7_android_4_aidl_5_tests_11_UnionWithFd; - pub use super::Tag::Tag as _7_android_4_aidl_5_tests_11_UnionWithFd_3_Tag; + pub use super::r#UnionWithFd as _7_android_4_aidl_5_tests_11_UnionWithFd; + pub use super::r#Tag::r#Tag as _7_android_4_aidl_5_tests_11_UnionWithFd_3_Tag; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/ExtendableParcelable.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/ExtendableParcelable.rs index d91ea320..f99c361e 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/ExtendableParcelable.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/ExtendableParcelable.rs @@ -1,61 +1,61 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug)] -pub struct ExtendableParcelable { - pub a: i32, - pub b: String, - pub ext: binder::ParcelableHolder, - pub c: i64, - pub ext2: binder::ParcelableHolder, +pub struct r#ExtendableParcelable { + pub r#a: i32, + pub r#b: String, + pub r#ext: binder::ParcelableHolder, + pub r#c: i64, + pub r#ext2: binder::ParcelableHolder, } -impl Default for ExtendableParcelable { +impl Default for r#ExtendableParcelable { fn default() -> Self { Self { - a: 0, - b: Default::default(), - ext: binder::ParcelableHolder::new(binder::binder_impl::Stability::Local), - c: 0, - ext2: binder::ParcelableHolder::new(binder::binder_impl::Stability::Local), + r#a: 0, + r#b: Default::default(), + r#ext: binder::ParcelableHolder::new(binder::binder_impl::Stability::Local), + r#c: 0, + r#ext2: binder::ParcelableHolder::new(binder::binder_impl::Stability::Local), } } } -impl binder::Parcelable for ExtendableParcelable { +impl binder::Parcelable for r#ExtendableParcelable { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - subparcel.write(&self.a)?; - subparcel.write(&self.b)?; - subparcel.write(&self.ext)?; - subparcel.write(&self.c)?; - subparcel.write(&self.ext2)?; + subparcel.write(&self.r#a)?; + subparcel.write(&self.r#b)?; + subparcel.write(&self.r#ext)?; + subparcel.write(&self.r#c)?; + subparcel.write(&self.r#ext2)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.a = subparcel.read()?; + self.r#a = subparcel.read()?; } if subparcel.has_more_data() { - self.b = subparcel.read()?; + self.r#b = subparcel.read()?; } if subparcel.has_more_data() { - self.ext = subparcel.read()?; + self.r#ext = subparcel.read()?; } if subparcel.has_more_data() { - self.c = subparcel.read()?; + self.r#c = subparcel.read()?; } if subparcel.has_more_data() { - self.ext2 = subparcel.read()?; + self.r#ext2 = subparcel.read()?; } Ok(()) }) } } -binder::impl_serialize_for_parcelable!(ExtendableParcelable); -binder::impl_deserialize_for_parcelable!(ExtendableParcelable); -impl binder::binder_impl::ParcelableMetadata for ExtendableParcelable { +binder::impl_serialize_for_parcelable!(r#ExtendableParcelable); +binder::impl_deserialize_for_parcelable!(r#ExtendableParcelable); +impl binder::binder_impl::ParcelableMetadata for r#ExtendableParcelable { fn get_descriptor() -> &'static str { "android.aidl.tests.extension.ExtendableParcelable" } } pub(crate) mod mangled { - pub use super::ExtendableParcelable as _7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable; + pub use super::r#ExtendableParcelable as _7_android_4_aidl_5_tests_9_extension_20_ExtendableParcelable; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/MyExt.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/MyExt.rs index 939c95d3..8a5dd8e5 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/MyExt.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/MyExt.rs @@ -1,43 +1,43 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug)] -pub struct MyExt { - pub a: i32, - pub b: String, +pub struct r#MyExt { + pub r#a: i32, + pub r#b: String, } -impl Default for MyExt { +impl Default for r#MyExt { fn default() -> Self { Self { - a: 0, - b: Default::default(), + r#a: 0, + r#b: Default::default(), } } } -impl binder::Parcelable for MyExt { +impl binder::Parcelable for r#MyExt { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - subparcel.write(&self.a)?; - subparcel.write(&self.b)?; + subparcel.write(&self.r#a)?; + subparcel.write(&self.r#b)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.a = subparcel.read()?; + self.r#a = subparcel.read()?; } if subparcel.has_more_data() { - self.b = subparcel.read()?; + self.r#b = subparcel.read()?; } Ok(()) }) } } -binder::impl_serialize_for_parcelable!(MyExt); -binder::impl_deserialize_for_parcelable!(MyExt); -impl binder::binder_impl::ParcelableMetadata for MyExt { +binder::impl_serialize_for_parcelable!(r#MyExt); +binder::impl_deserialize_for_parcelable!(r#MyExt); +impl binder::binder_impl::ParcelableMetadata for r#MyExt { fn get_descriptor() -> &'static str { "android.aidl.tests.extension.MyExt" } } pub(crate) mod mangled { - pub use super::MyExt as _7_android_4_aidl_5_tests_9_extension_5_MyExt; + pub use super::r#MyExt as _7_android_4_aidl_5_tests_9_extension_5_MyExt; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/MyExt2.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/MyExt2.rs index 27017b97..7b3a7374 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/MyExt2.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/MyExt2.rs @@ -1,49 +1,49 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug)] -pub struct MyExt2 { - pub a: i32, - pub b: crate::mangled::_7_android_4_aidl_5_tests_9_extension_5_MyExt, - pub c: String, +pub struct r#MyExt2 { + pub r#a: i32, + pub r#b: crate::mangled::_7_android_4_aidl_5_tests_9_extension_5_MyExt, + pub r#c: String, } -impl Default for MyExt2 { +impl Default for r#MyExt2 { fn default() -> Self { Self { - a: 0, - b: Default::default(), - c: Default::default(), + r#a: 0, + r#b: Default::default(), + r#c: Default::default(), } } } -impl binder::Parcelable for MyExt2 { +impl binder::Parcelable for r#MyExt2 { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - subparcel.write(&self.a)?; - subparcel.write(&self.b)?; - subparcel.write(&self.c)?; + subparcel.write(&self.r#a)?; + subparcel.write(&self.r#b)?; + subparcel.write(&self.r#c)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.a = subparcel.read()?; + self.r#a = subparcel.read()?; } if subparcel.has_more_data() { - self.b = subparcel.read()?; + self.r#b = subparcel.read()?; } if subparcel.has_more_data() { - self.c = subparcel.read()?; + self.r#c = subparcel.read()?; } Ok(()) }) } } -binder::impl_serialize_for_parcelable!(MyExt2); -binder::impl_deserialize_for_parcelable!(MyExt2); -impl binder::binder_impl::ParcelableMetadata for MyExt2 { +binder::impl_serialize_for_parcelable!(r#MyExt2); +binder::impl_deserialize_for_parcelable!(r#MyExt2); +impl binder::binder_impl::ParcelableMetadata for r#MyExt2 { fn get_descriptor() -> &'static str { "android.aidl.tests.extension.MyExt2" } } pub(crate) mod mangled { - pub use super::MyExt2 as _7_android_4_aidl_5_tests_9_extension_6_MyExt2; + pub use super::r#MyExt2 as _7_android_4_aidl_5_tests_9_extension_6_MyExt2; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/MyExtLike.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/MyExtLike.rs index c698aa3b..1abcc721 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/MyExtLike.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/extension/MyExtLike.rs @@ -1,43 +1,43 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug)] -pub struct MyExtLike { - pub a: i32, - pub b: String, +pub struct r#MyExtLike { + pub r#a: i32, + pub r#b: String, } -impl Default for MyExtLike { +impl Default for r#MyExtLike { fn default() -> Self { Self { - a: 0, - b: Default::default(), + r#a: 0, + r#b: Default::default(), } } } -impl binder::Parcelable for MyExtLike { +impl binder::Parcelable for r#MyExtLike { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - subparcel.write(&self.a)?; - subparcel.write(&self.b)?; + subparcel.write(&self.r#a)?; + subparcel.write(&self.r#b)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.a = subparcel.read()?; + self.r#a = subparcel.read()?; } if subparcel.has_more_data() { - self.b = subparcel.read()?; + self.r#b = subparcel.read()?; } Ok(()) }) } } -binder::impl_serialize_for_parcelable!(MyExtLike); -binder::impl_deserialize_for_parcelable!(MyExtLike); -impl binder::binder_impl::ParcelableMetadata for MyExtLike { +binder::impl_serialize_for_parcelable!(r#MyExtLike); +binder::impl_deserialize_for_parcelable!(r#MyExtLike); +impl binder::binder_impl::ParcelableMetadata for r#MyExtLike { fn get_descriptor() -> &'static str { "android.aidl.tests.extension.MyExtLike" } } pub(crate) mod mangled { - pub use super::MyExtLike as _7_android_4_aidl_5_tests_9_extension_9_MyExtLike; + pub use super::r#MyExtLike as _7_android_4_aidl_5_tests_9_extension_9_MyExtLike; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/nested/DeeplyNested.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/nested/DeeplyNested.rs index 547ac18e..adcd6825 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/nested/DeeplyNested.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/nested/DeeplyNested.rs @@ -1,15 +1,15 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug)] -pub struct DeeplyNested { +pub struct r#DeeplyNested { } -impl Default for DeeplyNested { +impl Default for r#DeeplyNested { fn default() -> Self { Self { } } } -impl binder::Parcelable for DeeplyNested { +impl binder::Parcelable for r#DeeplyNested { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { Ok(()) @@ -21,56 +21,56 @@ impl binder::Parcelable for DeeplyNested { }) } } -binder::impl_serialize_for_parcelable!(DeeplyNested); -binder::impl_deserialize_for_parcelable!(DeeplyNested); -impl binder::binder_impl::ParcelableMetadata for DeeplyNested { +binder::impl_serialize_for_parcelable!(r#DeeplyNested); +binder::impl_deserialize_for_parcelable!(r#DeeplyNested); +impl binder::binder_impl::ParcelableMetadata for r#DeeplyNested { fn get_descriptor() -> &'static str { "android.aidl.tests.nested.DeeplyNested" } } -pub mod A { +pub mod r#A { #[derive(Debug)] - pub struct A { - pub e: crate::mangled::_7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_B_1_C_1_D_1_E, + pub struct r#A { + pub r#e: crate::mangled::_7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_B_1_C_1_D_1_E, } - impl Default for A { + impl Default for r#A { fn default() -> Self { Self { - e: crate::mangled::_7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_B_1_C_1_D_1_E::OK, + r#e: crate::mangled::_7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_B_1_C_1_D_1_E::OK, } } } - impl binder::Parcelable for A { + impl binder::Parcelable for r#A { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - subparcel.write(&self.e)?; + subparcel.write(&self.r#e)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.e = subparcel.read()?; + self.r#e = subparcel.read()?; } Ok(()) }) } } - binder::impl_serialize_for_parcelable!(A); - binder::impl_deserialize_for_parcelable!(A); - impl binder::binder_impl::ParcelableMetadata for A { + binder::impl_serialize_for_parcelable!(r#A); + binder::impl_deserialize_for_parcelable!(r#A); + impl binder::binder_impl::ParcelableMetadata for r#A { fn get_descriptor() -> &'static str { "android.aidl.tests.nested.DeeplyNested.A" } } } -pub mod B { +pub mod r#B { #[derive(Debug)] - pub struct B { + pub struct r#B { } - impl Default for B { + impl Default for r#B { fn default() -> Self { Self { } } } - impl binder::Parcelable for B { + impl binder::Parcelable for r#B { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { Ok(()) @@ -82,22 +82,22 @@ pub mod B { }) } } - binder::impl_serialize_for_parcelable!(B); - binder::impl_deserialize_for_parcelable!(B); - impl binder::binder_impl::ParcelableMetadata for B { + binder::impl_serialize_for_parcelable!(r#B); + binder::impl_deserialize_for_parcelable!(r#B); + impl binder::binder_impl::ParcelableMetadata for r#B { fn get_descriptor() -> &'static str { "android.aidl.tests.nested.DeeplyNested.B" } } - pub mod C { + pub mod r#C { #[derive(Debug)] - pub struct C { + pub struct r#C { } - impl Default for C { + impl Default for r#C { fn default() -> Self { Self { } } } - impl binder::Parcelable for C { + impl binder::Parcelable for r#C { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { Ok(()) @@ -109,22 +109,22 @@ pub mod B { }) } } - binder::impl_serialize_for_parcelable!(C); - binder::impl_deserialize_for_parcelable!(C); - impl binder::binder_impl::ParcelableMetadata for C { + binder::impl_serialize_for_parcelable!(r#C); + binder::impl_deserialize_for_parcelable!(r#C); + impl binder::binder_impl::ParcelableMetadata for r#C { fn get_descriptor() -> &'static str { "android.aidl.tests.nested.DeeplyNested.B.C" } } - pub mod D { + pub mod r#D { #[derive(Debug)] - pub struct D { + pub struct r#D { } - impl Default for D { + impl Default for r#D { fn default() -> Self { Self { } } } - impl binder::Parcelable for D { + impl binder::Parcelable for r#D { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { Ok(()) @@ -136,17 +136,17 @@ pub mod B { }) } } - binder::impl_serialize_for_parcelable!(D); - binder::impl_deserialize_for_parcelable!(D); - impl binder::binder_impl::ParcelableMetadata for D { + binder::impl_serialize_for_parcelable!(r#D); + binder::impl_deserialize_for_parcelable!(r#D); + impl binder::binder_impl::ParcelableMetadata for r#D { fn get_descriptor() -> &'static str { "android.aidl.tests.nested.DeeplyNested.B.C.D" } } - pub mod E { + pub mod r#E { #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - E : [i8; 1] { - OK = 0, + r#E : [i8; 1] { + r#OK = 0, } } } @@ -154,10 +154,10 @@ pub mod B { } } pub(crate) mod mangled { - pub use super::DeeplyNested as _7_android_4_aidl_5_tests_6_nested_12_DeeplyNested; - pub use super::A::A as _7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_A; - pub use super::B::B as _7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_B; - pub use super::B::C::C as _7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_B_1_C; - pub use super::B::C::D::D as _7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_B_1_C_1_D; - pub use super::B::C::D::E::E as _7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_B_1_C_1_D_1_E; + pub use super::r#DeeplyNested as _7_android_4_aidl_5_tests_6_nested_12_DeeplyNested; + pub use super::r#A::r#A as _7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_A; + pub use super::r#B::r#B as _7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_B; + pub use super::r#B::r#C::r#C as _7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_B_1_C; + pub use super::r#B::r#C::r#D::r#D as _7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_B_1_C_1_D; + pub use super::r#B::r#C::r#D::r#E::r#E as _7_android_4_aidl_5_tests_6_nested_12_DeeplyNested_1_B_1_C_1_D_1_E; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/nested/INestedService.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/nested/INestedService.rs index 45b76b35..aa747dbe 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/nested/INestedService.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/nested/INestedService.rs @@ -14,8 +14,8 @@ declare_binder_interface! { } pub trait INestedService: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.nested.INestedService" } - fn flipStatus(&self, _arg_p: &crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result>; - fn flipStatusWithCallback(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::Result<()>; + fn r#flipStatus(&self, _arg_p: &crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result>; + fn r#flipStatusWithCallback(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::Result<()>; fn getDefaultImpl() -> INestedServiceDefaultRef where Self: Sized { DEFAULT_IMPL.lock().unwrap().clone() } @@ -25,14 +25,14 @@ pub trait INestedService: binder::Interface + Send { } pub trait INestedServiceAsync<P>: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.nested.INestedService" } - fn flipStatus<'a>(&'a self, _arg_p: &'a crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result>>; - fn flipStatusWithCallback<'a>(&'a self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::BoxFuture<'a, binder::Result<()>>; + fn r#flipStatus<'a>(&'a self, _arg_p: &'a crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result>>; + fn r#flipStatusWithCallback<'a>(&'a self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::BoxFuture<'a, binder::Result<()>>; } #[::async_trait::async_trait] pub trait INestedServiceAsyncServer: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.nested.INestedService" } - async fn flipStatus(&self, _arg_p: &crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result>; - async fn flipStatusWithCallback(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::Result<()>; + async fn r#flipStatus(&self, _arg_p: &crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result>; + async fn r#flipStatusWithCallback(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::Result<()>; } impl BnNestedService { /// Create a new async binder service. @@ -54,11 +54,11 @@ impl BnNestedService { T: INestedServiceAsyncServer + Send + Sync + 'static, R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, { - fn flipStatus(&self, _arg_p: &crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result> { - self._rt.block_on(self._inner.flipStatus(_arg_p)) + fn r#flipStatus(&self, _arg_p: &crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result> { + self._rt.block_on(self._inner.r#flipStatus(_arg_p)) } - fn flipStatusWithCallback(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::Result<()> { - self._rt.block_on(self._inner.flipStatusWithCallback(_arg_status, _arg_cb)) + fn r#flipStatusWithCallback(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::Result<()> { + self._rt.block_on(self._inner.r#flipStatusWithCallback(_arg_status, _arg_cb)) } } let wrapped = Wrapper { _inner: inner, _rt: rt }; @@ -66,16 +66,16 @@ impl BnNestedService { } } pub trait INestedServiceDefault: Send + Sync { - fn flipStatus(&self, _arg_p: &crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result> { + fn r#flipStatus(&self, _arg_p: &crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } - fn flipStatusWithCallback(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::Result<()> { + fn r#flipStatusWithCallback(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::Result<()> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } } pub mod transactions { - pub const flipStatus: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; - pub const flipStatusWithCallback: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 1; + pub const r#flipStatus: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; + pub const r#flipStatusWithCallback: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 1; } pub type INestedServiceDefaultRef = Option<std::sync::Arc<dyn INestedServiceDefault>>; use lazy_static::lazy_static; @@ -91,7 +91,7 @@ impl BpNestedService { fn read_response_flipStatus(&self, _arg_p: &crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as INestedService>::getDefaultImpl() { - return _aidl_default_impl.flipStatus(_arg_p); + return _aidl_default_impl.r#flipStatus(_arg_p); } } let _aidl_reply = _aidl_reply?; @@ -109,7 +109,7 @@ impl BpNestedService { fn read_response_flipStatusWithCallback(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<()> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as INestedService>::getDefaultImpl() { - return _aidl_default_impl.flipStatusWithCallback(_arg_status, _arg_cb); + return _aidl_default_impl.r#flipStatusWithCallback(_arg_status, _arg_cb); } } let _aidl_reply = _aidl_reply?; @@ -119,39 +119,39 @@ impl BpNestedService { } } impl INestedService for BpNestedService { - fn flipStatus(&self, _arg_p: &crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result> { + fn r#flipStatus(&self, _arg_p: &crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result> { let _aidl_data = self.build_parcel_flipStatus(_arg_p)?; - let _aidl_reply = self.binder.submit_transact(transactions::flipStatus, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#flipStatus, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_flipStatus(_arg_p, _aidl_reply) } - fn flipStatusWithCallback(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::Result<()> { + fn r#flipStatusWithCallback(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::Result<()> { let _aidl_data = self.build_parcel_flipStatusWithCallback(_arg_status, _arg_cb)?; - let _aidl_reply = self.binder.submit_transact(transactions::flipStatusWithCallback, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#flipStatusWithCallback, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_flipStatusWithCallback(_arg_status, _arg_cb, _aidl_reply) } } impl<P: binder::BinderAsyncPool> INestedServiceAsync<P> for BpNestedService { - fn flipStatus<'a>(&'a self, _arg_p: &'a crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result>> { + fn r#flipStatus<'a>(&'a self, _arg_p: &'a crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::BoxFuture<'a, binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result>> { let _aidl_data = match self.build_parcel_flipStatus(_arg_p) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::flipStatus, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#flipStatus, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_flipStatus(_arg_p, _aidl_reply) } ) } - fn flipStatusWithCallback<'a>(&'a self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::BoxFuture<'a, binder::Result<()>> { + fn r#flipStatusWithCallback<'a>(&'a self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &'a binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::BoxFuture<'a, binder::Result<()>> { let _aidl_data = match self.build_parcel_flipStatusWithCallback(_arg_status, _arg_cb) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::flipStatusWithCallback, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#flipStatusWithCallback, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_flipStatusWithCallback(_arg_status, _arg_cb, _aidl_reply) } @@ -159,14 +159,14 @@ impl<P: binder::BinderAsyncPool> INestedServiceAsync<P> for BpNestedService { } } impl INestedService for binder::binder_impl::Binder<BnNestedService> { - fn flipStatus(&self, _arg_p: &crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result> { self.0.flipStatus(_arg_p) } - fn flipStatusWithCallback(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::Result<()> { self.0.flipStatusWithCallback(_arg_status, _arg_cb) } + fn r#flipStatus(&self, _arg_p: &crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested) -> binder::Result<crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result> { self.0.r#flipStatus(_arg_p) } + fn r#flipStatusWithCallback(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _arg_cb: &binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback>) -> binder::Result<()> { self.0.r#flipStatusWithCallback(_arg_status, _arg_cb) } } fn on_transact(_aidl_service: &dyn INestedService, _aidl_code: binder::binder_impl::TransactionCode, _aidl_data: &binder::binder_impl::BorrowedParcel<'_>, _aidl_reply: &mut binder::binder_impl::BorrowedParcel<'_>) -> std::result::Result<(), binder::StatusCode> { match _aidl_code { - transactions::flipStatus => { + transactions::r#flipStatus => { let _arg_p: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested = _aidl_data.read()?; - let _aidl_return = _aidl_service.flipStatus(&_arg_p); + let _aidl_return = _aidl_service.r#flipStatus(&_arg_p); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -176,10 +176,10 @@ fn on_transact(_aidl_service: &dyn INestedService, _aidl_code: binder::binder_im } Ok(()) } - transactions::flipStatusWithCallback => { + transactions::r#flipStatusWithCallback => { let _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status = _aidl_data.read()?; let _arg_cb: binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback> = _aidl_data.read()?; - let _aidl_return = _aidl_service.flipStatusWithCallback(_arg_status, &_arg_cb); + let _aidl_return = _aidl_service.r#flipStatusWithCallback(_arg_status, &_arg_cb); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -191,41 +191,41 @@ fn on_transact(_aidl_service: &dyn INestedService, _aidl_code: binder::binder_im _ => Err(binder::StatusCode::UNKNOWN_TRANSACTION) } } -pub mod Result { +pub mod r#Result { #[derive(Debug, PartialEq)] - pub struct Result { - pub status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, + pub struct r#Result { + pub r#status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, } - impl Default for Result { + impl Default for r#Result { fn default() -> Self { Self { - status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status::OK, + r#status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status::OK, } } } - impl binder::Parcelable for Result { + impl binder::Parcelable for r#Result { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - subparcel.write(&self.status)?; + subparcel.write(&self.r#status)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.status = subparcel.read()?; + self.r#status = subparcel.read()?; } Ok(()) }) } } - binder::impl_serialize_for_parcelable!(Result); - binder::impl_deserialize_for_parcelable!(Result); - impl binder::binder_impl::ParcelableMetadata for Result { + binder::impl_serialize_for_parcelable!(r#Result); + binder::impl_deserialize_for_parcelable!(r#Result); + impl binder::binder_impl::ParcelableMetadata for r#Result { fn get_descriptor() -> &'static str { "android.aidl.tests.nested.INestedService.Result" } } } -pub mod ICallback { +pub mod r#ICallback { #![allow(non_upper_case_globals)] #![allow(non_snake_case)] #[allow(unused_imports)] use binder::binder_impl::IBinderInternal; @@ -240,7 +240,7 @@ pub mod ICallback { } pub trait ICallback: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.nested.INestedService.ICallback" } - fn done(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::Result<()>; + fn r#done(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::Result<()>; fn getDefaultImpl() -> ICallbackDefaultRef where Self: Sized { DEFAULT_IMPL.lock().unwrap().clone() } @@ -250,12 +250,12 @@ pub mod ICallback { } pub trait ICallbackAsync<P>: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.nested.INestedService.ICallback" } - fn done<'a>(&'a self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::BoxFuture<'a, binder::Result<()>>; + fn r#done<'a>(&'a self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::BoxFuture<'a, binder::Result<()>>; } #[::async_trait::async_trait] pub trait ICallbackAsyncServer: binder::Interface + Send { fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.tests.nested.INestedService.ICallback" } - async fn done(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::Result<()>; + async fn r#done(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::Result<()>; } impl BnCallback { /// Create a new async binder service. @@ -277,8 +277,8 @@ pub mod ICallback { T: ICallbackAsyncServer + Send + Sync + 'static, R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, { - fn done(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::Result<()> { - self._rt.block_on(self._inner.done(_arg_status)) + fn r#done(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::Result<()> { + self._rt.block_on(self._inner.r#done(_arg_status)) } } let wrapped = Wrapper { _inner: inner, _rt: rt }; @@ -286,12 +286,12 @@ pub mod ICallback { } } pub trait ICallbackDefault: Send + Sync { - fn done(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::Result<()> { + fn r#done(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::Result<()> { Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) } } pub mod transactions { - pub const done: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; + pub const r#done: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; } pub type ICallbackDefaultRef = Option<std::sync::Arc<dyn ICallbackDefault>>; use lazy_static::lazy_static; @@ -307,7 +307,7 @@ pub mod ICallback { fn read_response_done(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<()> { if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { if let Some(_aidl_default_impl) = <Self as ICallback>::getDefaultImpl() { - return _aidl_default_impl.done(_arg_status); + return _aidl_default_impl.r#done(_arg_status); } } let _aidl_reply = _aidl_reply?; @@ -317,21 +317,21 @@ pub mod ICallback { } } impl ICallback for BpCallback { - fn done(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::Result<()> { + fn r#done(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::Result<()> { let _aidl_data = self.build_parcel_done(_arg_status)?; - let _aidl_reply = self.binder.submit_transact(transactions::done, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); + let _aidl_reply = self.binder.submit_transact(transactions::r#done, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); self.read_response_done(_arg_status, _aidl_reply) } } impl<P: binder::BinderAsyncPool> ICallbackAsync<P> for BpCallback { - fn done<'a>(&'a self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::BoxFuture<'a, binder::Result<()>> { + fn r#done<'a>(&'a self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::BoxFuture<'a, binder::Result<()>> { let _aidl_data = match self.build_parcel_done(_arg_status) { Ok(_aidl_data) => _aidl_data, Err(err) => return Box::pin(std::future::ready(Err(err))), }; let binder = self.binder.clone(); P::spawn( - move || binder.submit_transact(transactions::done, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), + move || binder.submit_transact(transactions::r#done, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), move |_aidl_reply| async move { self.read_response_done(_arg_status, _aidl_reply) } @@ -339,13 +339,13 @@ pub mod ICallback { } } impl ICallback for binder::binder_impl::Binder<BnCallback> { - fn done(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::Result<()> { self.0.done(_arg_status) } + fn r#done(&self, _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status) -> binder::Result<()> { self.0.r#done(_arg_status) } } fn on_transact(_aidl_service: &dyn ICallback, _aidl_code: binder::binder_impl::TransactionCode, _aidl_data: &binder::binder_impl::BorrowedParcel<'_>, _aidl_reply: &mut binder::binder_impl::BorrowedParcel<'_>) -> std::result::Result<(), binder::StatusCode> { match _aidl_code { - transactions::done => { + transactions::r#done => { let _arg_status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status = _aidl_data.read()?; - let _aidl_return = _aidl_service.done(_arg_status); + let _aidl_return = _aidl_service.r#done(_arg_status); match &_aidl_return { Ok(_aidl_return) => { _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; @@ -359,7 +359,7 @@ pub mod ICallback { } } pub(crate) mod mangled { - pub use super::INestedService as _7_android_4_aidl_5_tests_6_nested_14_INestedService; - pub use super::Result::Result as _7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result; - pub use super::ICallback::ICallback as _7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback; + pub use super::r#INestedService as _7_android_4_aidl_5_tests_6_nested_14_INestedService; + pub use super::r#Result::r#Result as _7_android_4_aidl_5_tests_6_nested_14_INestedService_6_Result; + pub use super::r#ICallback::r#ICallback as _7_android_4_aidl_5_tests_6_nested_14_INestedService_9_ICallback; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/nested/ParcelableWithNested.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/nested/ParcelableWithNested.rs index d160d8b3..4cff721c 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/nested/ParcelableWithNested.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/nested/ParcelableWithNested.rs @@ -1,48 +1,48 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug)] -pub struct ParcelableWithNested { - pub status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, +pub struct r#ParcelableWithNested { + pub r#status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status, } -impl Default for ParcelableWithNested { +impl Default for r#ParcelableWithNested { fn default() -> Self { Self { - status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status::OK, + r#status: crate::mangled::_7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status::OK, } } } -impl binder::Parcelable for ParcelableWithNested { +impl binder::Parcelable for r#ParcelableWithNested { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_write(|subparcel| { - subparcel.write(&self.status)?; + subparcel.write(&self.r#status)?; Ok(()) }) } fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { parcel.sized_read(|subparcel| { if subparcel.has_more_data() { - self.status = subparcel.read()?; + self.r#status = subparcel.read()?; } Ok(()) }) } } -binder::impl_serialize_for_parcelable!(ParcelableWithNested); -binder::impl_deserialize_for_parcelable!(ParcelableWithNested); -impl binder::binder_impl::ParcelableMetadata for ParcelableWithNested { +binder::impl_serialize_for_parcelable!(r#ParcelableWithNested); +binder::impl_deserialize_for_parcelable!(r#ParcelableWithNested); +impl binder::binder_impl::ParcelableMetadata for r#ParcelableWithNested { fn get_descriptor() -> &'static str { "android.aidl.tests.nested.ParcelableWithNested" } } -pub mod Status { +pub mod r#Status { #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - Status : [i8; 2] { - OK = 0, - NOT_OK = 1, + r#Status : [i8; 2] { + r#OK = 0, + r#NOT_OK = 1, } } } pub(crate) mod mangled { - pub use super::ParcelableWithNested as _7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested; - pub use super::Status::Status as _7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status; + pub use super::r#ParcelableWithNested as _7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested; + pub use super::r#Status::r#Status as _7_android_4_aidl_5_tests_6_nested_20_ParcelableWithNested_6_Status; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/unions/EnumUnion.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/unions/EnumUnion.rs index 6f26dcc9..dbec3386 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/unions/EnumUnion.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/unions/EnumUnion.rs @@ -1,18 +1,18 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug, Clone, PartialEq)] -pub enum EnumUnion { +pub enum r#EnumUnion { IntEnum(crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum), LongEnum(crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum), #[deprecated = "do not use this"] DeprecatedField(i32), } -impl Default for EnumUnion { +impl Default for r#EnumUnion { fn default() -> Self { Self::IntEnum(crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum::FOO) } } -impl binder::Parcelable for EnumUnion { +impl binder::Parcelable for r#EnumUnion { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { match self { Self::IntEnum(v) => { @@ -53,24 +53,24 @@ impl binder::Parcelable for EnumUnion { } } } -binder::impl_serialize_for_parcelable!(EnumUnion); -binder::impl_deserialize_for_parcelable!(EnumUnion); -impl binder::binder_impl::ParcelableMetadata for EnumUnion { +binder::impl_serialize_for_parcelable!(r#EnumUnion); +binder::impl_deserialize_for_parcelable!(r#EnumUnion); +impl binder::binder_impl::ParcelableMetadata for r#EnumUnion { fn get_descriptor() -> &'static str { "android.aidl.tests.unions.EnumUnion" } } -pub mod Tag { +pub mod r#Tag { #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - Tag : [i32; 3] { - intEnum = 0, - longEnum = 1, + r#Tag : [i32; 3] { + r#intEnum = 0, + r#longEnum = 1, #[deprecated = "do not use this"] - deprecatedField = 2, + r#deprecatedField = 2, } } } pub(crate) mod mangled { - pub use super::EnumUnion as _7_android_4_aidl_5_tests_6_unions_9_EnumUnion; - pub use super::Tag::Tag as _7_android_4_aidl_5_tests_6_unions_9_EnumUnion_3_Tag; + pub use super::r#EnumUnion as _7_android_4_aidl_5_tests_6_unions_9_EnumUnion; + pub use super::r#Tag::r#Tag as _7_android_4_aidl_5_tests_6_unions_9_EnumUnion_3_Tag; } diff --git a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/unions/UnionInUnion.rs b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/unions/UnionInUnion.rs index 511f44cf..cfc7372d 100644 --- a/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/unions/UnionInUnion.rs +++ b/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/unions/UnionInUnion.rs @@ -1,16 +1,16 @@ #![forbid(unsafe_code)] #![rustfmt::skip] #[derive(Debug, Clone, PartialEq)] -pub enum UnionInUnion { +pub enum r#UnionInUnion { First(crate::mangled::_7_android_4_aidl_5_tests_6_unions_9_EnumUnion), Second(i32), } -impl Default for UnionInUnion { +impl Default for r#UnionInUnion { fn default() -> Self { Self::First(Default::default()) } } -impl binder::Parcelable for UnionInUnion { +impl binder::Parcelable for r#UnionInUnion { fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { match self { Self::First(v) => { @@ -42,22 +42,22 @@ impl binder::Parcelable for UnionInUnion { } } } -binder::impl_serialize_for_parcelable!(UnionInUnion); -binder::impl_deserialize_for_parcelable!(UnionInUnion); -impl binder::binder_impl::ParcelableMetadata for UnionInUnion { +binder::impl_serialize_for_parcelable!(r#UnionInUnion); +binder::impl_deserialize_for_parcelable!(r#UnionInUnion); +impl binder::binder_impl::ParcelableMetadata for r#UnionInUnion { fn get_descriptor() -> &'static str { "android.aidl.tests.unions.UnionInUnion" } } -pub mod Tag { +pub mod r#Tag { #![allow(non_upper_case_globals)] use binder::declare_binder_enum; declare_binder_enum! { - Tag : [i32; 2] { - first = 0, - second = 1, + r#Tag : [i32; 2] { + r#first = 0, + r#second = 1, } } } pub(crate) mod mangled { - pub use super::UnionInUnion as _7_android_4_aidl_5_tests_6_unions_12_UnionInUnion; - pub use super::Tag::Tag as _7_android_4_aidl_5_tests_6_unions_12_UnionInUnion_3_Tag; + pub use super::r#UnionInUnion as _7_android_4_aidl_5_tests_6_unions_12_UnionInUnion; + pub use super::r#Tag::r#Tag as _7_android_4_aidl_5_tests_6_unions_12_UnionInUnion_3_Tag; } |