summaryrefslogtreecommitdiff
path: root/core/java/android/app/TaskInfo.java
diff options
context:
space:
mode:
authorWale Ogunwale <ogunwale@google.com>2020-04-13 07:30:59 -0700
committerWale Ogunwale <ogunwale@google.com>2020-04-19 19:09:33 -0700
commit20ab6d49996d692f70900167a01e444caf991f4d (patch)
tree23f30018e7704dc1e7c4be8cf5d19cf1e2b587fe /core/java/android/app/TaskInfo.java
parent9bca3a380df5de411e361f698c11a3b1c78f04ea (diff)
Allow CTS test to control organized tasks
Changes to allow CTS test to control organized task so we can have the tests run the same way sys-ui is driving things now. Control is given back to sys-ui once the test is done running. Bug: 149338177 Test: atest CtsWindowManagerDeviceTestCases:SplitScreenTests Change-Id: I74a03ee3411f5b10ea4e26c1cc3c663dc394dd97
Diffstat (limited to 'core/java/android/app/TaskInfo.java')
-rw-r--r--core/java/android/app/TaskInfo.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/app/TaskInfo.java b/core/java/android/app/TaskInfo.java
index 0173731995dd..c7a2a1e11c9e 100644
--- a/core/java/android/app/TaskInfo.java
+++ b/core/java/android/app/TaskInfo.java
@@ -20,6 +20,7 @@ import static android.content.pm.ActivityInfo.RESIZE_MODE_UNRESIZEABLE;
import android.annotation.NonNull;
import android.annotation.Nullable;
+import android.annotation.TestApi;
import android.compat.annotation.UnsupportedAppUsage;
import android.content.ComponentName;
import android.content.Intent;
@@ -196,6 +197,20 @@ public class TaskInfo {
return resizeMode != RESIZE_MODE_UNRESIZEABLE;
}
+ /** @hide */
+ @NonNull
+ @TestApi
+ public WindowContainerToken getToken() {
+ return token;
+ }
+
+ /** @hide */
+ @NonNull
+ @TestApi
+ public Configuration getConfiguration() {
+ return configuration;
+ }
+
/**
* Reads the TaskInfo from a parcel.
*/