diff options
Diffstat (limited to 'core/java/android/app/TaskInfo.java')
| -rw-r--r-- | core/java/android/app/TaskInfo.java | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/core/java/android/app/TaskInfo.java b/core/java/android/app/TaskInfo.java index fe382a33a8c5..2da5e001a3e4 100644 --- a/core/java/android/app/TaskInfo.java +++ b/core/java/android/app/TaskInfo.java @@ -27,7 +27,6 @@ import android.content.Intent; import android.content.pm.ActivityInfo; import android.content.res.Configuration; import android.graphics.Point; -import android.graphics.Rect; import android.os.Build; import android.os.IBinder; import android.os.Parcel; @@ -187,22 +186,6 @@ public class TaskInfo { public boolean isResizeable; /** - * Activity bounds if this task or its top activity is presented in letterbox mode and - * {@code null} otherwise. - * @hide - */ - @Nullable - public Rect letterboxActivityBounds; - - /** - * Activity insets if this task or its top activity is presented in letterbox mode and - * {@code null} otherwise. - * @hide - */ - @Nullable - public Rect letterboxActivityInsets; - - /** * Relative position of the task's top left corner in the parent container. * @hide */ @@ -223,12 +206,6 @@ public class TaskInfo { public int parentTaskId; /** - * Parent bounds. - * @hide - */ - public Rect parentBounds; - - /** * Whether this task is focused. * @hide */ @@ -320,7 +297,6 @@ public class TaskInfo { return topActivityType == that.topActivityType && isResizeable == that.isResizeable && Objects.equals(positionInParent, that.positionInParent) - && equalsLetterboxParams(that) && Objects.equals(pictureInPictureParams, that.pictureInPictureParams) && getWindowingMode() == that.getWindowingMode() && Objects.equals(taskDescription, that.taskDescription) @@ -328,18 +304,6 @@ public class TaskInfo { && isVisible == that.isVisible; } - private boolean equalsLetterboxParams(TaskInfo that) { - return Objects.equals(letterboxActivityBounds, that.letterboxActivityBounds) - && Objects.equals( - getConfiguration().windowConfiguration.getBounds(), - that.getConfiguration().windowConfiguration.getBounds()) - && Objects.equals( - getConfiguration().windowConfiguration.getMaxBounds(), - that.getConfiguration().windowConfiguration.getMaxBounds()) - && Objects.equals(parentBounds, that.parentBounds) - && Objects.equals(letterboxActivityInsets, that.letterboxActivityInsets); - } - /** * Reads the TaskInfo from a parcel. */ @@ -368,13 +332,10 @@ public class TaskInfo { topActivityInfo = source.readTypedObject(ActivityInfo.CREATOR); isResizeable = source.readBoolean(); source.readBinderList(launchCookies); - letterboxActivityBounds = source.readTypedObject(Rect.CREATOR); positionInParent = source.readTypedObject(Point.CREATOR); parentTaskId = source.readInt(); - parentBounds = source.readTypedObject(Rect.CREATOR); isFocused = source.readBoolean(); isVisible = source.readBoolean(); - letterboxActivityInsets = source.readTypedObject(Rect.CREATOR); } /** @@ -406,13 +367,10 @@ public class TaskInfo { dest.writeTypedObject(topActivityInfo, flags); dest.writeBoolean(isResizeable); dest.writeBinderList(launchCookies); - dest.writeTypedObject(letterboxActivityBounds, flags); dest.writeTypedObject(positionInParent, flags); dest.writeInt(parentTaskId); - dest.writeTypedObject(parentBounds, flags); dest.writeBoolean(isFocused); dest.writeBoolean(isVisible); - dest.writeTypedObject(letterboxActivityInsets, flags); } @Override @@ -433,13 +391,10 @@ public class TaskInfo { + " pictureInPictureParams=" + pictureInPictureParams + " topActivityInfo=" + topActivityInfo + " launchCookies=" + launchCookies - + " letterboxActivityBounds=" + letterboxActivityBounds + " positionInParent=" + positionInParent + " parentTaskId=" + parentTaskId - + " parentBounds=" + parentBounds + " isFocused=" + isFocused + " isVisible=" + isVisible - + " letterboxActivityInsets=" + letterboxActivityInsets + "}"; } } |
