Home
last modified time | relevance | path

Searched refs:try_into (Results 1 – 8 of 8) sorted by relevance

/system/security/keystore2/src/
Did_rotation.rs109 let mtime = TimeVal::seconds(mtime.as_secs().try_into().unwrap()); in test_had_factory_reset_since_id_rotation()
113 let atime = TimeVal::seconds(atime.as_secs().try_into().unwrap()); in test_had_factory_reset_since_id_rotation()
Dlegacy_blob.rs330 buffer[Self::LENGTH_OFFSET..Self::LENGTH_OFFSET + 4].try_into().unwrap(), in new_from_stream()
383 value: BlobValue::Decrypted(value.try_into().context("In new_from_stream.")?), in new_from_stream()
1110 data.try_into() in load_super_key()
1223 &BlobValue::Decrypted(REAL_LEGACY_BLOB_PAYLOAD.try_into().unwrap()) in read_golden_key_blob_test()
1258 assert_eq!(blob.value(), &BlobValue::Decrypted(DECRYPTED_PAYLOAD.try_into().unwrap())); in read_aes_gcm_encrypted_key_blob_test()
1372 assert_eq!(value, BlobValue::Decrypted(LOADED_USRPKEY_NON_AUTHBOUND.try_into()?)); in test_legacy_blobs()
Dkey_parameter.rs219 fn try_into(self) -> Result<i64, Self::Error> { in try_into() method
229 fn try_into(self) -> Result<i32, Self::Error> { in try_into() method
239 fn try_into(self) -> Result<Vec<u8>, Self::Error> { in try_into() method
280 <$vtype>::from_primitive(p.try_into()?)
Ddatabase.rs382 Ok(Self(SystemTime::now().duration_since(SystemTime::UNIX_EPOCH)?.as_millis().try_into()?)) in now()
416 fn try_into(self) -> Result<SystemTime, Self::Error> { in try_into() method
426 let then_epoch = Duration::from_millis(self.0.try_into()?); in try_into()
447 Ok(Self(t.duration_since(SystemTime::UNIX_EPOCH)?.as_millis().try_into()?)) in try_from()
/system/core/libstats/pull_rust/
Dstats_pull.rs77 additive_fields.len().try_into().expect("Cannot convert length to i32"), in set_additive_fields()
88 .try_into() in get_additive_fields()
/system/bt/gd/rust/shim/src/
Dmessage_loop_thread.rs77 tokio::time::sleep(Duration::from_millis(delay_ms.try_into().unwrap_or(0))).await; in main_message_loop_thread_do_delayed()
/system/bt/gd/rust/linux/stack/src/
Dlib.rs52 BDAddr { val: raw_addr.clone().try_into().unwrap() } in from_byte_vec()
/system/security/keystore2/src/crypto/
Dlib.rs224 let max_size: usize = EVP_MAX_MD_SIZE.try_into().unwrap(); in hkdf_extract()
326 let out_len = result.try_into().unwrap(); in ecdh_compute_key()