diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2016-04-13 04:18:30 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-04-13 04:18:31 +0000 |
| commit | a74888ddf6657b41aed28dff0b0b1d47a80f107f (patch) | |
| tree | 6b75e18fb92987dde2dd2f1bb202e5feb1c24d27 /core/java | |
| parent | c1e1e41471a98a79097a75933d03dbc785aa973f (diff) | |
| parent | 29379ec859bf7118dec9f3248c63ee369218ad6b (diff) | |
Merge "TRON refinements for multi-window" into nyc-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/ActivityManager.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityManager.java b/core/java/android/app/ActivityManager.java index d1f514327731..631a1293cdc0 100644 --- a/core/java/android/app/ActivityManager.java +++ b/core/java/android/app/ActivityManager.java @@ -22,6 +22,7 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.RequiresPermission; import android.annotation.SystemApi; +import android.content.pm.ActivityInfo; import android.content.res.Configuration; import android.graphics.Canvas; import android.graphics.Matrix; @@ -1305,6 +1306,12 @@ public class ActivityManager { */ public boolean isDockable; + /** + * The resize mode of the task. See {@link ActivityInfo#resizeMode}. + * @hide + */ + public int resizeMode; + public RecentTaskInfo() { } @@ -1349,6 +1356,7 @@ public class ActivityManager { dest.writeInt(0); } dest.writeInt(isDockable ? 1 : 0); + dest.writeInt(resizeMode); } public void readFromParcel(Parcel source) { @@ -1372,6 +1380,7 @@ public class ActivityManager { bounds = source.readInt() > 0 ? Rect.CREATOR.createFromParcel(source) : null; isDockable = source.readInt() == 1; + resizeMode = source.readInt(); } public static final Creator<RecentTaskInfo> CREATOR @@ -1560,6 +1569,12 @@ public class ActivityManager { */ public boolean isDockable; + /** + * The resize mode of the task. See {@link ActivityInfo#resizeMode}. + * @hide + */ + public int resizeMode; + public RunningTaskInfo() { } @@ -1583,6 +1598,7 @@ public class ActivityManager { dest.writeInt(numActivities); dest.writeInt(numRunning); dest.writeInt(isDockable ? 1 : 0); + dest.writeInt(resizeMode); } public void readFromParcel(Parcel source) { @@ -1599,6 +1615,7 @@ public class ActivityManager { numActivities = source.readInt(); numRunning = source.readInt(); isDockable = source.readInt() != 0; + resizeMode = source.readInt(); } public static final Creator<RunningTaskInfo> CREATOR = new Creator<RunningTaskInfo>() { |
