Add GLES dEQP level feature flag

This change adds a feature flag that specifies the date associated
with the OpenGL ES dEQP tests that a device claims to pass.

Bug: 159842117
Change-Id: I830fbfcff617c891a42ca46396adf0283a52b874
This commit is contained in:
Alastair Donaldson
2020-11-26 13:39:08 +00:00
parent 4b59cf44df
commit 8524b7f35d
2 changed files with 18 additions and 0 deletions

View File

@@ -12236,6 +12236,7 @@ package android.content.pm {
field public static final String FEATURE_NFC_HOST_CARD_EMULATION_NFCF = "android.hardware.nfc.hcef";
field public static final String FEATURE_NFC_OFF_HOST_CARD_EMULATION_ESE = "android.hardware.nfc.ese";
field public static final String FEATURE_NFC_OFF_HOST_CARD_EMULATION_UICC = "android.hardware.nfc.uicc";
field public static final String FEATURE_OPENGLES_DEQP_LEVEL = "android.software.opengles.deqp.level";
field public static final String FEATURE_OPENGLES_EXTENSION_PACK = "android.hardware.opengles.aep";
field public static final String FEATURE_PC = "android.hardware.type.pc";
field public static final String FEATURE_PICTURE_IN_PICTURE = "android.software.picture_in_picture";

View File

@@ -2621,6 +2621,23 @@ public abstract class PackageManager {
@SdkConstant(SdkConstantType.FEATURE)
public static final String FEATURE_VULKAN_DEQP_LEVEL = "android.software.vulkan.deqp.level";
/**
* Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature(String, int)}: If this feature is supported, the feature version
* specifies a date such that the device is known to pass the OpenGLES dEQP test suite
* associated with that date. The date is encoded as follows:
* <ul>
* <li>Year in bits 31-16</li>
* <li>Month in bits 15-8</li>
* <li>Day in bits 7-0</li>
* </ul>
* <p>
* Example: 2021-03-01 is encoded as 0x07E50301, and would indicate that the device passes the
* OpenGL ES dEQP test suite version that was current on 2021-03-01.
*/
@SdkConstant(SdkConstantType.FEATURE)
public static final String FEATURE_OPENGLES_DEQP_LEVEL = "android.software.opengles.deqp.level";
/**
* Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature}: The device includes broadcast radio tuner.