From fadb4127bceff0c3894cda9256936c3a8d74eea7 Mon Sep 17 00:00:00 2001 From: Neil Fuller Date: Mon, 8 Mar 2021 10:07:35 +0000 Subject: [PATCH] Add more information to time detection logs When receiving only dumpsys from time_detector, it can be useful to know what the system clock time was before it was changed. The logging takes place after the clock has been changed so this is currently missing. Bug: 176316840 Test: build / treehugger only Change-Id: I7441706cf5daaec5377289f215b15cad1d6de4f9 --- .../android/server/timedetector/TimeDetectorStrategyImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/core/java/com/android/server/timedetector/TimeDetectorStrategyImpl.java b/services/core/java/com/android/server/timedetector/TimeDetectorStrategyImpl.java index c4c620c419187..16e8632c6e407 100644 --- a/services/core/java/com/android/server/timedetector/TimeDetectorStrategyImpl.java +++ b/services/core/java/com/android/server/timedetector/TimeDetectorStrategyImpl.java @@ -720,6 +720,7 @@ public final class TimeDetectorStrategyImpl implements TimeDetectorStrategy { String logMsg = "Set system clock using time=" + newTime + " cause=" + cause + " elapsedRealtimeMillis=" + elapsedRealtimeMillis + + " (old) actualSystemClockMillis=" + actualSystemClockMillis + " newSystemClockMillis=" + newSystemClockMillis; if (DBG) { Slog.d(LOG_TAG, logMsg);