Only letterbox when display never rotates for app.

This change effectively reverts
edac10a1f9b28e64dd6716d9068f499a2c2f9c11. And uses a different approach
to fix the other issue.

Bug: 122640019
Bug: 122849394
Bug: 123431170
Test: Manual tests.
atest WmTests:WindowContainerTests
atest WmTests:TaskRecordTests
atest CtsViewTestCases:PixelCopyTest#testWindowProducerCropCenter
GtsMediaTestCases:WidevineDashPolicyTests#testL10SLicense40SPlayback
doesn't fail for released surface.

Change-Id: I33be05248c981cd2bf9274512ef82727f12f8b17
diff --git a/services/core/java/com/android/server/wm/DisplayRotation.java b/services/core/java/com/android/server/wm/DisplayRotation.java
index bc165dc..5f341ee 100644
--- a/services/core/java/com/android/server/wm/DisplayRotation.java
+++ b/services/core/java/com/android/server/wm/DisplayRotation.java
@@ -329,6 +329,15 @@
         return mFixedToUserRotation;
     }
 
+    /**
+     * Returns {@code true} if this display rotation takes app requested orientation into
+     * consideration; {@code false} otherwise. For the time being the only case where this is {@code
+     * false} is when {@link #isFixedToUserRotation()} is {@code true}.
+     */
+    boolean respectAppRequestedOrientation() {
+        return !mFixedToUserRotation;
+    }
+
     public int getLandscapeRotation() {
         return mLandscapeRotation;
     }