Loading quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java +13 −0 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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()) { Loading @@ -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. Loading src/com/android/launcher3/testing/TestProtocol.java +1 −0 Original line number Diff line number Diff line Loading @@ -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"; } Loading
quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java +13 −0 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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()) { Loading @@ -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. Loading
src/com/android/launcher3/testing/TestProtocol.java +1 −0 Original line number Diff line number Diff line Loading @@ -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"; }