/packages/modules/Bluetooth/system/rust/src/gatt/server/ |
D | att_server_bearer.rs | 265 conn.as_ref().handle_packet( in test_single_transaction() 277 conn.as_ref().handle_packet( in test_sequential_transactions() 283 conn.as_ref().handle_packet( in test_sequential_transactions() 332 conn.as_ref().handle_packet(req1.try_into().unwrap()); in test_concurrent_transaction_failure() 335 conn.as_ref().handle_packet(req2.try_into().unwrap()); in test_concurrent_transaction_failure() 367 spawn_local(conn.as_ref().send_indication(VALID_HANDLE, vec![1, 2, 3])); in test_indication_confirmation() 371 conn.as_ref().handle_packet(att::AttHandleValueConfirmation {}.try_into().unwrap()); in test_indication_confirmation() 386 spawn_local(conn.as_ref().send_indication(VALID_HANDLE, vec![1, 2, 3])); in test_sequential_indications() 390 conn.as_ref().handle_packet(att::AttHandleValueConfirmation {}.try_into().unwrap()); in test_sequential_indications() 393 spawn_local(conn.as_ref().send_indication(VALID_HANDLE, vec![1, 2, 3])); in test_sequential_indications() [all …]
|
/packages/modules/Virtualization/android/vm/src/ |
D | run.rs | 83 service.as_ref(), in command_run_app() 108 service.as_ref(), in command_run_app() 114 set_encrypted_storage(service.as_ref(), path, storage_size)?; in command_run_app() 122 config.microdroid.vendor().as_ref().map(|p| open_parcel_file(p, false)).transpose()?; in command_run_app() 200 service.as_ref(), in command_run_app() 203 config.debug.console.as_ref().map(|p| p.as_ref()), in command_run_app() 204 config.debug.console_in.as_ref().map(|p| p.as_ref()), in command_run_app() 205 config.debug.log.as_ref().map(|p| p.as_ref()), in command_run_app() 206 config.debug.dump_device_tree.as_ref().map(|p| p.as_ref()), in command_run_app() 281 get_service()?.as_ref(), in command_run() [all …]
|
D | main.rs | 181 self.vendor.as_ref() in vendor() 400 Opt::List => command_list(get_service()?.as_ref()), in main() 403 command_create_partition(get_service()?.as_ref(), &path, size, partition_type) in main() 406 command_create_idsig(get_service()?.as_ref(), &apk, &path) in main()
|
/packages/modules/Virtualization/guest/apkdmverity/src/ |
D | main.rs | 105 (apk.as_ref().to_path_buf(), util::blkgetsize64(apk.as_ref())?) in enable_verity() 242 run_test(apk.as_ref(), idsig.as_ref(), "correct", |ctx| { in correct_inputs() 265 run_test(modified_apk.as_slice(), idsig.as_ref(), "incorrect_apk", |ctx| { in incorrect_apk() 290 run_test(apk.as_ref(), modified_idsig.as_slice(), "incorrect_merkle_tree", |ctx| { in incorrect_merkle_tree() 306 run_test(apk.as_ref(), idsig.as_ref(), "tampered_apk", |ctx| { in tampered_apk() 329 run_test(apk.as_ref(), idsig.as_ref(), "tampered_idsig", |ctx| { in tampered_idsig() 406 apk.as_ref(), in correct_custom_roothash() 407 idsig.as_ref(), in correct_custom_roothash()
|
/packages/modules/Virtualization/guest/microdroid_manager/src/ |
D | dice.rs | 39 code_hash_ctx.update(instance_data.apk_data.root_hash.as_ref()); in dice_derivation() 40 authority_hash_ctx.update(instance_data.apk_data.cert_hash.as_ref()); in dice_derivation() 42 code_hash_ctx.update(extra_apk.root_hash.as_ref()); in dice_derivation() 43 authority_hash_ctx.update(extra_apk.cert_hash.as_ref()); in dice_derivation() 46 code_hash_ctx.update(apex.root_digest.as_ref()); in dice_derivation() 47 authority_hash_ctx.update(apex.public_key.as_ref()); in dice_derivation() 116 name: format!("apex:{}", apex.manifest_name.as_ref().unwrap()), in for_apex()
|
/packages/modules/Uwb/service/uci/jni/src/ |
D | dispatcher.rs | 66 let logger = log_file_factory.build_logger(chip_id.as_ref()).ok_or(Error::Unknown)?; in new() 68 UciHalAndroid::new(chip_id.as_ref()), in new() 70 chip_id: chip_id.as_ref().to_owned(), in new() 79 manager_map.insert(chip_id.as_ref().to_string(), manager); in new() 158 self.read_lock.as_ref().unwrap().manager_map.get(&self.chip_id).unwrap() in deref() 196 self.read_lock.as_ref().unwrap() in deref()
|
/packages/modules/Virtualization/libs/devicemapper/src/ |
D | util.rs | 31 while !path.as_ref().exists() { in wait_for_path() 33 bail!("{:?} not found. TIMEOUT.", path.as_ref()); in wait_for_path() 46 while !path.as_ref().exists() { in wait_for_path_disappears() 48 bail!("{:?} not disappearing. TIMEOUT.", path.as_ref()); in wait_for_path_disappears()
|
/packages/modules/Virtualization/libs/apkverify/src/ |
D | v4.rs | 52 computed_digest == extracted_digest.as_ref(), in get_apk_digest() 327 assert_eq!("", hex::encode(hi.salt.as_ref())); in parse_idsig_file() 330 hex::encode(hi.raw_root_hash.as_ref()) in parse_idsig_file() 336 hex::encode(si.apk_digest.as_ref()) in parse_idsig_file() 338 assert_eq!("", hex::encode(si.additional_data.as_ref())); in parse_idsig_file() 342 hex::encode(si.signature.as_ref()) in parse_idsig_file() 376 created.hashing_info.raw_root_hash.as_ref(), in digest_from_apk() 377 golden.hashing_info.raw_root_hash.as_ref() in digest_from_apk()
|
D | v3.rs | 77 let apk = File::open(apk_path.as_ref())?; in verify() 84 let apk = File::open(apk_path.as_ref())?; in extract_signed_data() 130 Ok(digest.digest.as_ref().to_vec().into_boxed_slice()) in find_digest_by_algorithm() 187 computed == digest.digest.as_ref(), in verify() 190 hex::encode(digest.digest.as_ref()), in verify() 272 Ok(PKey::public_key_from_der(raw_public_key.as_ref())?) in read_from_bytes()
|
D | hashtree.rs | 46 hash_one_block(&data, &salt, block_size, algorithm)?.as_ref().to_vec() in from() 49 hash_one_block(first_block, &salt, block_size, algorithm)?.as_ref().to_vec() in from() 91 level0.write_all(h.as_ref()).unwrap(); in generate_hash_tree() 105 cur.write_all(h.as_ref()).unwrap(); in generate_hash_tree()
|
/packages/modules/Virtualization/android/virtmgr/src/ |
D | aidl.rs | 700 dtbo.as_ref() in create_vm_internal() 747 let config = config.as_ref(); in create_vm_internal() 804 .flat_map(|disk| disk.image.as_ref()) in create_vm_internal() 865 .as_ref() in create_vm_internal() 877 .as_ref() in create_vm_internal() 887 .as_ref() in create_vm_internal() 916 .as_ref() in create_vm_internal() 926 config.audioConfig.as_ref().map(AudioConfig::new) in create_vm_internal() 933 .as_ref() in create_vm_internal() 948 .as_ref() in create_vm_internal() [all …]
|
D | debug_config.rs | 272 DebugPolicy::from_overlay("avf_debug_policy_with_ramdump.dtbo".as_ref()).unwrap(); in test_read_avf_debug_policy_with_ramdump() 284 DebugPolicy::from_overlay("avf_debug_policy_without_ramdump.dtbo".as_ref()).unwrap(); in test_read_avf_debug_policy_without_ramdump() 296 DebugPolicy::from_overlay("avf_debug_policy_with_adb.dtbo".as_ref()).unwrap(); in test_read_avf_debug_policy_with_adb() 308 DebugPolicy::from_overlay("avf_debug_policy_without_adb.dtbo".as_ref()).unwrap(); in test_read_avf_debug_policy_without_adb() 320 DebugPolicy::from_overlay("/a/does/not/exist/path.dtbo".as_ref()).unwrap(); in test_invalid_sysprop_disables_debug_policy()
|
/packages/modules/Virtualization/libs/bssl/src/ |
D | ec_key.rs | 130 EC_KEY_set_public_key_affine_coordinates(ec_key.0.as_ptr(), x.as_ref(), y.as_ref()) in from_cose_public_key() 258 ec_group.as_ref(), in public_key_coordinates() 343 let len = unsafe { CBB_len(cbb.as_ref()) }; in ec_private_key() 479 unsafe { EC_GROUP_get_curve_name(self.as_ref()) } in curve_nid() 522 fn as_ref(&self) -> &EC_GROUP { in as_ref() method 583 fn as_ref(&self) -> &BIGNUM { in as_ref() method 586 unsafe { self.0.as_ref() } in as_ref()
|
D | digest.rs | 42 Self(unsafe { p.as_ref().unwrap() }) in sha256() 52 Self(unsafe { p.as_ref().unwrap() }) in sha384() 62 Self(unsafe { p.as_ref().unwrap() }) in sha512()
|
/packages/modules/Bluetooth/offload/leaudio/hci/ |
D | proxy.rs | 249 Service::reset(Arc::downgrade(state.arbiter.as_ref().unwrap())); in in_evt() 326 let arbiter = state.arbiter.as_ref().unwrap(); in in_evt() 334 let arbiter = state.arbiter.as_ref().unwrap(); in in_evt() 351 let arbiter = state.arbiter.as_ref().unwrap(); in in_evt() 363 let arbiter = state.arbiter.as_ref().unwrap(); in in_evt() 370 let Some(arbiter) = state.arbiter.as_ref() else { in in_evt() 415 let arbiter = state.arbiter.as_ref().unwrap(); in out_iso()
|
/packages/modules/Bluetooth/system/rust/src/gatt/server/transactions/helpers/ |
D | payload_accumulator.rs | 65 accumulator.into_vec().as_ref(), in test_push_serialize() 85 accumulator.into_vec().as_ref(), in test_push_past_capacity() 104 accumulator.into_vec().as_ref(), in test_push_to_capacity()
|
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/ |
D | command_handler.rs | 563 let adapter_dbus = context.adapter_dbus.as_ref().unwrap(); in cmd_adapter() 564 let qa_dbus = context.qa_dbus.as_ref().unwrap(); in cmd_adapter() 672 self.lock_context().adapter_dbus.as_ref().unwrap().set_name(name.to_string()); in cmd_adapter() 728 .as_ref() in cmd_battery() 799 let bonding_attempt = &self.lock_context().bonding_attempt.as_ref().cloned(); in cmd_bond() 804 bonding_attempt.as_ref().unwrap().address.to_string(), in cmd_bond() 911 let adapter = ctx.adapter_dbus.as_ref().unwrap(); in cmd_device() 978 .as_ref() in cmd_device() 1140 self.lock_context().gatt_dbus.as_ref().unwrap().client_connect( in cmd_gatt() 1157 self.lock_context().gatt_dbus.as_ref().unwrap().client_disconnect(client_id, addr); in cmd_gatt() [all …]
|
/packages/modules/Virtualization/guest/pvmfw/src/ |
D | bootargs.rs | 30 fn as_ref(&self) -> &str { in as_ref() method 131 remaining.as_ref().unwrap().name(), in check() 132 remaining.as_ref().unwrap().value() in check()
|
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/ |
D | build.rs | 8 paths.iter().map(|p| p.as_ref().as_os_str().to_str().unwrap()).collect() in paths_to_strs() 19 let stem = inputs[i].as_ref().file_stem().unwrap(); in gen_mod_rs()
|
/packages/modules/Virtualization/libs/libvmclient/src/ |
D | lib.rs | 220 console_out.as_ref(), in create() 221 console_in.as_ref(), in create() 222 log.as_ref(), in create() 223 dump_dt.as_ref(), in create()
|
/packages/modules/Bluetooth/system/rust/src/gatt/ |
D | ffi.rs | 189 self.0.as_ref().unwrap().on_server_read( in on_server_read() 211 self.0.as_ref().unwrap().on_server_write( in on_server_write() 232 self.0.as_ref().unwrap().on_indication_sent_confirmation( in on_indication_sent_confirmation() 248 self.0.as_ref().unwrap().on_execute( in on_execute() 414 trace!("send_response {conn_id:?}, {trans_id:?}, {:?}", value.as_ref().err()); in send_response()
|
D | server.rs | 90 database.on_bearer_ready(tcb_idx, bearer.as_ref()); in on_le_connect() 164 self.connections.get(&tcb_idx).map(|x| x.bearer.as_ref()) in get_bearer()
|
/packages/modules/Virtualization/libs/libservice_vm_manager/src/ |
D | lib.rs | 222 let instance_img = instance_img(service.as_ref(), instance_img_path)?; in protected_vm_instance() 232 let instance_id = get_or_allocate_instance_id(service.as_ref(), instance_id_file)?; in protected_vm_instance() 249 VmInstance::create(service.as_ref(), &config, console_out, console_in, log, dump_dt) in protected_vm_instance()
|
/packages/modules/Virtualization/libs/libservice_vm_requests/src/ |
D | rkp.rs | 55 let maced_public_key = build_maced_public_key(ec_key.cose_public_key()?, hmac_key.as_ref())?; in generate_ecdsa_p256_key_pair() 79 let public_key = validate_public_key(&key_to_sign, hmac_key.as_ref())?; in generate_certificate_request()
|
/packages/modules/Bluetooth/offload/hci/derive/ |
D | struct_data.rs | 84 let ident = &field.ident.as_ref().unwrap(); in derive_read() 136 let ident = &field.ident.as_ref().unwrap(); in derive_write()
|