Add field to record state of background geotz

Add a metrics field to record the state of "run geolocation time zone
detection in the background" behavior.

Test: build / manual testing
Bug: 200279201
Bug: 208789974
Change-Id: I79bee351df71ffb81f5f0a8fdd07609f6a5b2e6a
This commit is contained in:
Neil Fuller
2021-11-24 15:26:31 +00:00
parent 4dd34c1fc3
commit 9d569d3222

View File

@@ -3438,7 +3438,8 @@ public class StatsPullAtomService extends SystemService {
metricsState.getLatestGeolocationSuggestion()),
metricsState.isTelephonyTimeZoneFallbackSupported(),
metricsState.getDeviceTimeZoneId(),
metricsState.isEnhancedMetricsCollectionEnabled()
metricsState.isEnhancedMetricsCollectionEnabled(),
metricsState.getGeoDetectionRunInBackgroundEnabled()
));
} catch (RuntimeException e) {
Slog.e(TAG, "Getting time zone detection state failed: ", e);