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

Commit 97f8a2ab authored by Mina Granic's avatar Mina Granic
Browse files

Use CompatibilityInfo to pass camera rotateAndCrop degrees.

The benefits of this approach are:
- Execution time of this check reduced from 18ms to 5 micros (3000x).
- Consolidates data in an already used data source (CompatibilityInfo).
- Removes the need for the CameraCompatTaskInfo object, thus slightly speeding up recomputing TaskInfo#getTaskInfo() every time.
- Improved testability for CameraManager, as there is no need for task/activity setup.

Flag: com.android.window.flags.enable_camera_compat_compatibility_info_rotate_and_crop_bugfix
Test: atest WmTests:AppCompatUtilsTest
Test: atest WmTests:CameraCompatFreeformPolicyTests
Test: manual
Bug: 430274604
Bug: 429295361
Change-Id: Ib1337312caabb43896822a0e71ecd5ed8e7f19ce
parent 425d7d4b
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