Home
last modified time | relevance | path

Searched refs:GameModeConfiguration (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/tests/GameManagerTests/src/android/app/
DGameModeConfigurationTest.java38 GameModeConfiguration config = new GameModeConfiguration.Builder() in testEqualsAndHashCode()
42 GameModeConfiguration config1 = new GameModeConfiguration.Builder() in testEqualsAndHashCode()
47 GameModeConfiguration config2 = new GameModeConfiguration.Builder() in testEqualsAndHashCode()
52 GameModeConfiguration config3 = new GameModeConfiguration.Builder() in testEqualsAndHashCode()
59 GameModeConfiguration config4 = new GameModeConfiguration.Builder() in testEqualsAndHashCode()
64 GameModeConfiguration config5 = new GameModeConfiguration.Builder() in testEqualsAndHashCode()
69 GameModeConfiguration config6 = new GameModeConfiguration.Builder() in testEqualsAndHashCode()
81 GameModeConfiguration config = new GameModeConfiguration in testBuilderConstructor()
83 GameModeConfiguration newConfig = new GameModeConfiguration.Builder(config).build(); in testBuilderConstructor()
89 GameModeConfiguration config = new GameModeConfiguration.Builder() in testGetters()
DGameModeInfoTest.java47 GameModeConfiguration batteryConfig = new GameModeConfiguration in testParcelable()
49 GameModeConfiguration performanceConfig = new GameModeConfiguration in testParcelable()
DGameManagerTests.java90 GameModeConfiguration supportedFpsConfig = in testUpdateCustomGameModeConfiguration()
91 new GameModeConfiguration.Builder().setFpsOverride( in testUpdateCustomGameModeConfiguration()
/frameworks/base/core/java/android/app/
DGameModeConfiguration.java41 public final class GameModeConfiguration implements Parcelable { class
46 public static final @NonNull Creator<GameModeConfiguration> CREATOR = new Creator<>() {
48 public GameModeConfiguration createFromParcel(Parcel in) {
49 return new GameModeConfiguration(in);
53 public GameModeConfiguration[] newArray(int size) {
54 return new GameModeConfiguration[size];
70 public Builder(@NonNull GameModeConfiguration configuration) { in Builder()
83 public GameModeConfiguration.Builder setScalingFactor( in setScalingFactor()
110 public GameModeConfiguration.Builder setFpsOverride(@IntRange(from = 0) int fpsOverride) { in setFpsOverride()
121 public GameModeConfiguration build() { in build()
[all …]
DGameModeInfo.java133 @NonNull GameModeConfiguration gameModeConfiguration) { in setGameModeConfiguration()
152 private Map<Integer, GameModeConfiguration> mConfigMap = new ArrayMap<>();
168 boolean isFpsOverrideAllowed, @NonNull Map<Integer, GameModeConfiguration> configMap) { in GameModeInfo()
187 getClass().getClassLoader(), Integer.class, GameModeConfiguration.class); in GameModeInfo()
228 public @Nullable GameModeConfiguration getGameModeConfiguration( in getGameModeConfiguration()
257 private final Map<Integer, GameModeConfiguration> mConfigMap;
DIGameManagerService.aidl19 import android.app.GameModeConfiguration;
48 …void updateCustomGameModeConfiguration(String packageName, in GameModeConfiguration gameModeConfig… in updateCustomGameModeConfiguration()
DGameModeConfiguration.aidl20 parcelable GameModeConfiguration;
DGameManager.java298 @NonNull GameModeConfiguration gameModeConfig) { in updateCustomGameModeConfiguration()
/frameworks/base/services/tests/servicestests/src/com/android/server/app/
DGameManagerServiceSettingsTests.java36 import com.android.server.app.GameManagerService.GamePackageConfiguration.GameModeConfiguration;
139 final GameModeConfiguration performanceConfig = config.getGameModeConfiguration( in testReadGameServiceSettings()
146 final GameModeConfiguration batteryConfig = config.getGameModeConfiguration( in testReadGameServiceSettings()
149 assertEquals(batteryConfig.getScaling(), GameModeConfiguration.DEFAULT_SCALING, 0.01f); in testReadGameServiceSettings()
151 GameModeConfiguration.DEFAULT_LOADING_BOOST_DURATION); in testReadGameServiceSettings()
152 assertEquals(batteryConfig.getFpsStr(), GameModeConfiguration.DEFAULT_FPS); in testReadGameServiceSettings()
157 GameModeConfiguration customConfig = config.getGameModeConfiguration( in testReadGameServiceSettings()
182 final GameModeConfiguration batteryConfig = config.getGameModeConfiguration( in testReadGameServiceSettings_invalidConfigAttributes()
185 assertEquals(batteryConfig.getScaling(), GameModeConfiguration.DEFAULT_SCALING, 0.01f); in testReadGameServiceSettings_invalidConfigAttributes()
187 GameModeConfiguration.DEFAULT_LOADING_BOOST_DURATION); in testReadGameServiceSettings_invalidConfigAttributes()
[all …]
/frameworks/base/services/core/java/com/android/server/app/
DGameManagerService.java43 import android.app.GameModeConfiguration;
535 private final ArrayMap<Integer, GameModeConfiguration> mModeConfigs = new ArrayMap<>();
573 addModeConfig(new GameModeConfiguration(parser));
635 GameModeConfiguration getOrAddDefaultGameModeConfiguration(int gameMode) {
637 mModeConfigs.putIfAbsent(gameMode, new GameModeConfiguration(gameMode));
654 public class GameModeConfiguration {
673 GameModeConfiguration(int gameMode) {
679 GameModeConfiguration(KeyValueListParser parser) {
755 android.app.GameModeConfiguration toPublicGameModeConfig() {
764 : android.app.GameModeConfiguration.FPS_OVERRIDE_NONE;
[all …]
DGameManagerSettings.java32 import com.android.server.app.GameManagerService.GamePackageConfiguration.GameModeConfiguration;
198 final GameModeConfiguration modeConfig = config.getGameModeConfiguration(mode); in writeGameModeConfigTags()
311 final GameModeConfiguration modeConfig = config.getOrAddDefaultGameModeConfiguration( in readGameModeConfig()
324 modeConfig.setFpsStr(fps != null ? fps : GameModeConfiguration.DEFAULT_FPS); in readGameModeConfig()
/frameworks/proto_logging/stats/atoms/agif/
Dagif_atoms.proto99 message GameModeConfiguration { message
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/
DGameManagerServiceTests.java56 import android.app.GameModeConfiguration;
1367 assertEquals(new GameModeConfiguration.Builder() in testGetGameModeInfoWithAllGameModes()
1371 assertEquals(new GameModeConfiguration.Builder() in testGetGameModeInfoWithAllGameModes()
1962 new GameModeConfiguration.Builder().setScalingFactor(0.5f).build(), in testUpdateCustomGameModeConfiguration_permissionDenied()
1973 new GameModeConfiguration.Builder().setScalingFactor(0.5f).build(), in testUpdateCustomGameModeConfiguration_noUserId()
1984 new GameModeConfiguration.Builder().setScalingFactor(0.35f).setFpsOverride( in testUpdateCustomGameModeConfiguration_nonGame()
1999 new GameModeConfiguration.Builder().setScalingFactor(0.35f).setFpsOverride( in testUpdateCustomGameModeConfiguration()
2014 GameManagerService.GamePackageConfiguration.GameModeConfiguration modeConfig = in testUpdateCustomGameModeConfiguration()
/frameworks/base/core/api/
Dsystem-current.txt919 …oid updateCustomGameModeConfiguration(@NonNull String, @NonNull android.app.GameModeConfiguration);
922 public final class GameModeConfiguration implements android.os.Parcelable {
927 …nNull public static final android.os.Parcelable.Creator<android.app.GameModeConfiguration> CREATOR;
931 public static final class GameModeConfiguration.Builder {
932 ctor public GameModeConfiguration.Builder();
933 ctor public GameModeConfiguration.Builder(@NonNull android.app.GameModeConfiguration);
934 method @NonNull public android.app.GameModeConfiguration build();
935 method @NonNull public android.app.GameModeConfiguration.Builder setFpsOverride(int);
936 method @NonNull public android.app.GameModeConfiguration.Builder setScalingFactor(float);
944 method @Nullable public android.app.GameModeConfiguration getGameModeConfiguration(int);
[all …]
Dmodule-lib-lint-baseline.txt538 …droid.app.GameManager#updateCustomGameModeConfiguration(String, android.app.GameModeConfiguration):
Dtest-lint-baseline.txt596 …droid.app.GameManager#updateCustomGameModeConfiguration(String, android.app.GameModeConfiguration):
Dsystem-lint-baseline.txt628 …droid.app.GameManager#updateCustomGameModeConfiguration(String, android.app.GameModeConfiguration):
/frameworks/proto_logging/stats/
Datoms.proto1437 agif.GameModeConfiguration game_mode_configuration = 10166 [(module) = "framework"];