Add gesture nav error state tracking and logging
- Added ActiveGestureErrorDetector - Removed startQuickstep logs; these were confusing and not helpful in ActiveGestureLogs Test: printed logs after several gestures Bug: 227514916 Design: go/gesture-nav-logging Change-Id: Ia2a7e4f90a3a371d9a92190aa66eb07acd061d6c
This commit is contained in:
1 parent
b4a30ab955
commit
038922a653
15 files changed
+473
-51
No files matched your search
@@ -30,6 +30,7 @@ import static com.android.launcher3.Utilities.squaredHypot;
|
||||
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
|
||||
import static com.android.launcher3.util.TraceHelper.FLAG_CHECK_FOR_RACE_CONDITIONS;
|
||||
import static com.android.launcher3.util.VelocityUtils.PX_PER_MS;
|
||||
import static com.android.quickstep.util.ActiveGestureErrorDetector.GestureEvent.START_RECENTS_ANIMATION;
|
||||
import static com.android.quickstep.util.ActiveGestureLog.INTENT_EXTRA_LOG_TRACE_ID;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
@@ -359,7 +360,6 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC
|
||||
}
|
||||
|
||||
private void notifyGestureStarted(boolean isLikelyToStartNewTask) {
|
||||
ActiveGestureLog.INSTANCE.addLog("startQuickstep");
|
||||
if (mInteractionHandler == null) {
|
||||
return;
|
||||
}
|
||||
@@ -373,7 +373,9 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC
|
||||
}
|
||||
|
||||
private void startTouchTrackingForWindowAnimation(long touchTimeMs) {
|
||||
ActiveGestureLog.INSTANCE.addLog("startRecentsAnimation");
|
||||
ActiveGestureLog.INSTANCE.addLog(
|
||||
/* event= */ "startRecentsAnimation",
|
||||
/* gestureEvent= */ START_RECENTS_ANIMATION);
|
||||
|
||||
mInteractionHandler = mHandlerFactory.newHandler(mGestureState, touchTimeMs);
|
||||
mInteractionHandler.setGestureEndCallback(this::onInteractionGestureFinished);
|
||||
|
||||
Reference in new issue
Block a user