Searched refs:try_from (Results 1 – 9 of 9) sorted by relevance
/system/bt/gd/rust/hci/custom_types/ |
D | lib.rs | 48 fn try_from(slice: &[u8]) -> Result<Self, Self::Error> { in try_from() method 50 match <[u8; 6]>::try_from(slice) { in try_from() 92 fn try_from(slice: &[u8]) -> Result<Self, Self::Error> { in try_from() method 94 match <[u8; 3]>::try_from(slice) { in try_from()
|
/system/security/keystore2/src/crypto/ |
D | zvec.rs | 95 fn try_from(v: &[u8]) -> Result<Self, Self::Error> { in try_from() method 107 fn try_from(mut v: Vec<u8>) -> Result<Self, Self::Error> { in try_from() method
|
D | lib.rs | 218 Ok(Password::Owned(ZVec::try_from(self.get_key())?)) in try_clone() 434 let negated_size = usize::try_from(-size).map_err(|_e| Error::ExtractSubjectFailed)?; in parse_subject_from_certificate() 454 let safe_size = usize::try_from(size).map_err(|_e| Error::ExtractSubjectFailed)?; in parse_subject_from_certificate()
|
/system/security/keystore2/src/ |
D | boot_level_keys.rs | 119 let level_zero_key = ZVec::try_from(level_zero_key) in get_level_zero_key() 245 let mut blkc = BootLevelKeyCache::new(ZVec::try_from(initial_key as &[u8])?); in test_output_is_consistent()
|
D | database.rs | 446 fn try_from(t: SystemTime) -> Result<Self, Self::Error> { in try_from() method 2096 private_key: ZVec::try_from(km_blob)?, in retrieve_attestation_key_and_cert_chain() 3288 params![DateTime::try_from(now)?, DateTime::try_from(then)?, DateTime::try_from(soon)?], in datetime() 3292 assert_eq!(DateTime::try_from(then)?, rows.next()?.unwrap().get(0)?); in datetime() 3293 assert_eq!(DateTime::try_from(now)?, rows.next()?.unwrap().get(0)?); in datetime() 3294 assert_eq!(DateTime::try_from(soon)?, rows.next()?.unwrap().get(0)?); in datetime() 3296 assert!(DateTime::try_from(then)? < DateTime::try_from(now)?); in datetime() 3297 assert!(DateTime::try_from(then)? < DateTime::try_from(soon)?); in datetime() 3298 assert!(DateTime::try_from(now)? < DateTime::try_from(soon)?); in datetime()
|
D | super_key.rs | 213 let key = ZVec::try_from(km_dev.use_key_in_one_step( in decrypt()
|
/system/bt/gd/rust/hal/src/ |
D | snoop.rs | 259 let timestamp: u64 = u64::try_from( in log() 266 let length = u32::try_from(bytes.len()).unwrap() + 1; in log()
|
/system/bt/gd/rust/linux/adapter/src/ |
D | main.rs | 139 p.val.iter().map(|u| char::try_from(*u).unwrap()).collect::<String>() in mainloop()
|
/system/bt/gd/rust/hci/src/ |
D | controller.rs | 224 let converted = OpCodeIndex::try_from(opcode); in is_supported()
|