diff options
| author | 2025-01-30 03:48:30 +0000 | |
|---|---|---|
| committer | 2025-03-04 14:56:43 +0000 | |
| commit | 813cfb259ad85edb716bb69895b110168fa270f6 (patch) | |
| tree | 3257910c1105b07b968f8aed543a9c774a32da6f /libs/androidfw/FileStream.cpp | |
| parent | 62a6069fa8f3f3bbedea1ca515259461bbb09812 (diff) | |
[PD/ED] Add AppHandleVisibilityHelper and new DesktopModeStatus method.
These two helper methods are used in conjunction at runtime to see what modes
should be used:
- AppHandleVisibilityHelper checks against a task's current display
attributes and the task's attributes to see if the app handle should
appear
- DesktopModeStatus#isDesktopModeSupportedOnDisplay is a new helper method
that checks overall device's DesktopMode status and whether its internal
display can host desktops to see if a display should be able to have
desktop sessions or not. This is also used to deduce a device's mode: if
desktop mode is enabled but internal display can't host desktops, then
it is a projected display. Else, it is Extended.
This also changes DesktopModeStatus#isDeviceEligibleForDesktkopMode,
which base on the value of Projected Display flag, will now start
returning true for Projected Display phones (e.g. phones).
Bug: 384568161
Test: atest
Flag: com.android.window.flags.enable_bug_fixes_for_secondary_display
Flag: com.android.window.flags.enable_projected_display_desktop_mode
Change-Id: Iaea57a990dcc1b55340760da12db6085b4b9c204
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions