summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorMariia Sandrikova <mariiasand@google.com>2021-02-10 21:13:00 +0000
committerMariia Sandrikova <mariiasand@google.com>2021-02-25 11:35:13 +0000
commit31d25e9ebc6f81a556b801003e42226f6a3e72a4 (patch)
treee93698dd4a8f22fe526e5c995d7bd73fd1be5736 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parente9c691d34e7279a98ae887af641bc93a9af3c9e2 (diff)
Letterbox positioning (1/4): Consolidate activity and task letterboxing
Now letterboxing can happen on both task (fixed orientation) and activity (size compat or aspect ratio restrictions) levels. This change consolidates them to prevent future changes for letterbox positioning from being split between Task and ActivityRecord. Main changes: - Move Task#computeLetterboxBounds to ActivityRecord#resolveFixedOrientationConfiguration that is called from ActivityRecord#resolveOverrideConfiguration. - Since fixed orientation letterboxing is no longer included in parent (task) bounds of the activity, account for fixed orientation letterbox bounds in size compat methods that relies on that. - Replace all calls of ActivityRecord#updateCompatDisplayInsets (renamed updateSizeCompatMode) with just one call in ActivityRecord#resolveOverrideConfiguration. - Refactor ActivityRecord#inSizeCompatMode to use mInSizeCompatModeForBounds pre-calculated in ActivityRecord#resolveSizeCompatModeConfiguration. Changes planned in next CLs: (2/4) Consolidate positioning logic in ActivityRecord#positionLetterboxedBounds(...) called from ActivityRecord#resolveOverrideConfiguration after bounds dimensions are computed. (3/4) Position bounds using gravity specified in config or via ADB commands. (4/4) Rename WindowManagerService#getTaskLetterboxAspectRatio and all related methods since fixed orientation letterboxing now happens on activity level. Test: atest WmTests Bug: 175212232 Change-Id: I8b1f7ac178bef2105c46940ddd3a493c547f0be9
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions