config.xml 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2024 The LineageOS Project
  4. SPDX-License-Identifier: Apache-2.0
  5. -->
  6. <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
  7. <!-- Shutdown if the battery temperature exceeds (this value * 0.1) Celsius. -->
  8. <integer name="config_shutdownBatteryTemperature">580</integer>
  9. <!-- Doze: should the TYPE_PICK_UP_GESTURE sensor be used as a pulse signal. -->
  10. <bool name="config_dozePulsePickup">true</bool>
  11. <!-- Type of the double tap sensor. Empty if double tap is not supported. -->
  12. <string name="config_dozeDoubleTapSensorType" translatable="false">org.lineageos.sensor.double_tap</string>
  13. <!-- Type of the tap sensor. Empty if tap is not supported. -->
  14. <string name="config_dozeTapSensorType" translatable="false">org.lineageos.sensor.single_tap</string>
  15. <!-- Power Management: Specifies whether to decouple the auto-suspend state of the
  16. device from the display on/off state.
  17. When false, autosuspend_disable() will be called before the display is turned on
  18. and autosuspend_enable() will be called after the display is turned off.
  19. This mode provides best compatibility for devices using legacy power management
  20. features such as early suspend / late resume.
  21. When true, autosuspend_display() and autosuspend_enable() will be called
  22. independently of whether the display is being turned on or off. This mode
  23. enables the power manager to suspend the application processor while the
  24. display is on.
  25. This resource should be set to "true" when a doze component has been specified
  26. to maximize power savings but not all devices support it.
  27. Refer to autosuspend.h for details.
  28. -->
  29. <bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
  30. <!-- Power Management: Specifies whether to decouple the interactive state of the
  31. device from the display on/off state.
  32. When false, setInteractive(..., true) will be called before the display is turned on
  33. and setInteractive(..., false) will be called after the display is turned off.
  34. This mode provides best compatibility for devices that expect the interactive
  35. state to be tied to the display state.
  36. When true, setInteractive(...) will be called independently of whether the display
  37. is being turned on or off. This mode enables the power manager to reduce
  38. clocks and disable the touch controller while the display is on.
  39. This resource should be set to "true" when a doze component has been specified
  40. to maximize power savings but not all devices support it.
  41. Refer to power.h for details.
  42. -->
  43. <bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
  44. <!-- Whether the new Auto Selection Network UI should be shown -->
  45. <bool name="config_enableNewAutoSelectNetworkUI">true</bool>
  46. <!-- If true, the display will be shifted around in ambient mode. -->
  47. <bool name="config_enableBurnInProtection">true</bool>
  48. <!-- The default refresh rate for a given device. Change this value to set a higher default
  49. refresh rate. If the hardware composer on the device supports display modes with a higher
  50. refresh rate than the default value specified here, the framework may use those higher
  51. refresh rate modes if an app chooses one by setting preferredDisplayModeId or calling
  52. setFrameRate().
  53. If a non-zero value is set for config_defaultPeakRefreshRate, then
  54. config_defaultRefreshRate may be set to 0, in which case the value set for
  55. config_defaultPeakRefreshRate will act as the default frame rate. -->
  56. <integer name="config_defaultRefreshRate">0</integer>
  57. <!-- The default peak refresh rate for a given device. Change this value if you want to prevent
  58. the framework from using higher refresh rates, even if display modes with higher refresh
  59. rates are available from hardware composer. Only has an effect if the value is
  60. non-zero. -->
  61. <integer name="config_defaultPeakRefreshRate">120</integer>
  62. <!-- Low zone brightness thresholds in the range [0, 255] -->
  63. <integer-array name="config_brightnessThresholdsOfPeakRefreshRate" translatable="false">
  64. <item>7</item>
  65. <item>11</item>
  66. </integer-array>
  67. <!-- Low zone lux thresholds -->
  68. <integer-array name="config_ambientThresholdsOfPeakRefreshRate" translatable="false">
  69. <item>-1</item>
  70. <item>15</item>
  71. </integer-array>
  72. <!-- Default refresh rate in the zone defined by brightness and ambient thresholds.
  73. If non-positive, then the refresh rate is unchanged even if thresholds are configured. -->
  74. <integer name="config_defaultRefreshRateInZone">120</integer>
  75. </resources>