diff options
| author | Chilun <chilunhuang@google.com> | 2021-11-17 14:08:34 +0800 |
|---|---|---|
| committer | Chilun <chilunhuang@google.com> | 2022-01-14 10:51:40 +0800 |
| commit | 1cb61528952aebb04de2003c208086800a035cea (patch) | |
| tree | 683f666d8bc8d7522880c7de05377ff216225520 /core/java/android/window/DisplayWindowPolicyController.java | |
| parent | 967a70e58088acc93a2469f2ddb3073863808cd2 (diff) | |
Ask the policy controller for launching activities
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
Diffstat (limited to 'core/java/android/window/DisplayWindowPolicyController.java')
| -rw-r--r-- | core/java/android/window/DisplayWindowPolicyController.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/window/DisplayWindowPolicyController.java b/core/java/android/window/DisplayWindowPolicyController.java index c3ef88192c5d..3359a41369d7 100644 --- a/core/java/android/window/DisplayWindowPolicyController.java +++ b/core/java/android/window/DisplayWindowPolicyController.java @@ -19,6 +19,7 @@ package android.window; import android.annotation.NonNull; import android.content.ComponentName; import android.content.pm.ActivityInfo; +import android.util.ArraySet; import java.io.PrintWriter; import java.util.List; @@ -81,8 +82,10 @@ public abstract class DisplayWindowPolicyController { /** * This is called when the apps that contains running activities on the display has changed. + * The running activities refer to the non-finishing activities regardless of they are running + * in a process. */ - public void onRunningAppsChanged(int[] runningUids) {} + public void onRunningAppsChanged(ArraySet<Integer> runningUids) {} /** Dump debug data */ public void dump(String prefix, final PrintWriter pw) { |
