OSDN Git Service

Add new color mode setting
authorRomain Guy <romainguy@google.com>
Tue, 24 Oct 2017 20:59:40 +0000 (21:59 +0100)
committerChia-I Wu <olv@google.com>
Thu, 26 Oct 2017 17:09:34 +0000 (10:09 -0700)
commit9143fb26b4c67fbdf9d19bbd98456c9e321e14d5
treedf4c13596805a88b0fc6fdcaa79c45bc2a70347a
parent16776b64c8163a3ed4f9e5632644a18d3c3f25eb
Add new color mode setting

Replace the "vivid" mode setting with a new 3 choice screen:
- Natural (sRGB)
- Boosted (sRGB + 10% saturation)
- Saturated (unmanaged, colors are assigned the native color space)

The "Colors" setting that replaces "Vivid" only appears on devices
that support wide gamut rendering and color management. Changing
the color mode has an immediate effect and triggers a configuration
change in running application so that applications that request
wide color gamut rendering can react properly (since they lose
that ability).

Bug: 68159303
Test: make RunSettingsRoboTests
Merged-In: I7009723e11ee164c93719f0e42fed9d1b3cf6e01
Change-Id: I7009723e11ee164c93719f0e42fed9d1b3cf6e01
(cherry picked from commit 05fa18f8474cd5fed798e7ee7ef099682c4a4475)
res/xml/display_settings.xml
src/com/android/settings/display/ColorModePreferenceController.java
src/com/android/settings/display/ColorModePreferenceFragment.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/display/ColorModePreferenceControllerTest.java [deleted file]
tests/robotests/src/com/android/settings/display/ColorModePreferenceFragmentTest.java [new file with mode: 0644]