OSDN Git Service

Add color mode setting
authorRomain Guy <romainguy@google.com>
Tue, 24 Oct 2017 20:37:34 +0000 (21:37 +0100)
committerChia-I Wu <olv@google.com>
Thu, 26 Oct 2017 17:46:40 +0000 (10:46 -0700)
commitaf5e11245decf4f999768ddda9ba6804c040b61d
treed0fdc015b86dfd38eb7a90f54a29ba672bfca7ea
parent25c008d9b16bb705e47c3b7371ef3ef3695e50d2
Add color mode setting

The new setting appears on devices that support color management
and wide color gamut rendering. The setting allows the user to
choose between natural (sRGB), boosted (sRGB + 10% saturation)
and saturated (unmanaged colors; colors are remapped to the device's
native gamut).

This change adds a metric constant for analytics in Settings
and uses a persistent system property to know when to suppress
color management.

Bug: 68159303
Test: manual
Merged-In: I83cc972fc3a2290ff106eae0e76a3ee799503813
Change-Id: I83cc972fc3a2290ff106eae0e76a3ee799503813
(cherry picked from commit 62e8c175257d25c64ed19e5ccccd4e3cd987b8ad)
proto/src/metrics_constants.proto
services/core/java/com/android/server/wm/WindowManagerService.java