Handle different device/activity orientations for camera compat.

The device can be in portrait or landscape orientation, which affects
camera aspect ratio. The app can request fixed orientation portrait
or landscape, which affects what window- and camera aspect ratio it expects.

This change only introduces different types of treatments - the actual
change in behavior will come later.

Flag: com.android.window.flags.camera_compat_for_freeform
Bug: 365078090
Test: atest WmTests:CameraCompatFreeformPolicyTests

Change-Id: I6991a19461eb2a83e09c04315ea28bceaf3a86a7
4 files changed