diff options
| author | 2025-02-26 02:51:47 -0800 | |
|---|---|---|
| committer | 2025-02-26 02:51:47 -0800 | |
| commit | 30f2ed9102385129d6fa9a3020fb86cdce4b3e12 (patch) | |
| tree | baf8aa127d6ba7eac74b550925062ea7344c6725 | |
| parent | 998ef3b5653ac0501b43f7996ae6114242a5b6d8 (diff) | |
Adds the old timezone to dumpsys logs after a timezone update.
This makes it easier to understand timezone change logs. This will also make it easier to automatically parse the timezone change logs, as all the relevant information about a timezone change is now included in the timezone change log line.
Flag: EXEMPT log only update
Bug: 290318043
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e6a38a556958a72e91bf432b441680996666a16d)
Merged-In: I18664e3465c0c6145a87010e9928e10167b15567
Change-Id: I18664e3465c0c6145a87010e9928e10167b15567
| -rw-r--r-- | services/core/java/com/android/server/SystemTimeZone.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/SystemTimeZone.java b/services/core/java/com/android/server/SystemTimeZone.java index dd07081bda12..c8810f672320 100644 --- a/services/core/java/com/android/server/SystemTimeZone.java +++ b/services/core/java/com/android/server/SystemTimeZone.java @@ -133,6 +133,7 @@ public final class SystemTimeZone { boolean timeZoneChanged = false; synchronized (SystemTimeZone.class) { String currentTimeZoneId = getTimeZoneId(); + @TimeZoneConfidence int currentConfidence = getTimeZoneConfidence(); if (currentTimeZoneId == null || !currentTimeZoneId.equals(timeZoneId)) { SystemProperties.set(TIME_ZONE_SYSTEM_PROPERTY, timeZoneId); if (DEBUG) { @@ -145,6 +146,8 @@ public final class SystemTimeZone { String logMsg = "Time zone or confidence set: " + " (new) timeZoneId=" + timeZoneId + ", (new) confidence=" + confidence + + ", (old) timeZoneId=" + currentTimeZoneId + + ", (old) confidence=" + currentConfidence + ", logInfo=" + logInfo; addDebugLogEntry(logMsg); } |