Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa2d4133 authored by John Spurlock's avatar John Spurlock Committed by The Android Automerger
Browse files

Doze: Log screenOnFromTouch when flinging.

Bug: 17350239
Bug: 17496795
Change-Id: I4a8e26c2fc05cf4396e9c8cb58e81b4f95c531e6
parent f4438fb9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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() {
+2 −1
Original line number Diff line number Diff line
@@ -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) {