OSDN Git Service

Add color mode to activity/window
authorRomain Guy <romainguy@google.com>
Tue, 24 Jan 2017 01:03:35 +0000 (17:03 -0800)
committerRomain Guy <romainguy@google.com>
Tue, 24 Jan 2017 23:55:09 +0000 (15:55 -0800)
commit4832745b84d6a358582f2264d22acacf25e01b07
treecde7e923e06892dfa7c9b1a10a10e8da91e007f1
parenta393ff7dc7e7e7002a400d37868e0d6c14507b43
Add color mode to activity/window

The color mode lets an application request a wide color gamut for
a specific window. This will also be used in the future to request
HDR. The color mode is currently either default (sRGB) or an undefined
wide gamut color space chosen by the platform. These attributes could
later be used to choose a specific color space if we deem this important
or useful.

This change also renames the various "colorimetry" attributes and
constants to "color mode" for consistency. These symbols were
added in O and can be safely renamed.

Test: CtsColorModeTestCases
Bug: 32984164
Change-Id: I4d4691dd12dbe3f3aa6a5cf893cff39aa16c739e
18 files changed:
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/app/Activity.java
core/java/android/content/pm/ActivityInfo.java
core/java/android/content/pm/PackageParser.java
core/java/android/content/res/Configuration.java
core/java/android/view/Window.java
core/java/android/view/WindowManager.java
core/res/res/values/attrs_manifest.xml
core/res/res/values/public.xml
libs/androidfw/ResourceTypes.cpp
libs/androidfw/include/androidfw/ResourceTypes.h
libs/androidfw/tests/Config_test.cpp
tools/aapt/AaptConfig.cpp
tools/aapt/tests/AaptConfig_test.cpp
tools/aapt2/ConfigDescription.cpp
tools/aapt2/ConfigDescription_test.cpp