config.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. <!-- Indicate available ColorDisplayManager.COLOR_MODE_xxx. -->
  8. <integer-array name="config_availableColorModes">
  9. <item>258</item>
  10. <item>256</item>
  11. <item>257</item>
  12. <item>269</item>
  13. <item>268</item>
  14. <item>267</item>
  15. </integer-array>
  16. <!-- Shutdown if the battery temperature exceeds (this value * 0.1) Celsius. -->
  17. <integer name="config_shutdownBatteryTemperature">580</integer>
  18. <!-- Doze: should the TYPE_PICK_UP_GESTURE sensor be used as a pulse signal. -->
  19. <bool name="config_dozePulsePickup">true</bool>
  20. <!-- Type of the double tap sensor. Empty if double tap is not supported. -->
  21. <string name="config_dozeDoubleTapSensorType" translatable="false">org.lineageos.sensor.double_tap</string>
  22. <!-- Type of the tap sensor. Empty if tap is not supported. -->
  23. <string name="config_dozeTapSensorType" translatable="false">org.lineageos.sensor.single_tap</string>
  24. <!-- Power Management: Specifies whether to decouple the auto-suspend state of the
  25. device from the display on/off state.
  26. When false, autosuspend_disable() will be called before the display is turned on
  27. and autosuspend_enable() will be called after the display is turned off.
  28. This mode provides best compatibility for devices using legacy power management
  29. features such as early suspend / late resume.
  30. When true, autosuspend_display() and autosuspend_enable() will be called
  31. independently of whether the display is being turned on or off. This mode
  32. enables the power manager to suspend the application processor while the
  33. display is on.
  34. This resource should be set to "true" when a doze component has been specified
  35. to maximize power savings but not all devices support it.
  36. Refer to autosuspend.h for details.
  37. -->
  38. <bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
  39. <!-- Power Management: Specifies whether to decouple the interactive state of the
  40. device from the display on/off state.
  41. When false, setInteractive(..., true) will be called before the display is turned on
  42. and setInteractive(..., false) will be called after the display is turned off.
  43. This mode provides best compatibility for devices that expect the interactive
  44. state to be tied to the display state.
  45. When true, setInteractive(...) will be called independently of whether the display
  46. is being turned on or off. This mode enables the power manager to reduce
  47. clocks and disable the touch controller while the display is on.
  48. This resource should be set to "true" when a doze component has been specified
  49. to maximize power savings but not all devices support it.
  50. Refer to power.h for details.
  51. -->
  52. <bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
  53. <!-- Whether the new Auto Selection Network UI should be shown -->
  54. <bool name="config_enableNewAutoSelectNetworkUI">true</bool>
  55. <!-- If true, the display will be shifted around in ambient mode. -->
  56. <bool name="config_enableBurnInProtection">true</bool>
  57. <!-- The default refresh rate for a given device. Change this value to set a higher default
  58. refresh rate. If the hardware composer on the device supports display modes with a higher
  59. refresh rate than the default value specified here, the framework may use those higher
  60. refresh rate modes if an app chooses one by setting preferredDisplayModeId or calling
  61. setFrameRate().
  62. If a non-zero value is set for config_defaultPeakRefreshRate, then
  63. config_defaultRefreshRate may be set to 0, in which case the value set for
  64. config_defaultPeakRefreshRate will act as the default frame rate. -->
  65. <integer name="config_defaultRefreshRate">0</integer>
  66. <!-- The default peak refresh rate for a given device. Change this value if you want to prevent
  67. the framework from using higher refresh rates, even if display modes with higher refresh
  68. rates are available from hardware composer. Only has an effect if the value is
  69. non-zero. -->
  70. <integer name="config_defaultPeakRefreshRate">120</integer>
  71. <!-- Low zone brightness thresholds in the range [0, 255] -->
  72. <integer-array name="config_brightnessThresholdsOfPeakRefreshRate" translatable="false">
  73. <item>7</item>
  74. <item>11</item>
  75. </integer-array>
  76. <!-- Low zone lux thresholds -->
  77. <integer-array name="config_ambientThresholdsOfPeakRefreshRate" translatable="false">
  78. <item>-1</item>
  79. <item>15</item>
  80. </integer-array>
  81. <!-- Default refresh rate in the zone defined by brightness and ambient thresholds.
  82. If non-positive, then the refresh rate is unchanged even if thresholds are configured. -->
  83. <integer name="config_defaultRefreshRateInZone">120</integer>
  84. <!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
  85. when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
  86. where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java,
  87. and Strength as defined in Authenticators.java -->
  88. <string-array name="config_biometric_sensors" translatable="false">
  89. <item>0:2:15</item>
  90. </string-array>
  91. </resources>