From 2794f563a03c85e0b00f6d53532ce6fefd1e036c Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 8 May 2020 09:59:46 -0700 Subject: [PATCH] Adding tracing for switching to overview instead of all apps Bug: 156095088 Change-Id: I1257617192e913d06edd0879396957b1e40524b7 --- .../com/android/quickstep/LauncherActivityInterface.java | 5 +++++ src/com/android/launcher3/LauncherStateManager.java | 9 +++++++++ src/com/android/launcher3/testing/TestProtocol.java | 1 + .../touch/AbstractStateChangeTouchController.java | 6 ++++++ .../android/launcher3/tapl/LauncherInstrumentation.java | 4 ++-- 5 files changed, 23 insertions(+), 2 deletions(-) diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityInterface.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityInterface.java index 5e688fbe4b..d4175e27eb 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityInterface.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityInterface.java @@ -36,6 +36,7 @@ import android.content.Context; import android.graphics.Rect; import android.graphics.RectF; import android.os.UserHandle; +import android.util.Log; import android.util.Pair; import android.view.MotionEvent; import android.view.View; @@ -55,6 +56,7 @@ import com.android.launcher3.anim.AnimatorPlaybackController; import com.android.launcher3.appprediction.PredictionUiStateManager; import com.android.launcher3.statehandlers.DepthController; import com.android.launcher3.statehandlers.DepthController.ClampedDepthProperty; +import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.userevent.nano.LauncherLogProto; import com.android.launcher3.views.FloatingIconView; import com.android.quickstep.SysUINavigationMode.Mode; @@ -383,6 +385,9 @@ public final class LauncherActivityInterface implements BaseActivityInterface isSwitchToStateEvent(event, expectedState, actualEvents), - () -> "Failed to receive an event for the state change: expected " + () -> "Failed to receive an event for the state change: expected [" + TestProtocol.stateOrdinalToString(expectedState) - + ", actual: " + eventListToString(actualEvents)); + + "], actual: " + eventListToString(actualEvents)); } private boolean isSwitchToStateEvent(