summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Vladimir Komsiyski <vladokom@google.com> 2023-08-29 14:22:51 +0200
committer Vladimir Komsiyski <vladokom@google.com> 2023-08-31 08:39:33 +0200
commit9b2b73e65435c30741047193d068ae54200caed8 (patch)
treedfa3bd31cfb9f4bc7dd857268204474a66b400f6 /libs/hwui/FrameInfoVisualizer.cpp
parent0af9d20600f89c2acd82c25f72b1a1e03cc5d6a0 (diff)
Consolidate DWPC usages.
There are two main entry points to DWPC#canContainActivity: - ActivityStarter#isAllowedToStart - ActivityTaskSupervisor#canPlaceEntityOnDisplay They have diverged and this CL addresses the following issues: 1. Native handoff doesn't work if the launching display is the default display. 2. Windowing mode checks don't trigger the ActivityBlockedCallback and they should. 3. ActivityTaskSupervisor does not respect display categories and virtual device allow/blocklists and it should. 4. ActivityManager#isActivityStartAllowedOnDisplay (which calls canPlaceEntityOnDisplay) triggers the ActivityBlockedCallback and it shouldn't. 5. ActivityManager#isActivityStartAllowedOnDisplay does not consider the launching display id and whether it's a new task. 6. keepActivityOnWindowFlagsChanged does redundant checks not related to the window flags. 7. testCanActivityBeLaunched_requiredDisplayCategory isn't testing anything because the test DWPC always returns flase for canActivityBeLaunched 8. ActivityInterceptionTest sends intents only with component, which is matched by any intent filter. It only passed before because of the bug that intents coming from DEFAULT_DISPLAY are never intercepted. Not fixing 5. in this CL as that requires much larger refactoring. Fix: 297168338 Test: atest VirtualDeviceManagerServiceTest Test: atest DisplayWindowPolicyControllerTests Change-Id: Ie261fe2d0db2f14be0a7911041bc3104e1db11f6
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions