Lines Matching refs:binder
19 use binder::{declare_binder_enum, declare_binder_interface};
20 use binder::{BinderFeatures, Interface, StatusCode, ThreadState};
23 use binder::binder_impl::{
43 binder::ProcessState::set_thread_pool_max_thread_count(0); in main()
44 binder::ProcessState::start_thread_pool(); in main()
67 binder::add_service(&service_name, service.as_binder()) in main()
71 binder::ProcessState::join_thread_pool(); in main()
149 Ok(binder::is_handling_transaction()) in get_is_handling_transaction()
171 fn test(&self) -> binder::BoxFuture<'static, Result<String, StatusCode>>; in test()
174 fn get_dump_args(&self) -> binder::BoxFuture<'static, Result<Vec<String>, StatusCode>>; in get_dump_args()
177 fn get_selinux_context(&self) -> binder::BoxFuture<'static, Result<String, StatusCode>>; in get_selinux_context()
180 fn get_is_handling_transaction(&self) -> binder::BoxFuture<'static, Result<bool, StatusCode>>; in get_is_handling_transaction()
210 self.binder in test()
217 self.binder in get_dump_args()
223 let reply = self.binder.transact( in get_selinux_context()
232 let reply = self.binder.transact( in get_is_handling_transaction()
241 impl<P: binder::BinderAsyncPool> IATest<P> for BpTest {
242 fn test(&self) -> binder::BoxFuture<'static, Result<String, StatusCode>> { in test()
243 let binder = self.binder.clone(); in test() localVariable
245 move || binder.transact(TestTransactionCode::Test as TransactionCode, 0, |_| Ok(())), in test()
250 fn get_dump_args(&self) -> binder::BoxFuture<'static, Result<Vec<String>, StatusCode>> { in get_dump_args()
251 let binder = self.binder.clone(); in get_dump_args() localVariable
253 … move || binder.transact(TestTransactionCode::GetDumpArgs as TransactionCode, 0, |_| Ok(())), in get_dump_args()
258 fn get_selinux_context(&self) -> binder::BoxFuture<'static, Result<String, StatusCode>> { in get_selinux_context()
259 let binder = self.binder.clone(); in get_selinux_context() localVariable
261 … move || binder.transact(TestTransactionCode::GetSelinuxContext as TransactionCode, 0, |_| Ok(())), in get_selinux_context()
266 fn get_is_handling_transaction(&self) -> binder::BoxFuture<'static, Result<bool, StatusCode>> { in get_is_handling_transaction()
267 let binder = self.binder.clone(); in get_is_handling_transaction() localVariable
269 …move || binder.transact(TestTransactionCode::GetIsHandlingTransaction as TransactionCode, 0, |_| O… in get_is_handling_transaction()
293 impl<P: binder::BinderAsyncPool> IATest<P> for Binder<BnTest> {
294 fn test(&self) -> binder::BoxFuture<'static, Result<String, StatusCode>> { in test()
299 fn get_dump_args(&self) -> binder::BoxFuture<'static, Result<Vec<String>, StatusCode>> { in get_dump_args()
304 fn get_selinux_context(&self) -> binder::BoxFuture<'static, Result<String, StatusCode>> { in get_selinux_context()
309 fn get_is_handling_transaction(&self) -> binder::BoxFuture<'static, Result<bool, StatusCode>> { in get_is_handling_transaction()
367 use binder::{
373 use binder::binder_impl::{Binder, IBinderInternal, TransactionCode};
416 let mut sm = binder::get_service("manager").expect("Did not get manager binder service"); in check_services()
420 assert!(binder::get_service("this_service_does_not_exist").is_none()); in check_services()
422 binder::get_interface::<dyn ITest>("this_service_does_not_exist").err(), in check_services()
426 binder::get_interface::<dyn IATest<Tokio>>("this_service_does_not_exist").err(), in check_services()
432 binder::get_interface::<dyn ITest>("manager").err(), in check_services()
436 binder::get_interface::<dyn IATest<Tokio>>("manager").err(), in check_services()
443 let mut sm = binder::get_service("manager").expect("Did not get manager binder service"); in check_services_async()
447 assert!(binder::get_service("this_service_does_not_exist").is_none()); in check_services_async()
471 binder::wait_for_service("manager").expect("Did not get manager binder service"); in check_wait_for_service()
477 binder::wait_for_interface::<dyn ITest>("manager").err(), in check_wait_for_service()
481 binder::wait_for_interface::<dyn IATest<Tokio>>("manager").err(), in check_wait_for_service()
491 let has_lights = binder::is_declared("android.hardware.light.ILights/default") in get_declared_instances()
494 let instances = binder::get_declared_instances("android.hardware.light.ILights") in get_declared_instances()
506 binder::get_interface(service_name).expect("Did not get manager binder service"); in trivial_client()
524 binder::wait_for_interface(service_name).expect("Did not get manager binder service"); in wait_for_trivial_client()
553 binder::get_interface(service_name).expect("Did not get manager binder service"); in get_selinux_context()
577 binder::get_interface(service_name).expect("Did not get manager binder service"); in get_selinux_context_sync_to_async()
627 fn register_death_notification(binder: &mut SpIBinder) -> (Bools, DeathRecipient) { in register_death_notification()
653 binder in register_death_notification()
669 binder::ProcessState::start_thread_pool(); in test_death_notifications()
673 let mut remote = binder::get_service(service_name).expect("Could not retrieve service"); in test_death_notifications()
696 binder::ProcessState::start_thread_pool(); in test_unregister_death_notifications()
700 let mut remote = binder::get_service(service_name).expect("Could not retrieve service"); in test_unregister_death_notifications()
729 binder::ProcessState::start_thread_pool(); in test_death_notification_registration_lifetime()
733 let mut remote = binder::get_service(service_name).expect("Could not retrieve service"); in test_death_notification_registration_lifetime()
766 binder::get_interface(service_name).expect("Did not get test binder service"); in test_misc_ibinder()
799 let mut remote = binder::get_service(service_name); in test_extensions()
811 let mut remote = binder::get_service(service_name); in test_extensions()
951 Err(err) => assert_eq!(err, binder::StatusCode::BAD_VALUE), in binder_parcel_mixup()
960 binder::get_interface(service_name).expect("Did not get manager binder service"); in get_is_handling_transaction()
965 assert!(!binder::is_handling_transaction()); in get_is_handling_transaction()
969 assert!(!binder::is_handling_transaction()); in get_is_handling_transaction()
983 assert!(!binder::is_handling_transaction()); in get_is_handling_transaction_async()
987 assert!(!binder::is_handling_transaction()); in get_is_handling_transaction_async()
992 assert!(!binder::is_handling_transaction()); in get_is_handling_transaction_async()