summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Mariia Sandrikova <mariiasand@google.com> 2022-07-19 11:44:02 +0000
committer Mariia Sandrikova <mariiasand@google.com> 2022-12-21 19:34:19 +0000
commit83c300c0f91395411a7a52288a1fbf255f9cce15 (patch)
treeeb17dc5993a7b9912f2d61df2f5ca51fb9e752ec /libs/androidfw/ApkParsing.cpp
parent4475e9026c488c7c33be1ed5adccb4a8abe176cf (diff)
[1/n] Camera Compat: Force rotate activities
Camera compatibility treatment that handles orientation mismatch between camera buffers and an app window that can lead to camera issues like sideways or stretched viewfinder. The treatment is enabled for internal displays that have ignoreOrientationRequest display setting enabled and when a flag config_windowManagerCameraCompatTreatmentEnabled is true. It's only applied to activities that have fixed orientation and are in fullscreen. Main parts of the solution: - Listen for the camera changes in DisplayRotationCompatPolicy to trigger orientation update when necessary - Incorporate DisplayRotationCompatPolicy#getOrientation in orientation resolution logic in DisplayContent - Don't trigger orientation updates too quickly to avoid orientation flickering during the camera flip or fold-unfold for foldable devices Bug: 218352945 Test: atest WmTests:DisplayRotationCompatPolicyTests Change-Id: Iaa3a3efa4e0fa89fbb58c7dbc59c125600972224
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions