Add wide color gamut and HDR resource qualifiers

Bug: 32984164
Test: Config_test, AaptConfig_test and aapt2_tests
Change-Id: Ie9c82bfe2d36b1d6180ee223250ab5bb2ce90dd4
This commit is contained in:
Romain Guy
2017-01-18 16:34:42 -08:00
parent a2b1774d75
commit c9ba559021
15 changed files with 561 additions and 4 deletions

View File

@@ -565,6 +565,38 @@ which indicates whether the screen is long.</p>
method, which indicates whether the screen is round.</p>
</td>
</tr>
<tr id="WideColorGamutQualifier">
<td>Wide Color Gamut</td>
<td>
<code>widecg</code><br/>
<code>nowidecg</code>
</td>
<td>
<ul class="nolist">
<li>{@code widecg}: Displays with a wide color gamut such as Display P3 or AdobeRGB</li>
<li>{@code nowidecg}: Displays with a narrow color gamut such as sRGB</li>
</ul>
<p><em>Added in API level 26.</em></p>
<p>Also see the {@link android.content.res.Configuration#isScreenWideColorGamut()} configuration
method, which indicates whether the screen has a wide color gamut.</p>
</td>
</tr>
<tr id="HDRQualifier">
<td>High Dynamic Range (HDR)</td>
<td>
<code>highdr</code><br/>
<code>lowdr</code>
</td>
<td>
<ul class="nolist">
<li>{@code highdr}: Displays with a high-dynamic range</li>
<li>{@code lowdr}: Displays with a low/standard dynamic range</li>
</ul>
<p><em>Added in API level 26.</em></p>
<p>Also see the {@link android.content.res.Configuration#isScreenHdr()} configuration
method, which indicates whether the screen has a HDR capabilities.</p>
</td>
</tr>
<tr id="OrientationQualifier">
<td>Screen orientation</td>
<td>