Switch to new NetworkTimeHelper impl

Switch default from a NetworkTimeHelper impl that explicitly syncs NTP
to get a network time to one that retrieves the latest network time from
the time detector.

Behavior can be observed using:
adb shell dumpsys location -a
  - look for the NetworkTimeHelper info

Bug: 222295093
Test: build / boot / inspect
Change-Id: I40bb317971ca42e2739edd5c7351b32f0f329440
This commit is contained in:
Neil Fuller
2022-12-21 15:37:46 +00:00
parent 318257376e
commit 1c5c7cac30

View File

@@ -37,7 +37,7 @@ abstract class NetworkTimeHelper {
* a platform bug. This switch will be removed in a future release. If there are problems with
* the new impl we'd like to hear about them.
*/
static final boolean USE_TIME_DETECTOR_IMPL = false;
static final boolean USE_TIME_DETECTOR_IMPL = true;
/**
* The callback interface used by {@link NetworkTimeHelper} to report the time to {@link