Lines Matching refs:StatusCode

20 use binder::{BinderFeatures, Interface, StatusCode, ThreadState};
101 type Error = StatusCode;
115 _ => Err(StatusCode::UNKNOWN_TRANSACTION), in try_from()
121 fn dump(&self, _writer: &mut dyn Write, args: &[&CStr]) -> Result<(), StatusCode> { in dump() argument
129 fn test(&self) -> Result<String, StatusCode> { in test() argument
133 fn get_dump_args(&self) -> Result<Vec<String>, StatusCode> { in get_dump_args() argument
138 fn get_selinux_context(&self) -> Result<String, StatusCode> { in get_selinux_context() argument
141 sid.ok_or(StatusCode::UNEXPECTED_NULL) in get_selinux_context()
144 fn get_is_handling_transaction(&self) -> Result<bool, StatusCode> { in get_is_handling_transaction() argument
152 fn test(&self) -> Result<String, StatusCode>; in test() argument
155 fn get_dump_args(&self) -> Result<Vec<String>, StatusCode>; in get_dump_args() argument
158 fn get_selinux_context(&self) -> Result<String, StatusCode>; in get_selinux_context() argument
161 fn get_is_handling_transaction(&self) -> Result<bool, StatusCode>; in get_is_handling_transaction() argument
167 fn test(&self) -> binder::BoxFuture<'static, Result<String, StatusCode>>; in test() argument
170 fn get_dump_args(&self) -> binder::BoxFuture<'static, Result<Vec<String>, StatusCode>>; in get_dump_args() argument
173 fn get_selinux_context(&self) -> binder::BoxFuture<'static, Result<String, StatusCode>>; in get_selinux_context() argument
176 fn get_is_handling_transaction(&self) -> binder::BoxFuture<'static, Result<bool, StatusCode>>; in get_is_handling_transaction() argument
194 ) -> Result<(), StatusCode> { in on_transact() argument
206 fn test(&self) -> Result<String, StatusCode> { in test() argument
212 fn get_dump_args(&self) -> Result<Vec<String>, StatusCode> { in get_dump_args() argument
219 fn get_selinux_context(&self) -> Result<String, StatusCode> { in get_selinux_context() argument
228 fn get_is_handling_transaction(&self) -> Result<bool, StatusCode> { in get_is_handling_transaction() argument
239 fn test(&self) -> binder::BoxFuture<'static, Result<String, StatusCode>> { in test() argument
247 fn get_dump_args(&self) -> binder::BoxFuture<'static, Result<Vec<String>, StatusCode>> { in get_dump_args() argument
257 fn get_selinux_context(&self) -> binder::BoxFuture<'static, Result<String, StatusCode>> { in get_selinux_context() argument
271 fn get_is_handling_transaction(&self) -> binder::BoxFuture<'static, Result<bool, StatusCode>> { in get_is_handling_transaction() argument
287 fn test(&self) -> Result<String, StatusCode> { in test() argument
291 fn get_dump_args(&self) -> Result<Vec<String>, StatusCode> { in get_dump_args() argument
295 fn get_selinux_context(&self) -> Result<String, StatusCode> { in get_selinux_context() argument
299 fn get_is_handling_transaction(&self) -> Result<bool, StatusCode> { in get_is_handling_transaction() argument
305 fn test(&self) -> binder::BoxFuture<'static, Result<String, StatusCode>> { in test() argument
310 fn get_dump_args(&self) -> binder::BoxFuture<'static, Result<Vec<String>, StatusCode>> { in get_dump_args() argument
315 fn get_selinux_context(&self) -> binder::BoxFuture<'static, Result<String, StatusCode>> { in get_selinux_context() argument
320 fn get_is_handling_transaction(&self) -> binder::BoxFuture<'static, Result<bool, StatusCode>> { in get_is_handling_transaction() argument
341 ) -> Result<(), StatusCode> { in on_transact_same_descriptor() argument
379 BinderFeatures, DeathRecipient, FromIBinder, IBinder, Interface, SpIBinder, StatusCode,
432 Some(StatusCode::NAME_NOT_FOUND) in check_get_service()
436 Some(StatusCode::NAME_NOT_FOUND) in check_get_service()
440 assert_eq!(binder::get_interface::<dyn ITest>("manager").err(), Some(StatusCode::BAD_TYPE)); in check_get_service()
443 Some(StatusCode::BAD_TYPE) in check_get_service()
456 Some(StatusCode::NAME_NOT_FOUND) in check_get_service_async()
462 Some(StatusCode::NAME_NOT_FOUND) in check_get_service_async()
468 Some(StatusCode::BAD_TYPE) in check_get_service_async()
472 Some(StatusCode::BAD_TYPE) in check_get_service_async()
485 Some(StatusCode::NAME_NOT_FOUND) in check_check_service()
489 Some(StatusCode::NAME_NOT_FOUND) in check_check_service()
495 Some(StatusCode::BAD_TYPE) in check_check_service()
499 Some(StatusCode::BAD_TYPE) in check_check_service()
512 Some(StatusCode::NAME_NOT_FOUND) in check_check_service_async()
518 Some(StatusCode::NAME_NOT_FOUND) in check_check_service_async()
524 Some(StatusCode::BAD_TYPE) in check_check_service_async()
528 Some(StatusCode::BAD_TYPE) in check_check_service_async()
542 Some(StatusCode::BAD_TYPE) in check_wait_for_service()
546 Some(StatusCode::BAD_TYPE) in check_wait_for_service()
925 assert_eq!(weak.upgrade(), Err(StatusCode::DEAD_OBJECT)); in weak_binder_upgrade_dead()
976 Err(err) => assert_eq!(err, binder::StatusCode::BAD_VALUE), in binder_parcel_mixup()