Loading quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +0 −20 Original line number Diff line number Diff line Loading @@ -65,7 +65,6 @@ import android.graphics.RectF; import android.os.Build; import android.os.IBinder; import android.os.SystemClock; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.View.OnApplyWindowInsetsListener; Loading @@ -88,7 +87,6 @@ import com.android.launcher3.logging.StatsLogManager; import com.android.launcher3.logging.StatsLogManager.StatsLogger; import com.android.launcher3.statemanager.BaseState; import com.android.launcher3.statemanager.StatefulActivity; import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.tracing.InputConsumerProto; import com.android.launcher3.tracing.SwipeHandlerProto; import com.android.launcher3.util.TraceHelper; Loading Loading @@ -883,9 +881,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>, */ @UiThread public void onGestureEnded(float endVelocity, PointF velocity, PointF downPos) { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "3"); } float flingThreshold = mContext.getResources() .getDimension(R.dimen.quickstep_fling_threshold_speed); boolean isFling = mGestureStarted && !mIsMotionPaused Loading Loading @@ -1048,9 +1043,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>, @UiThread private void handleNormalGestureEnd(float endVelocity, boolean isFling, PointF velocity, boolean isCancel) { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "4"); } long duration = MAX_SWIPE_DURATION; float currentShift = mCurrentShift.value; final GestureEndTarget endTarget = calculateEndTarget(velocity, endVelocity, Loading Loading @@ -1169,9 +1161,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>, @UiThread private void animateToProgress(float start, float end, long duration, Interpolator interpolator, GestureEndTarget target, PointF velocityPxPerMs) { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "5"); } runOnRecentsAnimationStart(() -> animateToProgressInternal(start, end, duration, interpolator, target, velocityPxPerMs)); } Loading Loading @@ -1222,9 +1211,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>, } } if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "7, end target=" + mGestureState.getEndTarget()); } if (mGestureState.getEndTarget() == HOME) { getOrientationHandler().adjustFloatingIconStartVelocity(velocityPxPerMs); final RemoteAnimationTargetCompat runningTaskTarget = mRecentsAnimationTargets != null Loading @@ -1239,9 +1225,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>, && runningTaskTarget.allowEnterPip && runningTaskTarget.taskInfo.pictureInPictureParams != null && runningTaskTarget.taskInfo.pictureInPictureParams.isAutoEnterEnabled(); if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "8, class=" + getClass().getSimpleName()); } HomeAnimationFactory homeAnimFactory = createHomeAnimationFactory(cookies, duration, isTranslucent, appCanEnterPip, runningTaskTarget); Loading Loading @@ -1840,9 +1823,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>, * be run when it is next started. */ protected void runOnRecentsAnimationStart(Runnable action) { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "6"); } if (mRecentsAnimationTargets == null) { mRecentsAnimationStartCallbacks.add(action); } else { Loading quickstep/src/com/android/quickstep/FallbackSwipeHandler.java +0 −6 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ import android.os.Message; import android.os.Messenger; import android.os.ParcelUuid; import android.os.UserHandle; import android.util.Log; import android.view.Surface; import android.view.SurfaceControl; import android.view.SurfaceControl.Transaction; Loading @@ -58,7 +57,6 @@ import com.android.launcher3.Utilities; import com.android.launcher3.anim.AnimatorPlaybackController; import com.android.launcher3.anim.PendingAnimation; import com.android.launcher3.anim.SpringAnimationBuilder; import com.android.launcher3.testing.TestProtocol; import com.android.quickstep.fallback.FallbackRecentsView; import com.android.quickstep.fallback.RecentsState; import com.android.quickstep.util.AppCloseConfig; Loading Loading @@ -141,10 +139,6 @@ public class FallbackSwipeHandler extends mActiveAnimationFactory = new FallbackHomeAnimationFactory(duration); ActivityOptions options = ActivityOptions.makeCustomAnimation(mContext, 0, 0); Intent intent = new Intent(mGestureState.getHomeIntent()); if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "createHomeAnimationFactory: " + intent.toShortString(true, true, true, false)); } mActiveAnimationFactory.addGestureContract(intent); try { mContext.startActivity(intent, options.toBundle()); Loading quickstep/src/com/android/quickstep/RecentsAnimationCallbacks.java +0 −9 Original line number Diff line number Diff line Loading @@ -20,14 +20,12 @@ import static com.android.systemui.shared.system.RemoteAnimationTargetCompat.ACT import android.graphics.Rect; import android.util.ArraySet; import android.util.Log; import android.view.RemoteAnimationTarget; import androidx.annotation.BinderThread; import androidx.annotation.UiThread; import com.android.launcher3.Utilities; import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.util.Preconditions; import com.android.systemui.shared.recents.model.ThumbnailData; import com.android.systemui.shared.system.RecentsAnimationControllerCompat; Loading Loading @@ -97,9 +95,6 @@ public class RecentsAnimationCallbacks implements RemoteAnimationTargetCompat[] appTargets, RemoteAnimationTargetCompat[] wallpaperTargets, Rect homeContentInsets, Rect minimizedHomeBounds) { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "RecentsAnimationCallbacks.onAnimationStart"); } // Convert appTargets to type RemoteAnimationTarget for all apps except Home app RemoteAnimationTarget[] nonHomeApps = Arrays.stream(appTargets) .filter(remoteAnimationTarget -> Loading @@ -121,10 +116,6 @@ public class RecentsAnimationCallbacks implements mController::finishAnimationToApp); } else { Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "RecentsAnimationCallbacks.onAnimationStart callback"); } for (RecentsAnimationListener listener : getListeners()) { listener.onRecentsAnimationStart(mController, targets); } Loading quickstep/src/com/android/quickstep/inputconsumers/OtherActivityInputConsumer.java +0 −7 Original line number Diff line number Diff line Loading @@ -50,7 +50,6 @@ import android.view.ViewConfiguration; import androidx.annotation.UiThread; import com.android.launcher3.R; import com.android.launcher3.Utilities; import com.android.launcher3.testing.TestLogging; import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.tracing.InputConsumerProto; Loading Loading @@ -357,9 +356,6 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC } case ACTION_CANCEL: case ACTION_UP: { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "1"); } if (DEBUG_FAILED_QUICKSWITCH && !mPassedWindowMoveSlop) { float displacementX = mLastPos.x - mDownPos.x; float displacementY = mLastPos.y - mDownPos.y; Loading Loading @@ -413,9 +409,6 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC * the animation can still be running. */ private void finishTouchTracking(MotionEvent ev) { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "2"); } Object traceToken = TraceHelper.INSTANCE.beginSection(UP_EVT, FLAG_CHECK_FOR_RACE_CONDITIONS); Loading src/com/android/launcher3/statemanager/StateManager.java +0 −12 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ package com.android.launcher3.statemanager; import static android.animation.ValueAnimator.areAnimatorsEnabled; import static com.android.launcher3.LauncherState.NORMAL; import static com.android.launcher3.anim.AnimatorPlaybackController.callListenerCommandRecursively; import static com.android.launcher3.states.StateAnimationConfig.SKIP_ALL_ANIMATIONS; Loading @@ -28,14 +27,12 @@ import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.os.Handler; import android.os.Looper; import android.util.Log; import com.android.launcher3.anim.AnimationSuccessListener; import com.android.launcher3.anim.AnimatorPlaybackController; import com.android.launcher3.anim.PendingAnimation; import com.android.launcher3.states.StateAnimationConfig; import com.android.launcher3.states.StateAnimationConfig.AnimationFlags; import com.android.launcher3.testing.TestProtocol; import java.io.PrintWriter; import java.util.ArrayList; Loading Loading @@ -256,9 +253,6 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> { if (listener != null) { animation.addListener(listener); } if (TestProtocol.sDebugTracing && state == NORMAL) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "goToStateAnimated: " + state); } mUiHandler.post(new StartAnimRunnable(animation)); } Loading Loading @@ -334,17 +328,11 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> { @Override public void onAnimationStart(Animator animation) { // Change the internal state only when the transition actually starts if (TestProtocol.sDebugTracing && state == NORMAL) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "onAnimationStart: " + state); } onStateTransitionStart(state); } @Override public void onAnimationSuccess(Animator animator) { if (TestProtocol.sDebugTracing && state == NORMAL) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "onAnimationEnd: " + state); } onStateTransitionEnd(state); } }; Loading Loading
quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +0 −20 Original line number Diff line number Diff line Loading @@ -65,7 +65,6 @@ import android.graphics.RectF; import android.os.Build; import android.os.IBinder; import android.os.SystemClock; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.View.OnApplyWindowInsetsListener; Loading @@ -88,7 +87,6 @@ import com.android.launcher3.logging.StatsLogManager; import com.android.launcher3.logging.StatsLogManager.StatsLogger; import com.android.launcher3.statemanager.BaseState; import com.android.launcher3.statemanager.StatefulActivity; import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.tracing.InputConsumerProto; import com.android.launcher3.tracing.SwipeHandlerProto; import com.android.launcher3.util.TraceHelper; Loading Loading @@ -883,9 +881,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>, */ @UiThread public void onGestureEnded(float endVelocity, PointF velocity, PointF downPos) { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "3"); } float flingThreshold = mContext.getResources() .getDimension(R.dimen.quickstep_fling_threshold_speed); boolean isFling = mGestureStarted && !mIsMotionPaused Loading Loading @@ -1048,9 +1043,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>, @UiThread private void handleNormalGestureEnd(float endVelocity, boolean isFling, PointF velocity, boolean isCancel) { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "4"); } long duration = MAX_SWIPE_DURATION; float currentShift = mCurrentShift.value; final GestureEndTarget endTarget = calculateEndTarget(velocity, endVelocity, Loading Loading @@ -1169,9 +1161,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>, @UiThread private void animateToProgress(float start, float end, long duration, Interpolator interpolator, GestureEndTarget target, PointF velocityPxPerMs) { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "5"); } runOnRecentsAnimationStart(() -> animateToProgressInternal(start, end, duration, interpolator, target, velocityPxPerMs)); } Loading Loading @@ -1222,9 +1211,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>, } } if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "7, end target=" + mGestureState.getEndTarget()); } if (mGestureState.getEndTarget() == HOME) { getOrientationHandler().adjustFloatingIconStartVelocity(velocityPxPerMs); final RemoteAnimationTargetCompat runningTaskTarget = mRecentsAnimationTargets != null Loading @@ -1239,9 +1225,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>, && runningTaskTarget.allowEnterPip && runningTaskTarget.taskInfo.pictureInPictureParams != null && runningTaskTarget.taskInfo.pictureInPictureParams.isAutoEnterEnabled(); if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "8, class=" + getClass().getSimpleName()); } HomeAnimationFactory homeAnimFactory = createHomeAnimationFactory(cookies, duration, isTranslucent, appCanEnterPip, runningTaskTarget); Loading Loading @@ -1840,9 +1823,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>, * be run when it is next started. */ protected void runOnRecentsAnimationStart(Runnable action) { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "6"); } if (mRecentsAnimationTargets == null) { mRecentsAnimationStartCallbacks.add(action); } else { Loading
quickstep/src/com/android/quickstep/FallbackSwipeHandler.java +0 −6 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ import android.os.Message; import android.os.Messenger; import android.os.ParcelUuid; import android.os.UserHandle; import android.util.Log; import android.view.Surface; import android.view.SurfaceControl; import android.view.SurfaceControl.Transaction; Loading @@ -58,7 +57,6 @@ import com.android.launcher3.Utilities; import com.android.launcher3.anim.AnimatorPlaybackController; import com.android.launcher3.anim.PendingAnimation; import com.android.launcher3.anim.SpringAnimationBuilder; import com.android.launcher3.testing.TestProtocol; import com.android.quickstep.fallback.FallbackRecentsView; import com.android.quickstep.fallback.RecentsState; import com.android.quickstep.util.AppCloseConfig; Loading Loading @@ -141,10 +139,6 @@ public class FallbackSwipeHandler extends mActiveAnimationFactory = new FallbackHomeAnimationFactory(duration); ActivityOptions options = ActivityOptions.makeCustomAnimation(mContext, 0, 0); Intent intent = new Intent(mGestureState.getHomeIntent()); if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "createHomeAnimationFactory: " + intent.toShortString(true, true, true, false)); } mActiveAnimationFactory.addGestureContract(intent); try { mContext.startActivity(intent, options.toBundle()); Loading
quickstep/src/com/android/quickstep/RecentsAnimationCallbacks.java +0 −9 Original line number Diff line number Diff line Loading @@ -20,14 +20,12 @@ import static com.android.systemui.shared.system.RemoteAnimationTargetCompat.ACT import android.graphics.Rect; import android.util.ArraySet; import android.util.Log; import android.view.RemoteAnimationTarget; import androidx.annotation.BinderThread; import androidx.annotation.UiThread; import com.android.launcher3.Utilities; import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.util.Preconditions; import com.android.systemui.shared.recents.model.ThumbnailData; import com.android.systemui.shared.system.RecentsAnimationControllerCompat; Loading Loading @@ -97,9 +95,6 @@ public class RecentsAnimationCallbacks implements RemoteAnimationTargetCompat[] appTargets, RemoteAnimationTargetCompat[] wallpaperTargets, Rect homeContentInsets, Rect minimizedHomeBounds) { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "RecentsAnimationCallbacks.onAnimationStart"); } // Convert appTargets to type RemoteAnimationTarget for all apps except Home app RemoteAnimationTarget[] nonHomeApps = Arrays.stream(appTargets) .filter(remoteAnimationTarget -> Loading @@ -121,10 +116,6 @@ public class RecentsAnimationCallbacks implements mController::finishAnimationToApp); } else { Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "RecentsAnimationCallbacks.onAnimationStart callback"); } for (RecentsAnimationListener listener : getListeners()) { listener.onRecentsAnimationStart(mController, targets); } Loading
quickstep/src/com/android/quickstep/inputconsumers/OtherActivityInputConsumer.java +0 −7 Original line number Diff line number Diff line Loading @@ -50,7 +50,6 @@ import android.view.ViewConfiguration; import androidx.annotation.UiThread; import com.android.launcher3.R; import com.android.launcher3.Utilities; import com.android.launcher3.testing.TestLogging; import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.tracing.InputConsumerProto; Loading Loading @@ -357,9 +356,6 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC } case ACTION_CANCEL: case ACTION_UP: { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "1"); } if (DEBUG_FAILED_QUICKSWITCH && !mPassedWindowMoveSlop) { float displacementX = mLastPos.x - mDownPos.x; float displacementY = mLastPos.y - mDownPos.y; Loading Loading @@ -413,9 +409,6 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC * the animation can still be running. */ private void finishTouchTracking(MotionEvent ev) { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "2"); } Object traceToken = TraceHelper.INSTANCE.beginSection(UP_EVT, FLAG_CHECK_FOR_RACE_CONDITIONS); Loading
src/com/android/launcher3/statemanager/StateManager.java +0 −12 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ package com.android.launcher3.statemanager; import static android.animation.ValueAnimator.areAnimatorsEnabled; import static com.android.launcher3.LauncherState.NORMAL; import static com.android.launcher3.anim.AnimatorPlaybackController.callListenerCommandRecursively; import static com.android.launcher3.states.StateAnimationConfig.SKIP_ALL_ANIMATIONS; Loading @@ -28,14 +27,12 @@ import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.os.Handler; import android.os.Looper; import android.util.Log; import com.android.launcher3.anim.AnimationSuccessListener; import com.android.launcher3.anim.AnimatorPlaybackController; import com.android.launcher3.anim.PendingAnimation; import com.android.launcher3.states.StateAnimationConfig; import com.android.launcher3.states.StateAnimationConfig.AnimationFlags; import com.android.launcher3.testing.TestProtocol; import java.io.PrintWriter; import java.util.ArrayList; Loading Loading @@ -256,9 +253,6 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> { if (listener != null) { animation.addListener(listener); } if (TestProtocol.sDebugTracing && state == NORMAL) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "goToStateAnimated: " + state); } mUiHandler.post(new StartAnimRunnable(animation)); } Loading Loading @@ -334,17 +328,11 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> { @Override public void onAnimationStart(Animator animation) { // Change the internal state only when the transition actually starts if (TestProtocol.sDebugTracing && state == NORMAL) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "onAnimationStart: " + state); } onStateTransitionStart(state); } @Override public void onAnimationSuccess(Animator animator) { if (TestProtocol.sDebugTracing && state == NORMAL) { Log.d(TestProtocol.L3_SWIPE_TO_HOME, "onAnimationEnd: " + state); } onStateTransitionEnd(state); } }; Loading