Loading core/java/android/app/GameManager.java +16 −0 Original line number Original line Diff line number Diff line Loading @@ -135,4 +135,20 @@ public final class GameManager { throw e.rethrowFromSystemServer(); throw e.rethrowFromSystemServer(); } } } } /** * Returns a list of supported game modes for a given package. * <p> * The caller must have {@link android.Manifest.permission#MANAGE_GAME_MODE}. * * @hide */ @RequiresPermission(Manifest.permission.MANAGE_GAME_MODE) public @GameMode int[] getAvailableGameModes(@NonNull String packageName) { try { return mService.getAvailableGameModes(packageName); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } } } core/java/android/app/IGameManagerService.aidl +1 −0 Original line number Original line Diff line number Diff line Loading @@ -22,4 +22,5 @@ package android.app; interface IGameManagerService { interface IGameManagerService { int getGameMode(String packageName, int userId); int getGameMode(String packageName, int userId); void setGameMode(String packageName, int gameMode, int userId); void setGameMode(String packageName, int gameMode, int userId); int[] getAvailableGameModes(String packageName); } } No newline at end of file core/res/AndroidManifest.xml +1 −0 Original line number Original line Diff line number Diff line Loading @@ -5564,6 +5564,7 @@ @hide <p>Not for use by third-party applications.</p> --> @hide <p>Not for use by third-party applications.</p> --> <permission android:name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG" <permission android:name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG" android:protectionLevel="signature|privileged" /> android:protectionLevel="signature|privileged" /> <uses-permission android:name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG"/> <!-- Allows input events to be monitored. Very dangerous! @hide --> <!-- Allows input events to be monitored. Very dangerous! @hide --> <permission android:name="android.permission.MONITOR_INPUT" <permission android:name="android.permission.MONITOR_INPUT" Loading services/core/java/com/android/server/app/GameManagerService.java +418 −6 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
core/java/android/app/GameManager.java +16 −0 Original line number Original line Diff line number Diff line Loading @@ -135,4 +135,20 @@ public final class GameManager { throw e.rethrowFromSystemServer(); throw e.rethrowFromSystemServer(); } } } } /** * Returns a list of supported game modes for a given package. * <p> * The caller must have {@link android.Manifest.permission#MANAGE_GAME_MODE}. * * @hide */ @RequiresPermission(Manifest.permission.MANAGE_GAME_MODE) public @GameMode int[] getAvailableGameModes(@NonNull String packageName) { try { return mService.getAvailableGameModes(packageName); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } } }
core/java/android/app/IGameManagerService.aidl +1 −0 Original line number Original line Diff line number Diff line Loading @@ -22,4 +22,5 @@ package android.app; interface IGameManagerService { interface IGameManagerService { int getGameMode(String packageName, int userId); int getGameMode(String packageName, int userId); void setGameMode(String packageName, int gameMode, int userId); void setGameMode(String packageName, int gameMode, int userId); int[] getAvailableGameModes(String packageName); } } No newline at end of file
core/res/AndroidManifest.xml +1 −0 Original line number Original line Diff line number Diff line Loading @@ -5564,6 +5564,7 @@ @hide <p>Not for use by third-party applications.</p> --> @hide <p>Not for use by third-party applications.</p> --> <permission android:name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG" <permission android:name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG" android:protectionLevel="signature|privileged" /> android:protectionLevel="signature|privileged" /> <uses-permission android:name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG"/> <!-- Allows input events to be monitored. Very dangerous! @hide --> <!-- Allows input events to be monitored. Very dangerous! @hide --> <permission android:name="android.permission.MONITOR_INPUT" <permission android:name="android.permission.MONITOR_INPUT" Loading
services/core/java/com/android/server/app/GameManagerService.java +418 −6 File changed.Preview size limit exceeded, changes collapsed. Show changes