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 Original line Diff line number Diff line
@@ -241,9 +241,13 @@ public class WindowMagnificationAnimationControllerTest extends SysuiTestCase {
            throws RemoteException {
            throws RemoteException {
        enableWindowMagnificationWithoutAnimation();
        enableWindowMagnificationWithoutAnimation();


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


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