Loading core/java/android/app/WindowConfiguration.java +1 −50 Original line number Diff line number Diff line Loading @@ -100,9 +100,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu /** The current windowing mode of the configuration. */ private @WindowingMode int mWindowingMode; /** The display windowing mode of the configuration */ private @WindowingMode int mDisplayWindowingMode; /** Windowing mode is currently not defined. */ public static final int WINDOWING_MODE_UNDEFINED = 0; /** Occupies the full area of the screen or the parent container. */ Loading Loading @@ -193,12 +190,9 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu /** Bit that indicates that the {@link #mRotation} changed. * @hide */ public static final int WINDOW_CONFIG_ROTATION = 1 << 6; /** Bit that indicates that the {@link #mDisplayWindowingMode} changed. * @hide */ public static final int WINDOW_CONFIG_DISPLAY_WINDOWING_MODE = 1 << 7; /** Bit that indicates that the apparent-display changed. * @hide */ public static final int WINDOW_CONFIG_DISPLAY_ROTATION = 1 << 8; public static final int WINDOW_CONFIG_DISPLAY_ROTATION = 1 << 7; /** @hide */ @IntDef(flag = true, prefix = { "WINDOW_CONFIG_" }, value = { Loading @@ -209,7 +203,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu WINDOW_CONFIG_ACTIVITY_TYPE, WINDOW_CONFIG_ALWAYS_ON_TOP, WINDOW_CONFIG_ROTATION, WINDOW_CONFIG_DISPLAY_WINDOWING_MODE, WINDOW_CONFIG_DISPLAY_ROTATION, }) public @interface WindowConfig {} Loading Loading @@ -237,7 +230,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu dest.writeInt(mActivityType); dest.writeInt(mAlwaysOnTop); dest.writeInt(mRotation); dest.writeInt(mDisplayWindowingMode); dest.writeInt(mDisplayRotation); } Loading @@ -250,7 +242,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu mActivityType = source.readInt(); mAlwaysOnTop = source.readInt(); mRotation = source.readInt(); mDisplayWindowingMode = source.readInt(); mDisplayRotation = source.readInt(); } Loading Loading @@ -411,17 +402,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu return mWindowingMode; } /** @hide */ public void setDisplayWindowingMode(@WindowingMode int windowingMode) { mDisplayWindowingMode = windowingMode; } /** @hide */ @WindowingMode public int getDisplayWindowingMode() { return mDisplayWindowingMode; } public void setActivityType(@ActivityType int activityType) { if (mActivityType == activityType) { return; Loading Loading @@ -453,7 +433,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu setActivityType(other.mActivityType); setAlwaysOnTop(other.mAlwaysOnTop); setRotation(other.mRotation); setDisplayWindowingMode(other.mDisplayWindowingMode); } /** Set this object to completely undefined. Loading @@ -472,7 +451,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu setActivityType(ACTIVITY_TYPE_UNDEFINED); setAlwaysOnTop(ALWAYS_ON_TOP_UNDEFINED); setRotation(ROTATION_UNDEFINED); setDisplayWindowingMode(WINDOWING_MODE_UNDEFINED); } /** @hide */ Loading Loading @@ -543,11 +521,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu changed |= WINDOW_CONFIG_ROTATION; setRotation(delta.mRotation); } if (delta.mDisplayWindowingMode != WINDOWING_MODE_UNDEFINED && mDisplayWindowingMode != delta.mDisplayWindowingMode) { changed |= WINDOW_CONFIG_DISPLAY_WINDOWING_MODE; setDisplayWindowingMode(delta.mDisplayWindowingMode); } if (delta.mDisplayRotation != ROTATION_UNDEFINED && delta.mDisplayRotation != mDisplayRotation) { changed |= WINDOW_CONFIG_DISPLAY_ROTATION; Loading Loading @@ -582,9 +555,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu if ((mask & WINDOW_CONFIG_ROTATION) != 0) { setRotation(delta.mRotation); } if ((mask & WINDOW_CONFIG_DISPLAY_WINDOWING_MODE) != 0) { setDisplayWindowingMode(delta.mDisplayWindowingMode); } if ((mask & WINDOW_CONFIG_DISPLAY_ROTATION) != 0) { setDisplayRotation(delta.mDisplayRotation); } Loading Loading @@ -639,11 +609,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu changes |= WINDOW_CONFIG_ROTATION; } if ((compareUndefined || other.mDisplayWindowingMode != WINDOWING_MODE_UNDEFINED) && mDisplayWindowingMode != other.mDisplayWindowingMode) { changes |= WINDOW_CONFIG_DISPLAY_WINDOWING_MODE; } if ((compareUndefined || other.mDisplayRotation != ROTATION_UNDEFINED) && mDisplayRotation != other.mDisplayRotation) { changes |= WINDOW_CONFIG_DISPLAY_ROTATION; Loading Loading @@ -697,8 +662,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu n = mRotation - that.mRotation; if (n != 0) return n; n = mDisplayWindowingMode - that.mDisplayWindowingMode; if (n != 0) return n; n = mDisplayRotation - that.mDisplayRotation; if (n != 0) return n; Loading Loading @@ -728,7 +691,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu result = 31 * result + mActivityType; result = 31 * result + mAlwaysOnTop; result = 31 * result + mRotation; result = 31 * result + mDisplayWindowingMode; result = 31 * result + mDisplayRotation; return result; } Loading @@ -742,7 +704,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu + " mDisplayRotation=" + (mRotation == ROTATION_UNDEFINED ? "undefined" : rotationToString(mDisplayRotation)) + " mWindowingMode=" + windowingModeToString(mWindowingMode) + " mDisplayWindowingMode=" + windowingModeToString(mDisplayWindowingMode) + " mActivityType=" + activityTypeToString(mActivityType) + " mAlwaysOnTop=" + alwaysOnTopToString(mAlwaysOnTop) + " mRotation=" + (mRotation == ROTATION_UNDEFINED Loading Loading @@ -817,16 +778,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu return mWindowingMode != WINDOWING_MODE_MULTI_WINDOW && tasksAreFloating(); } /** * Returns true if the activities associated with this window configuration display a decor * view. * @hide */ public boolean hasWindowDecorCaption() { return mActivityType == ACTIVITY_TYPE_STANDARD && (mWindowingMode == WINDOWING_MODE_FREEFORM || mDisplayWindowingMode == WINDOWING_MODE_FREEFORM); } /** * Returns true if the tasks associated with this window configuration can be resized * independently of their parent container. Loading services/core/java/com/android/server/wm/ActivityRecord.java +5 −1 Original line number Diff line number Diff line Loading @@ -8378,7 +8378,11 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A default: // Fall through } if (inMultiWindowMode() || getWindowConfiguration().hasWindowDecorCaption()) { // Use root activity's info for tasks in multi-window mode, or fullscreen tasks in freeform // task display areas, to ensure visual consistency across activity launches and exits in // the same task. final TaskDisplayArea tda = getTaskDisplayArea(); if (inMultiWindowMode() || (tda != null && tda.inFreeformWindowingMode())) { final ActivityRecord root = task != null ? task.getRootActivity() : null; if (root != null && root != this && !root.shouldCreateCompatDisplayInsets()) { // If the root activity doesn't use size compatibility mode, the activities above Loading services/core/java/com/android/server/wm/ConfigurationContainer.java +0 −7 Original line number Diff line number Diff line Loading @@ -467,13 +467,6 @@ public abstract class ConfigurationContainer<E extends ConfigurationContainer> { onRequestedOverrideConfigurationChanged(mRequestsTmpConfig); } /** Sets the windowing mode for the configuration container. */ void setDisplayWindowingMode(int windowingMode) { mRequestsTmpConfig.setTo(getRequestedOverrideConfiguration()); mRequestsTmpConfig.windowConfiguration.setDisplayWindowingMode(windowingMode); onRequestedOverrideConfigurationChanged(mRequestsTmpConfig); } /** * Returns true if this container is currently in multi-window mode. I.e. sharing the screen * with another activity. Loading services/core/java/com/android/server/wm/DisplayContent.java +0 −6 Original line number Diff line number Diff line Loading @@ -2456,7 +2456,6 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp config.windowConfiguration.setBounds(mTmpRect); config.windowConfiguration.setMaxBounds(mTmpRect); config.windowConfiguration.setWindowingMode(getWindowingMode()); config.windowConfiguration.setDisplayWindowingMode(getWindowingMode()); computeScreenAppConfiguration(config, dw, dh, displayInfo.rotation); Loading Loading @@ -2834,11 +2833,6 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp } } @Override void setDisplayWindowingMode(int windowingMode) { setWindowingMode(windowingMode); } /** * See {@code WindowState#applyImeWindowsIfNeeded} for the details that we won't traverse the * IME window in some cases. Loading services/core/java/com/android/server/wm/TaskDisplayArea.java +0 −1 Original line number Diff line number Diff line Loading @@ -1880,7 +1880,6 @@ final class TaskDisplayArea extends DisplayArea<WindowContainer> { mTempConfiguration.setTo(getRequestedOverrideConfiguration()); WindowConfiguration tempRequestWindowConfiguration = mTempConfiguration.windowConfiguration; tempRequestWindowConfiguration.setWindowingMode(windowingMode); tempRequestWindowConfiguration.setDisplayWindowingMode(windowingMode); onRequestedOverrideConfigurationChanged(mTempConfiguration); } Loading Loading
core/java/android/app/WindowConfiguration.java +1 −50 Original line number Diff line number Diff line Loading @@ -100,9 +100,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu /** The current windowing mode of the configuration. */ private @WindowingMode int mWindowingMode; /** The display windowing mode of the configuration */ private @WindowingMode int mDisplayWindowingMode; /** Windowing mode is currently not defined. */ public static final int WINDOWING_MODE_UNDEFINED = 0; /** Occupies the full area of the screen or the parent container. */ Loading Loading @@ -193,12 +190,9 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu /** Bit that indicates that the {@link #mRotation} changed. * @hide */ public static final int WINDOW_CONFIG_ROTATION = 1 << 6; /** Bit that indicates that the {@link #mDisplayWindowingMode} changed. * @hide */ public static final int WINDOW_CONFIG_DISPLAY_WINDOWING_MODE = 1 << 7; /** Bit that indicates that the apparent-display changed. * @hide */ public static final int WINDOW_CONFIG_DISPLAY_ROTATION = 1 << 8; public static final int WINDOW_CONFIG_DISPLAY_ROTATION = 1 << 7; /** @hide */ @IntDef(flag = true, prefix = { "WINDOW_CONFIG_" }, value = { Loading @@ -209,7 +203,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu WINDOW_CONFIG_ACTIVITY_TYPE, WINDOW_CONFIG_ALWAYS_ON_TOP, WINDOW_CONFIG_ROTATION, WINDOW_CONFIG_DISPLAY_WINDOWING_MODE, WINDOW_CONFIG_DISPLAY_ROTATION, }) public @interface WindowConfig {} Loading Loading @@ -237,7 +230,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu dest.writeInt(mActivityType); dest.writeInt(mAlwaysOnTop); dest.writeInt(mRotation); dest.writeInt(mDisplayWindowingMode); dest.writeInt(mDisplayRotation); } Loading @@ -250,7 +242,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu mActivityType = source.readInt(); mAlwaysOnTop = source.readInt(); mRotation = source.readInt(); mDisplayWindowingMode = source.readInt(); mDisplayRotation = source.readInt(); } Loading Loading @@ -411,17 +402,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu return mWindowingMode; } /** @hide */ public void setDisplayWindowingMode(@WindowingMode int windowingMode) { mDisplayWindowingMode = windowingMode; } /** @hide */ @WindowingMode public int getDisplayWindowingMode() { return mDisplayWindowingMode; } public void setActivityType(@ActivityType int activityType) { if (mActivityType == activityType) { return; Loading Loading @@ -453,7 +433,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu setActivityType(other.mActivityType); setAlwaysOnTop(other.mAlwaysOnTop); setRotation(other.mRotation); setDisplayWindowingMode(other.mDisplayWindowingMode); } /** Set this object to completely undefined. Loading @@ -472,7 +451,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu setActivityType(ACTIVITY_TYPE_UNDEFINED); setAlwaysOnTop(ALWAYS_ON_TOP_UNDEFINED); setRotation(ROTATION_UNDEFINED); setDisplayWindowingMode(WINDOWING_MODE_UNDEFINED); } /** @hide */ Loading Loading @@ -543,11 +521,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu changed |= WINDOW_CONFIG_ROTATION; setRotation(delta.mRotation); } if (delta.mDisplayWindowingMode != WINDOWING_MODE_UNDEFINED && mDisplayWindowingMode != delta.mDisplayWindowingMode) { changed |= WINDOW_CONFIG_DISPLAY_WINDOWING_MODE; setDisplayWindowingMode(delta.mDisplayWindowingMode); } if (delta.mDisplayRotation != ROTATION_UNDEFINED && delta.mDisplayRotation != mDisplayRotation) { changed |= WINDOW_CONFIG_DISPLAY_ROTATION; Loading Loading @@ -582,9 +555,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu if ((mask & WINDOW_CONFIG_ROTATION) != 0) { setRotation(delta.mRotation); } if ((mask & WINDOW_CONFIG_DISPLAY_WINDOWING_MODE) != 0) { setDisplayWindowingMode(delta.mDisplayWindowingMode); } if ((mask & WINDOW_CONFIG_DISPLAY_ROTATION) != 0) { setDisplayRotation(delta.mDisplayRotation); } Loading Loading @@ -639,11 +609,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu changes |= WINDOW_CONFIG_ROTATION; } if ((compareUndefined || other.mDisplayWindowingMode != WINDOWING_MODE_UNDEFINED) && mDisplayWindowingMode != other.mDisplayWindowingMode) { changes |= WINDOW_CONFIG_DISPLAY_WINDOWING_MODE; } if ((compareUndefined || other.mDisplayRotation != ROTATION_UNDEFINED) && mDisplayRotation != other.mDisplayRotation) { changes |= WINDOW_CONFIG_DISPLAY_ROTATION; Loading Loading @@ -697,8 +662,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu n = mRotation - that.mRotation; if (n != 0) return n; n = mDisplayWindowingMode - that.mDisplayWindowingMode; if (n != 0) return n; n = mDisplayRotation - that.mDisplayRotation; if (n != 0) return n; Loading Loading @@ -728,7 +691,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu result = 31 * result + mActivityType; result = 31 * result + mAlwaysOnTop; result = 31 * result + mRotation; result = 31 * result + mDisplayWindowingMode; result = 31 * result + mDisplayRotation; return result; } Loading @@ -742,7 +704,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu + " mDisplayRotation=" + (mRotation == ROTATION_UNDEFINED ? "undefined" : rotationToString(mDisplayRotation)) + " mWindowingMode=" + windowingModeToString(mWindowingMode) + " mDisplayWindowingMode=" + windowingModeToString(mDisplayWindowingMode) + " mActivityType=" + activityTypeToString(mActivityType) + " mAlwaysOnTop=" + alwaysOnTopToString(mAlwaysOnTop) + " mRotation=" + (mRotation == ROTATION_UNDEFINED Loading Loading @@ -817,16 +778,6 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu return mWindowingMode != WINDOWING_MODE_MULTI_WINDOW && tasksAreFloating(); } /** * Returns true if the activities associated with this window configuration display a decor * view. * @hide */ public boolean hasWindowDecorCaption() { return mActivityType == ACTIVITY_TYPE_STANDARD && (mWindowingMode == WINDOWING_MODE_FREEFORM || mDisplayWindowingMode == WINDOWING_MODE_FREEFORM); } /** * Returns true if the tasks associated with this window configuration can be resized * independently of their parent container. Loading
services/core/java/com/android/server/wm/ActivityRecord.java +5 −1 Original line number Diff line number Diff line Loading @@ -8378,7 +8378,11 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A default: // Fall through } if (inMultiWindowMode() || getWindowConfiguration().hasWindowDecorCaption()) { // Use root activity's info for tasks in multi-window mode, or fullscreen tasks in freeform // task display areas, to ensure visual consistency across activity launches and exits in // the same task. final TaskDisplayArea tda = getTaskDisplayArea(); if (inMultiWindowMode() || (tda != null && tda.inFreeformWindowingMode())) { final ActivityRecord root = task != null ? task.getRootActivity() : null; if (root != null && root != this && !root.shouldCreateCompatDisplayInsets()) { // If the root activity doesn't use size compatibility mode, the activities above Loading
services/core/java/com/android/server/wm/ConfigurationContainer.java +0 −7 Original line number Diff line number Diff line Loading @@ -467,13 +467,6 @@ public abstract class ConfigurationContainer<E extends ConfigurationContainer> { onRequestedOverrideConfigurationChanged(mRequestsTmpConfig); } /** Sets the windowing mode for the configuration container. */ void setDisplayWindowingMode(int windowingMode) { mRequestsTmpConfig.setTo(getRequestedOverrideConfiguration()); mRequestsTmpConfig.windowConfiguration.setDisplayWindowingMode(windowingMode); onRequestedOverrideConfigurationChanged(mRequestsTmpConfig); } /** * Returns true if this container is currently in multi-window mode. I.e. sharing the screen * with another activity. Loading
services/core/java/com/android/server/wm/DisplayContent.java +0 −6 Original line number Diff line number Diff line Loading @@ -2456,7 +2456,6 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp config.windowConfiguration.setBounds(mTmpRect); config.windowConfiguration.setMaxBounds(mTmpRect); config.windowConfiguration.setWindowingMode(getWindowingMode()); config.windowConfiguration.setDisplayWindowingMode(getWindowingMode()); computeScreenAppConfiguration(config, dw, dh, displayInfo.rotation); Loading Loading @@ -2834,11 +2833,6 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp } } @Override void setDisplayWindowingMode(int windowingMode) { setWindowingMode(windowingMode); } /** * See {@code WindowState#applyImeWindowsIfNeeded} for the details that we won't traverse the * IME window in some cases. Loading
services/core/java/com/android/server/wm/TaskDisplayArea.java +0 −1 Original line number Diff line number Diff line Loading @@ -1880,7 +1880,6 @@ final class TaskDisplayArea extends DisplayArea<WindowContainer> { mTempConfiguration.setTo(getRequestedOverrideConfiguration()); WindowConfiguration tempRequestWindowConfiguration = mTempConfiguration.windowConfiguration; tempRequestWindowConfiguration.setWindowingMode(windowingMode); tempRequestWindowConfiguration.setDisplayWindowingMode(windowingMode); onRequestedOverrideConfigurationChanged(mTempConfiguration); } Loading