Loading core/java/android/app/ActivityManagerInternal.java +5 −0 Original line number Diff line number Diff line Loading @@ -364,6 +364,11 @@ public abstract class ActivityManagerInternal { */ public abstract boolean isCallerRecents(int callingUid); /** * Returns whether the recents component is the home activity for the given user. */ public abstract boolean isRecentsComponentHomeActivity(int userId); /** * Whether an UID is active or idle. */ Loading core/java/android/content/pm/PackageManagerInternal.java +5 −0 Original line number Diff line number Diff line Loading @@ -235,6 +235,11 @@ public abstract class PackageManagerInternal { public abstract ComponentName getHomeActivitiesAsUser(List<ResolveInfo> allHomeCandidates, int userId); /** * @return The default home activity component name. */ public abstract ComponentName getDefaultHomeActivity(int userId); /** * Called by DeviceOwnerManagerService to set the package names of device owner and profile * owners. Loading core/proto/android/server/activitymanagerservice.proto +3 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,9 @@ message ActivityStackSupervisorProto { optional KeyguardControllerProto keyguard_controller = 3; optional int32 focused_stack_id = 4; optional .com.android.server.wm.proto.IdentifierProto resumed_activity = 5; // Whether or not the home activity is the recents activity. This is needed for the CTS tests to // know what activity types to check for when invoking splitscreen multi-window. optional bool is_home_recents_component = 6; } /* represents ActivityStackSupervisor.ActivityDisplay */ Loading packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl +10 −5 Original line number Diff line number Diff line Loading @@ -28,25 +28,30 @@ interface ISystemUiProxy { * Proxies SurfaceControl.screenshotToBuffer(). */ GraphicBufferCompat screenshot(in Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean useIdentityTransform, int rotation); int maxLayer, boolean useIdentityTransform, int rotation) = 0; /** * Begins screen pinning on the provided {@param taskId}. */ void startScreenPinning(int taskId); void startScreenPinning(int taskId) = 1; /** * Called when the overview service has started the recents animation. */ void onRecentsAnimationStarted(); void onRecentsAnimationStarted() = 2; /** * Specifies the text to be shown for onboarding the new swipe-up gesture to access recents. */ void setRecentsOnboardingText(CharSequence text); void setRecentsOnboardingText(CharSequence text) = 3; /** * Enables/disables launcher/overview interaction features {@link InteractionType}. */ void setInteractionState(int flags); void setInteractionState(int flags) = 4; /** * Notifies SystemUI that split screen has been invoked. */ void onSplitScreenInvoked() = 5; } packages/SystemUI/shared/src/com/android/systemui/shared/system/WindowManagerWrapper.java +8 −0 Original line number Diff line number Diff line Loading @@ -101,4 +101,12 @@ public class WindowManagerWrapper { Log.w(TAG, "Failed to override pending app transition (remote): ", e); } } public void endProlongedAnimations() { try { WindowManagerGlobal.getWindowManagerService().endProlongedAnimations(); } catch (RemoteException e) { Log.w(TAG, "Failed to end prolonged animations: ", e); } } } Loading
core/java/android/app/ActivityManagerInternal.java +5 −0 Original line number Diff line number Diff line Loading @@ -364,6 +364,11 @@ public abstract class ActivityManagerInternal { */ public abstract boolean isCallerRecents(int callingUid); /** * Returns whether the recents component is the home activity for the given user. */ public abstract boolean isRecentsComponentHomeActivity(int userId); /** * Whether an UID is active or idle. */ Loading
core/java/android/content/pm/PackageManagerInternal.java +5 −0 Original line number Diff line number Diff line Loading @@ -235,6 +235,11 @@ public abstract class PackageManagerInternal { public abstract ComponentName getHomeActivitiesAsUser(List<ResolveInfo> allHomeCandidates, int userId); /** * @return The default home activity component name. */ public abstract ComponentName getDefaultHomeActivity(int userId); /** * Called by DeviceOwnerManagerService to set the package names of device owner and profile * owners. Loading
core/proto/android/server/activitymanagerservice.proto +3 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,9 @@ message ActivityStackSupervisorProto { optional KeyguardControllerProto keyguard_controller = 3; optional int32 focused_stack_id = 4; optional .com.android.server.wm.proto.IdentifierProto resumed_activity = 5; // Whether or not the home activity is the recents activity. This is needed for the CTS tests to // know what activity types to check for when invoking splitscreen multi-window. optional bool is_home_recents_component = 6; } /* represents ActivityStackSupervisor.ActivityDisplay */ Loading
packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl +10 −5 Original line number Diff line number Diff line Loading @@ -28,25 +28,30 @@ interface ISystemUiProxy { * Proxies SurfaceControl.screenshotToBuffer(). */ GraphicBufferCompat screenshot(in Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean useIdentityTransform, int rotation); int maxLayer, boolean useIdentityTransform, int rotation) = 0; /** * Begins screen pinning on the provided {@param taskId}. */ void startScreenPinning(int taskId); void startScreenPinning(int taskId) = 1; /** * Called when the overview service has started the recents animation. */ void onRecentsAnimationStarted(); void onRecentsAnimationStarted() = 2; /** * Specifies the text to be shown for onboarding the new swipe-up gesture to access recents. */ void setRecentsOnboardingText(CharSequence text); void setRecentsOnboardingText(CharSequence text) = 3; /** * Enables/disables launcher/overview interaction features {@link InteractionType}. */ void setInteractionState(int flags); void setInteractionState(int flags) = 4; /** * Notifies SystemUI that split screen has been invoked. */ void onSplitScreenInvoked() = 5; }
packages/SystemUI/shared/src/com/android/systemui/shared/system/WindowManagerWrapper.java +8 −0 Original line number Diff line number Diff line Loading @@ -101,4 +101,12 @@ public class WindowManagerWrapper { Log.w(TAG, "Failed to override pending app transition (remote): ", e); } } public void endProlongedAnimations() { try { WindowManagerGlobal.getWindowManagerService().endProlongedAnimations(); } catch (RemoteException e) { Log.w(TAG, "Failed to end prolonged animations: ", e); } } }