/system/core/libcutils/ |
D | native_handle.cpp | 125 native_handle_t* clone = native_handle_create(handle->numFds, handle->numInts); in native_handle_clone() local 126 if (clone == NULL) return NULL; in native_handle_clone() 129 clone->data[i] = dup(handle->data[i]); in native_handle_clone() 130 if (clone->data[i] == -1) { in native_handle_clone() 131 clone->numFds = i; in native_handle_clone() 132 native_handle_close(clone); in native_handle_clone() 133 native_handle_delete(clone); in native_handle_clone() 138 memcpy(&clone->data[handle->numFds], &handle->data[handle->numFds], in native_handle_clone() 141 return clone; in native_handle_clone()
|
/system/libcppbor/tests/ |
D | cppbor_test.cpp | 998 auto clone = item.clone(); in TEST() local 999 EXPECT_EQ(clone->type(), cppbor::UINT); in TEST() 1000 EXPECT_NE(clone->asUint(), nullptr); in TEST() 1001 EXPECT_EQ(item, *clone->asUint()); in TEST() 1002 EXPECT_EQ(*clone->asUint(), Uint(10)); in TEST() 1007 auto clone = item.clone(); in TEST() local 1008 EXPECT_EQ(clone->type(), NINT); in TEST() 1009 EXPECT_NE(clone->asNint(), nullptr); in TEST() 1010 EXPECT_EQ(item, *clone->asNint()); in TEST() 1011 EXPECT_EQ(*clone->asNint(), Nint(-1000000)); in TEST() [all …]
|
/system/authgraph/core/src/ |
D | keyexchange.rs | 140 .try_push((arc::KE_NONCE, Value::Bytes(nonce_for_ke.0.clone().to_vec())))?; in create() 192 sink_ke_pub_key: key_for_ecdh.pub_key.clone(), in init() 194 sink_ke_nonce: own_nonce.clone(), in init() 195 source_ke_nonce: peer_nonce.clone(), in init() 196 sink_cert_chain: own_identity.cert_chain.clone(), in init() 197 source_cert_chain: peer_identity.cert_chain.clone(), in init() 205 SessionIdInput { sink_ke_nonce: own_nonce.clone(), source_ke_nonce: peer_nonce }, in init() 212 own_identity.clone(), in init() 213 peer_identity.clone(), in init() 291 sink_ke_nonce: peer_nonce.clone(), in finish() [all …]
|
/system/extras/profcollectd/libprofcollectd/ |
D | scheduler.rs | 63 let config = config.clone(); in schedule_periodic() 64 let trace_provider = self.trace_provider.clone(); in schedule_periodic() 98 let trace_provider = self.trace_provider.clone(); in one_shot() 111 let trace_provider = self.trace_provider.clone(); in process() 137 let provider = self.trace_provider.clone(); in start_thread_waiting_for_provider_ready() 138 let callbacks = self.provider_ready_callbacks.clone(); in start_thread_waiting_for_provider_ready()
|
/system/media/camera/docs/ |
D | metadata_validate.py | 201 for clone in soup.find_all("clone"): 202 clone_entry = clone['entry'] 203 clone_kind = clone['kind'] 205 parent_kind = find_kind(clone) 218 clone_name = fully_qualified_name(clone) 235 clone_hal_version = clone.get('hal_version')
|
/system/keymint/hal/src/ |
D | keymint.rs | 120 Some(k) => Some(k.clone().try_innto().map_err(failed_conversion)?), in generateKey() 142 Some(k) => Some(k.clone().try_innto().map_err(failed_conversion)?), in importKey() 215 Some(t) => Some(t.clone().try_innto().map_err(failed_conversion)?), in begin() 223 let op = Operation::new_as_binder(self.channel.clone(), rsp.ret.op_handle); in begin() 375 Some(t) => Some(t.clone().try_innto().map_err(failed_conversion)?), in updateAad() 377 timestamp_token: timeStampToken.map(|t| t.clone().innto()), in updateAad() 380 let mut req = req_template.clone(); in updateAad() 403 Some(t) => Some(t.clone().try_innto().map_err(failed_conversion)?), in update() 405 timestamp_token: timeStampToken.map(|t| t.clone().innto()), in update() 409 let mut req = req_template.clone(); in update() [all …]
|
D | tests.rs | 42 self.req.lock().unwrap().clone() in req_data() 50 Ok(self.rsp.clone()) in execute() 68 let imp = keymint::Device::new(Arc::new(Mutex::new(channel.clone()))); in test_method_roundtrip() 93 let imp = keymint::Device::new(Arc::new(Mutex::new(channel.clone()))); in test_method_err_roundtrip()
|
/system/keymint/derive/tests/ |
D | integration_test.rs | 27 let want_value = want.clone().to_cbor_value().unwrap(); in test_derive_named_struct_roundtrip() 40 let want_value = want.clone().to_cbor_value().unwrap(); in test_derive_unnamed_struct_roundtrip() 57 let want_value = want.clone().to_cbor_value().unwrap(); in test_derive_numeric_enum_roundtrip()
|
/system/core/trusty/keymint/src/ |
D | keymint_hal_main.rs | 116 let km_service = keymint::Device::new_as_binder(tipc_channel.clone()); in inner_main() 126 let rpc_service = rpc::Device::new_as_binder(tipc_channel.clone()); in inner_main() 136 let sclock_service = secureclock::Device::new_as_binder(tipc_channel.clone()); in inner_main() 146 let ssecret_service = sharedsecret::Device::new_as_binder(tipc_channel.clone()); in inner_main()
|
/system/secretkeeper/dice_policy/tests/ |
D | test.rs | 65 rot_key.clone(), in get_example() 69 constrained_array.clone(), in get_example() 113 rot_key.clone(), in get_example() 201 3 => Value::Bytes(nested_payload.clone().to_vec().unwrap()), in get_dice_chain_helper() 205 let payload0 = payload0.clone().to_vec().unwrap(); in get_dice_chain_helper() 223 let payload1 = payload1.clone().to_vec().unwrap(); in get_dice_chain_helper() 258 DicePolicy::from_slice(&dice_policy.clone().to_vec().unwrap()).unwrap(); in policy_enc_dec_test()
|
/system/keymint/ta/src/ |
D | secret.rs | 30 Ok(self.shared_secret_params.as_ref().unwrap().clone()) // safe: filled above in get_shared_secret_params() 92 let mut hmac_op = imp.begin(self.key.clone().into(), Digest::Sha256)?; in hmac() 98 Some(self.key.clone()) in get_hmac_key()
|
/system/authgraph/wire/src/ |
D | tests.rs | 28 let data = want.clone().into_vec().unwrap(); in test_init_req_round_trip() 56 let data = want.clone().into_vec().unwrap(); in test_init_rsp_round_trip()
|
/system/security/keystore2/src/ |
D | globals.rs | 67 let mut db = KeystoreDB::new(&db_path, Some(GC.clone())).expect("Failed to open database."); in create_thread_local_db() 111 .map(|(dev, hw_info)| ((*dev).clone(), (*hw_info).clone(), *uuid)) in dev_by_uuid() 115 self.devices_by_uuid.values().map(|(dev, _)| dev.clone()).collect() in devices() 164 static ref GC: Arc<Gc> = Arc::new(Gc::new_init_with(ASYNC_TASK.clone(), || { 174 SUPER_KEY.clone(), 411 Ok(dev.clone()) in get_timestamp_service() 414 *ts_device = Some(dev.clone()); in get_timestamp_service()
|
D | service.rs | 67 id_rotation_state.clone(), in new_native_binder() 81 let uuid_by_sec_level = result.uuid_by_sec_level.clone(); in new_native_binder() 84 (create_thread_local_db(), uuid_by_sec_level, LEGACY_BLOB_LOADER.clone()) in new_native_binder() 104 Ok(dev.clone()) in get_i_sec_level_by_uuid() 119 Ok(dev.clone()) in get_security_level() 232 alias: Some(alias.clone()), in update_subcomponent() 235 (Domain::SELINUX, Some(_)) => key.clone(), in update_subcomponent()
|
/system/keymaster/contexts/ |
D | soft_attestation_cert.cpp | 306 retval = CertificateChain::clone(kRsaAttestChain); in getAttestationChain() 310 retval = CertificateChain::clone(kEcAttestChain); in getAttestationChain()
|
D | pure_soft_remote_provisioning_context.cpp | 173 auto clone = bcc_.clone(); in BuildProtectedDataPayload() local 174 if (!clone->asArray()) { in BuildProtectedDataPayload() 177 bcc = std::move(*clone->asArray()); in BuildProtectedDataPayload() 224 .add(std::move(*bcc_.clone()->asArray()) /* DiceCertChain */) in BuildCsr()
|
/system/keymint/tests/src/ |
D | lib.rs | 360 let mut op = cmac.begin(key.clone().into()).unwrap(); in test_aes_cmac() 423 let aes_key = aes::Key::new(key.clone()).unwrap(); in test_aes_gcm() 427 aes::GcmMode::GcmTag16 { nonce: iv.clone().try_into().unwrap() }, in test_aes_gcm() 436 let aes_key = aes::Key::new(key.clone()).unwrap(); in test_aes_gcm() 440 aes::GcmMode::GcmTag16 { nonce: iv.clone().try_into().unwrap() }, in test_aes_gcm() 450 let aes_key = aes::Key::new(key.clone()).unwrap(); in test_aes_gcm() 453 aes::GcmMode::GcmTag12 { nonce: iv.clone().try_into().unwrap() }, in test_aes_gcm() 475 let mut corrupt_ct = got_ct.clone(); in test_aes_gcm() 506 let des_key = des::Key::new(key.clone()).unwrap(); in test_des() 508 .begin(des_key.clone().into(), des::Mode::EcbNoPadding, SymmetricOperation::Encrypt) in test_des()
|
/system/keymint/tests/src/bin/ |
D | auth-keyblob-parse.rs | 99 let mut combined = keyblob.hw_enforced.clone(); in process() 105 let raw_key = keyblob.key_material.clone(); in process() 149 let mut filtered = keyblob.hw_enforced.clone(); in process() 155 let mut keygen_params = filtered.clone(); in process()
|
/system/secretkeeper/client/src/ |
D | authgraph_dev.rs | 98 Ok(self.per_boot_key.clone()) in get_or_create_per_boot_key() 102 Ok(self.per_boot_key.clone()) in get_per_boot_key() 106 let (sign_key, identity) = self.identity.clone(); in get_identity()
|
/system/secretkeeper/core/src/ |
D | ta.rs | 165 let cose_key = self.identity.cert_chain.root_key.clone().get_key(); in process_bootloader() 265 Some(info.session_keys.peer_cert_chain.clone()) 347 let recv_key: &AesKey = &session_artifacts.session_keys.recv_key.clone(); 364 let send_key: &AesKey = &session_artifacts.session_keys.send_key.clone(); 374 Ok(self.per_boot_key.clone()) in get_per_boot_key() 377 Ok((Some(self.identity_sign_key.clone()), self.identity.clone())) in get_identity() 417 .clone()
|
/system/secretkeeper/comm/tests/ |
D | wire.rs | 37 let data = input.clone().to_vec().unwrap(); in wire_req_roundtrip() 56 let data = input.clone().to_vec().unwrap(); in wire_rsp_roundtrip()
|
/system/tools/aidl/tests/rust/ |
D | test_client.rs | 226 assert_eq!(returned, Ok(input.clone())); in test_repeat_parcelable() 332 assert_eq!(got.iter().map(|s| s.GetName()).collect::<Result<Vec<_>, _>>(), Ok(names.clone())); in test_binder_array_exchange() 348 Some(names.clone()) in test_binder_nullable_array_exchange() 366 Some(names.clone()) in test_interface_list_exchange() 618 test_reverse_nullable_array!(service, ReverseUtf8CppStringList, inputs.clone()); in test_utf8_string() 697 ep.ext.set_parcelable(Arc::clone(&ext)).expect("error setting parcelable"); in test_repeat_extendable_parcelable() 719 let result = holder.ext.set_parcelable(Arc::clone(&parcelable)); 768 let result = holder.ext.set_parcelable(Arc::clone(&parcelable)); in test_vintf_parcelable_holder_cannot_contain_not_vintf_parcelable() 779 let result = holder.ext.set_parcelable(Arc::clone(&parcelable)); in test_vintf_parcelable_holder_cannot_contain_unstable_parcelable() 793 ep.ext.set_parcelable(Arc::clone(&ext)).unwrap(); in test_read_write_extension() [all …]
|
/system/security/keystore2/rkpd_client/src/ |
D | lib.rs | 121 self.registration_tx.send(Ok(registration.clone())); in onSuccess() 180 keyBlob: key.keyBlob.clone(), in onSuccess() 181 encodedCertChain: key.encodedCertChain.clone(), in onSuccess() 337 keyBlob: key.keyBlob.clone(), in new_native_binder() 338 encodedCertChain: key.encodedCertChain.clone(), in new_native_binder() 363 keyBlob: values.key.keyBlob.clone(), in getKey() 364 encodedCertChain: values.key.encodedCertChain.clone(), in getKey() 367 let get_key_cb = cb.clone(); in getKey() 393 let store_cb = cb.clone(); in storeUpgradedKeyAsync()
|
/system/keymint/common/src/keyblob/ |
D | sdd_mem.rs | 70 self.slots[idx] = Some(sdd.clone()); in new_secret() 83 Some(data) => Ok(data.clone()), in get_secret()
|
/system/authgraph/boringssl/src/ |
D | rng.rs | 29 Box::new(self.clone()) in box_clone()
|