/frameworks/native/libs/binder/rust/binder_tokio/ |
D | lib.rs | 53 Ok(Err(err)) => Err(err), in get_interface() 54 Err(e) if e.is_panic() => std::panic::resume_unwind(e.into_panic()), in get_interface() 55 Err(e) if e.is_cancelled() => Err(StatusCode::FAILED_TRANSACTION), in get_interface() 56 Err(_) => Err(StatusCode::UNKNOWN_ERROR), in get_interface() 79 Ok(Err(err)) => Err(err), in check_interface() 80 Err(e) if e.is_panic() => std::panic::resume_unwind(e.into_panic()), in check_interface() 81 Err(e) if e.is_cancelled() => Err(StatusCode::FAILED_TRANSACTION), in check_interface() 82 Err(_) => Err(StatusCode::UNKNOWN_ERROR), in check_interface() 103 Ok(Err(err)) => Err(err), in wait_for_interface() 104 Err(e) if e.is_panic() => std::panic::resume_unwind(e.into_panic()), in wait_for_interface() [all …]
|
/frameworks/native/libs/binder/rust/tests/ |
D | ndk_rust_interop.rs | 41 Err(e) => { in rust_call_ndk() 54 Err(e) => return e.into(), in rust_call_ndk() 61 Err(StatusCode::BAD_TYPE) => {} in rust_call_ndk() 62 Err(e) => { in rust_call_ndk() 97 Err(e) => e as c_int, in rust_start_service()
|
D | serialization.rs | 57 return Err(StatusCode::FAILED_TRANSACTION); 68 return Err(StatusCode::FAILED_TRANSACTION); 312 _ => return Err(StatusCode::UNKNOWN_TRANSACTION), in on_transact() 315 assert_eq!(parcel.read::<i32>(), Err(StatusCode::NOT_ENOUGH_DATA)); in on_transact()
|
D | integration.rs | 49 return Err(""); in main() 70 Err("Unexpected exit after join_thread_pool") in main() 115 _ => Err(StatusCode::UNKNOWN_TRANSACTION), in try_from() 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()
|
/frameworks/native/libs/input/rust/ |
D | input_verifier.rs | 32 return Err(format!("Invalid {} event: no pointers", action)); in verify_event() 41 return Err(format!( in verify_event() 50 return Err(format!( in verify_event() 59 return Err(format!("Got {}, but event has {} pointer(s)", action, pointer_count)); in verify_event() 122 return Err(format!( in process_movement() 132 return Err(format!( in process_movement() 140 return Err(format!( in process_movement() 150 return Err(format!( in process_movement() 159 return Err(format!( in process_movement() 167 return Err(format!( in process_movement() [all …]
|
/frameworks/compile/slang/ |
D | llvm-rs-as.cpp | 131 SMDiagnostic Err; in main() local 132 std::unique_ptr<Module> M(parseAssemblyFile(InputFilename, Err, Context)); in main() 134 Err.print(argv[0], errs()); in main() 139 std::string Err; in main() local 140 raw_string_ostream stream(Err); in main() 144 errs() << Err; in main()
|
/frameworks/native/libs/binder/rust/src/ |
D | parcel.rs | 216 let len: i32 = slice.len().try_into().or(Err(StatusCode::BAD_VALUE))?; in write_slice_size() 489 return Err(StatusCode::BAD_VALUE); in sized_read() 494 return Err(StatusCode::NOT_ENOUGH_DATA); in sized_read() 524 return Err(StatusCode::UNEXPECTED_NULL); in resize_out_vec() 714 assert_eq!(parcel.read::<bool>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write() 715 assert_eq!(parcel.read::<i8>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write() 716 assert_eq!(parcel.read::<u16>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write() 717 assert_eq!(parcel.read::<i32>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write() 718 assert_eq!(parcel.read::<u32>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write() 719 assert_eq!(parcel.read::<i64>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write() [all …]
|
D | native.rs | 290 Err(e) => e as i32, in on_transact() 372 Err(e) => e as status_t, in on_dump() 433 return Err(StatusCode::BAD_TYPE); in try_from() 440 return Err(StatusCode::UNEXPECTED_NULL); in try_from()
|
D | service.rs | 141 Err(StatusCode::NAME_NOT_FOUND) in interface_cast() 196 let interface = CString::new(interface).or(Err(StatusCode::UNEXPECTED_NULL))?; in is_declared() 226 let interface = CString::new(interface).or(Err(StatusCode::UNEXPECTED_NULL))?; in get_declared_instances()
|
D | error.rs | 43 e => Err(e), in status_result() 333 Err(status) in from() 501 Err("message").or_service_specific_exception(-42); in convert_to_service_specific_exception() 515 let res: std::result::Result<(), Status> = Err("message") in convert_to_service_specific_exception_with() 531 Err("message").or_binder_exception(ExceptionCode::ILLEGAL_STATE); in convert_to_binder_exception() 545 let res: std::result::Result<(), Status> = Err("message") in convert_to_binder_exception_with()
|
/frameworks/native/libs/binder/rust/src/parcel/ |
D | parcelable_holder.rs | 95 return Err(StatusCode::BAD_VALUE); in set_parcelable() 127 return Err(StatusCode::BAD_VALUE); in get_parcelable() 131 Err(_) => Err(StatusCode::BAD_VALUE), in get_parcelable() 192 Err(StatusCode::UNEXPECTED_NULL) in deserialize() 240 return Err(StatusCode::BAD_VALUE); in read_from_parcel() 247 return Err(StatusCode::BAD_VALUE); in read_from_parcel()
|
D | parcelable.rs | 139 slice.len().try_into().or(Err(StatusCode::BAD_VALUE))?, in serialize_array() 232 Err(code) => return code as status_t, in deserialize_element() 414 .or(Err(StatusCode::BAD_VALUE))?, 542 slice.len().try_into().or(Err(StatusCode::BAD_VALUE))?, in serialize_array() 581 slice.len().try_into().or(Err(StatusCode::BAD_VALUE))?, in serialize_array() 610 s.as_bytes().len().try_into().or(Err(StatusCode::BAD_VALUE))?, in serialize_option() 667 String::from_utf8(s).or(Err(StatusCode::BAD_VALUE)) in deserialize() 685 Deserialize::deserialize(parcel).transpose().unwrap_or(Err(StatusCode::UNEXPECTED_NULL)) in deserialize() 731 .unwrap_or(Err(StatusCode::UNEXPECTED_NULL)) in deserialize() 768 .unwrap_or(Err(StatusCode::UNEXPECTED_NULL))?; in deserialize() [all …]
|
D | file_descriptor.rs | 138 Deserialize::deserialize(parcel).transpose().unwrap_or(Err(StatusCode::UNEXPECTED_NULL)) in deserialize()
|
/frameworks/native/vulkan/libvulkan/ |
D | driver_gen.cpp | 37 … Logger(device).Err(device, "VK_KHR_swapchain not enabled. vkCreateSwapchainKHR not executed."); in checkedCreateSwapchainKHR() 46 … Logger(device).Err(device, "VK_KHR_swapchain not enabled. vkDestroySwapchainKHR not executed."); in checkedDestroySwapchainKHR() 54 … Logger(device).Err(device, "VK_KHR_swapchain not enabled. vkGetSwapchainImagesKHR not executed."); in checkedGetSwapchainImagesKHR() 63 … Logger(device).Err(device, "VK_KHR_swapchain not enabled. vkAcquireNextImageKHR not executed."); in checkedAcquireNextImageKHR() 72 Logger(queue).Err(queue, "VK_KHR_swapchain not enabled. vkQueuePresentKHR not executed."); in checkedQueuePresentKHR() 81 Logger(device).Err(device, "VK_VERSION_1_1 not enabled. vkBindImageMemory2 not executed."); in checkedBindImageMemory2() 90 …Logger(device).Err(device, "VK_KHR_bind_memory2 not enabled. vkBindImageMemory2KHR not executed."); in checkedBindImageMemory2KHR() 99 …Logger(device).Err(device, "VK_KHR_swapchain not enabled. vkGetDeviceGroupPresentCapabilitiesKHR n… in checkedGetDeviceGroupPresentCapabilitiesKHR() 108 …Logger(device).Err(device, "VK_KHR_swapchain not enabled. vkGetDeviceGroupSurfacePresentModesKHR n… in checkedGetDeviceGroupSurfacePresentModesKHR() 117 … Logger(device).Err(device, "VK_KHR_swapchain not enabled. vkAcquireNextImage2KHR not executed."); in checkedAcquireNextImage2KHR() [all …]
|
/frameworks/native/libs/binder/rust/tests/parcel_fuzzer/ |
D | read_utils.rs | 53 Err(e) => Err(e), in read_from_parcel() 111 Err(e) => { 120 Err(e) => println!( 130 Err(e) => println!(
|
D | parcel_fuzzer.rs | 70 Err(StatusCode::UNKNOWN_ERROR) in on_transact() 88 Err(e) => { in do_append_fuzz() 95 Err(e) => { in do_append_fuzz() 113 Err(e) => println!("error occurred while setting data position: {:?}", e), in do_read_fuzz() 128 Err(err) => { in do_read_fuzz()
|
/frameworks/native/libs/binder/rust/rpcbinder/src/server/ |
D | android.rs | 105 Err(e) => { in new_inet() 107 return Err(Error::from(ErrorKind::InvalidInput)); in new_inet() 125 return Err(Error::new(ErrorKind::Other, "Failed to start server")); in checked_from_ptr() 184 Err(Error::from(ErrorKind::UnexpectedEof)) in shutdown()
|
D | trusty.rs | 137 Err(TipcError::from_uapi(rc.into())) in on_connect() 152 Err(TipcError::from_uapi(rc.into())) in on_message()
|
/frameworks/native/libs/binder/rust/rpcbinder/src/ |
D | session.rs | 114 Err(e) => { in setup_unix_domain_client() 116 return Err(StatusCode::NAME_NOT_FOUND); in setup_unix_domain_client() 160 Err(e) => { in setup_inet_client() 162 return Err(StatusCode::BAD_VALUE); in setup_inet_client() 223 Err(StatusCode::NAME_NOT_FOUND) in get_interface()
|
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/service/ |
D | main.rs | 85 Err(Status::from(StatusCode::UNKNOWN_TRANSACTION)) in getNullBinder() 90 Err(e) => Err(Status::from(e)), in pingMe() 96 None => Err(Status::from(StatusCode::BAD_VALUE)), in repeatBinder() 181 Err(Status::from(StatusCode::UNKNOWN_TRANSACTION)) in die()
|
/frameworks/compile/libbcc/tools/bcc_strip_attr/ |
D | bcc_strip_attr.cpp | 99 SMDiagnostic Err; in LoadFile() local 100 std::unique_ptr<Module> Result = parseIRFile(FN, Err, Context); in LoadFile() 105 Err.print(argv0, errs()); in LoadFile()
|
/frameworks/native/cmds/evemu-record/ |
D | evdev.rs | 164 Err(err) => Err(err), in buf_from_ioctl() 243 Err(err) => Err(err), in bitmap_for_event_type()
|
/frameworks/native/cmds/sfdo/ |
D | sfdo.rs | 28 Err(err) => println!("{}: Operation failed: {:?}", function_name, err), in print_result() 88 Err(err) => { in main()
|
/frameworks/native/services/inputflinger/rust/ |
D | lib.rs | 98 Err(status) => { in create_inputflinger_rust()
|
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/ |
D | main.rs | 90 …assert!(binder == Err(Status::from(StatusCode::UNEXPECTED_NULL)) || binder == Err(Status::from(Sta…
|