summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Nate Myren <ntmyren@google.com> 2025-03-07 11:34:21 -0800
committer Nate Myren <ntmyren@google.com> 2025-03-11 12:38:09 -0700
commit86d8fc9cf6b61c1d7f2c1add372de09d9e853a11 (patch)
tree98a8cade4c50af3661c422851853560bd663b71d /api/api.go
parentda458dd4165b753238dbdd41c8b2036f5ba0a6b7 (diff)
Replace getCreationTime clock with elapsedRealtime
It is only used by PreperationCoordinator, with an expected time difference of under 500ms, so the difference should have no effect there. It allows us to use the creation Time when determining how old an OTP notification actually is, and compare that with the wall clock getWhen. Other uses only rely on uptimeMillis increasing monotonically, which elapsedRealtime does as well. Bug: 401173968 Test: atest DeviceProvisionedCoordinatorTest NotificationEntryTest VisualStabilityCoordinatorTest Flag: android.app.notif_entry_creation_time_use_elapsed_realtime Change-Id: Id351090b0b4d6538da1dd8de305d43f8db7374ba
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions