Loading core/api/test-current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -499,14 +499,14 @@ package android.app { method public int describeContents(); method public int getActivityType(); method @Nullable public android.graphics.Rect getAppBounds(); method public android.graphics.Rect getBounds(); method @NonNull public android.graphics.Rect getBounds(); method @NonNull public android.graphics.Rect getMaxBounds(); method public int getRotation(); method public int getWindowingMode(); method public static boolean isFloating(int); method public void setActivityType(int); method public void setAppBounds(@Nullable android.graphics.Rect); method public void setBounds(android.graphics.Rect); method public void setBounds(@Nullable android.graphics.Rect); method public void setMaxBounds(@Nullable android.graphics.Rect); method public void setRotation(int); method public void setTo(android.app.WindowConfiguration); Loading core/java/android/app/WindowConfiguration.java +11 −6 Original line number Diff line number Diff line Loading @@ -267,12 +267,13 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu } }; // TODO(b/297672475): make this take @Nullable /** * Sets the bounds to the provided {@link Rect}. * Passing {@code null} sets the bounds {@link Rect} to empty. * * @param rect the new bounds value. */ public void setBounds(Rect rect) { public void setBounds(@Nullable Rect rect) { if (rect == null) { mBounds.setEmpty(); return; Loading @@ -282,8 +283,10 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu } /** * Set {@link #mAppBounds} to the input Rect. * @param rect The rect value to set {@link #mAppBounds} to. * Sets the app bounds to the provided {@link Rect}. * Passing {@code null} sets the bounds to {@code null}. * * @param rect the new app bounds value. * @see #getAppBounds() */ public void setAppBounds(@Nullable Rect rect) { Loading @@ -297,7 +300,9 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu /** * Sets the maximum bounds to the provided {@link Rect}. * @param rect the new bounds value. * Passing {@code null} sets the bounds {@link Rect} to empty. * * @param rect the new max bounds value. * @see #getMaxBounds() */ public void setMaxBounds(@Nullable Rect rect) { Loading Loading @@ -364,8 +369,8 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu return mAppBounds; } // TODO(b/297672475): make this return @NonNull /** @see #setBounds(Rect) */ @NonNull public Rect getBounds() { return mBounds; } Loading libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/DragPositioningCallbackUtilityTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ class DragPositioningCallbackUtilityTest { minHeight = MIN_HEIGHT defaultMinSize = DEFAULT_MIN displayId = DISPLAY_ID configuration.windowConfiguration.bounds = STARTING_BOUNDS configuration.windowConfiguration.setBounds(STARTING_BOUNDS) } mockWindowDecoration.mDisplay = mockDisplay whenever(mockDisplay.displayId).thenAnswer { DISPLAY_ID } Loading libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/FluidResizeTaskPositionerTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,7 @@ class FluidResizeTaskPositionerTest : ShellTestCase() { minHeight = MIN_HEIGHT defaultMinSize = DEFAULT_MIN displayId = DISPLAY_ID configuration.windowConfiguration.bounds = STARTING_BOUNDS configuration.windowConfiguration.setBounds(STARTING_BOUNDS) } mockWindowDecoration.mDisplay = mockDisplay whenever(mockDisplay.displayId).thenAnswer { DISPLAY_ID } Loading libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/VeiledResizeTaskPositionerTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,7 @@ class VeiledResizeTaskPositionerTest : ShellTestCase() { minHeight = MIN_HEIGHT defaultMinSize = DEFAULT_MIN displayId = DISPLAY_ID configuration.windowConfiguration.bounds = STARTING_BOUNDS configuration.windowConfiguration.setBounds(STARTING_BOUNDS) } mockDesktopWindowDecoration.mDisplay = mockDisplay whenever(mockDisplay.displayId).thenAnswer { DISPLAY_ID } Loading Loading
core/api/test-current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -499,14 +499,14 @@ package android.app { method public int describeContents(); method public int getActivityType(); method @Nullable public android.graphics.Rect getAppBounds(); method public android.graphics.Rect getBounds(); method @NonNull public android.graphics.Rect getBounds(); method @NonNull public android.graphics.Rect getMaxBounds(); method public int getRotation(); method public int getWindowingMode(); method public static boolean isFloating(int); method public void setActivityType(int); method public void setAppBounds(@Nullable android.graphics.Rect); method public void setBounds(android.graphics.Rect); method public void setBounds(@Nullable android.graphics.Rect); method public void setMaxBounds(@Nullable android.graphics.Rect); method public void setRotation(int); method public void setTo(android.app.WindowConfiguration); Loading
core/java/android/app/WindowConfiguration.java +11 −6 Original line number Diff line number Diff line Loading @@ -267,12 +267,13 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu } }; // TODO(b/297672475): make this take @Nullable /** * Sets the bounds to the provided {@link Rect}. * Passing {@code null} sets the bounds {@link Rect} to empty. * * @param rect the new bounds value. */ public void setBounds(Rect rect) { public void setBounds(@Nullable Rect rect) { if (rect == null) { mBounds.setEmpty(); return; Loading @@ -282,8 +283,10 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu } /** * Set {@link #mAppBounds} to the input Rect. * @param rect The rect value to set {@link #mAppBounds} to. * Sets the app bounds to the provided {@link Rect}. * Passing {@code null} sets the bounds to {@code null}. * * @param rect the new app bounds value. * @see #getAppBounds() */ public void setAppBounds(@Nullable Rect rect) { Loading @@ -297,7 +300,9 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu /** * Sets the maximum bounds to the provided {@link Rect}. * @param rect the new bounds value. * Passing {@code null} sets the bounds {@link Rect} to empty. * * @param rect the new max bounds value. * @see #getMaxBounds() */ public void setMaxBounds(@Nullable Rect rect) { Loading Loading @@ -364,8 +369,8 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu return mAppBounds; } // TODO(b/297672475): make this return @NonNull /** @see #setBounds(Rect) */ @NonNull public Rect getBounds() { return mBounds; } Loading
libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/DragPositioningCallbackUtilityTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ class DragPositioningCallbackUtilityTest { minHeight = MIN_HEIGHT defaultMinSize = DEFAULT_MIN displayId = DISPLAY_ID configuration.windowConfiguration.bounds = STARTING_BOUNDS configuration.windowConfiguration.setBounds(STARTING_BOUNDS) } mockWindowDecoration.mDisplay = mockDisplay whenever(mockDisplay.displayId).thenAnswer { DISPLAY_ID } Loading
libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/FluidResizeTaskPositionerTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,7 @@ class FluidResizeTaskPositionerTest : ShellTestCase() { minHeight = MIN_HEIGHT defaultMinSize = DEFAULT_MIN displayId = DISPLAY_ID configuration.windowConfiguration.bounds = STARTING_BOUNDS configuration.windowConfiguration.setBounds(STARTING_BOUNDS) } mockWindowDecoration.mDisplay = mockDisplay whenever(mockDisplay.displayId).thenAnswer { DISPLAY_ID } Loading
libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/VeiledResizeTaskPositionerTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,7 @@ class VeiledResizeTaskPositionerTest : ShellTestCase() { minHeight = MIN_HEIGHT defaultMinSize = DEFAULT_MIN displayId = DISPLAY_ID configuration.windowConfiguration.bounds = STARTING_BOUNDS configuration.windowConfiguration.setBounds(STARTING_BOUNDS) } mockDesktopWindowDecoration.mDisplay = mockDisplay whenever(mockDisplay.displayId).thenAnswer { DISPLAY_ID } Loading