Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8869bb5f authored by Evan Rosky's avatar Evan Rosky
Browse files

Improve transition logging

Adding debug-names to remote transitions so that
they can be identified across processes

Bug: 276349701
Test: existing tests since this doesn't change logic
Change-Id: I41400feeb2dd91971f8c750613085c80af309aea
parent 3aaae66d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -321,7 +321,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
        ActivityOptions options = ActivityOptions.makeRemoteAnimation(
                new RemoteAnimationAdapter(runner, duration, statusBarTransitionDelay),
                new RemoteTransition(runner.toRemoteTransition(),
                        mLauncher.getIApplicationThread()));
                        mLauncher.getIApplicationThread(), "QuickstepLaunch"));
        return new ActivityOptionsWrapper(options, onEndCallback);
    }

@@ -1122,7 +1122,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
            mLauncherOpenTransition = new RemoteTransition(
                    new LauncherAnimationRunner(mHandler, mWallpaperOpenTransitionRunner,
                            false /* startAtFrontOfQueue */).toRemoteTransition(),
                    mLauncher.getIApplicationThread());
                    mLauncher.getIApplicationThread(), "QuickstepLaunchHome");

            TransitionFilter homeCheck = new TransitionFilter();
            // No need to handle the transition that also dismisses keyguard.
+4 −2
Original line number Diff line number Diff line
@@ -267,7 +267,8 @@ public final class RecentsActivity extends StatefulActivity<RecentsState> {
                new RemoteAnimationAdapter(wrapper, RECENTS_LAUNCH_DURATION,
                        RECENTS_LAUNCH_DURATION - STATUS_BAR_TRANSITION_DURATION
                                - STATUS_BAR_TRANSITION_PRE_DELAY),
                new RemoteTransition(wrapper.toRemoteTransition(), getIApplicationThread()));
                new RemoteTransition(wrapper.toRemoteTransition(), getIApplicationThread(),
                        "LaunchFromRecents"));
        final ActivityOptionsWrapper activityOptions = new ActivityOptionsWrapper(options,
                onEndCallback);
        activityOptions.options.setSplashScreenStyle(SplashScreen.SPLASH_SCREEN_STYLE_ICON);
@@ -405,7 +406,8 @@ public final class RecentsActivity extends StatefulActivity<RecentsState> {
                getMainThreadHandler(), mAnimationToHomeFactory, true);
        ActivityOptions options = ActivityOptions.makeRemoteAnimation(
                new RemoteAnimationAdapter(runner, HOME_APPEAR_DURATION, 0),
                new RemoteTransition(runner.toRemoteTransition(), getIApplicationThread()));
                new RemoteTransition(runner.toRemoteTransition(), getIApplicationThread(),
                        "StartHomeFromRecents"));
        startHomeIntentSafely(this, options.toBundle());
    }

+2 −1
Original line number Diff line number Diff line
@@ -284,7 +284,8 @@ public class SplitSelectStateController {
            final RemoteSplitLaunchTransitionRunner animationRunner =
                    new RemoteSplitLaunchTransitionRunner(taskId1, taskId2, callback);
            final RemoteTransition remoteTransition = new RemoteTransition(animationRunner,
                    ActivityThread.currentActivityThread().getApplicationThread());
                    ActivityThread.currentActivityThread().getApplicationThread(),
                    "LaunchSplitPair");
            if (intent1 == null && intent2 == null) {
                mSystemUiProxy.startTasks(taskId1, options1.toBundle(), taskId2,
                        null /* options2 */, stagePosition, splitRatio, remoteTransition,