OSDN Git Service

Add color mode setting
authorRomain Guy <romainguy@google.com>
Tue, 24 Oct 2017 20:37:34 +0000 (21:37 +0100)
committerRomain Guy <romainguy@google.com>
Tue, 24 Oct 2017 21:23:34 +0000 (22:23 +0100)
commit62e8c175257d25c64ed19e5ccccd4e3cd987b8ad
treecff84580a4644fc244c5819b4fc9a1634cccc4ed
parent6575d483cc12747e8f6790e369ed59c15e3ff91a
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
Change-Id: I83cc972fc3a2290ff106eae0e76a3ee799503813
proto/src/metrics_constants.proto
services/core/java/com/android/server/wm/WindowManagerService.java