summaryrefslogtreecommitdiff
path: root/core/java/android/app/GameManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Add loading boost intervention for games.jimblackler2022-03-311-0/+15
| | | | | | Bug: 207845905 Test: atest com.android.server.app.GameManagerServiceTests Change-Id: I2d0b4988797fe21bd7aec6d5351273757ae1a3ce
* Remove incorrect annotation.Peiyong Lin2022-03-151-1/+1
| | | | | | Bug: N/A Test: atest GameManagerTest Change-Id: I6c21f575a0f9356aeba0a4ff605063a41d15c3ea
* Update Test API.Peiyong Lin2022-02-041-0/+1
| | | | | | | | | Add TestApi annotation to allow access of the getGameMode(String) API in CTS tests. Bug: b/199920928 Test: atest GameManagerTest Change-Id: I4149b4c4a282267bbd5bb54d19d00f0df3dc3427
* Introduce new game mode config xml resource fileXiang Wang2022-02-011-2/+6
| | | | | | | | | | If the new resource file parser fail to parse the boolean values from the resource file due to tag not found in manifest or missing file, the existing metadata values will be used to populate pre-existing flags Bug: 214448560 Test: atest GameManagerTest Change-Id: I1543a1bb84379a2e9322a65d41e44fa6014821b9
* Add a test API allowing overriding the GameService provider.shannonchen2022-01-261-0/+17
| | | | | | | | | | | | This is so that CTS tests can be run against a test GameService rather than against whatever GameService a particular device has set as its default. Ignore-AOSP-First: GameService incomplete in AOSP Test: atest CtsGameServiceTestCases GameServiceProviderSelectorImplTest Bug: 202417555 Bug: 206128693 Change-Id: I5d0d1a4047949117850818c14b5df617314efcf5
* Implement getGameModeInfo API.Peiyong Lin2022-01-211-0/+25
| | | | | | | | | | | | | | | | The Game Dashboard needs to access the active game mode and the available game modes of a given game in order to provide the UX. Instead of doing two queries with two binder calls, implement a new API to capture all GameMode related states of a given package. Minor: Don't return UNSUPPORTED when querying available game modes, change MANAGE_GAME_MODE permission to allow system apps to access the APIs. Bug: b/199920468 Test: atest GameManagerServiceTests Test: atest GameManagerTests Change-Id: I45d9c2df5bffd6496f97140e44d0ca5afeee71b1
* Game Loading Time improvement by boosting CPU via ADPFJim Blackler2021-11-301-0/+12
| | | | | | | | | | | | | Adds the concept of Game State (supplied by the application) to the GameManager API. This allows the setting of various modes to describe the current high-level runtime state of the game, as well as the loading state. In Performance Mode, during loading a hint is sent to the device PowerHAL via the PowerManager. Bug: 201769701 Test: atest android.gamemanager.cts.GameManagerTest Ignore-AOSP-First: Mentions a confidential API Change-Id: I695e45b12f9a30c1824df210bfefbd5a9b4bd935
* Update the GameManager#setGameMode API.Peiyong Lin2021-11-291-2/+2
| | | | | | | | | | | Raise the GameManager#setGameMode API to be a system API in order to expose GameManager functionalities to system applications. Bug: b/199920468 CTS-Coverage-Bug: b/199920468 Test: atest GameManagerTest Test: atest GameManagerTest --user_type secondary_user Change-Id: Iefada82b803f1b66ef1d69b47b8a4584bebb03ae
* Enable ANGLE as a Game Dashboard InterventionTim Van Patten2021-07-141-0/+16
| | | | | | | | Enable ANGLE as a Game Dashboard intervention via Phenotype. Bug: b/188475576 Test: GameManagerServiceTests Change-Id: I91894a76b8dcf7a97244cff679a501001734f671
* Integrate DeviceConfig with GameManagerServiceAdam Bodnar2021-03-231-0/+16
| | | | | | | | Bug: 180439000 Test: adb shell device_config put game_overlay <PACKAGE NAME> <VALUES> Change-Id: If201b36e6f223e42dbefba52bbf86c9d760d3d26
* GameManager: Add Public APITim Van Patten2021-03-051-16/+54
| | | | | | | | | | | | Add the public API to GameManager: - getGameMode() Bug: b/178860939 Test: atest CtsGameManagerTestCases Test: atest GameManagerTests Test: atest GameManagerServiceTests Test: atest GameManagerServiceSettingsTests Change-Id: Ie6030e4ec796c9ecf2c756f24f00e445572accda
* Add proper permission check and multi-user handling to GameManagerServiceTim Van Patten2021-02-081-2/+4
| | | | | | | | | | | | | | | Add the following permissions which are used by GameManagerService: - permission.MANAGE_GAME_MODE Additionally, enforce multi-user handling with ActivityManager.handleIncomingUser(). Bug: b/178111358 Test: atest GameManagerTests Test: atest GameManagerServiceTests Test: atest GameManagerServiceSettingsTests Test: atest PermissionPolicyTest Change-Id: Ib503a8f50746d4079d32bd0515b6a9c771b6792f
* Move GameManager to android.app package.Peiyong Lin2021-01-291-0/+98
Bug: b/177611751 Bug: b/178112303 Test: atest GameManagerTests Test: atest GameManagerServiceTests Test: atest GameManagerServiceSettingsTests Change-Id: Icf01f723f1323f6f91030e6005958b7da05e8177