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

Commit d5852195 authored by Winson Chung's avatar Winson Chung
Browse files

Add wallpaper leash for remote and recents animations



Bug: 140626334
Test: atest RecentsAnimationControllerTest
Test: atest RemoteAnimationControllerTest

Change-Id: Id638256983801e722b57da0abd22e3e480d5559d
Signed-off-by: default avatarWinson Chung <winsonc@google.com>
parent 47f5c46c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -188,8 +188,8 @@ public class RecentsAnimationPerfTest extends WindowManagerPerfTestBase {

            @Override
            public void onAnimationStart(IRecentsAnimationController controller,
                    RemoteAnimationTarget[] apps, Rect homeContentInsets,
                    Rect minimizedHomeBounds) throws RemoteException {
                    RemoteAnimationTarget[] apps, RemoteAnimationTarget[] wallpapers,
                    Rect homeContentInsets, Rect minimizedHomeBounds) throws RemoteException {
                final Pair<String, Boolean> finishCase = finishCases.get(mIteration++ % 2);
                final boolean moveRecentsToTop = finishCase.second;
                makeInterval();
+2 −2
Original line number Diff line number Diff line
@@ -54,6 +54,6 @@ oneway interface IRecentsAnimationRunner {
     */
    @UnsupportedAppUsage
    void onAnimationStart(in IRecentsAnimationController controller,
            in RemoteAnimationTarget[] apps, in Rect homeContentInsets,
            in Rect minimizedHomeBounds) = 2;
            in RemoteAnimationTarget[] apps, in RemoteAnimationTarget[] wallpapers,
            in Rect homeContentInsets, in Rect minimizedHomeBounds) = 2;
}
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ oneway interface IRemoteAnimationRunner {
     * @param finishedCallback The callback to invoke when the animation is finished.
     */
    @UnsupportedAppUsage
    void onAnimationStart(in RemoteAnimationTarget[] apps,
    void onAnimationStart(in RemoteAnimationTarget[] apps, in RemoteAnimationTarget[] wallpapers,
            in IRemoteAnimationFinishedCallback finishedCallback);

    /**
+1 −1
Original line number Diff line number Diff line
@@ -255,7 +255,7 @@ public class SyncRtSurfaceTransactionApplier {
            this.surface = surface;
            this.alpha = alpha;
            this.matrix = new Matrix(matrix);
            this.windowCrop = new Rect(windowCrop);
            this.windowCrop = windowCrop != null ? new Rect(windowCrop) : null;
            this.layer = layer;
            this.cornerRadius = cornerRadius;
            this.visible = visible;
+5 −3
Original line number Diff line number Diff line
@@ -225,14 +225,16 @@ public class ActivityManagerWrapper {
                runner = new IRecentsAnimationRunner.Stub() {
                    @Override
                    public void onAnimationStart(IRecentsAnimationController controller,
                            RemoteAnimationTarget[] apps, Rect homeContentInsets,
                            Rect minimizedHomeBounds) {
                            RemoteAnimationTarget[] apps, RemoteAnimationTarget[] wallpapers,
                            Rect homeContentInsets, Rect minimizedHomeBounds) {
                        final RecentsAnimationControllerCompat controllerCompat =
                                new RecentsAnimationControllerCompat(controller);
                        final RemoteAnimationTargetCompat[] appsCompat =
                                RemoteAnimationTargetCompat.wrap(apps);
                        final RemoteAnimationTargetCompat[] wallpapersCompat =
                                RemoteAnimationTargetCompat.wrap(wallpapers);
                        animationHandler.onAnimationStart(controllerCompat, appsCompat,
                                homeContentInsets, minimizedHomeBounds);
                                wallpapersCompat, homeContentInsets, minimizedHomeBounds);
                    }

                    @Override
Loading