summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2015-08-12 16:32:11 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-08-12 16:32:11 +0000
commite20493ea5affdc417db1fc3fbb527781d6e51612 (patch)
treeaaea8dc537f52a8d5df4e47e1ebc62c7747a2f6a /services
parentbf88205bef88f78ade5c6830e6203aa343387820 (diff)
parent6eabf57e58713b8f2bd8f0bec343929db4853725 (diff)
downloadframeworks_base-e20493ea5affdc417db1fc3fbb527781d6e51612.zip
frameworks_base-e20493ea5affdc417db1fc3fbb527781d6e51612.tar.gz
frameworks_base-e20493ea5affdc417db1fc3fbb527781d6e51612.tar.bz2
Merge "Log last filtered sensor timestamp." into mnc-dev
Diffstat (limited to 'services')
-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);