Home
last modified time | relevance | path

Searched refs:modeConfig (Results 1 – 3 of 3) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/app/
H A DGameManagerSettings.java198 final GameModeConfiguration modeConfig = config.getGameModeConfiguration(mode); in writeGameModeConfigTags() local
199 if (modeConfig != null) { in writeGameModeConfigTags()
202 serializer.attributeBoolean(null, ATTR_USE_ANGLE, modeConfig.getUseAngle()); in writeGameModeConfigTags()
203 serializer.attribute(null, ATTR_FPS, modeConfig.getFpsStr()); in writeGameModeConfigTags()
204 serializer.attributeFloat(null, ATTR_SCALING, modeConfig.getScaling()); in writeGameModeConfigTags()
206 modeConfig.getLoadingBoostDuration()); in writeGameModeConfigTags()
310 final GameModeConfiguration modeConfig = config.getOrAddDefaultGameModeConfiguration( in readGameModeConfig() local
314 modeConfig.setScaling(scaling); in readGameModeConfig()
323 modeConfig.setFpsStr(fps != null ? fps : GameModeConfiguration.DEFAULT_FPS); in readGameModeConfig()
327 modeConfig.setUseAngle(useAngle); in readGameModeConfig()
[all …]
H A DGameManagerService.java1324 final GamePackageConfiguration.GameModeConfiguration modeConfig = in getResolutionScalingFactorInternal() local
1326 if (modeConfig != null) { in getResolutionScalingFactorInternal()
1327 return modeConfig.getScaling(); in getResolutionScalingFactorInternal()
1615 final GamePackageConfiguration.GameModeConfiguration modeConfig = in updateFps() local
1617 if (modeConfig == null) { in updateFps()
1622 final float fps = modeConfig.getFps(); in updateFps()
2094 GamePackageConfiguration.GameModeConfiguration modeConfig = in onPullAtom() local
2096 if (modeConfig != null) { in onPullAtom()
2099 gameModeToStatsdGameMode(gameMode), modeConfig.getFps(), in onPullAtom()
2100 modeConfig.getScaling())); in onPullAtom()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/
H A DGameManagerServiceTests.java1973 GameManagerService.GamePackageConfiguration.GameModeConfiguration modeConfig = in testUpdateCustomGameModeConfiguration() local
1975 assertNotNull(modeConfig); in testUpdateCustomGameModeConfiguration()
1976 assertEquals(modeConfig.getScaling(), 0.35f, 0.01f); in testUpdateCustomGameModeConfiguration()
1977 assertEquals(modeConfig.getFps(), 60); in testUpdateCustomGameModeConfiguration()
1992 modeConfig = pkgConfig.getGameModeConfiguration(GameManager.GAME_MODE_CUSTOM); in testUpdateCustomGameModeConfiguration()
1993 assertNotNull(modeConfig); in testUpdateCustomGameModeConfiguration()
1994 assertEquals(modeConfig.getScaling(), 0.35f, 0.01f); in testUpdateCustomGameModeConfiguration()
1995 assertEquals(modeConfig.getFps(), 60); in testUpdateCustomGameModeConfiguration()