Loading core/java/android/app/IActivityTaskManager.aidl +0 −5 Original line number Original line Diff line number Diff line Loading @@ -315,11 +315,6 @@ interface IActivityTaskManager { void positionTaskInStack(int taskId, int stackId, int position); void positionTaskInStack(int taskId, int stackId, int position); void reportSizeConfigurations(in IBinder token, in int[] horizontalSizeConfiguration, void reportSizeConfigurations(in IBinder token, in int[] horizontalSizeConfiguration, in int[] verticalSizeConfigurations, in int[] smallestWidthConfigurations); in int[] verticalSizeConfigurations, in int[] smallestWidthConfigurations); /** * Dismisses split-screen multi-window mode. * {@param toTop} If true the current primary split-screen stack will be placed or left on top. */ void dismissSplitScreenMode(boolean toTop); /** /** * Dismisses PiP * Dismisses PiP Loading core/java/com/android/internal/policy/DockedDividerUtils.java +20 −19 Original line number Original line Diff line number Diff line Loading @@ -16,14 +16,15 @@ package com.android.internal.policy; package com.android.internal.policy; import android.graphics.Rect; import static android.view.WindowManager.DOCKED_BOTTOM; import static android.view.WindowManager.DOCKED_BOTTOM; import static android.view.WindowManager.DOCKED_INVALID; import static android.view.WindowManager.DOCKED_INVALID; import static android.view.WindowManager.DOCKED_LEFT; import static android.view.WindowManager.DOCKED_LEFT; import static android.view.WindowManager.DOCKED_RIGHT; import static android.view.WindowManager.DOCKED_RIGHT; import static android.view.WindowManager.DOCKED_TOP; import static android.view.WindowManager.DOCKED_TOP; import android.content.res.Resources; import android.graphics.Rect; /** /** * Utility functions for docked stack divider used by both window manager and System UI. * Utility functions for docked stack divider used by both window manager and System UI. * * Loading Loading @@ -105,23 +106,6 @@ public class DockedDividerUtils { return start + (end - start) / 2 - dividerSize / 2; return start + (end - start) / 2 - dividerSize / 2; } } public static int getDockSideFromCreatedMode(boolean dockOnTopOrLeft, boolean isHorizontalDivision) { if (dockOnTopOrLeft) { if (isHorizontalDivision) { return DOCKED_TOP; } else { return DOCKED_LEFT; } } else { if (isHorizontalDivision) { return DOCKED_BOTTOM; } else { return DOCKED_RIGHT; } } } public static int invertDockSide(int dockSide) { public static int invertDockSide(int dockSide) { switch (dockSide) { switch (dockSide) { case DOCKED_LEFT: case DOCKED_LEFT: Loading @@ -136,4 +120,21 @@ public class DockedDividerUtils { return DOCKED_INVALID; return DOCKED_INVALID; } } } } /** Returns the inset distance from the divider window edge to the dividerview. */ public static int getDividerInsets(Resources res) { return res.getDimensionPixelSize(com.android.internal.R.dimen.docked_stack_divider_insets); } /** Returns the size of the divider */ public static int getDividerSize(Resources res, int dividerInsets) { final int windowWidth = res.getDimensionPixelSize( com.android.internal.R.dimen.docked_stack_divider_thickness); return windowWidth - 2 * dividerInsets; } /** Returns the docked-stack side */ public static int getDockSide(int displayWidth, int displayHeight) { return displayWidth > displayHeight ? DOCKED_LEFT : DOCKED_TOP; } } } core/proto/android/server/windowmanagerservice.proto +1 −0 Original line number Original line Diff line number Diff line Loading @@ -275,6 +275,7 @@ message TaskProto { optional float adjust_divider_amount = 25; optional float adjust_divider_amount = 25; optional bool animating_bounds = 26; optional bool animating_bounds = 26; optional float minimize_amount = 27; optional float minimize_amount = 27; optional bool created_by_organizer = 28; } } /* represents ActivityRecordProto */ /* represents ActivityRecordProto */ Loading packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl +5 −0 Original line number Original line Diff line number Diff line Loading @@ -123,4 +123,9 @@ interface ISystemUiProxy { */ */ void handleImageAsScreenshot(in Bitmap screenImage, in Rect locationInScreen, void handleImageAsScreenshot(in Bitmap screenImage, in Rect locationInScreen, in Insets visibleInsets, int taskId) = 21; in Insets visibleInsets, int taskId) = 21; /** * Sets the split-screen divider minimized state */ void setSplitScreenMinimized(boolean minimized) = 22; } } packages/SystemUI/src/com/android/systemui/Dependency.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -61,6 +61,7 @@ import com.android.systemui.shared.plugins.PluginManager; import com.android.systemui.shared.system.ActivityManagerWrapper; import com.android.systemui.shared.system.ActivityManagerWrapper; import com.android.systemui.shared.system.DevicePolicyManagerWrapper; import com.android.systemui.shared.system.DevicePolicyManagerWrapper; import com.android.systemui.shared.system.PackageManagerWrapper; import com.android.systemui.shared.system.PackageManagerWrapper; import com.android.systemui.stackdivider.Divider; import com.android.systemui.statusbar.CommandQueue; import com.android.systemui.statusbar.CommandQueue; import com.android.systemui.statusbar.NavigationBarController; import com.android.systemui.statusbar.NavigationBarController; import com.android.systemui.statusbar.NotificationListener; import com.android.systemui.statusbar.NotificationListener; Loading Loading @@ -329,6 +330,7 @@ public class Dependency { @Inject Lazy<DisplayImeController> mDisplayImeController; @Inject Lazy<DisplayImeController> mDisplayImeController; @Inject Lazy<RecordingController> mRecordingController; @Inject Lazy<RecordingController> mRecordingController; @Inject Lazy<ProtoTracer> mProtoTracer; @Inject Lazy<ProtoTracer> mProtoTracer; @Inject Lazy<Divider> mDivider; @Inject @Inject public Dependency() { public Dependency() { Loading Loading @@ -530,6 +532,7 @@ public class Dependency { mProviders.put(AutoHideController.class, mAutoHideController::get); mProviders.put(AutoHideController.class, mAutoHideController::get); mProviders.put(RecordingController.class, mRecordingController::get); mProviders.put(RecordingController.class, mRecordingController::get); mProviders.put(Divider.class, mDivider::get); sDependency = this; sDependency = this; } } Loading Loading
core/java/android/app/IActivityTaskManager.aidl +0 −5 Original line number Original line Diff line number Diff line Loading @@ -315,11 +315,6 @@ interface IActivityTaskManager { void positionTaskInStack(int taskId, int stackId, int position); void positionTaskInStack(int taskId, int stackId, int position); void reportSizeConfigurations(in IBinder token, in int[] horizontalSizeConfiguration, void reportSizeConfigurations(in IBinder token, in int[] horizontalSizeConfiguration, in int[] verticalSizeConfigurations, in int[] smallestWidthConfigurations); in int[] verticalSizeConfigurations, in int[] smallestWidthConfigurations); /** * Dismisses split-screen multi-window mode. * {@param toTop} If true the current primary split-screen stack will be placed or left on top. */ void dismissSplitScreenMode(boolean toTop); /** /** * Dismisses PiP * Dismisses PiP Loading
core/java/com/android/internal/policy/DockedDividerUtils.java +20 −19 Original line number Original line Diff line number Diff line Loading @@ -16,14 +16,15 @@ package com.android.internal.policy; package com.android.internal.policy; import android.graphics.Rect; import static android.view.WindowManager.DOCKED_BOTTOM; import static android.view.WindowManager.DOCKED_BOTTOM; import static android.view.WindowManager.DOCKED_INVALID; import static android.view.WindowManager.DOCKED_INVALID; import static android.view.WindowManager.DOCKED_LEFT; import static android.view.WindowManager.DOCKED_LEFT; import static android.view.WindowManager.DOCKED_RIGHT; import static android.view.WindowManager.DOCKED_RIGHT; import static android.view.WindowManager.DOCKED_TOP; import static android.view.WindowManager.DOCKED_TOP; import android.content.res.Resources; import android.graphics.Rect; /** /** * Utility functions for docked stack divider used by both window manager and System UI. * Utility functions for docked stack divider used by both window manager and System UI. * * Loading Loading @@ -105,23 +106,6 @@ public class DockedDividerUtils { return start + (end - start) / 2 - dividerSize / 2; return start + (end - start) / 2 - dividerSize / 2; } } public static int getDockSideFromCreatedMode(boolean dockOnTopOrLeft, boolean isHorizontalDivision) { if (dockOnTopOrLeft) { if (isHorizontalDivision) { return DOCKED_TOP; } else { return DOCKED_LEFT; } } else { if (isHorizontalDivision) { return DOCKED_BOTTOM; } else { return DOCKED_RIGHT; } } } public static int invertDockSide(int dockSide) { public static int invertDockSide(int dockSide) { switch (dockSide) { switch (dockSide) { case DOCKED_LEFT: case DOCKED_LEFT: Loading @@ -136,4 +120,21 @@ public class DockedDividerUtils { return DOCKED_INVALID; return DOCKED_INVALID; } } } } /** Returns the inset distance from the divider window edge to the dividerview. */ public static int getDividerInsets(Resources res) { return res.getDimensionPixelSize(com.android.internal.R.dimen.docked_stack_divider_insets); } /** Returns the size of the divider */ public static int getDividerSize(Resources res, int dividerInsets) { final int windowWidth = res.getDimensionPixelSize( com.android.internal.R.dimen.docked_stack_divider_thickness); return windowWidth - 2 * dividerInsets; } /** Returns the docked-stack side */ public static int getDockSide(int displayWidth, int displayHeight) { return displayWidth > displayHeight ? DOCKED_LEFT : DOCKED_TOP; } } }
core/proto/android/server/windowmanagerservice.proto +1 −0 Original line number Original line Diff line number Diff line Loading @@ -275,6 +275,7 @@ message TaskProto { optional float adjust_divider_amount = 25; optional float adjust_divider_amount = 25; optional bool animating_bounds = 26; optional bool animating_bounds = 26; optional float minimize_amount = 27; optional float minimize_amount = 27; optional bool created_by_organizer = 28; } } /* represents ActivityRecordProto */ /* represents ActivityRecordProto */ Loading
packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl +5 −0 Original line number Original line Diff line number Diff line Loading @@ -123,4 +123,9 @@ interface ISystemUiProxy { */ */ void handleImageAsScreenshot(in Bitmap screenImage, in Rect locationInScreen, void handleImageAsScreenshot(in Bitmap screenImage, in Rect locationInScreen, in Insets visibleInsets, int taskId) = 21; in Insets visibleInsets, int taskId) = 21; /** * Sets the split-screen divider minimized state */ void setSplitScreenMinimized(boolean minimized) = 22; } }
packages/SystemUI/src/com/android/systemui/Dependency.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -61,6 +61,7 @@ import com.android.systemui.shared.plugins.PluginManager; import com.android.systemui.shared.system.ActivityManagerWrapper; import com.android.systemui.shared.system.ActivityManagerWrapper; import com.android.systemui.shared.system.DevicePolicyManagerWrapper; import com.android.systemui.shared.system.DevicePolicyManagerWrapper; import com.android.systemui.shared.system.PackageManagerWrapper; import com.android.systemui.shared.system.PackageManagerWrapper; import com.android.systemui.stackdivider.Divider; import com.android.systemui.statusbar.CommandQueue; import com.android.systemui.statusbar.CommandQueue; import com.android.systemui.statusbar.NavigationBarController; import com.android.systemui.statusbar.NavigationBarController; import com.android.systemui.statusbar.NotificationListener; import com.android.systemui.statusbar.NotificationListener; Loading Loading @@ -329,6 +330,7 @@ public class Dependency { @Inject Lazy<DisplayImeController> mDisplayImeController; @Inject Lazy<DisplayImeController> mDisplayImeController; @Inject Lazy<RecordingController> mRecordingController; @Inject Lazy<RecordingController> mRecordingController; @Inject Lazy<ProtoTracer> mProtoTracer; @Inject Lazy<ProtoTracer> mProtoTracer; @Inject Lazy<Divider> mDivider; @Inject @Inject public Dependency() { public Dependency() { Loading Loading @@ -530,6 +532,7 @@ public class Dependency { mProviders.put(AutoHideController.class, mAutoHideController::get); mProviders.put(AutoHideController.class, mAutoHideController::get); mProviders.put(RecordingController.class, mRecordingController::get); mProviders.put(RecordingController.class, mRecordingController::get); mProviders.put(Divider.class, mDivider::get); sDependency = this; sDependency = this; } } Loading