summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Eghosa Ewansiha-Vlachavas <eevlachavas@google.com> 2024-08-09 07:12:00 +0000
committer Eghosa Ewansiha-Vlachavas <eevlachavas@google.com> 2024-08-15 06:55:42 +0000
commit9dd318ea87df9dd21cde4b53b4d37b482443994f (patch)
treefa31a7b24b12646c3a3e6f6a88bff823c1dab766 /libs/androidfw/ResourceTimer.cpp
parentfda1f4323268706a0d9e11fc96ca237f0bce84c7 (diff)
Introduce DWAppCompatAspectRatioPolicy
Create a new app compat policy which contains desktop windowing specific aspect ratio logic for the inital bounds calculation. Since we know a lot of information about the final state of the application, we can make some assumption compared to the existing `AppCompatAspectRatioPolicy`. For example, we can assume the windowing mode will be freefrom, that we are not in table top or book mode and that the camera activity is not active. This also differs from the `AppCompatAspectRatioPolicy` through the way we access display information. As the activity record is not fully populated at the point the initial bounds for desktop windowing are created, we must access the display information through the task instead. Flag: NONE(unused code) Bug: 353457301 Test: atest WmTests:DesktopAppCompatAspectRatioPolicyTests Change-Id: I297f7a17f54871c134336282e839f3c0ce0c5182
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions