/packages/modules/Virtualization/service_vm/comm/src/ |
D | message.rs | 18 use alloc::vec::Vec; 23 type MacedPublicKey = Vec<u8>; 44 Reverse(Vec<u8>), 77 pub csr: Vec<u8>, 80 pub remotely_provisioned_key_blob: Vec<u8>, 87 pub remotely_provisioned_cert: Vec<u8>, 96 Reverse(Vec<u8>), 102 GenerateCertificateRequest(Vec<u8>), 107 RequestClientVmAttestation(Vec<u8>), 237 pub keys_to_sign: Vec<MacedPublicKey>, [all …]
|
D | csr.rs | 19 use alloc::vec::Vec; 30 pub dice_cert_chain: Vec<u8>, 35 pub signed_csr_payload: Vec<u8>, 40 pub fn into_cbor_vec(self) -> coset::Result<Vec<u8>> { in into_cbor_vec() 72 pub public_key: Vec<u8>, 77 pub challenge: Vec<u8>, 82 pub fn into_cbor_vec(self) -> coset::Result<Vec<u8>> { in into_cbor_vec()
|
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
D | bluetooth_adv.rs | 63 pub service_uuids: Vec<Uuid>, 65 pub solicit_uuids: Vec<Uuid>, 67 pub transport_discovery_data: Vec<Vec<u8>>, 69 pub manufacturer_data: HashMap<ManfId, Vec<u8>>, 71 pub service_data: HashMap<String, Vec<u8>>, 256 fn append_adv_data(dest: &mut Vec<u8>, ad_type: u8, ad_payload: &[u8]) { in append_adv_data() 263 fn append_uuids(dest: &mut Vec<u8>, ad_types: &[u8; 3], uuids: &Vec<Uuid>) { in append_uuids() 264 let mut uuid16_bytes = Vec::<u8>::new(); 265 let mut uuid32_bytes = Vec::<u8>::new(); 266 let mut uuid128_bytes = Vec::<u8>::new(); [all …]
|
D | bluetooth_admin.rs | 23 fn set_allowed_services(&mut self, services: Vec<Uuid>) -> bool; in set_allowed_services() 25 fn get_allowed_services(&self) -> Vec<Uuid>; in get_allowed_services() 41 pub service_blocked: Vec<Uuid>, 48 fn on_service_allowlist_changed(&mut self, allowlist: Vec<Uuid>); in on_service_allowlist_changed() 92 fn get_blocked_services(&self, remote_uuids: &Vec<Uuid>) -> Vec<Uuid> { in get_blocked_services() 96 fn get_affected_status(&self, blocked_services: &Vec<Uuid>) -> bool { in get_affected_status() 119 let allowed_services: Vec<Uuid> = json in load_config_from_json() 143 .collect::<Vec<String>>() in get_config_string() 149 fn new_device_policy_effect(&self, uuids: Option<Vec<Uuid>>) -> Option<PolicyEffect> { in new_device_policy_effect() 173 properties: &Vec<BluetoothProperty>, in on_remote_device_properties_changed() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/dbus_projection/tests/ |
D | conversions.rs | 26 bytes: Vec<u8>, 27 dict: HashMap<String, Vec<i32>>, 28 nested: Vec<Vec<String>>, 29 recursive: Vec<SomeStruct>, 37 bytes: Vec<u8>, 38 dict: HashMap<String, Vec<i32>>, 39 nested: Vec<Vec<String>>, 40 recursive: Vec<SomeStruct>, 46 items: Vec<(String, Box<dyn RefArg>)>, 155 (String::from("bytes"), wrap_variant(Vec::<u8>::new())), in test_dbus_propmap_success() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/ |
D | adv_parser.rs | 57 pub fn extract_service_uuids(bytes: &[u8]) -> Vec<Uuid> { in extract_service_uuids() 83 pub fn extract_service_data(bytes: &[u8]) -> HashMap<String, Vec<u8>> { in extract_service_data() 104 pub fn extract_manufacturer_data(bytes: &[u8]) -> HashMap<u16, Vec<u8>> { in extract_manufacturer_data() 118 let payload: Vec<u8> = vec![ in test_extract_flags() 147 let payload: Vec<u8> = vec![2, FLAGS, 3]; in test_extract_service_uuids() 151 let payload: Vec<u8> = vec![ in test_extract_service_uuids() 205 let payload: Vec<u8> = vec![2, FLAGS, 3]; in test_extract_name() 209 let payload: Vec<u8> = vec![2, FLAGS, 3, 5, COMPLETE_LOCAL_NAME, 116, 101, 115, 116]; in test_extract_name() 213 let payload: Vec<u8> = vec![2, FLAGS, 3, 5, SHORTENED_LOCAL_NAME, 116, 101, 115, 116]; in test_extract_name() 220 let payload: Vec<u8> = vec![2, FLAGS, 3]; in test_extract_service_data() [all …]
|
D | socket.rs | 60 data: Vec<u8>, 64 fn write_to_wire(&self) -> Vec<u8> { in write_to_wire() 65 let mut v: Vec<u8> = Vec::new(); in write_to_wire() 111 data: Vec::new(), in from() 147 ReadIndexList { num_intf: u16, interfaces: Vec<u16> }, 175 pub fn to_data(&self) -> Vec<u8> { in to_data() 176 let mut v: Vec<u8> = Vec::new(); in to_data() 223 let interfaces: Vec<u16> = rest in try_from() 382 x if x > 0 => data_arr[..x].iter().map(|x| *x).collect::<Vec<u8>>(), in read_mgmt_packet() 383 _ => Vec::new(), in read_mgmt_packet()
|
/packages/modules/Virtualization/virtualizationservice/src/ |
D | maintenance.rs | 205 let secret_ids: Vec<SecretId> = vm_ids.iter().map(|id| SecretId { id: *id }).collect(); in delete_ids_batch() 226 let mut users: Vec<i32> = owners.iter().map(|(u, _a)| *u).collect(); in reconcile() 240 let mut apps: Vec<i32> = owners in reconcile() 259 let missing_apps: Vec<i32> = apps in reconcile() 309 history: Arc<Mutex<Vec<SkOp>>>, 315 DeleteIds(Vec<VmId>), 320 fn processSecretManagementRequest(&self, _req: &[u8]) -> binder::Result<Vec<u8>> { in processSecretManagementRequest() 341 fn new_test_state(history: Arc<Mutex<Vec<SkOp>>>, batch_size: usize) -> State { in new_test_state() 354 gone_users: Vec<i32>, 355 gone_apps: Vec<i32>, [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/ |
D | iface_bluetooth_gatt.rs | 73 services: Vec<BluetoothGattService>, in on_search_complete() 85 value: Vec<u8>, in on_characteristic_read() 106 value: Vec<u8>, in on_descriptor_read() 117 fn on_notify(&mut self, addr: RawAddress, handle: i32, value: Vec<u8>) { in on_notify() 208 value: Vec<u8>, in on_characteristic_write_request() 223 value: Vec<u8>, in on_descriptor_write_request() 331 descriptors: Vec<BluetoothGattDescriptor>, 339 characteristics: Vec<BluetoothGattCharacteristic>, 340 included_services: Vec<BluetoothGattService>, 363 service_uuids: Vec<Uuid>, [all …]
|
/packages/modules/Virtualization/libs/dice/open_dice/src/ |
D | retry.rs | 27 use alloc::vec::Vec; 41 bcc: Vec<u8>, 59 fn retry_with_measured_buffer<F>(mut f: F) -> Result<Vec<u8>> in retry_with_measured_buffer() 61 F: FnMut(&mut Vec<u8>) -> Result<usize>, in retry_with_measured_buffer() 63 let mut buffer = Vec::new(); in retry_with_measured_buffer() 76 pub fn retry_bcc_format_config_descriptor(values: &DiceConfigValues) -> Result<Vec<u8>> { in retry_bcc_format_config_descriptor() 112 ) -> Result<(CdiValues, Vec<u8>)> { in retry_dice_main_flow() 135 ) -> Result<Vec<u8>> {
|
/packages/modules/Virtualization/authfs/tests/common/src/ |
D | open_then_run.rs | 47 ro_file_fds: Vec<OwnedFdMapping>, 48 rw_file_fds: Vec<OwnedFdMapping>, 49 dir_fds: Vec<OwnedFdMapping>, 50 cmdline_args: Vec<String>, 56 ) -> Result<Vec<OwnedFdMapping>> in parse_and_create_file_mapping() 64 let strs: Vec<&str> = option.split(':').collect(); in parse_and_create_file_mapping() 74 Ok(Vec::new()) in parse_and_create_file_mapping() 137 let cmdline_args: Vec<_> = in parse_args() 150 let mut fd_mappings = Vec::new(); in try_main()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/ |
D | le_audio.rs | 178 metadata: Vec<SourceMetadata>, in source_metadata_changed() 180 fn sink_metadata_changed(self: Pin<&mut LeAudioClientIntf>, metadata: Vec<SinkMetadata>); in sink_metadata_changed() 204 local_input_capa_codec_conf: &Vec<BtLeAudioCodecConfig>, in le_audio_audio_local_codec_capabilities_callback() 205 local_output_capa_codec_conf: &Vec<BtLeAudioCodecConfig>, in le_audio_audio_local_codec_capabilities_callback() 211 input_selectable_codec_conf: &Vec<BtLeAudioCodecConfig>, in le_audio_audio_group_codec_conf_callback() 212 output_selectable_codec_conf: &Vec<BtLeAudioCodecConfig>, in le_audio_audio_group_codec_conf_callback() 478 AudioLocalCodecCapabilities(Vec<BtLeAudioCodecConfig>, Vec<BtLeAudioCodecConfig>), 483 Vec<BtLeAudioCodecConfig>, 484 Vec<BtLeAudioCodecConfig>, 529 &Vec<BtLeAudioCodecConfig>, &Vec<BtLeAudioCodecConfig>, [all …]
|
/packages/modules/Bluetooth/system/gd/rust/topshim/gatt/ |
D | gatt_ble_advertiser_shim.h | 55 void SetData(uint8_t adv_id, bool set_scan_rsp, ::rust::Vec<uint8_t> data); 60 ::rust::Vec<uint8_t> advertise_data, 61 ::rust::Vec<uint8_t> scan_response_data, 66 ::rust::Vec<uint8_t> advertise_data, 67 ::rust::Vec<uint8_t> scan_response_data, 69 ::rust::Vec<uint8_t> periodic_data, 73 void SetPeriodicAdvertisingData(uint8_t adv_id, ::rust::Vec<uint8_t> data);
|
/packages/modules/Virtualization/microdroid_manager/src/ |
D | dice.rs | 90 code_hash: Vec<u8>, 91 authority_hash: Vec<u8>, 125 fn build_subcomponent_list(instance_data: &MicrodroidData) -> Vec<Subcomponent> { in build_subcomponent_list() 141 subcomponents: Vec<Subcomponent>, in format_payload_config_descriptor() 142 ) -> Result<Vec<u8>> { in format_payload_config_descriptor() 143 let mut map = Vec::new(); in format_payload_config_descriptor() 157 subcomponents.into_iter().map(Subcomponent::into_value).collect::<Result<Vec<_>>>()?; in format_payload_config_descriptor() 169 const NO_SUBCOMPONENTS: Vec<Subcomponent> = Vec::new();
|
D | verify.rs | 82 sorted(glob(EXTRA_APK_PATH_PATTERN)?.collect::<Result<Vec<_>, _>>()?).collect::<Vec<_>>(); in verify_payload() 84 sorted(glob(EXTRA_IDSIG_PATH_PATTERN)?.collect::<Result<Vec<_>, _>>()?).collect::<Vec<_>>(); in verify_payload() 92 let extra_root_hashes_from_idsig: Vec<_> = extra_idsigs in verify_payload() 99 let extra_root_hashes_trustful: Vec<_> = if let Some(data) = saved_data { in verify_payload() 108 let extra_apk_names: Vec<_> = in verify_payload() 162 .collect::<Result<Vec<_>>>()?; in verify_payload()
|
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/ |
D | bt_adv.rs | 45 service_uuids: Vec::new(), in new() 46 solicit_uuids: Vec::new(), in new() 47 transport_discovery_data: Vec::new(), in new() 59 solicit_uuids: Vec::new(), in new() 60 transport_discovery_data: Vec::new(), in new() 93 let adv_ids: Vec<_> = context.adv_sets.iter().filter_map(|(_, s)| s.adv_id).collect(); in stop_all()
|
D | dbus_iface.rs | 112 impl_dbus_arg_from_into!(Uuid, Vec<u8>); 129 user1_data: Vec<u8>, 131 user2_data: Vec<u8>, 160 impl_dbus_arg_from_into!(SupportedFormatsList, Vec<u8>); 185 impl_dbus_arg_from_into!(SupportedScenarios, Vec<u8>); 186 impl_dbus_arg_from_into!(SupportedDependencies, Vec<u8>); 396 descriptors: Vec<BluetoothGattDescriptor>, 404 pub characteristics: Vec<BluetoothGattCharacteristic>, 405 pub included_services: Vec<BluetoothGattService>, 425 content: Vec<u8>, [all …]
|
/packages/modules/Virtualization/libs/cborutil/src/ |
D | lib.rs | 22 use alloc::vec::Vec; 32 pub fn serialize<T: ?Sized + Serialize>(v: &T) -> Result<Vec<u8>> { in serialize() 33 let mut data = Vec::new(); in serialize() 50 pub fn parse_value_array(data: &[u8], context: &'static str) -> Result<Vec<Value>> { in parse_value_array() 55 pub fn value_to_array(v: Value, context: &'static str) -> Result<Vec<Value>> { in value_to_array() 65 pub fn value_to_map(v: Value, context: &'static str) -> Result<Vec<(Value, Value)>> { in value_to_map() 88 pub fn value_to_bytes(v: Value, context: &'static str) -> Result<Vec<u8>> { in value_to_bytes()
|
/packages/modules/Virtualization/libs/apkverify/src/ |
D | hashtree.rs | 23 pub tree: Vec<u8>, 25 pub root_hash: Vec<u8>, 44 let mut data = Vec::new(); in from() 71 ) -> Result<Vec<u8>> { in generate_hash_tree() 131 fn calc_hash_levels(input_size: usize, block_size: usize, digest_size: usize) -> Vec<Range> { in calc_hash_levels() 134 let mut level_sizes = Vec::new(); in calc_hash_levels() 164 .collect::<Vec<_>>(); in calc_hash_levels() 181 fn zero_pad_salt(salt: &[u8], algorithm: MessageDigest) -> Vec<u8> { in zero_pad_salt()
|
/packages/modules/Virtualization/service_vm/requests/src/ |
D | rkp.rs | 22 use alloc::vec::Vec; 76 ) -> Result<Vec<u8>> { in generate_certificate_request() 78 let mut public_keys: Vec<Value> = Vec::new(); in generate_certificate_request() 103 let uds_certs = Value::Map(Vec::new()); in generate_certificate_request() 166 fn sign_message(message: &[u8], private_key: &PrivateKey) -> Result<Vec<u8>> { in sign_message() 189 let device_info_keys: Vec<&str> = in device_info_is_in_length_first_deterministic_order()
|
D | dice.rs | 19 use alloc::vec::Vec; 67 payloads: Vec<DiceChainEntryPayload>, 83 mut client_vm_dice_chain: Vec<Value>, in validate_signatures_and_parse_dice_chain() 92 let mut payloads = Vec::with_capacity(client_vm_dice_chain.len()); in validate_signatures_and_parse_dice_chain() 111 dice_entry_payloads: Vec<DiceChainEntryPayload>, in build() 165 pub(crate) fn microdroid_payload_components(&self) -> Result<Vec<SubComponent>> { in microdroid_payload_components() 392 fn sub_components(&self) -> Result<Vec<SubComponent>> { in sub_components() 427 pub(crate) code_hash: Vec<u8>, 428 pub(crate) authority_hash: Vec<u8>, 466 code_hash: OnceCell<Vec<u8>>, [all …]
|
/packages/modules/Virtualization/libs/bssl/src/ |
D | ec_key.rs | 22 use alloc::vec::Vec; 181 pub fn ecdsa_sign_der(&self, digest: &[u8]) -> Result<Vec<u8>> { in ecdsa_sign_der() 211 pub fn ecdsa_sign_cose(&self, digest: &[u8]) -> Result<Vec<u8>> { in ecdsa_sign_cose() 248 fn public_key_coordinates(&self) -> Result<(Vec<u8>, Vec<u8>)> { in public_key_coordinates() 349 fn ec_cose_signature_to_der(signature: &[u8]) -> Result<Vec<u8>> { in ec_cose_signature_to_der() 356 fn ec_der_signature_to_cose(signature: &[u8], coord_bytes: usize) -> Result<Vec<u8>> { in ec_der_signature_to_cose() 398 fn to_cose(&self, coord_bytes: usize) -> Result<Vec<u8>> { in to_cose() 437 fn to_der(&self) -> Result<Vec<u8>> { in to_der() 529 pub struct ZVec(Vec<u8>); 538 impl From<Vec<u8>> for ZVec { [all …]
|
/packages/modules/Virtualization/service_vm/fake_chain/src/ |
D | client_vm.rs | 21 use alloc::vec::Vec; 71 pub code_hash: Vec<u8>, 72 pub authority_hash: Vec<u8>, 150 fn fake_microdroid_payload_config_descriptor() -> CborResult<Vec<u8>> { in fake_microdroid_payload_config_descriptor() 151 let mut map = Vec::new(); in fake_microdroid_payload_config_descriptor() 161 pub fn fake_sub_components() -> Vec<SubComponent> { in fake_sub_components()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/macros/src/ |
D | lib.rs | 14 arg_pairs: Vec<(Type, Option<Type>)>, 15 stmts: Vec<Stmt>, 29 let mut arg_pairs: Vec<(Type, Option<Type>)> = Vec::new(); in parse() 30 let mut stmts: Vec<Stmt> = Vec::new(); in parse() 285 let cxx_ident = iter.map(|seg| seg.ident.to_string()).collect::<Vec<String>>().join("::"); in gen_cxx_extern_trivial()
|
/packages/modules/Virtualization/libs/apexutil/src/ |
D | lib.rs | 78 pub public_key: Vec<u8>, 80 pub root_digest: Vec<u8>, 107 fn find_root_digest(vbmeta: &VbMetaImage) -> Result<Vec<u8>, ApexParseError> { in find_root_digest() 118 public_key: Vec<u8>, 121 manifest: Vec<u8>, 127 let mut public_key = Vec::new(); in get_apex_zip_info() 137 let mut manifest = Vec::new(); in get_apex_zip_info()
|