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

Commit 11a268ad authored by Mina Karadzic's avatar Mina Karadzic
Browse files

Clearly signal to Camera FW whether to apply inverse display transform.

Inverse display transform rotates the preview based on the display rotation, so the app doesn't need to apply the display rotation offset.

However, when display rotation is sandboxed, this transform doesn't work well. This flag is already disabled for camera compat, but this data is extracted from other parameters of camera compat mode - this change is making it explicit.

What's more, when display rotation is sandboxed for external displays, neither of camera-related CameraCompatiblityInfo fields are changed (rotate-and-crop and sensor orientation) - Camera FW could check that display rotation has been sandboxed via this object, but ideally Camera FW should not hold this kind of logic.

Flag: com.android.window.flags.enable_camera_compat_sandbox_display_rotation_on_external_displays_bugfix
Bug: 395063101
Test: atest WmTests:AppCompatCameraSimReqOrientationPolicyTests
Test: atest CameraCompatibilityInfoTest
Change-Id: Ib7df281c1b8b902b6de191fb6cde280e0f3ca06e
parent 96f6c51e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment