Merge "Dump nav mode with TIS" into ub-launcher3-rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-20 21:10:08 +00:00
committed by Android (Google) Code Review
2 changed files with 11 additions and 1 deletions
@@ -498,7 +498,10 @@ public class TouchInteractionService extends Service implements PluginListener<O
}
}
ActiveGestureLog.INSTANCE.addLog("onMotionEvent", event.getActionMasked());
if (mUncheckedConsumer != InputConsumer.NO_OP) {
ActiveGestureLog.INSTANCE.addLog("onMotionEvent", event.getActionMasked());
}
boolean cleanUpConsumer = (action == ACTION_UP || action == ACTION_CANCEL)
&& mConsumer != null
&& !mConsumer.getActiveConsumerInHierarchy().isConsumerDetachedFromGesture();
@@ -802,6 +805,7 @@ public class TouchInteractionService extends Service implements PluginListener<O
if (mGestureState != null) {
mGestureState.dump(pw);
}
SysUINavigationMode.INSTANCE.get(this).dump(pw);
pw.println("TouchState:");
BaseDraggingActivity createdOverviewActivity = mOverviewComponentObserver == null ? null
: mOverviewComponentObserver.getActivityInterface().getCreatedActivity();
@@ -26,6 +26,7 @@ import android.util.Log;
import com.android.launcher3.util.MainThreadInitializedObject;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
@@ -128,6 +129,11 @@ public class SysUINavigationMode {
return getMode(context) != Mode.TWO_BUTTONS;
}
public void dump(PrintWriter pw) {
pw.println("SysUINavigationMode:");
pw.println(" mode=" + mMode.name());
}
public interface NavigationModeChangeListener {
void onNavigationModeChanged(Mode newMode);