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

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

Add server flag for the lower bound

Add a server flag for the lower bound time used by the time_detector to
validate times in suggestions. This can be used during tests to confirm
that suggestions are properly compared against the lower bound before
being used, and to bypass the lower bound check when running tests with
historical data.

Note: Currently, the lower bound is used to validate / filter
suggestions when they are received. Invalid suggestions are discarded,
leaving old suggestions. Changing the lower bound will not cause the
time_detector to discard / ignore already accepted suggestions if they
now fall below the lower bound.

Testing:

adb shell dumpsys time_detector # Look at reported lower bound
adb shell device_config put system_time \
    time_detector_lower_bound_millis_override 0
adb shell dumpsys time_detector # Look at reported lower bound
adb shell device_config delete system_time \
    time_detector_lower_bound_millis_override
adb shell dumpsys time_detector # Look at reported lower bound

Bug: 172229867
Test: See above
Change-Id: If1d5fd1aa09732c05808cc13dd257f2daeea6220
parent d1393790
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