Merge changes from topics "enable_background_geodetection_metrics", "enhanced_droidfood_metrics"
* changes: Add field to record state of background geotz Add fields for "enhanced metrics collection"
This commit is contained in:
@@ -3436,7 +3436,10 @@ public class StatsPullAtomService extends SystemService {
|
||||
metricsState.getLatestTelephonySuggestion()),
|
||||
convertTimeZoneSuggestionToProtoBytes(
|
||||
metricsState.getLatestGeolocationSuggestion()),
|
||||
metricsState.isTelephonyTimeZoneFallbackSupported()
|
||||
metricsState.isTelephonyTimeZoneFallbackSupported(),
|
||||
metricsState.getDeviceTimeZoneId(),
|
||||
metricsState.isEnhancedMetricsCollectionEnabled(),
|
||||
metricsState.getGeoDetectionRunInBackgroundEnabled()
|
||||
));
|
||||
} catch (RuntimeException e) {
|
||||
Slog.e(TAG, "Getting time zone detection state failed: ", e);
|
||||
@@ -3483,6 +3486,14 @@ public class StatsPullAtomService extends SystemService {
|
||||
android.app.time.MetricsTimeZoneSuggestion.TIME_ZONE_ORDINALS,
|
||||
zoneIdOrdinal);
|
||||
}
|
||||
String[] zoneIds = suggestion.getZoneIds();
|
||||
if (zoneIds != null) {
|
||||
for (String zoneId : zoneIds) {
|
||||
protoOutputStream.write(
|
||||
android.app.time.MetricsTimeZoneSuggestion.TIME_ZONE_IDS,
|
||||
zoneId);
|
||||
}
|
||||
}
|
||||
}
|
||||
protoOutputStream.flush();
|
||||
closeQuietly(byteArrayOutputStream);
|
||||
|
||||
Reference in New Issue
Block a user