/packages/modules/Virtualization/libs/libfdt/tests/ |
D | api_test.rs | 43 assert_eq!(fdt.first_memory_range(), Ok(EXPECTED_FIRST_MEMORY_RANGE)); in retrieving_memory_from_fdt_with_one_memory_range_succeeds() 57 assert_eq!(fdt.first_memory_range(), Ok(EXPECTED_FIRST_MEMORY_RANGE)); in retrieving_memory_from_fdt_with_multiple_memory_ranges_succeeds() 85 assert_eq!(root.name(), Ok(cstr!(""))); in node_name() 88 assert_eq!(chosen.name(), Ok(cstr!("chosen"))); in node_name() 92 assert_eq!(nested_node.name(), Ok(cstr!("PowerPC,970@0"))); in node_name() 100 let expected = [Ok(cstr!("cpus")), Ok(cstr!("randomnode")), Ok(cstr!("chosen"))]; in node_subnodes() 115 (Ok(cstr!("model")), Ok(b"MyBoardName\0".as_ref())), in node_properties() 116 (Ok(cstr!("compatible")), Ok(b"MyBoardName\0MyBoardFamilyName\0".as_ref())), in node_properties() 117 (Ok(cstr!("#address-cells")), Ok(&one_be)), in node_properties() 118 (Ok(cstr!("#size-cells")), Ok(&one_be)), in node_properties() [all …]
|
/packages/modules/Virtualization/libs/libfdt/src/ |
D | lib.rs | 53 x if x == Self::Single as _ => Ok(Self::Single), in try_from() 54 x if x == Self::Double as _ => Ok(Self::Double), in try_from() 55 x if x == Self::Triple as _ => Ok(Self::Triple), in try_from() 74 x if x == Self::None as _ => Ok(Self::None), in try_from() 75 x if x == Self::Single as _ => Ok(Self::Single), in try_from() 76 x if x == Self::Double as _ => Ok(Self::Double), in try_from() 97 Ok(fdt.get_property_by_offset(offset)?.as_ref()) in from_offset() 124 Ok(Self { fdt, offset, property }) in new() 139 Ok(Some(Self::new(self.fdt, offset)?)) in next_property() 141 Ok(None) in next_property() [all …]
|
D | safe_types.rs | 142 Ok(Self(res.try_into()?)) in try_from() 151 Ok(n) => Ok(Some(n)), in try_from() 152 Err(FdtError::NotFound) => Ok(None), in try_from() 175 Ok(Self(res.try_into()?)) in try_from() 184 Ok(n) => Ok(Some(n)), in try_from() 185 Err(FdtError::NotFound) => Ok(None), in try_from() 208 Ok(Self(res.try_into()?)) in try_from() 217 Ok(n) => Ok(Some(n)), in try_from() 218 Err(FdtError::NotFound) => Ok(None), in try_from()
|
/packages/modules/Virtualization/pvmfw/src/ |
D | bootargs.rs | 64 Ok(Self { arg }) in new() 139 check(cstr!(""), Ok(&[])); in empty() 140 check(cstr!(" "), Ok(&[])); in empty() 141 check(cstr!(" \n "), Ok(&[])); in empty() 146 check(cstr!("foo"), Ok(&[("foo", None)])); in single() 147 check(cstr!(" foo"), Ok(&[("foo", None)])); in single() 148 check(cstr!("foo "), Ok(&[("foo", None)])); in single() 149 check(cstr!(" foo "), Ok(&[("foo", None)])); in single() 154 check(cstr!("foo=bar"), Ok(&[("foo", Some("=bar"))])); in single_with_value() 155 check(cstr!(" foo=bar"), Ok(&[("foo", Some("=bar"))])); in single_with_value() [all …]
|
D | device_assignment.rs | 44 Ok(v) => v, 172 Ok(string) => list.entry(&string), in fmt() 190 Ok(Self { tokens }) in new() 197 Ok(Self { tokens: self.tokens.as_slice()[2..].to_vec() }) in to_overlay_target_path() 299 Ok(unsafe { mem::transmute::<&mut Fdt, &mut Self>(fdt) }) in from_mut_slice() 338 Ok(overlaid_path.to_cstring()) in locate_overlay_target_path() 355 Ok(phys_iommus) in parse_physical_iommus() 363 Ok(()) in validate_physical_iommus() 380 Ok(()) in validate_physical_devices() 397 Ok(physical_devices) in parse_physical_devices_with_iommus() [all …]
|
D | fdt.rs | 92 return Ok(Some(addr..(addr + size))); in read_kernel_range_from() 96 Ok(None) in read_kernel_range_from() 107 return Ok(Some((start as usize)..(end as usize))); in read_initrd_range_from() 111 Ok(None) in read_initrd_range_from() 121 Ok(()) in patch_initrd_range() 130 return Ok(Some(copy)); in read_bootargs_from() 133 Ok(None) in read_bootargs_from() 178 Ok(range) in read_and_validate_memory_range() 213 Ok(table) 238 return Ok(None); in read_cpu_map_from() [all …]
|
/packages/modules/Virtualization/virtualizationmanager/src/ |
D | debug_config.rs | 42 Ok(Self { node_path: CString::new(node_path)?, prop_name: CString::new(prop_name)? }) in new() 68 Ok(value) => value, in get_debug_policy_bool() 69 Err(error) if error.kind() == ErrorKind::NotFound => return Ok(false), in get_debug_policy_bool() 76 0 => Ok(false), in get_debug_policy_bool() 77 1 => Ok(true), in get_debug_policy_bool() 87 Ok(Some(node)) => node, in get_fdt_prop_bool() 91 _ => return Ok(false), in get_fdt_prop_bool() 95 Ok(Some(0)) => Ok(false), in get_fdt_prop_bool() 96 Ok(Some(1)) => Ok(true), in get_fdt_prop_bool() 97 Ok(Some(_)) => Err(anyhow!("Invalid prop value {prop_name:?} in node {node_path:?}")), in get_fdt_prop_bool() [all …]
|
D | aidl.rs | 148 if let Ok(out_sig) = V4Signature::from_idsig(&mut output) { in create_or_update_idsig_file() 151 return Ok(()); in create_or_update_idsig_file() 163 Ok(()) in create_or_update_idsig_file() 176 Ok(()) in remove_temporary_files() 205 Ok(()) in dump() 266 PartitionType::RAW => Ok(()), in initializeWritablePartition() 277 Ok(()) in initializeWritablePartition() 289 Ok(()) in createOrUpdateIdsigFile() 307 Ok(Vec::from_iter(SUPPORTED_OS_NAMES.iter().cloned())) in getSupportedOSList() 313 Ok(avf_features::is_feature_enabled(feature)) in isFeatureEnabled() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/ |
D | migrate.rs | 104 Ok(LtkInfo { in try_from_penc() 114 Ok(format!( in try_into_penc() 130 Ok(LtkInfo { in try_from_lenc() 140 Ok(format!( in try_into_lenc() 208 Converter::ReplaceSemiColonWithSpace => Ok(value.replace(";", " ")), in apply_action() 209 Converter::ReplaceSpaceWithSemiColon => Ok(value.replace(" ", ";")), in apply_action() 214 KeyAction::WrapOk => Ok(value), in apply_action() 218 Ok(value) in apply_action() 230 Ok(str) => Ok(format!("{}", str)), in hex_str_to_dec_str() 237 Ok(x) => Ok(format!("0x{:X}", x)), in dec_str_to_hex_str() [all …]
|
/packages/modules/DnsResolver/doh/tests/doh_frontend/src/ |
D | dns_https_frontend.rs | 116 Ok(doh) in new() 126 Ok(v) => v, in start() 131 Ok(()) in start() 152 Ok(()) in stop() 157 Ok(()) in set_certificate() 162 Ok(()) in set_private_key() 167 Ok(()) in set_delay_queries() 172 Ok(()) in set_max_idle_timeout() 177 Ok(()) in set_max_buffer_size() 182 Ok(()) in set_max_streams_bidi() [all …]
|
D | client.rs | 80 Ok(()) in create_http3_connection() 92 Ok((stream_id, quiche::h3::Event::Headers { list, has_body })) => { in handle_http3_request() 108 Ok((stream_id, quiche::h3::Event::Data)) => { in handle_http3_request() 111 if let Ok(read) = h3_conn.recv_body(&mut self.conn, stream_id, &mut buf) { in handle_http3_request() 115 Ok(n) => { in handle_http3_request() 126 Ok(ret) in handle_http3_request() 158 return Ok(()); in handle_backend_message() 173 Ok(()) in handle_backend_message() 182 Ok(()) in process_pending_answers() 191 Ok(v) => v, in flush_egress() [all …]
|
/packages/modules/Virtualization/rialto/src/ |
D | communication.rs | 54 Ok(vsock_stream) in new() 61 Ok(()) in connect() 68 VsockEventType::Connected => return Ok(()), in wait_for_connect() 88 Ok(ciborium::from_reader(self)?) in read_request() 92 Ok(ciborium::into_writer(response, self)?) in write_response() 99 Ok(()) in shutdown() 112 Ok(bytes_read) in recv() 120 Ok(_) => return Ok(()), in wait_for_send() 132 Some(VsockEventType::Received { .. }) => return Ok(()), in wait_for_recv() 155 | VsockEventType::CreditUpdate => Ok(Some(event)), in poll() [all …]
|
/packages/modules/Virtualization/virtualizationservice/src/ |
D | aidl.rs | 209 Ok(()) in setDisplayService() 218 Ok(()) in clearDisplayService() 228 Ok((state.display_service) in waitDisplayService() 241 0 => Ok(()), in removeMemlockRlimit() 264 Ok(()) in atomVmBooted() 269 Ok(()) in atomVmCreationRequested() 274 Ok(()) in atomVmExited() 292 Ok(cids) in debugListVms() 325 Ok(()) in enableTestAttestation() 403 Ok(certificate_chain) in requestAttestation() [all …]
|
/packages/modules/Bluetooth/floss/hcidoc/src/ |
D | parser.rs | 67 Ok(header) in try_from() 171 Ok(packet) in try_from() 192 Ok(()) => {} in next() 204 Ok(mut p) => { in next() 209 Ok(()) => { in next() 249 Ok(Self { fd, log_type: None }) in new() 259 if let Ok(header) = LinuxSnoopHeader::try_from(&buf[0..LINUX_SNOOP_HEADER_SIZE]) { in read_log_type() 262 Ok(log_type) in read_log_type() 300 Ok(command) => Ok(PacketChild::HciCommand(command)), in try_from() 305 Ok(event) => Ok(PacketChild::HciEvent(event)), in try_from() [all …]
|
/packages/modules/Virtualization/authfs/src/fsverity/ |
D | editor.rs | 119 Ok(size) in read_backing_chunk_verified() 121 Ok(0) in read_backing_chunk_verified() 153 Ok(ctx.finish()) in new_hash_for_incomplete_write() 167 Ok(sha256(source)) in new_chunk_hash() 218 Ok(hash) => hash, in write_at() 225 return Ok(written as usize); in write_at() 244 Ok(buf.len()) in write_at() 280 Ok(()) in resize() 322 Ok(buf.len()) in write_at() 329 Ok(()) in resize() [all …]
|
D | verifier.rs | 53 return Ok(chunk_hash); in verity_check() 65 Ok(hash_with_padding(&merkle_chunk, CHUNK_SIZE as usize)) in verity_check() 107 Ok(root_to_leaf_steps.into_iter().rev().map(move |(chunk_index, hash_offset_in_chunk)| { 113 Ok((merkle_chunk, hash_offset_in_chunk)) 144 Ok(VerifiedFileReader { chunked_file, file_size, merkle_tree, root_hash }) in new() 159 Ok(size) in read_chunk() 182 Ok(LocalFileReader { file, size }) in new() 194 return Ok(0); in read_chunk() 200 Ok(read_size) in read_chunk() 228 Ok(( in new_reader_with_fsverity() [all …]
|
D | builder.rs | 118 Ok([0u8; HASH_SIZE]) in calculate_root_hash() 122 Ok(self.leaves[0]) in calculate_root_hash() 136 Ok(hashes.into_iter().next().unwrap()) in calculate_root_hash() 145 Ok(build_fsverity_digest(&root_hash, self.file_size)) in calculate_fsverity_digest() 165 Ok(()) in merkle_tree_empty_file() 175 Ok(()) in merkle_tree_file_size_less_than_or_equal_to_4k() 203 Ok(()) in merkle_tree_more_sizes() 221 Ok(()) in merkle_tree_non_sequential() 238 Ok(()) in merkle_tree_grow_leaves() 256 Ok(()) in merkle_tree_shrink_leaves() [all …]
|
/packages/modules/Uwb/indev_uwb_adaptation/jni/src/ |
D | api.rs | 55 Ok(vm) => { in Java_com_android_server_uwb_indev_UwbServiceCore_nativeInit() 79 Ok(cb) => cb, in Java_com_android_server_uwb_indev_UwbServiceCore_nativeUwbServiceNew() 86 Ok(cl) => cl, in Java_com_android_server_uwb_indev_UwbServiceCore_nativeUwbServiceNew() 135 Ok(val) => val, in Java_com_android_server_uwb_indev_UwbServiceCore_nativeUwbServiceDestroy() 306 Ok(uwb_service.enable()?) in enable() 311 Ok(uwb_service.disable()?) in disable() 333 Ok(uwb_service.init_session(session_id, session_type, params)?) in init_session() 338 Ok(uwb_service.deinit_session(session_id)?) in deinit_session() 343 Ok(uwb_service.start_ranging(session_id)?) in start_ranging() 348 Ok(uwb_service.stop_ranging(session_id)?) in stop_ranging() [all …]
|
/packages/modules/Virtualization/libs/bssl/src/ |
D | ec_key.rs | 134 Ok(ec_key) in from_cose_public_key() 204 Ok(signature) in ecdsa_sign_der() 225 Ok(size) in ecdsa_size() 244 Ok(key) in cose_public_key() 267 Ok((x.to_padded_vec(len)?, y.to_padded_vec(len)?)) in public_key_coordinates() 280 Ok(ec_point) in public_key_ec_point() 296 Ok(EcGroup(unsafe { &*group })) in ec_group() 321 Ok(ec_key) in from_ec_private_key() 344 Ok(buf.get(0..len).ok_or_else(|| to_call_failed_error(ApiName::CBB_len))?.to_vec().into()) in ec_private_key() 372 Ok(Self(signature)) in new() [all …]
|
/packages/modules/Virtualization/libs/bssl/tests/ |
D | hmac_test.rs | 31 Ok(()) in rfc4231_test_case_1() 44 Ok(()) in rfc4231_test_case_2() 57 Ok(()) in rfc4231_test_case_3() 73 Ok(()) in rfc4231_test_case_4() 87 Ok(()) in rfc4231_test_case_5() 100 Ok(()) in rfc4231_test_case_6() 114 Ok(()) in rfc4231_test_case_7()
|
/packages/modules/Virtualization/microdroid_manager/src/ |
D | main.rs | 148 Ok(()) in write_death_reason_to_serial() 165 Ok(instance_id) 220 Ok(code) => { in try_main() 236 Ok(()) in try_main() 299 Ok(instance_data) in verify_payload_with_instance_img() 456 Ok(()) in post_payload_work() 477 Ok(()) in mount_extra_apks() 505 Ok(unsafe { OwnedFd::from_raw_fd(raw_fd) }) in prepare_vm_payload_service_socket() 521 Ok(system_properties::read_bool(DEBUGGABLE_PROP, true)?) in is_debuggable() 534 Ok(dp) => dp, in get_debug_policy_bool() [all …]
|
/packages/modules/Virtualization/libs/apkverify/src/ |
D | v3.rs | 105 Ok((supported.pop().unwrap().into_inner(), sections)) in extract_signer_and_apk_sections() 116 Ok(self in strongest_signature() 130 Ok(digest.digest.as_ref().to_vec().into_boxed_slice()) in find_digest_by_algorithm() 141 Ok(()) in verify_signature() 205 Ok(verified_signed_data) in verify() 214 Ok(self.certificates.first().context("No certificates listed")?) in first_certificate_der() 222 Ok(self in find_digest_by_algorithm() 235 Ok(Self { in read_from_bytes() 247 Ok(Self { in read_from_bytes() 259 Ok(Signature { signature_algorithm_id: buf.read()?, signature: buf.read()? }) in read_from_bytes() [all …]
|
/packages/modules/Virtualization/service_vm/requests/src/ |
D | client_vm.rs | 115 Ok(certificate.to_der()?) in request_attestation() 141 Ok(()) in validate_service_vm_dice_chain_length() 177 Ok(client_vm_dice_chain) in validate_client_vm_dice_chain() 186 return Ok(()); in validate_vendor_partition_code_hash_if_exists() 196 Ok(()) in validate_vendor_partition_code_hash_if_exists() 214 Ok(()) in validate_kernel_authority_hash() 226 return Ok(()); in validate_kernel_code_hash() 233 return Ok(()); in validate_kernel_code_hash() 249 return Ok(true); in matches_any_kernel_code_hash() 252 Ok(false) in matches_any_kernel_code_hash() [all …]
|
/packages/modules/Virtualization/virtualizationservice/vfio_handler/src/ |
D | aidl.rs | 46 Ok(self.sysfs_path.clone()) in getSysfsPath() 50 Ok(self.dtbo_label.clone()) in getDtboLabel() 93 Ok(BoundDevice::new_binder(d.sysfsPath.clone(), d.dtboLabel.clone())) in bindDevicesToVfioDriver() 116 Ok(()) in writeVmDtbo() 188 Ok(()) in check_platform_device() 207 return Ok(()); in try_bind_driver() 245 Ok(()) in try_bind_driver() 260 Ok(()) in bind_device() 276 Ok(()) in unbind_device() 286 Ok(PathBuf::from(format!("/dev/block/by-name/dtbo{slot_suffix}"))) in get_dtbo_img_path() [all …]
|
/packages/modules/Virtualization/authfs/src/ |
D | fusefs.rs | 82 Ok(()) in expect_empty_deletable_directory() 273 Ok(existing_inode) in add_entry_at_ro_dir_by_path() 287 Ok(new_inode) in add_entry_at_ro_dir_by_path() 308 Ok(new_inode) in add_entry_at_ro_dir_by_path() 353 Ok((new_inode, new_file_entry)) in create_new_entry_with_ref_count() 359 Ok(new_inode) in create_new_entry_with_ref_count() 373 Ok((Some(handle), FuseOpenOptions::empty())) in open_dir_store_snapshot() 382 Ok(()) in check_access_mode() 428 Ok(st) in create_stat() 456 Ok(st) in create_dir_stat() [all …]
|