Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c4ba2d9c authored by Neil Fuller's avatar Neil Fuller
Browse files

Introduce system clock time confidence

Add metadata for system clock time that indicates confidence in the
time. Any explicit action to set the time will set the confidence high,
but this information is (deliberately) lost during a power cycle as the
clock is (sometimes) volatile.

This confidence will be used initially to support setup wizard and other
initialization flows that benefit from knowing whether the time needs to
be checked by the user. This lays the groundwork for future
improvements.

As part of this change, bug report logs can now contain information
about how the device's time was set by things other than the time
detector. This will help with debugging.

Bug: 236612872
Test: atest services/tests/mockingservicestests/src/com/android/server/alarm/AlarmManagerServiceTest.java
Test: atest services/tests/servicestests/src/com/android/server/timedetector/TimeDetectorStrategyImplTest.java
Change-Id: I1104e64778f57ef3d1716e9aba1736c4fd001ef7
parent c18a5de5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment