Use task bounds as local animation frame in fixed rotation

When switching to a fixed rotation transformed activity, the activity
will be rotated but display and task are still in original rotation.
So the local animation should use the same coordinate space as display.

The insets for animation are not handled because aspect-scaled-thumbnail
animation is no longer used (replaced by recents animation). So the
methods in rotator are also simplified.

Bug: 151709552
Test: DisplayContentTests#testApplyTopFixedRotationTransform
Test: Enable fixed_rotation_transform and launch activity with
      ActivityOptions#makeClipRevealAnimation in different orientation.

Change-Id: I7c924719eb535252509305cd842cdb4e0279b858
diff --git a/services/tests/wmtests/src/com/android/server/wm/DisplayContentTests.java b/services/tests/wmtests/src/com/android/server/wm/DisplayContentTests.java
index b3c6b22..218c816 100644
--- a/services/tests/wmtests/src/com/android/server/wm/DisplayContentTests.java
+++ b/services/tests/wmtests/src/com/android/server/wm/DisplayContentTests.java
@@ -1016,6 +1016,15 @@
         assertTrue(mDisplayContent.getDisplayRotation().shouldRotateSeamlessly(
                 ROTATION_0 /* oldRotation */, ROTATION_90 /* newRotation */,
                 false /* forceUpdate */));
+
+        final Rect outFrame = new Rect();
+        final Rect outInsets = new Rect();
+        final Rect outStableInsets = new Rect();
+        final Rect outSurfaceInsets = new Rect();
+        mAppWindow.getAnimationFrames(outFrame, outInsets, outStableInsets, outSurfaceInsets);
+        // The animation frames should not be rotated because display hasn't rotated.
+        assertEquals(mDisplayContent.getBounds(), outFrame);
+
         // The display should keep current orientation and the rotated configuration should apply
         // to the activity.
         assertEquals(config.orientation, mDisplayContent.getConfiguration().orientation);