[1/n] Force incompatible activities to fullscreen via desktop launch params
Currently incompatible activities are only forced to fullscreen via the
request handling in `DesktopTasksController`. However, desktop taskbar
launches are not handled by `DesktopTaskController` after the intent in
started in Shell.
This CL moves 'DesktopModeCompatPolicy` to Core so it can be used by
both `DesktopTaksController` in Shell and
`DesktopModeLaunchParamsModifier` in Core.
Flag: com.android.window.flags.handle_incompatible_tasks_in_desktop_launch_params
Fixes: 409489637
Fixes: 418181855
Test: atest WmTests:DesktopModeLaunchParamsModifierTests,
atest WMShellUnitTests:DesktopModeCompatPolicyTest,
atest WMShellUnitTests:DesktopTasksControllerTest,
atest WMShellUnitTests:SystemModalsTransitionHandlerTest,
atest WMShellUnitTests:DesktopModeWindowDecorationTests,
atest WMShellUnitTests:DesktopModeWindowDecorViewModelTests
Change-Id: I7b549b0547c443fb0aa149c0b7b3d0251595e9ce
18 files changed