Loading api/test-current.txt +1 −2 Original line number Diff line number Diff line Loading @@ -97,8 +97,7 @@ package android.app { method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void removeStacksInWindowingModes(int[]) throws java.lang.SecurityException; method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void removeStacksWithActivityTypes(int[]) throws java.lang.SecurityException; method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeDockedStack(android.graphics.Rect, android.graphics.Rect); method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeStack(int, android.graphics.Rect) throws java.lang.SecurityException; method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeStack(int, android.graphics.Rect, boolean); method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizePinnedStack(int, android.graphics.Rect, boolean); method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeTask(int, android.graphics.Rect); method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void setDisplayToSingleTaskInstance(int); method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void setTaskWindowingMode(int, int, boolean) throws java.lang.SecurityException; Loading core/java/android/app/ActivityTaskManager.java +6 −18 Original line number Diff line number Diff line Loading @@ -201,21 +201,6 @@ public class ActivityTaskManager { } } /** * Resizes the input stack id to the given bounds. * @param stackId Id of the stack to resize. * @param bounds Bounds to resize the stack to or {@code null} for fullscreen. */ @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeStack(int stackId, Rect bounds) throws SecurityException { try { getService().resizeStack(stackId, bounds, false /* allowResizeInDockedMode */, false /* preserveWindows */, false /* animate */, -1 /* animationDuration */); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } /** * Removes stacks in the windowing modes from the system if they are of activity type * ACTIVITY_TYPE_STANDARD or ACTIVITY_TYPE_UNDEFINED Loading Loading @@ -362,10 +347,13 @@ public class ActivityTaskManager { * @param animate Whether we should play an animation for resizing stack. */ @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeStack(int stackId, Rect bounds, boolean animate) { public void resizePinnedStack(int stackId, Rect bounds, boolean animate) { try { getService().resizeStack(stackId, bounds, false, false, animate /* animate */, -1 /* animationDuration */); if (animate) { getService().animateResizePinnedStack(stackId, bounds, -1 /* animationDuration */); } else { getService().resizePinnedStack(bounds, null /* tempPinnedTaskBounds */); } } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading core/java/android/app/IActivityManager.aidl +0 −17 Original line number Diff line number Diff line Loading @@ -406,23 +406,6 @@ interface IActivityManager { List<ActivityManager.StackInfo> getAllStackInfos(); @UnsupportedAppUsage void moveTaskToStack(int taskId, int stackId, boolean toTop); /** * Resizes the input stack id to the given bounds. * * @param stackId Id of the stack to resize. * @param bounds Bounds to resize the stack to or {@code null} for fullscreen. * @param allowResizeInDockedMode True if the resize should be allowed when the docked stack is * active. * @param preserveWindows True if the windows of activities contained in the stack should be * preserved. * @param animate True if the stack resize should be animated. * @param animationDuration The duration of the resize animation in milliseconds or -1 if the * default animation duration should be used. * @throws RemoteException */ @UnsupportedAppUsage void resizeStack(int stackId, in Rect bounds, boolean allowResizeInDockedMode, boolean preserveWindows, boolean animate, int animationDuration); void setFocusedStack(int stackId); ActivityManager.StackInfo getFocusedStackInfo(); @UnsupportedAppUsage Loading core/java/android/app/IActivityTaskManager.aidl +3 −9 Original line number Diff line number Diff line Loading @@ -234,21 +234,15 @@ interface IActivityTaskManager { void setTaskWindowingMode(int taskId, int windowingMode, boolean toTop); void moveTaskToStack(int taskId, int stackId, boolean toTop); /** * Resizes the input stack id to the given bounds. * Resizes the input pinned stack to the given bounds with animation. * * @param stackId Id of the stack to resize. * @param stackId Id of the pinned stack to resize. * @param bounds Bounds to resize the stack to or {@code null} for fullscreen. * @param allowResizeInDockedMode True if the resize should be allowed when the docked stack is * active. * @param preserveWindows True if the windows of activities contained in the stack should be * preserved. * @param animate True if the stack resize should be animated. * @param animationDuration The duration of the resize animation in milliseconds or -1 if the * default animation duration should be used. * @throws RemoteException */ void resizeStack(int stackId, in Rect bounds, boolean allowResizeInDockedMode, boolean preserveWindows, boolean animate, int animationDuration); void animateResizePinnedStack(int stackId, in Rect bounds, int animationDuration); boolean setTaskWindowingModeSplitScreenPrimary(int taskId, int createMode, boolean toTop, boolean animate, in Rect initialBounds, boolean showRecents); /** Loading packages/SystemUI/src/com/android/systemui/pip/phone/PipMotionHelper.java +2 −3 Original line number Diff line number Diff line Loading @@ -551,9 +551,8 @@ public class PipMotionHelper implements Handler.Callback, PipAppOpsListener.Call return true; } mActivityTaskManager.resizeStack(stackInfo.stackId, toBounds, false /* allowResizeInDockedMode */, true /* preserveWindows */, true /* animate */, duration); mActivityTaskManager.animateResizePinnedStack(stackInfo.stackId, toBounds, duration); mBounds.set(toBounds); } catch (RemoteException e) { Log.e(TAG, "Could not animate resize pinned stack to bounds: " + toBounds, e); Loading Loading
api/test-current.txt +1 −2 Original line number Diff line number Diff line Loading @@ -97,8 +97,7 @@ package android.app { method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void removeStacksInWindowingModes(int[]) throws java.lang.SecurityException; method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void removeStacksWithActivityTypes(int[]) throws java.lang.SecurityException; method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeDockedStack(android.graphics.Rect, android.graphics.Rect); method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeStack(int, android.graphics.Rect) throws java.lang.SecurityException; method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeStack(int, android.graphics.Rect, boolean); method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizePinnedStack(int, android.graphics.Rect, boolean); method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeTask(int, android.graphics.Rect); method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void setDisplayToSingleTaskInstance(int); method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void setTaskWindowingMode(int, int, boolean) throws java.lang.SecurityException; Loading
core/java/android/app/ActivityTaskManager.java +6 −18 Original line number Diff line number Diff line Loading @@ -201,21 +201,6 @@ public class ActivityTaskManager { } } /** * Resizes the input stack id to the given bounds. * @param stackId Id of the stack to resize. * @param bounds Bounds to resize the stack to or {@code null} for fullscreen. */ @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeStack(int stackId, Rect bounds) throws SecurityException { try { getService().resizeStack(stackId, bounds, false /* allowResizeInDockedMode */, false /* preserveWindows */, false /* animate */, -1 /* animationDuration */); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } /** * Removes stacks in the windowing modes from the system if they are of activity type * ACTIVITY_TYPE_STANDARD or ACTIVITY_TYPE_UNDEFINED Loading Loading @@ -362,10 +347,13 @@ public class ActivityTaskManager { * @param animate Whether we should play an animation for resizing stack. */ @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeStack(int stackId, Rect bounds, boolean animate) { public void resizePinnedStack(int stackId, Rect bounds, boolean animate) { try { getService().resizeStack(stackId, bounds, false, false, animate /* animate */, -1 /* animationDuration */); if (animate) { getService().animateResizePinnedStack(stackId, bounds, -1 /* animationDuration */); } else { getService().resizePinnedStack(bounds, null /* tempPinnedTaskBounds */); } } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading
core/java/android/app/IActivityManager.aidl +0 −17 Original line number Diff line number Diff line Loading @@ -406,23 +406,6 @@ interface IActivityManager { List<ActivityManager.StackInfo> getAllStackInfos(); @UnsupportedAppUsage void moveTaskToStack(int taskId, int stackId, boolean toTop); /** * Resizes the input stack id to the given bounds. * * @param stackId Id of the stack to resize. * @param bounds Bounds to resize the stack to or {@code null} for fullscreen. * @param allowResizeInDockedMode True if the resize should be allowed when the docked stack is * active. * @param preserveWindows True if the windows of activities contained in the stack should be * preserved. * @param animate True if the stack resize should be animated. * @param animationDuration The duration of the resize animation in milliseconds or -1 if the * default animation duration should be used. * @throws RemoteException */ @UnsupportedAppUsage void resizeStack(int stackId, in Rect bounds, boolean allowResizeInDockedMode, boolean preserveWindows, boolean animate, int animationDuration); void setFocusedStack(int stackId); ActivityManager.StackInfo getFocusedStackInfo(); @UnsupportedAppUsage Loading
core/java/android/app/IActivityTaskManager.aidl +3 −9 Original line number Diff line number Diff line Loading @@ -234,21 +234,15 @@ interface IActivityTaskManager { void setTaskWindowingMode(int taskId, int windowingMode, boolean toTop); void moveTaskToStack(int taskId, int stackId, boolean toTop); /** * Resizes the input stack id to the given bounds. * Resizes the input pinned stack to the given bounds with animation. * * @param stackId Id of the stack to resize. * @param stackId Id of the pinned stack to resize. * @param bounds Bounds to resize the stack to or {@code null} for fullscreen. * @param allowResizeInDockedMode True if the resize should be allowed when the docked stack is * active. * @param preserveWindows True if the windows of activities contained in the stack should be * preserved. * @param animate True if the stack resize should be animated. * @param animationDuration The duration of the resize animation in milliseconds or -1 if the * default animation duration should be used. * @throws RemoteException */ void resizeStack(int stackId, in Rect bounds, boolean allowResizeInDockedMode, boolean preserveWindows, boolean animate, int animationDuration); void animateResizePinnedStack(int stackId, in Rect bounds, int animationDuration); boolean setTaskWindowingModeSplitScreenPrimary(int taskId, int createMode, boolean toTop, boolean animate, in Rect initialBounds, boolean showRecents); /** Loading
packages/SystemUI/src/com/android/systemui/pip/phone/PipMotionHelper.java +2 −3 Original line number Diff line number Diff line Loading @@ -551,9 +551,8 @@ public class PipMotionHelper implements Handler.Callback, PipAppOpsListener.Call return true; } mActivityTaskManager.resizeStack(stackInfo.stackId, toBounds, false /* allowResizeInDockedMode */, true /* preserveWindows */, true /* animate */, duration); mActivityTaskManager.animateResizePinnedStack(stackInfo.stackId, toBounds, duration); mBounds.set(toBounds); } catch (RemoteException e) { Log.e(TAG, "Could not animate resize pinned stack to bounds: " + toBounds, e); Loading