Loading core/java/android/provider/Settings.java +11 −0 Original line number Diff line number Diff line Loading @@ -3320,6 +3320,17 @@ public final class Settings { ColorDisplayManager.COLOR_MODE_NATURAL, ColorDisplayManager.COLOR_MODE_AUTOMATIC); /** * The user selected peak refresh rate in frames per second. * * If this isn't set, the system falls back to a device specific default. * @hide */ public static final String PEAK_REFRESH_RATE = "peak_refresh_rate"; private static final Validator PEAK_REFRESH_RATE_VALIDATOR = new SettingsValidators.InclusiveFloatRangeValidator(24f, Float.MAX_VALUE); /** * The amount of time in milliseconds before the device goes to sleep or begins * to dream after a period of inactivity. This value is also known as the Loading core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -3945,4 +3945,7 @@ and a second time clipped to the fill level to indicate charge --> <bool name="config_batterymeterDualTone">false</bool> <!-- The default peak refresh rate for a given device. Change this value if you want to allow for higher refresh rates to be automatically used out of the box --> <integer name="config_defaultPeakRefreshRate">60</integer> </resources> core/res/res/values/symbols.xml +2 −0 Original line number Diff line number Diff line Loading @@ -3688,4 +3688,6 @@ <java-symbol type="string" name="mime_type_spreadsheet_ext" /> <java-symbol type="string" name="mime_type_presentation" /> <java-symbol type="string" name="mime_type_presentation_ext" /> <java-symbol type="integer" name="config_defaultPeakRefreshRate" /> </resources> core/tests/coretests/src/android/provider/SettingsBackupTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -92,7 +92,8 @@ public class SettingsBackupTest { Settings.System.VOLUME_SYSTEM, // deprecated since API 2? Settings.System.VOLUME_VOICE, // deprecated since API 2? Settings.System.WHEN_TO_MAKE_WIFI_CALLS, // bug? Settings.System.WINDOW_ORIENTATION_LISTENER_LOG // used for debugging only Settings.System.WINDOW_ORIENTATION_LISTENER_LOG, // used for debugging only Settings.System.PEAK_REFRESH_RATE // depends on hardware capabilities ); private static final Set<String> BACKUP_BLACKLISTED_GLOBAL_SETTINGS = Loading services/core/java/com/android/server/display/DisplayDevice.java +12 −2 Original line number Diff line number Diff line Loading @@ -138,9 +138,19 @@ abstract class DisplayDevice { } /** * Sets the mode, if supported. * Sets the display modes the system is allowed to switch between, roughly ordered by * preference. * * Not all display devices will automatically switch between modes, so it's important that the * most-desired modes are at the beginning of the allowed array. */ public void setAllowedDisplayModesLocked(int[] modes) { } /** * Sets the requested color mode. */ public void requestDisplayModesLocked(int colorMode, int modeId) { public void setRequestedColorModeLocked(int colorMode) { } public void onOverlayChangedLocked() { Loading Loading
core/java/android/provider/Settings.java +11 −0 Original line number Diff line number Diff line Loading @@ -3320,6 +3320,17 @@ public final class Settings { ColorDisplayManager.COLOR_MODE_NATURAL, ColorDisplayManager.COLOR_MODE_AUTOMATIC); /** * The user selected peak refresh rate in frames per second. * * If this isn't set, the system falls back to a device specific default. * @hide */ public static final String PEAK_REFRESH_RATE = "peak_refresh_rate"; private static final Validator PEAK_REFRESH_RATE_VALIDATOR = new SettingsValidators.InclusiveFloatRangeValidator(24f, Float.MAX_VALUE); /** * The amount of time in milliseconds before the device goes to sleep or begins * to dream after a period of inactivity. This value is also known as the Loading
core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -3945,4 +3945,7 @@ and a second time clipped to the fill level to indicate charge --> <bool name="config_batterymeterDualTone">false</bool> <!-- The default peak refresh rate for a given device. Change this value if you want to allow for higher refresh rates to be automatically used out of the box --> <integer name="config_defaultPeakRefreshRate">60</integer> </resources>
core/res/res/values/symbols.xml +2 −0 Original line number Diff line number Diff line Loading @@ -3688,4 +3688,6 @@ <java-symbol type="string" name="mime_type_spreadsheet_ext" /> <java-symbol type="string" name="mime_type_presentation" /> <java-symbol type="string" name="mime_type_presentation_ext" /> <java-symbol type="integer" name="config_defaultPeakRefreshRate" /> </resources>
core/tests/coretests/src/android/provider/SettingsBackupTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -92,7 +92,8 @@ public class SettingsBackupTest { Settings.System.VOLUME_SYSTEM, // deprecated since API 2? Settings.System.VOLUME_VOICE, // deprecated since API 2? Settings.System.WHEN_TO_MAKE_WIFI_CALLS, // bug? Settings.System.WINDOW_ORIENTATION_LISTENER_LOG // used for debugging only Settings.System.WINDOW_ORIENTATION_LISTENER_LOG, // used for debugging only Settings.System.PEAK_REFRESH_RATE // depends on hardware capabilities ); private static final Set<String> BACKUP_BLACKLISTED_GLOBAL_SETTINGS = Loading
services/core/java/com/android/server/display/DisplayDevice.java +12 −2 Original line number Diff line number Diff line Loading @@ -138,9 +138,19 @@ abstract class DisplayDevice { } /** * Sets the mode, if supported. * Sets the display modes the system is allowed to switch between, roughly ordered by * preference. * * Not all display devices will automatically switch between modes, so it's important that the * most-desired modes are at the beginning of the allowed array. */ public void setAllowedDisplayModesLocked(int[] modes) { } /** * Sets the requested color mode. */ public void requestDisplayModesLocked(int colorMode, int modeId) { public void setRequestedColorModeLocked(int colorMode) { } public void onOverlayChangedLocked() { Loading