summaryrefslogtreecommitdiff
path: root/core/java/android/window/DisplayWindowPolicyController.java
Commit message (Collapse)AuthorAgeFilesLines
* Use DeviceProfile to determine whether to exclude tasks from RecentIris Yang2022-05-271-0/+5
| | | | | | | | | | | | For Android Auto, tasks should exclude from Recents by default. For App streaming device profile, tasks should be showed from Recents. This change also keep the most recent task of "Default display" in Recents even if it's excluded from Recents. Bug: 232385935 Test: atest WmTests:RecentTasksTest Change-Id: Ic01ed6bbae1f2b77f8664196cbc59b248f5ec3b4
* Decide on navigation to task by policy in Virtual DeviceShaun Corkran2022-04-071-0/+7
| | | | | | | | | | | | | | | Adds the implementation to allow or block navigation to a new task in the policy controller for a virtual device. Will only change behavior if the cross navigation allow or block list is included and the navigation does not occur from the default display. Bug: 223915401 Test: atest WmTests:DisplayWindowPolicyControllerHelperTests atest CtsVirtualDevicesTestCases atest WmTests:ActivityStarterTests Added test in ag/17503735 Change-Id: I3dfb9dd93c0edf4634320c52a3fc40c4bf473085
* Add API to indicate supported windowing modes on the virtual displaysIris Yang2022-03-091-2/+45
| | | | | | | | | | | 1. Add new API in DWPC to get windowing features of the virtual display. 2. In ActivityRecord, consume the value of the allowed windowing modes of virtual display. Bug: 180435098 Test: atest WmTests:ActivityRecordTests#testSupportsPictureInPicture && atest WmTests:DisplayWindowPolicyControllerHelperTests Change-Id: I39a6cd9417f266f7fdef72cc054263c3ca4c5650
* Ask the policy controller for launching activitiesChilun2022-01-141-1/+4
| | | | | | | | | | | | | | | | | | Ask the policy controller whether an activity can be displayed on the virtual display when it is going to launch or reparent. Also notify the policy controller the activity changes on the virtual display. Bug: 201712607 Test: atest DisplayWindowPolicyControllerHelperTests atest ActivityRecordTests atest ActivityTaskSupervisorTests atest TaskTests atest TaskFragmentTest atest WindowManagerServiceTests Change-Id: I11fcc38782b21ccb2f0474777242dbf5901c59e1
* Adding system window flag in DWPCChilun2021-11-291-4/+13
| | | | | | | | | Since there are some system flags we care about, add mSystemWindowFlag for DWPC determination. Bug: 201712607 Test: manual Change-Id: I7dd75e612cacfe91d340324083705e80ce9bd112
* Introduce DisplayWindowPolicyController for display across devicesChilun2021-11-221-0/+84
A controller to control the policies of the windows that can be displayed on the virtual display. Also migrate task event callbacks. Bug: 201712607 Test: manual Change-Id: I4accd76beda6829cd1b33ad50c0860405ae10678