/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/ |
D | main.rs | 18 use binder::{BinderFeatures, IBinder, Status, StatusCode, Strong}; 44 fn get_service(port: &str) -> Strong<dyn IBinderRpcTest> { in get_service() 49 fn expect_sessions(expected: i32, srv: &Strong<dyn IBinderRpcTest>) { in expect_sessions() 70 service_test! {ping, ping_rust, |srv: Strong<dyn IBinderRpcTest>| { 74 service_test! {send_something_oneway, send_something_oneway_rust, |srv: Strong<dyn IBinderRpcTest>|… 78 service_test! {send_and_get_result_back, send_and_get_result_back_rust, |srv: Strong<dyn IBinderRpc… 82 service_test! {send_and_get_result_back_big, send_and_get_result_back_big_rust, |srv: Strong<dyn IB… 88 service_test! {invalid_null_binder_return, invalid_null_binder_return_rust, |srv: Strong<dyn IBinde… 93 service_test! {call_me_back, call_me_back_rust, |srv: Strong<dyn IBinderRpcTest>| { 101 service_test! {repeat_binder, repeat_binder_rust, |srv: Strong<dyn IBinderRpcTest>| { [all …]
|
/frameworks/native/services/inputflinger/rust/ |
D | input_filter.rs | 21 use binder::{Interface, Strong}; 54 callbacks: Arc<RwLock<Strong<dyn IInputFilterCallbacks>>>, 65 pub fn new(callbacks: Strong<dyn IInputFilterCallbacks>) -> InputFilter { in new() 74 callbacks: Arc<RwLock<Strong<dyn IInputFilterCallbacks>>>, in create_input_filter() 137 callbacks: Arc<RwLock<Strong<dyn IInputFilterCallbacks>>>, 141 fn new(callbacks: Arc<RwLock<Strong<dyn IInputFilterCallbacks>>>) -> BaseFilter { in new() 166 pub struct ModifierStateListener(Arc<RwLock<Strong<dyn IInputFilterCallbacks>>>); 169 pub fn new(callbacks: Arc<RwLock<Strong<dyn IInputFilterCallbacks>>>) -> ModifierStateListener { in new() 188 pub struct InputFilterThreadCreator(Arc<RwLock<Strong<dyn IInputFilterCallbacks>>>); 192 callbacks: Arc<RwLock<Strong<dyn IInputFilterCallbacks>>>, in new() [all …]
|
D | lib.rs | 31 BinderFeatures, Interface, StatusCode, Strong, 89 let callback: Result<Strong<dyn IInputFlingerRustBootstrapCallback>, StatusCode> = in create_inputflinger_rust() 111 callbacks: &Strong<dyn IInputFilterCallbacks>, in createInputFilter() 112 ) -> binder::Result<Strong<dyn IInputFilter>> { in createInputFilter()
|
D | sticky_keys_filter.rs | 233 use binder::Strong; 267 Arc::new(RwLock::new(Strong::new(Box::new(test_callbacks.clone())))), in test_notify_key_consumes_ephemeral_modifier_keys() 294 Arc::new(RwLock::new(Strong::new(Box::new(test_callbacks.clone())))), in test_notify_key_passes_non_ephemeral_modifier_keys() 319 Arc::new(RwLock::new(Strong::new(Box::new(test_callbacks.clone())))), in test_notify_key_passes_non_modifier_keys() 336 Arc::new(RwLock::new(Strong::new(Box::new(test_callbacks.clone())))), in test_modifier_state_updated_on_modifier_key_press() 385 Arc::new(RwLock::new(Strong::new(Box::new(test_callbacks.clone())))), in test_modifier_state_cleared_on_non_modifier_key_press() 409 Arc::new(RwLock::new(Strong::new(Box::new(test_callbacks.clone())))), in test_locked_modifier_state_not_cleared_on_non_modifier_key_press() 451 Arc::new(RwLock::new(Strong::new(Box::new(test_callbacks.clone())))), in test_key_events_have_sticky_modifier_state() 475 Arc::new(RwLock::new(Strong::new(Box::new(test_callbacks.clone())))), in test_modifier_state_not_cleared_until_all_devices_removed() 516 callbacks: Arc<RwLock<Strong<dyn IInputFilterCallbacks>>>, in setup_filter()
|
D | input_filter_thread.rs | 28 use binder::{BinderFeatures, Interface, Strong}; 64 cpp_thread: Option<Strong<dyn IInputThread>>, 278 use binder::Strong; 331 InputFilterThread::new(InputFilterThreadCreator::new(Arc::new(RwLock::new(Strong::new( in get_thread()
|
D | slow_keys_filter.rs | 216 use binder::Strong; 426 InputFilterThread::new(InputFilterThreadCreator::new(Arc::new(RwLock::new(Strong::new( in get_thread()
|
/frameworks/native/libs/binder/rust/rpcbinder/src/ |
D | session.rs | 18 use binder::{FromIBinder, SpIBinder, StatusCode, Strong}; 92 ) -> Result<Strong<T>, StatusCode> { in setup_vsock_client() 111 ) -> Result<Strong<T>, StatusCode> { in setup_unix_domain_client() 137 ) -> Result<Strong<T>, StatusCode> { in setup_unix_domain_bootstrap_client() 157 ) -> Result<Strong<T>, StatusCode> { in setup_inet_client() 182 ) -> Result<Strong<T>, StatusCode> { in setup_trusty_client() 199 ) -> Result<Strong<T>, StatusCode> { in setup_preconnected_client() 219 ) -> Result<Strong<T>, StatusCode> { in get_interface()
|
/frameworks/native/libs/binder/rust/src/ |
D | binder.rs | 365 pub struct Strong<I: FromIBinder + ?Sized>(Box<I>); struct 367 impl<I: FromIBinder + ?Sized> Strong<I> { impl 374 pub fn downgrade(this: &Strong<I>) -> Weak<I> { in downgrade() 379 pub fn into_async<P>(self) -> Strong<<I as ToAsyncInterface<P>>::Target> in into_async() 389 pub fn into_sync(self) -> Strong<<I as ToSyncInterface>::Target> in into_sync() 399 impl<I: FromIBinder + ?Sized> Clone for Strong<I> { implementation 408 impl<I: FromIBinder + ?Sized> Borrow<I> for Strong<I> { implementation 414 impl<I: FromIBinder + ?Sized> AsRef<I> for Strong<I> { implementation 420 impl<I: FromIBinder + ?Sized> Deref for Strong<I> { implementation 428 impl<I: FromIBinder + fmt::Debug + ?Sized> fmt::Debug for Strong<I> { implementation [all …]
|
D | service.rs | 17 use crate::binder::{AsNative, FromIBinder, Strong}; 137 fn interface_cast<T: FromIBinder + ?Sized>(service: Option<SpIBinder>) -> Result<Strong<T>> { in interface_cast() 178 pub fn get_interface<T: FromIBinder + ?Sized>(name: &str) -> Result<Strong<T>> { in get_interface() 184 pub fn check_interface<T: FromIBinder + ?Sized>(name: &str) -> Result<Strong<T>> { in check_interface() 190 pub fn wait_for_interface<T: FromIBinder + ?Sized>(name: &str) -> Result<Strong<T>> { in wait_for_interface()
|
D | lib.rs | 111 pub use binder::{BinderFeatures, FromIBinder, IBinder, Interface, Strong, Weak};
|
D | proxy.rs | 20 AsNative, FromIBinder, IBinder, IBinderInternal, Interface, InterfaceClass, Strong, 107 pub fn into_interface<I: FromIBinder + Interface + ?Sized>(self) -> Result<Strong<I>> { in into_interface()
|
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/binder_rpc_test_session/ |
D | lib.rs | 17 use binder::{Interface, ParcelFileDescriptor, SpIBinder, Status, StatusCode, Strong}; 93 binder: &Strong<(dyn IBinderRpcTest + 'static)>, in nestMe() 108 ) -> Result<Strong<(dyn IBinderRpcSession + 'static)>, Status> { in openSession() 131 _: &Strong<(dyn IBinderRpcCallback + 'static)>, in doCallback() 140 _: &Strong<(dyn IBinderRpcCallback + 'static)>, in doCallbackAsync()
|
/frameworks/native/libs/binder/rust/tests/ |
D | integration.rs | 380 Strong, 569 let test_client: Strong<dyn ITest> = in trivial_client() 578 let test_client: Strong<dyn IATest<Tokio>> = binder_tokio::get_interface(service_name) in trivial_client_async() 588 let test_client: Strong<dyn ITest> = in wait_for_trivial_client() 597 let test_client: Strong<dyn IATest<Tokio>> = binder_tokio::wait_for_interface(service_name) in wait_for_trivial_client_async() 621 let test_client: Strong<dyn ITest> = in get_selinux_context() 630 let test_client: Strong<dyn IATest<Tokio>> = binder_tokio::get_interface(service_name) in get_selinux_context_async() 643 let test_client: Strong<dyn ITest> = in get_selinux_context_sync_to_async() 656 let test_client: Strong<dyn IATest<Tokio>> = binder_tokio::get_interface(service_name) in get_selinux_context_async_to_sync() 811 let test_client: Strong<dyn ITest> = in test_misc_ibinder() [all …]
|
D | ndk_rust_interop.rs | 39 let service: binder::Strong<dyn IBinderRustNdkInteropTest> = in rust_call_ndk() 58 let wrong_service: Result<binder::Strong<dyn IBinderRustNdkInteropTestOther>, StatusCode> = in rust_call_ndk()
|
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/service/ |
D | main.rs | 17 BinderFeatures, IBinder, Interface, ParcelFileDescriptor, SpIBinder, Status, StatusCode, Strong, 108 binder: &Strong<(dyn IBinderRpcTest + 'static)>, in nestMe() 126 fn openSession(&self, name: &str) -> Result<Strong<(dyn IBinderRpcSession + 'static)>, Status> { in openSession() 164 _: &Strong<(dyn IBinderRpcCallback + 'static)>, in doCallback() 173 _: &Strong<(dyn IBinderRpcCallback + 'static)>, in doCallbackAsync()
|
/frameworks/native/libs/binder/rust/binder_tokio/ |
D | lib.rs | 32 use binder::{BinderAsyncPool, BoxFuture, FromIBinder, StatusCode, Strong}; 40 ) -> Result<Strong<T>, StatusCode> { in get_interface() 66 ) -> Result<Strong<T>, StatusCode> { in check_interface() 90 ) -> Result<Strong<T>, StatusCode> { in wait_for_interface()
|
/frameworks/native/libs/binder/rust/src/parcel/ |
D | parcelable.rs | 17 use crate::binder::{AsNative, FromIBinder, Interface, Stability, Strong}; 840 impl<T: Serialize + FromIBinder + ?Sized> Serialize for Strong<T> { implementation 846 impl<T: SerializeOption + FromIBinder + ?Sized> SerializeOption for Strong<T> { implementation 852 impl<T: Serialize + FromIBinder + ?Sized> SerializeArray for Strong<T> {} implementation 854 impl<T: FromIBinder + ?Sized> Deserialize for Strong<T> { implementation 855 type UninitType = Option<Strong<T>>; 873 fn try_from(_: SpIBinder) -> Result<Strong<Self>> { in try_from() 878 impl<T: FromIBinder + ?Sized> DeserializeOption for Strong<T> { implementation 885 impl<T: FromIBinder + ?Sized> DeserializeArray for Strong<T> {} implementation
|