summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Austin Borger <borgera@google.com> 2022-11-17 17:02:09 -0800
committer Austin Borger <borgera@google.com> 2022-12-05 20:48:35 -0800
commit70ca84c49b66f34c1454dd76ff8370f515c465c5 (patch)
treea215d0bfe87d845adedc8df3d4d9fd2854ff2f61 /libs/androidfw/ApkParsing.cpp
parent47e17f78b60316bbc7c7c1d23fbc99f5272384e4 (diff)
CameraManager: Provide flag for overriding camera output to portrait.
Apps commonly do not handle landscape orientation cameras correctly. In order to prevent stretching and rotation issues in these apps, this patch adds a flag to override the behavior of these landscape cameras to produce a portrait image instead by changing the SENSOR_ORIENTATION reported by CameraCharacteristics and applying a 90 degree rotate and crop. It also adds a CompatChanges entry which will track which apps require this treatment. Test: Ran on foldable device with several camera apps to verify behavior. Bug: 250678880 Change-Id: I92b6f227916b97828ab6a7f856eea5a1e427644d Merged-In: I92b6f227916b97828ab6a7f856eea5a1e427644d
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions