Home
last modified time | relevance | path

Searched refs:Err (Results 1 – 25 of 201) sorted by relevance

123456789

/packages/modules/Virtualization/libs/libfdt/src/
Dresult.rs119 x if x == -(FDT_ERR_NOTFOUND as c_int) => Err(FdtError::NotFound), in try_from()
120 x if x == -(FDT_ERR_EXISTS as c_int) => Err(FdtError::Exists), in try_from()
121 x if x == -(FDT_ERR_NOSPACE as c_int) => Err(FdtError::NoSpace), in try_from()
122 x if x == -(FDT_ERR_BADOFFSET as c_int) => Err(FdtError::BadOffset), in try_from()
123 x if x == -(FDT_ERR_BADPATH as c_int) => Err(FdtError::BadPath), in try_from()
124 x if x == -(FDT_ERR_BADPHANDLE as c_int) => Err(FdtError::BadPhandle), in try_from()
125 x if x == -(FDT_ERR_BADSTATE as c_int) => Err(FdtError::BadState), in try_from()
126 x if x == -(FDT_ERR_TRUNCATED as c_int) => Err(FdtError::Truncated), in try_from()
127 x if x == -(FDT_ERR_BADMAGIC as c_int) => Err(FdtError::BadMagic), in try_from()
128 x if x == -(FDT_ERR_BADVERSION as c_int) => Err(FdtError::BadVersion), in try_from()
[all …]
Dsafe_types.rs152 Err(FdtError::NotFound) => Ok(None), in try_from()
153 Err(e) => Err(e), in try_from()
185 Err(FdtError::NotFound) => Ok(None), in try_from()
186 Err(e) => Err(e), in try_from()
218 Err(FdtError::NotFound) => Ok(None), in try_from()
219 Err(e) => Err(e), in try_from()
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/
Dcommand_handler.rs434 Err(CommandError::InvalidArgs) => { in process_cmd_line()
438 Err(CommandError::Failed(msg)) => { in process_cmd_line()
519 return Err("Floss is not enabled. First run, `floss enable`".into()); in cmd_adapter()
529 return Err("You are not allowed to toggle adapter power".into()); in cmd_adapter()
535 return Err("You are not allowed to toggle adapter power".into()); in cmd_adapter()
541 return Err(self.adapter_not_ready()); in cmd_adapter()
600 .or(Err("Failed parsing duration."))?; in cmd_adapter()
617 .or(Err("Failed parsing duration."))?; in cmd_adapter()
662 _ => return Err(CommandError::InvalidArgs), in cmd_adapter()
670 return Err(self.adapter_not_ready()); in cmd_get_address()
[all …]
/packages/modules/Uwb/service/uci/jni/src/
Dhelper.rs25 Err(e) => { in boolean_result_helper()
46 Err(Error::BadParameters) => StatusCode::UciStatusInvalidParam, in result_to_status_code()
47 Err(Error::MaxSessionsExceeded) => StatusCode::UciStatusMaxSessionsExceeded, in result_to_status_code()
48 Err(Error::CommandRetry) => StatusCode::UciStatusCommandRetry, in result_to_status_code()
49 Err(Error::RegulationUwbOff) => StatusCode::UciStatusRegulationUwbOff, in result_to_status_code()
51 Err(_) => StatusCode::UciStatusFailed, in result_to_status_code()
75 let result: Result<i32> = Err(Error::BadParameters); in test_boolean_result_helper()
86 byte_result_helper::<i8>(Err(Error::BadParameters), "Test"), in test_byte_result_helper()
90 byte_result_helper::<i8>(Err(Error::MaxSessionsExceeded), "Test"), in test_byte_result_helper()
94 byte_result_helper::<i8>(Err(Error::CommandRetry), "Test"), in test_byte_result_helper()
[all …]
/packages/modules/Bluetooth/floss/hcidoc/src/
Dparser.rs38 return Err(format!("Invalid size for snoop header: {}", item.len())); in try_from()
53 return Err(format!("Id is not 'btsnoop'.")); in try_from()
57 return Err(format!("Version is not supported. Got {}.", header.version)); in try_from()
61 return Err(format!( in try_from()
151 return Err(format!("Wrong size for snoop packet preamble: {}", item.len())); in try_from()
193 Err(e) => { in next()
213 Err(e) => { in next()
222 Err(_) => None, in next()
264 Err(Error::new(ErrorKind::Other, "Unsupported log file type")) in read_log_type()
301 Err(e) => Err(format!("Couldn't parse command: {:?}", e)), in try_from()
[all …]
/packages/modules/Virtualization/authfs/fd_server/src/
Daidl.rs107 Err(Status::new_exception_str( in insert_new_fd()
132 FdConfig::InputDir(_) | FdConfig::OutputDir(_) => Err(new_errno_error(Errno::EISDIR)), in readFile()
163 Err(new_errno_error(Errno::ENOSYS)) in readFsverityMerkleTree()
165 FdConfig::InputDir(_) | FdConfig::OutputDir(_) => Err(new_errno_error(Errno::EISDIR)), in readFsverityMerkleTree()
176 Err(Status::new_service_specific_error_str( in readFsveritySignature()
194 Err(new_errno_error(Errno::ENOSYS)) in readFsveritySignature()
196 FdConfig::InputDir(_) | FdConfig::OutputDir(_) => Err(new_errno_error(Errno::EISDIR)), in readFsveritySignature()
202 FdConfig::Readonly { .. } => Err(StatusCode::INVALID_OPERATION.into()), in writeFile()
207 return Err(new_errno_error(Errno::EOVERFLOW)); in writeFile()
214 FdConfig::InputDir(_) | FdConfig::OutputDir(_) => Err(new_errno_error(Errno::EISDIR)), in writeFile()
[all …]
/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/
Dat_command_parser.rs69 return Err("Cannot parse empty AT command".to_string()); in parse_at_command_data()
85 None => return Err("No command supplied".to_string()), in parse_at_command_data()
139 Err(e) => return Err(e.to_string()), in calculate_battery_percent()
151 return Err(format!( in calculate_battery_percent()
160 return Err( in calculate_battery_percent()
168 (Err(e), _) => return Err(e.to_string()), in calculate_battery_percent()
169 (Ok(_), Err(e)) => return Err(e.to_string()), in calculate_battery_percent()
172 None => return Err("BatteryLevelRange missing".to_string()), in calculate_battery_percent()
178 None => return Err("No battery data found".to_string()), in calculate_battery_percent()
180 Err("No battery data found".to_string()) in calculate_battery_percent()
[all …]
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/
Dmigrate.rs101 return Err("PENC String provided to LtkInfo is not the right size"); in try_from_penc()
127 return Err("LENC String provided to LtkInfo is not the right size"); in try_from_lenc()
231 Err(err) => Err(format!("Error converting from hex string to dec string: {}", err)), in hex_str_to_dec_str()
238 Err(err) => Err(format!("Error converting from dec string to hex string: {}", err)), in dec_str_to_hex_str()
248 Err(err) => Err(format!("Error converting from base64 string to hex string: {}", err)), in base64_str_to_hex_str()
259 Err(err) => { in hex_str_to_base64_str()
260 return Err(format!("Error converting from hex string to base64 string: {}", err)); in hex_str_to_base64_str()
273 x => Err(format!("Error converting type. Unknown type: {}", x)), in bluez_to_floss_type()
282 x => Err(format!("Error converting type. Unknown type: {}", x)), in floss_to_bluez_type()
290 x => Err(format!("Error converting address type. Unknown type: {}", x)), in bluez_to_floss_addr_type()
[all …]
/packages/modules/Virtualization/pvmfw/avb/src/
Dverify.rs85 return Err(PvmfwVerifyError::UnknownVbmetaProperty); in get_capabilities()
94 _ => return Err(PvmfwVerifyError::UnknownVbmetaProperty), in get_capabilities()
97 return Err(SlotVerifyError::InvalidMetadata.into()); in get_capabilities()
109 Err(SlotVerifyError::InvalidMetadata) in verify_only_one_vbmeta_exists()
116 _ => Err(SlotVerifyError::InvalidMetadata), in verify_vbmeta_is_from_kernel_partition()
127 return Err(SlotVerifyError::Io); in verify_loaded_partition_has_expected_length()
134 return Err(SlotVerifyError::Io); in verify_loaded_partition_has_expected_length()
139 Err(SlotVerifyError::Verification(None)) in verify_loaded_partition_has_expected_length()
161 return Err(DescriptorError::InvalidContents.into()); in verify_property_and_get_capabilities()
201 return Err(DescriptorError::InvalidContents); in get()
[all …]
/packages/modules/Virtualization/virtualizationmanager/src/
Ddebug_config.rs69 Err(error) if error.kind() == ErrorKind::NotFound => return Ok(false), in get_debug_policy_bool()
70 Err(error) => Err(error).with_context(|| format!("Failed to read {path:?}"))?, in get_debug_policy_bool()
78 value => Err(anyhow!("Invalid value {value} in {path:?}")), in get_debug_policy_bool()
88 Err(error) if error != FdtError::NotFound => { in get_fdt_prop_bool()
89 Err(Error::msg(error)).with_context(|| format!("Failed to get node {node_path:?}"))? in get_fdt_prop_bool()
97 Ok(Some(_)) => Err(anyhow!("Invalid prop value {prop_name:?} in node {node_path:?}")), in get_fdt_prop_bool()
98 Err(error) if error != FdtError::NotFound => { in get_fdt_prop_bool()
99 Err(Error::msg(error)).with_context(|| format!("Failed to get prop {prop_name:?}")) in get_fdt_prop_bool()
114 Err(error) if error.kind() == ErrorKind::NotFound => Default::default(), in from_overlay_onto_new_fdt()
115 Err(error) => { in from_overlay_onto_new_fdt()
[all …]
/packages/modules/Bluetooth/system/rust/src/gatt/server/
Dindication_handler.rs66 return Err(IndicationError::DataExceedsMtu { mtu: mtu - 3 }); in send()
78 return Err(IndicationError::IndicationsNotSupported); in send()
94 Err(IndicationError::ConnectionDroppedWhileWaitingForConfirmation) in send()
96 Err(_) => { in send()
98 Err(IndicationError::ConfirmationTimeout) in send()
112 Err(TrySendError::Full(_)) => { in on_confirmation()
115 Err(TrySendError::Closed(_)) => { in on_confirmation()
212 assert!(matches!(ret, Err(IndicationError::AttributeNotFound))); in test_invalid_handle()
229 assert!(matches!(ret, Err(IndicationError::IndicationsNotSupported))); in test_unsupported_permission()
284 Err(IndicationError::ConnectionDroppedWhileWaitingForConfirmation) in test_unblock_on_disconnect()
[all …]
/packages/modules/Virtualization/authfs/src/
Dfusefs.rs84 Err(io::Error::from_raw_os_error(libc::ENOTEMPTY)) in expect_empty_deletable_directory()
88 Err(io::Error::from_raw_os_error(libc::EACCES)) in expect_empty_deletable_directory()
90 _ => Err(io::Error::from_raw_os_error(libc::ENOTDIR)), in expect_empty_deletable_directory()
290 _ => Err(anyhow!("Path is not canonical: {:?}", path)), in add_entry_at_ro_dir_by_path()
384 Err(io::Error::from_raw_os_error(libc::EACCES)) in check_access_mode()
482 return Err(io::Error::from_raw_os_error(libc::ENODATA)); in read_chunks()
489 return Err(io::Error::from_raw_os_error(libc::EIO)); in read_chunks()
527 _ => Err(io::Error::from_raw_os_error(libc::ENOTDIR)), in lookup()
594 Err(e) => { in forget()
655 return Err(io::Error::from_raw_os_error(libc::ENOSYS)); in open()
[all …]
/packages/modules/Virtualization/virtualizationservice/src/
Dremote_provisioning.rs72 return Err(Status::new_service_specific_error_str( in generateEcdsaP256KeyPair()
87 _ => Err(to_service_specific_error(res)), in generateEcdsaP256KeyPair()
101 Err(Status::new_service_specific_error_str( in generateCertificateRequest()
122 return Err(Status::new_service_specific_error_str(STATUS_FAILED, Some(message))) in generateCertificateRequestV2()
131 _ => Err(to_service_specific_error(res)), in generateCertificateRequestV2()
139 return Err(Status::new_exception_str( in check_remote_attestation_is_supported()
146 return Err(Status::new_exception_str( in check_remote_attestation_is_supported()
162 Response::Err(e) => match e { in to_service_specific_error()
/packages/modules/DnsResolver/doh/tests/doh_frontend/src/
Ddns_https_frontend.rs127 Err(e) => return Err(e.context("init_worker_thread_params failed")), in start()
141 if let Err(e) = self.wait_for_connections_closed() { in stop()
217 Err(e) => bail!(e), in request_stats()
219 Err(e) => bail!(e), in request_stats()
272 Err(_) => return Ok(()), in wait_for_connections_closed()
319 Err(e) => { in worker_thread()
329 Err(e) => { in worker_thread()
341 Err(e) => { in worker_thread()
370 … if let Err(e) = client.handle_backend_message(&backend_buf[..len], reset_stream_id) { in worker_thread()
389 if let Err(e) = frontend_socket.send_to(&v, addr).await { in worker_thread()
[all …]
/packages/modules/Virtualization/virtualizationservice/vfio_handler/src/
Daidl.rs86 return Err(anyhow!("VFIO-platform not supported")) in bindDevicesToVfioDriver()
179 return Err(anyhow!("no such device {path:?}")) in check_platform_device()
184 return Err(anyhow!("{path:?} is not a platform device")) in check_platform_device()
212 return Err(anyhow!("can't get device name from {path:?}")) in try_bind_driver()
216 return Err(anyhow!("invalid filename {device:?}")) in try_bind_driver()
226 return Err(anyhow!("could not unbind {device_str}")).or_service_specific_exception(-1); in try_bind_driver()
241 return Err(anyhow!("{path:?} still not bound to '{driver}' driver")) in try_bind_driver()
258 Err(anyhow!("can't get iommu group for {path:?}")).or_service_specific_exception(-1) in bind_device()
274 Err(anyhow!("{path:?} still bound to vfio driver")).or_service_specific_exception(-1) in unbind_device()
308 return Err(anyhow!("DtTableHeader is invalid")).or_service_specific_exception(-1); in get_dt_table_header()
[all …]
/packages/modules/DnsResolver/doh/connection/
Ddriver.rs220 Err(Error::Closed) in handle_closed()
318 Err(quiche::Error::Done) => return Ok(()), in flush_tx()
319 Err(e) => return Err(e.into()), in flush_tx()
343 if let Err(e) = self.drive_once().await { in drive()
346 return Err(e); in drive()
415Err(h3::Error::StreamBlocked) | Err(h3::Error::TransportError(quiche::Error::StreamLimit)) => { in handle_request()
448 Err(h3::Error::Done) => { in recv_body()
452 Err(e) => { in recv_body()
455 return Err(e.into()); in recv_body()
476 Err(h3::Error::Done) => return Ok(()), in discard_datagram()
[all …]
/packages/modules/Virtualization/pvmfw/src/
Ddevice_assignment.rs45 Err(_) => panic!("string contains interior NUL"),
173 Err(_) => list.entry(token), in fmt()
183 return Err(DeviceAssignmentError::UnsupportedPathFormat); in new()
195 return Err(DeviceAssignmentError::InvalidDtbo); in to_overlay_target_path()
334 return Err(DeviceAssignmentError::UnsupportedOverlayTarget); in locate_overlay_target_path()
351 return Err(FdtError::BadPhandle.into()); in parse_physical_iommus()
361 return Err(DeviceAssignmentError::DuplicatedIommuIds); in validate_physical_iommus()
376 return Err(DeviceAssignmentError::UnsupportedIommusDuplication); in validate_physical_devices()
393 return Err(DeviceAssignmentError::InvalidDtbo); in parse_physical_devices_with_iommus()
456 return Err(DeviceAssignmentError::Internal); in collect_phandle_references_from_overlayable_nodes()
[all …]
Dfdt.rs165 return Err(RebootReason::InvalidFdt); in read_and_validate_memory_range()
171 return Err(RebootReason::InvalidFdt); in read_and_validate_memory_range()
176 return Err(RebootReason::InvalidFdt); in read_and_validate_memory_range()
255 return Err(FdtError::BadValue); in read_cpu_map_from()
290 return Err(FdtError::BadValue);
305 return Err(FdtValidationError::InvalidCpuCount(0)); in validate_cpu_info()
339 return Err(FdtValidationError::InvalidVcpufreq(base, size)); in validate_vcpufreq_info()
474 return Err(FdtValidationError::ForbiddenUntrustedProp(name)); in validate_untrusted_props()
500 return Err(FdtError::BadValue); in validate_vm_ref_dt()
562 return Err(FdtError::NoSpace); in read_pci_info_from()
[all …]
/packages/modules/Virtualization/libs/vbmeta/src/
Dlib.rs92 return Err(VbMetaImageParseError::InvalidFooter.into()); in verify_reader_region()
96 Err(VbMetaImageParseError::InvalidFooter) => (0, size), in verify_reader_region()
97 Err(e) => { in verify_reader_region()
98 return Err(e.into()); in verify_reader_region()
171 Err(VbMetaImageParseError::InvalidHeader.into()) in verify_vbmeta_image()
174 Err(VbMetaImageParseError::UnsupportedVersion.into()) in verify_vbmeta_image()
177 Err(VbMetaImageVerificationError::HashMismatch) in verify_vbmeta_image()
180 Err(VbMetaImageVerificationError::SignatureMismatch) in verify_vbmeta_image()
196 Err(VbMetaImageParseError::InvalidFooter) in read_avb_footer()
272 Err(VbMetaImageVerificationError::HashMismatch) in signed_image_has_valid_vbmeta()
/packages/modules/Virtualization/vmbase/src/memory/
Dshared.rs129 return Err(MemoryTrackerError::DifferentBaseAddress); in shrink()
132 return Err(MemoryTrackerError::SizeTooLarge); in shrink()
135 return Err(MemoryTrackerError::SizeTooSmall); in shrink()
197 return Err(MemoryTrackerError::OutOfRange); in map_mmio_range()
200 return Err(MemoryTrackerError::Overlaps); in map_mmio_range()
203 return Err(MemoryTrackerError::Full); in map_mmio_range()
219 return Err(MemoryTrackerError::Full); in map_mmio_range()
231 return Err(MemoryTrackerError::OutOfRange); in check_allocatable()
240 return Err(MemoryTrackerError::Overlaps); in check_no_overlap()
243 return Err(MemoryTrackerError::Full); in check_no_overlap()
[all …]
/packages/modules/Uwb/indev_uwb_adaptation/jni/src/
Dapi.rs58 Err(err) => { in Java_com_android_server_uwb_indev_UwbServiceCore_nativeInit()
80 Err(err) => { in Java_com_android_server_uwb_indev_UwbServiceCore_nativeUwbServiceNew()
87 Err(err) => { in Java_com_android_server_uwb_indev_UwbServiceCore_nativeUwbServiceNew()
136 Err(err) => { in Java_com_android_server_uwb_indev_UwbServiceCore_nativeUwbServiceDestroy()
372 Err(err) => { in update_controller_multicast_list()
373 return Err(Error::Parse(format!("Couldn't parse controlees. {:?}", err))); in update_controller_multicast_list()
384 Err(err) => { in set_country_code()
385 return Err(Error::Parse(format!("Invalid country code: {:?}", err))); in set_country_code()
405 Err(err) => { in send_raw_vendor_cmd()
406 return Err(Error::Parse(format!("Failed to convert payload {:?}", err))); in send_raw_vendor_cmd()
[all …]
Dcallback.rs48 Err(err) => { in build()
108 return Err(Error::Jni(jni::errors::Error::InvalidArgList(type_signature))); in cached_jni_call()
171 Err(err) => { in on_range_data_received()
180 Err(err) => { in on_range_data_received()
196 Err(err) => { in on_range_data_received()
219 Err(err) => { in on_vendor_notification_received()
224 if let Err(err) = in on_vendor_notification_received()
249 if let Err(err) = result { in result_helper()
/packages/modules/Virtualization/libs/bssl/src/
Dec_key.rs103 return Err(Error::Unimplemented); in from_cose_public_key()
114 return Err(Error::Unimplemented); in from_cose_public_key()
201 Err(to_call_failed_error(ApiName::ECDSA_sign)) in ecdsa_sign_der()
223 Err(to_call_failed_error(ApiName::ECDSA_size)) in ecdsa_size()
278 Err(to_call_failed_error(ApiName::EC_KEY_get0_public_key)) in public_key_ec_point()
292 Err(to_call_failed_error(ApiName::EC_KEY_get0_group)) in ec_group()
310 return Err(to_call_failed_error(ApiName::EC_GROUP_new_by_curve_name)); in from_ec_private_key()
379 return Err(Error::InternalError); in load_from_cose()
442 return Err(to_call_failed_error(ApiName::i2d_ECDSA_SIG)); in to_der()
451 return Err(to_call_failed_error(ApiName::i2d_ECDSA_SIG)); in to_der()
[all …]
/packages/modules/Virtualization/authfs/src/file/
Ddir.rs126 if let Err(e) = self.service.deleteFile(self.remote_dir_fd, basename_str) { in delete_file()
140 if let Err(e) = self.service.deleteDirectory(self.remote_dir_fd, basename_str) { in force_delete_directory()
176 (true, false) => Err(io::Error::from_raw_os_error(libc::ENOTDIR)), in force_delete_entry()
177 (false, true) => Err(io::Error::from_raw_os_error(libc::EISDIR)), in force_delete_entry()
185 Err(io::Error::from_raw_os_error(libc::ENOENT)) in force_delete_entry()
194 return Err(io::Error::from_raw_os_error(libc::EEXIST)); in validate_arguments()
198 return Err(io::Error::from_raw_os_error(libc::EMLINK)); in validate_arguments()
235 return Err(io::Error::from_raw_os_error(libc::EMLINK)); in add_entry()
242 Err(io::Error::from_raw_os_error(libc::EEXIST)) in add_entry()
/packages/modules/Virtualization/rialto/src/
Dcommunication.rs70 return Err(SocketError::ConnectionFailed.into()) in wait_for_connect()
75 return Err(SocketError::InvalidOperation.into()) in wait_for_connect()
121 Err(INSUFFICIENT_BUFFER_SPACE_ERROR) => { in wait_for_send()
124 Err(e) => return Err(e), in wait_for_send()
144 VsockEventType::Disconnected { .. } => Err(SocketError::ConnectionFailed.into()), in poll()
146 Err(SocketError::InvalidOperation.into()) in poll()

123456789