Merge "Logging for swiping to home not working" into ub-launcher3-rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5bae2f4af1
@@ -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.
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user