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
Loading
Please register or sign in to comment