Home
last modified time | relevance | path

Searched refs:checked_sub (Results 1 – 4 of 4) sorted by relevance

/system/security/keystore2/src/
Did_rotation.rs108 mtime.checked_sub(ID_ROTATION_PERIOD).expect("Failed to subtract id rotation period"); in test_had_factory_reset_since_id_rotation()
Dapc.rs156 back_off.checked_sub(elapsed) in get_remaining_back_off()
Denforcements.rs656 .checked_sub(&hat.time_received()) in authorize_create()
830 .checked_sub(&auth_token_entry.time_received()) in get_auth_tokens()
Ddatabase.rs430 .checked_sub(then_epoch) in try_into()
431 .and_then(|d| now.checked_sub(d)) in try_into()
436 .checked_sub(now_epoch) in try_into()
764 pub fn checked_sub(&self, other: &Self) -> Option<Self> { in checked_sub() method
765 self.0.checked_sub(other.0).map(Self) in checked_sub()
3284 let then = now.checked_sub(duration).unwrap(); in datetime()