mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_miatoll.git
synced 2025-08-02 14:36:39 +09:00
sm6250-common: Set up display color compositions
* Switch to "Adaptive" mode and Display P3 color by default * Use default color mode for Natural and Boosted * Enable QDCM combined mode and disable factory mode * Drop LiveDisplay's color mode support as it conflicts with AOSP display color adjustment * Rest of configuration is kanged off Pixel's overlay Signed-off-by: Albert I <kras@raphielgang.org> Change-Id: Ib26033fe00a6cc1e8c7d8f93da417516e31a52e3
This commit is contained in:
committed by
Alexander Winkowski
parent
346597a773
commit
e313f8855a
@ -327,4 +327,38 @@
|
||||
running in WAL mode.
|
||||
Choices are: FULL, NORMAL, OFF. -->
|
||||
<string name="db_wal_sync_mode" translatable="false">OFF</string>
|
||||
|
||||
<!-- Indicate available ColorDisplayManager.COLOR_MODE_xxx. -->
|
||||
<integer-array name="config_availableColorModes">
|
||||
<item>0</item> <!-- COLOR_MODE_NATURAL -->
|
||||
<item>1</item> <!-- COLOR_MODE_BOOSTED -->
|
||||
<item>3</item> <!-- COLOR_MODE_AUTOMATIC -->
|
||||
</integer-array>
|
||||
|
||||
<!-- Color mode to use when accessibility transforms are enabled. This color mode must be
|
||||
supported by the device, but not necessarily appear in config_availableColorModes. The
|
||||
regularly selected color mode will be used if this value is negative. -->
|
||||
<integer name="config_accessibilityColorMode">2</integer>
|
||||
|
||||
<!-- The following two arrays specify which color space to use for display composition when a
|
||||
certain color mode is active.
|
||||
Composition color spaces are defined in android.view.Display.COLOR_MODE_xxx, and color
|
||||
modes are defined in ColorDisplayManager.COLOR_MODE_xxx and
|
||||
ColorDisplayManager.VENDOR_COLOR_MODE_xxx.
|
||||
The color space COLOR_MODE_DEFAULT (0) lets the system select the most appropriate
|
||||
composition color space for currently displayed content. Other values (e.g.,
|
||||
COLOR_MODE_SRGB) override system selection; these other color spaces must be supported by
|
||||
the device for for display composition.
|
||||
If a color mode does not have a corresponding color space specified in this array, the
|
||||
currently set composition color space will not be modified.-->
|
||||
<integer-array name="config_displayCompositionColorModes">
|
||||
<item>0</item> <!-- COLOR_MODE_NATURAL -->
|
||||
<item>1</item> <!-- COLOR_MODE_BOOSTED -->
|
||||
<item>3</item> <!-- COLOR_MODE_AUTOMATIC -->
|
||||
</integer-array>
|
||||
<integer-array name="config_displayCompositionColorSpaces">
|
||||
<item>0</item> <!-- COLOR_MODE_DEFAULT -->
|
||||
<item>0</item> <!-- COLOR_MODE_DEFAULT -->
|
||||
<item>9</item> <!-- COLOR_MODE_DISPLAY_P3 -->
|
||||
</integer-array>
|
||||
</resources>
|
||||
|
Reference in New Issue
Block a user