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

Commit 09493cc8 authored by Candice Lo's avatar Candice Lo Committed by Android (Google) Code Review
Browse files

Merge "Fix failing test...

Merge "Fix failing test enableWindowMagnificationWithScaleOne_enabled_AnimationAndInvokeCallback" into main
parents 24051dbe 3f87ea1a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -241,9 +241,13 @@ public class WindowMagnificationAnimationControllerTest extends SysuiTestCase {
            throws RemoteException {
        enableWindowMagnificationWithoutAnimation();

        // Wait for Rects updated.
        waitForIdleSync();
        View mirrorView = mWindowManager.getAttachedView();
        final float targetScale = 1.0f;
        final float targetCenterX = DEFAULT_CENTER_X + 100;
        final float targetCenterY = DEFAULT_CENTER_Y + 100;
        // Move the magnifier to the top left corner, within the boundary
        final float targetCenterX = mirrorView.getWidth() / 2.0f;
        final float targetCenterY = mirrorView.getHeight() / 2.0f;

        Mockito.reset(mSpyController);
        mInstrumentation.runOnMainSync(() -> {