diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 887f1d09b5d4b..e90634527853b 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -5179,6 +5179,20 @@ public static void setShowGTalkServiceStatusForUser(ContentResolver cr, boolean @Readable public static final String POINTER_SPEED = "pointer_speed"; + /** + * GameSpace: List of added games by user + * @hide + */ + @Readable + public static final String GAMESPACE_GAME_LIST = "gamespace_game_list"; + + /** + * GameSpace: Whether fullscreen intent will be suppressed while in game session + * @hide + */ + @Readable + public static final String GAMESPACE_SUPPRESS_FULLSCREEN_INTENT = "gamespace_suppress_fullscreen_intent"; + /** * Whether lock-to-app will be triggered by long-press on recents. * @hide diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 220a5b2708e67..22192eabd6ef4 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -717,6 +717,10 @@ + + + + diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java index 70616c29f81e2..427575fc3eb32 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -543,6 +543,8 @@ public void animateCollapsePanels(int flags, boolean force) { private NadSettingsObserver mNadSettingsObserver; private boolean mShowNavBar; + protected GameSpaceManager mGameSpaceManager; + // expanded notifications // the sliding/resizing panel within the notification window protected NotificationPanelViewController mNotificationPanelViewController; @@ -947,6 +949,7 @@ public StatusBar( mActivityIntentHelper = new ActivityIntentHelper(mContext); mActivityLaunchAnimator = activityLaunchAnimator; + mGameSpaceManager = new GameSpaceManager(mContext, mKeyguardStateController); // The status bar background may need updating when the ongoing call status changes. mOngoingCallController.addCallback((animate) -> maybeUpdateBarMode()); @@ -4543,6 +4546,10 @@ public NotificationGutsManager getGutsManager() { return mGutsManager; } + public GameSpaceManager getGameSpaceManager() { + return mGameSpaceManager; + } + boolean isTransientShown() { return mTransientShown; }