am abc4db31: am 3fd4440f: am af41d847: am ee98df79: Doze: Log screenOnFromTouch when flinging.

* commit 'abc4db312aa6e5287b5abbd2d201f10d642fca7d':
  Doze: Log screenOnFromTouch when flinging.
This commit is contained in:
John Spurlock
2014-10-01 17:09:05 +00:00
committed by Android Git Automerger
2 changed files with 5 additions and 3 deletions

View File

@@ -95,10 +95,11 @@ public class DozeLog {
log("dozing " + dozing);
}
public static void traceFling(boolean expand, boolean aboveThreshold, boolean thresholdNeeded) {
public static void traceFling(boolean expand, boolean aboveThreshold, boolean thresholdNeeded,
boolean screenOnFromTouch) {
if (!ENABLED) return;
log("fling expand=" + expand + " aboveThreshold=" + aboveThreshold + " thresholdNeeded="
+ thresholdNeeded);
+ thresholdNeeded + " screenOnFromTouch=" + screenOnFromTouch);
}
public static void traceEmergencyCall() {

View File

@@ -337,7 +337,8 @@ public abstract class PanelView extends FrameLayout {
boolean expand = flingExpands(vel, vectorVel);
onTrackingStopped(expand);
DozeLog.traceFling(expand, mTouchAboveFalsingThreshold,
mStatusBar.isFalsingThresholdNeeded());
mStatusBar.isFalsingThresholdNeeded(),
mStatusBar.isScreenOnComingFromTouch());
fling(vel, expand);
mUpdateFlingOnLayout = expand && mPanelClosedOnDown && !mHasLayoutedSinceDown;
if (mUpdateFlingOnLayout) {