Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af0d78dc authored by Peiyong Lin's avatar Peiyong Lin
Browse files

Update Test API.

Add TestApi annotation to allow access of the getGameMode(String) API in
CTS tests.

Bug: b/199920928
Test: atest GameManagerTest
Change-Id: I4149b4c4a282267bbd5bb54d19d00f0df3dc3427
parent d3bffe32
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -278,6 +278,7 @@ package android.app {
  }

  public final class GameManager {
    method @RequiresPermission(android.Manifest.permission.MANAGE_GAME_MODE) public int getGameMode(@NonNull String);
    method @RequiresPermission(android.Manifest.permission.MANAGE_GAME_MODE) public boolean isAngleEnabled(@NonNull String);
    method public void setGameServiceProvider(@Nullable String);
  }
+1 −0
Original line number Diff line number Diff line
@@ -109,6 +109,7 @@ public final class GameManager {
     *
     * @hide
     */
    @TestApi
    @UserHandleAware
    @RequiresPermission(Manifest.permission.MANAGE_GAME_MODE)
    public @GameMode int getGameMode(@NonNull String packageName) {