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

Commit 06d1cb69 authored by Xiang Wang's avatar Xiang Wang Committed by Android (Google) Code Review
Browse files

Merge changes I95e0ac4a,Ie29ac45d

* changes:
  Support dynamic game resolution scaling factor
  Add new GameManagerService methods to update and get scaling factor
parents 0d025f53 c28fc68b
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2022 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.app;

/**
 * Game manager local system service interface.
 *
 * @hide Only for use within the system server.
 */

public abstract class GameManagerInternal {
    /**
     * Used by the CompatModePackages to read game's compat scaling override.
     */
    public abstract float getResolutionScalingFactor(String packageName, int userId);
}
+2 −0
Original line number Diff line number Diff line
@@ -31,4 +31,6 @@ interface IGameManagerService {
    void setGameState(String packageName, in GameState gameState, int userId);
    GameModeInfo getGameModeInfo(String packageName, int userId);
    void setGameServiceProvider(String packageName);
    void updateResolutionScalingFactor(String packageName, int gameMode, float scalingFactor, int userId);
    float getResolutionScalingFactor(String packageName, int gameMode, int userId);
}
+110 −182

File changed.

Preview size limit exceeded, changes collapsed.

+13 −66

File changed.

Preview size limit exceeded, changes collapsed.

+15 −0

File changed.

Preview size limit exceeded, changes collapsed.

Loading