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

Commit 568ac008 authored by vadimt's avatar vadimt
Browse files

Logging for swiping to home not working

Bug: 158017601
Change-Id: Ibe92a7f07a4eb880b7b54b486236ca90e74353f7
parent 73763959
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -467,10 +467,17 @@ public class TouchInteractionService extends Service implements PluginListener<O

        final int action = event.getAction();
        if (action == ACTION_DOWN) {
            if (TestProtocol.sDebugTracing) {
                Log.d(TestProtocol.NO_SWIPE_TO_HOME, "TouchInteractionService.onInputEvent:DOWN");
            }
            mDeviceState.setOrientationTransformIfNeeded(event);
            GestureState newGestureState;

            if (mDeviceState.isInSwipeUpTouchRegion(event)) {
                if (TestProtocol.sDebugTracing) {
                    Log.d(TestProtocol.NO_SWIPE_TO_HOME,
                            "TouchInteractionService.onInputEvent:isInSwipeUpTouchRegion");
                }
                // Clone the previous gesture state since onConsumerAboutToBeSwitched might trigger
                // onConsumerInactive and wipe the previous gesture state
                GestureState prevGestureState = new GestureState(mGestureState);
@@ -537,6 +544,9 @@ public class TouchInteractionService extends Service implements PluginListener<O

    private InputConsumer newConsumer(GestureState previousGestureState,
            GestureState newGestureState, MotionEvent event) {
        if (TestProtocol.sDebugTracing) {
            Log.d(TestProtocol.NO_SWIPE_TO_HOME, "newConsumer");
        }
        boolean canStartSystemGesture = mDeviceState.canStartSystemGesture();

        if (!mDeviceState.isUserUnlocked()) {
@@ -548,6 +558,9 @@ public class TouchInteractionService extends Service implements PluginListener<O
                return mResetGestureInputConsumer;
            }
        }
        if (TestProtocol.sDebugTracing) {
            Log.d(TestProtocol.NO_SWIPE_TO_HOME, "newConsumer:user is unlocked");
        }

        // When there is an existing recents animation running, bypass systemState check as this is
        // a followup gesture and the first gesture started in a valid system state.
+1 −0
Original line number Diff line number Diff line
@@ -101,4 +101,5 @@ public final class TestProtocol {
    public static final String PERMANENT_DIAG_TAG = "TaplTarget";
    public static final String PAUSE_NOT_DETECTED = "b/139891609";
    public static final String OVERIEW_NOT_ALLAPPS = "b/156095088";
    public static final String NO_SWIPE_TO_HOME = "b/158017601";
}