diff options
author | Michael Wright <michaelwr@google.com> | 2015-08-12 16:32:11 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-08-12 16:32:11 +0000 |
commit | e20493ea5affdc417db1fc3fbb527781d6e51612 (patch) | |
tree | aaea8dc537f52a8d5df4e47e1ebc62c7747a2f6a /services | |
parent | bf88205bef88f78ade5c6830e6203aa343387820 (diff) | |
parent | 6eabf57e58713b8f2bd8f0bec343929db4853725 (diff) | |
download | frameworks_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.java | 3 |
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); |