summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kanyinsola Fapohunda <kanyinsola@google.com> 2025-02-25 08:13:41 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-02-25 08:13:41 -0800
commitbb13b093d2a7cadee90cd8826f742f79af226f3e (patch)
tree3d7461990fb16e8748eeb35b51ef6696649f4ea3
parent089b645b8710941451b6df0161d790ae890b625a (diff)
parente6a38a556958a72e91bf432b441680996666a16d (diff)
Merge "Adds the old timezone to dumpsys logs after a timezone update." into main
-rw-r--r--services/core/java/com/android/server/SystemTimeZone.java3
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);
}