Romain Guy 4832745b84 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
2017-01-24 15:55:09 -08:00
..
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2016-10-26 19:30:23 -07:00
2017-01-17 18:55:51 -08:00
2016-10-27 18:09:00 -07:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2016-10-26 19:30:23 -07:00
2016-10-26 19:30:23 -07:00
2016-10-26 19:30:23 -07:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2016-10-26 19:30:23 -07:00
2016-10-27 18:09:00 -07:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00
2017-01-17 18:55:51 -08:00

Android Asset Packaging Tool 2.0 (AAPT2) release notes

Version 2.4

  • Supports <meta-data> tags in <manifest>.

Version 2.3

aapt2

  • Support new font resource type.

Version 2.2

aapt2 compile ...

  • Duplicate resource filtering: removes duplicate resources in dominated configurations that are always identical when selected at runtime. This can be disabled with --no-resource-deduping.

Version 2.1

  • Configuration Split APK support: supports splitting resources that match a set of configurations to a separate APK which can be loaded alongside the base APK on API 21+ devices. This is done using the flag --split path/to/split.apk:<config1>[,<config2>,...].
  • SDK version resource filtering: Resources with an SDK version qualifier that is unreachable at runtime due to the minimum SDK level declared by the AndroidManifest.xml are stripped.

Version 2.0

aapt2 compile ...

  • Pseudo-localization: generates pseudolocalized versions of default strings when the --pseudo-localize option is specified.
  • Legacy mode: treats some class of errors as warnings in order to be more compatible with AAPT when --legacy is specified.
  • Compile directory: treats the input file as a directory when --dir is specified. This will emit a zip of compiled files, one for each file in the directory. The directory must follow the Android resource directory structure (res/values-[qualifiers]/file.ext).
  • Automatic attribute versioning: adds version qualifiers to resources that use attributes introduced in a later SDK level. This can be disabled with --no-auto-version.
  • Min SDK resource filtering: removes resources that can't possibly be selected at runtime due to the application's minimum supported SDK level.