Searched refs:modeConfig (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/core/java/com/android/server/app/ |
D | GameManagerSettings.java | 198 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() 311 final GameModeConfiguration modeConfig = config.getOrAddDefaultGameModeConfiguration( in readGameModeConfig() local 315 modeConfig.setScaling(scaling); in readGameModeConfig() 324 modeConfig.setFpsStr(fps != null ? fps : GameModeConfiguration.DEFAULT_FPS); in readGameModeConfig() 328 modeConfig.setUseAngle(useAngle); in readGameModeConfig() [all …]
|
D | GameManagerService.java | 1379 final GamePackageConfiguration.GameModeConfiguration modeConfig = 1381 if (modeConfig != null) { 1382 return modeConfig.getScaling(); 1674 final GamePackageConfiguration.GameModeConfiguration modeConfig = 1676 if (modeConfig == null) { 1681 final float fps = modeConfig.getFps(); 2155 GamePackageConfiguration.GameModeConfiguration modeConfig = 2157 if (modeConfig != null) { 2160 gameModeToStatsdGameMode(gameMode), modeConfig.getFps(), 2161 modeConfig.getScaling()));
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/ |
D | GameManagerServiceTests.java | 2014 GameManagerService.GamePackageConfiguration.GameModeConfiguration modeConfig = in testUpdateCustomGameModeConfiguration() local 2016 assertNotNull(modeConfig); in testUpdateCustomGameModeConfiguration() 2017 assertEquals(modeConfig.getScaling(), 0.35f, 0.01f); in testUpdateCustomGameModeConfiguration() 2018 assertEquals(modeConfig.getFps(), 60); in testUpdateCustomGameModeConfiguration() 2033 modeConfig = pkgConfig.getGameModeConfiguration(GameManager.GAME_MODE_CUSTOM); in testUpdateCustomGameModeConfiguration() 2034 assertNotNull(modeConfig); in testUpdateCustomGameModeConfiguration() 2035 assertEquals(modeConfig.getScaling(), 0.35f, 0.01f); in testUpdateCustomGameModeConfiguration() 2036 assertEquals(modeConfig.getFps(), 60); in testUpdateCustomGameModeConfiguration()
|