+102
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Try to estimate the necessary rotate&crop compensation for: 1) All device orientations 2) Front cameras 3) Cameras with landscape sensor orientation Additionally check the resizeable flag of the top activity using the 'topActivityInfo.resizeMode'. Move the heuristics outside of the camera proxy stub inner class and declare them static. This should make unit tests of the logic inside easier. Bug: 202567080 Test: Manual using camera applications, Camera CTS, atest FrameworksServicesTests:com.android.server.camera.CameraServiceProxyTest Change-Id: Iba9b1b26958a373c481a1af0601c08012b5a61e7