diff options
author | Michael Wright <michaelwr@google.com> | 2015-09-15 00:13:26 +0100 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2015-09-18 23:37:28 +0000 |
commit | 58e829f71d2c525309e5bb5a1c02dc64397df221 (patch) | |
tree | 77858e37cf7dd7032c812563ce2eada3a618a5a0 /core/res | |
parent | 62b94c353a8748ef10691da4844bf894e1155870 (diff) | |
download | frameworks_base-58e829f71d2c525309e5bb5a1c02dc64397df221.zip frameworks_base-58e829f71d2c525309e5bb5a1c02dc64397df221.tar.gz frameworks_base-58e829f71d2c525309e5bb5a1c02dc64397df221.tar.bz2 |
Add support for setting color transforms
Bug: 24038268
Change-Id: I05275c906e02eb9e67331f6f909166eb08ad5536
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/AndroidManifest.xml | 7 | ||||
-rw-r--r-- | core/res/res/values/config.xml | 22 | ||||
-rw-r--r-- | core/res/res/values/symbols.xml | 1 |
3 files changed, 30 insertions, 0 deletions
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index b8b6444..6afc544 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -2160,6 +2160,13 @@ <permission android:name="android.permission.CONTROL_WIFI_DISPLAY" android:protectionLevel="signature" /> + <!-- Allows an application to control the color transforms applied to + displays system-wide. + <p>Not for use by third-party applications.</p> + @hide --> + <permission android:name="android.permission.CONFIGURE_DISPLAY_COLOR_TRANSFORM" + android:protectionLevel="signature" /> + <!-- @SystemApi Allows an application to control VPN. <p>Not for use by third-party applications.</p> @hide --> diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index fd600e3..dbd1b8d 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -1740,6 +1740,28 @@ --> <bool name="config_enableWifiDisplay">false</bool> + <!-- The color transform values that correspond to each respective configuration mode for the + built-in display, or -1 if the mode is unsupported by the device. The possible + configuration modes are: + 1. Wide-gamut ("Vibrant") + 2. Adobe RGB ("Natural") + 3. sRGB ("Standard") + + For example, if a device had Wide-gamut as color transform mode 1, sRGB mode as color + transform mode 7, and did not support Adobe RGB at all this would look like: + + <integer-array name="config_colorTransforms"> + <item>1</item> + <item>-1</item> + <item>7</item> + </integer-array> + --> + <integer-array name="config_colorTransforms"> + <item>-1</item> + <item>-1</item> + <item>-1</item> + </integer-array> + <!-- When true use the linux /dev/input/event subsystem to detect the switch changes on the headphone/microphone jack. When false use the older uevent framework. --> <bool name="config_useDevInputEventForAudioJack">false</bool> diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 357d4c3..e21aab7 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -1130,6 +1130,7 @@ <java-symbol type="array" name="config_telephonyHardware" /> <java-symbol type="array" name="config_keySystemUuidMapping" /> <java-symbol type="array" name="config_gpsParameters" /> + <java-symbol type="array" name="config_colorTransforms" /> <java-symbol type="drawable" name="default_wallpaper" /> <java-symbol type="drawable" name="indicator_input_error" /> |