diff options
| author | John Spurlock <jspurlock@google.com> | 2014-10-07 16:17:45 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-10-07 16:17:46 +0000 |
| commit | 0d334365c6123388a0df81438b82122be29d19ab (patch) | |
| tree | 1f133a44a7c612b3032fba8b935ae40d41c7ae3b /packages/SystemUI/src/com/android/systemui/doze/DozeLog.java | |
| parent | dce7a427593c6e11277d9e3075ab027512923276 (diff) | |
| parent | 92b8d410966b5b1599c44440112ee4cecb04fe1e (diff) | |
| download | frameworks_base-0d334365c6123388a0df81438b82122be29d19ab.zip frameworks_base-0d334365c6123388a0df81438b82122be29d19ab.tar.gz frameworks_base-0d334365c6123388a0df81438b82122be29d19ab.tar.bz2 | |
Merge "Doze: Avoid pulsing in pockets." into lmp-dev
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/doze/DozeLog.java')
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/doze/DozeLog.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/doze/DozeLog.java b/packages/SystemUI/src/com/android/systemui/doze/DozeLog.java index 954046c..fcdbfc1 100644 --- a/packages/SystemUI/src/com/android/systemui/doze/DozeLog.java +++ b/packages/SystemUI/src/com/android/systemui/doze/DozeLog.java @@ -48,6 +48,8 @@ public class DozeLog { private static SummaryStats sScreenOnPulsingStats; private static SummaryStats sScreenOnNotPulsingStats; private static SummaryStats sEmergencyCallStats; + private static SummaryStats sProxNearStats; + private static SummaryStats sProxFarStats; public static void tracePickupPulse(boolean withinVibrationThreshold) { if (!ENABLED) return; @@ -88,6 +90,8 @@ public class DozeLog { sScreenOnPulsingStats = new SummaryStats(); sScreenOnNotPulsingStats = new SummaryStats(); sEmergencyCallStats = new SummaryStats(); + sProxNearStats = new SummaryStats(); + sProxFarStats = new SummaryStats(); log("init"); KeyguardUpdateMonitor.getInstance(context).registerCallback(sKeyguardCallback); } @@ -133,6 +137,12 @@ public class DozeLog { } } + public static void traceProximityResult(boolean near, long millis) { + if (!ENABLED) return; + log("proximityResult near=" + near + " millis=" + millis); + (near ? sProxNearStats : sProxFarStats).append(); + } + public static void dump(PrintWriter pw) { synchronized (DozeLog.class) { if (sMessages == null) return; @@ -154,6 +164,8 @@ public class DozeLog { sScreenOnPulsingStats.dump(pw, "Screen on (pulsing)"); sScreenOnNotPulsingStats.dump(pw, "Screen on (not pulsing)"); sEmergencyCallStats.dump(pw, "Emergency call"); + sProxNearStats.dump(pw, "Proximity (near)"); + sProxFarStats.dump(pw, "Proximity (far)"); } } |
