summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2015-08-12 15:35:31 +0100
committerMichael Wright <michaelwr@google.com>2015-08-12 16:53:24 +0100
commit6eabf57e58713b8f2bd8f0bec343929db4853725 (patch)
tree0fe2d55d8f720b67e3b6e3efe4b3ff3b291a8e11
parent600b9847605489494149c519a9eea25e4d512744 (diff)
downloadframeworks_base-6eabf57e58713b8f2bd8f0bec343929db4853725.zip
frameworks_base-6eabf57e58713b8f2bd8f0bec343929db4853725.tar.gz
frameworks_base-6eabf57e58713b8f2bd8f0bec343929db4853725.tar.bz2
Log last filtered sensor timestamp.
Bug: 22870354 Change-Id: Ib4efaa0f05bec81856c939c5c640eceff98d88ed
-rw-r--r--services/core/java/com/android/server/policy/WindowOrientationListener.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/policy/WindowOrientationListener.java b/services/core/java/com/android/server/policy/WindowOrientationListener.java
index 147efdd..c71b48f 100644
--- a/services/core/java/com/android/server/policy/WindowOrientationListener.java
+++ b/services/core/java/com/android/server/policy/WindowOrientationListener.java
@@ -465,6 +465,9 @@ public abstract class WindowOrientationListener {
pw.println(prefix + "mLastFilteredX=" + mLastFilteredX);
pw.println(prefix + "mLastFilteredY=" + mLastFilteredY);
pw.println(prefix + "mLastFilteredZ=" + mLastFilteredZ);
+ final long delta = SystemClock.elapsedRealtimeNanos() - mLastFilteredTimestampNanos;
+ pw.println(prefix + "mLastFilteredTimestampNanos=" + mLastFilteredTimestampNanos
+ + " (" + (delta * 0.000001f) + "ms ago)");
pw.println(prefix + "mTiltHistory={last: " + getLastTiltLocked() + "}");
pw.println(prefix + "mFlat=" + mFlat);
pw.println(prefix + "mSwinging=" + mSwinging);