Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31d80ea1 authored by Ruben Brunk's avatar Ruben Brunk
Browse files

Add feature tag for high-performance VR devices.

Bug: 26667978
Change-Id: I4adeaebdf4cb77eb8ba889bd25f678d873c493cd
parent 67269fe0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9696,6 +9696,7 @@ package android.content.pm {
    field public static final java.lang.String FEATURE_USB_HOST = "android.hardware.usb.host";
    field public static final java.lang.String FEATURE_VERIFIED_BOOT = "android.software.verified_boot";
    field public static final java.lang.String FEATURE_VR_MODE = "android.software.vr.mode";
    field public static final java.lang.String FEATURE_VR_MODE_HIGH_PERFORMANCE = "android.hardware.vr.high_performance";
    field public static final java.lang.String FEATURE_WATCH = "android.hardware.type.watch";
    field public static final java.lang.String FEATURE_WEBVIEW = "android.software.webview";
    field public static final java.lang.String FEATURE_WIFI = "android.hardware.wifi";
+1 −0
Original line number Diff line number Diff line
@@ -10048,6 +10048,7 @@ package android.content.pm {
    field public static final java.lang.String FEATURE_USB_HOST = "android.hardware.usb.host";
    field public static final java.lang.String FEATURE_VERIFIED_BOOT = "android.software.verified_boot";
    field public static final java.lang.String FEATURE_VR_MODE = "android.software.vr.mode";
    field public static final java.lang.String FEATURE_VR_MODE_HIGH_PERFORMANCE = "android.hardware.vr.high_performance";
    field public static final java.lang.String FEATURE_WATCH = "android.hardware.type.watch";
    field public static final java.lang.String FEATURE_WEBVIEW = "android.software.webview";
    field public static final java.lang.String FEATURE_WIFI = "android.hardware.wifi";
+1 −0
Original line number Diff line number Diff line
@@ -9704,6 +9704,7 @@ package android.content.pm {
    field public static final java.lang.String FEATURE_USB_HOST = "android.hardware.usb.host";
    field public static final java.lang.String FEATURE_VERIFIED_BOOT = "android.software.verified_boot";
    field public static final java.lang.String FEATURE_VR_MODE = "android.software.vr.mode";
    field public static final java.lang.String FEATURE_VR_MODE_HIGH_PERFORMANCE = "android.hardware.vr.high_performance";
    field public static final java.lang.String FEATURE_WATCH = "android.hardware.type.watch";
    field public static final java.lang.String FEATURE_WEBVIEW = "android.software.webview";
    field public static final java.lang.String FEATURE_WIFI = "android.hardware.wifi";
+15 −2
Original line number Diff line number Diff line
@@ -2059,12 +2059,25 @@ public abstract class PackageManager {
     * Feature for {@link #getSystemAvailableFeatures} and {@link #hasSystemFeature}:
     * The device implements a an optimized mode for virtual reality (VR) applications that handles
     * stereoscopic rendering of notifications, and may potentially also include optimizations to
     * reduce latency in the graphics, display, and sensor stacks.  Presence of this feature
     * also indicates that the VrCore library is included on this device.
     * reduce latency in the graphics, display, and sensor stacks.
     */
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_VR_MODE = "android.software.vr.mode";

    /**
     * Feature for {@link #getSystemAvailableFeatures} and {@link #hasSystemFeature}:
     * The device implements {@link #FEATURE_VR_MODE} but additionally meets all CTS requirements
     * to be certified as a "VR Ready" device, which guarantees that the device is capable of
     * delivering consistent performance at a high framerate over an extended period of time for
     * typical VR application CPU/GPU workloads with a minimal number of frame drops, implements
     * {@link #FEATURE_HIFI_SENSORS} with a low sensor latency, implements an optimized render path
     * to minimize latency to draw to the device's main display, and includes optimizations to
     * lower display persistence to an acceptable level.
     */
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_VR_MODE_HIGH_PERFORMANCE
            = "android.hardware.vr.high_performance";

    /**
     * Action to external storage service to clean out removed apps.
     * @hide