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

Commit 33d7aaab authored by hanlixy's avatar hanlixy Committed by Han Li
Browse files

Add android.hardware.type.glasses for Glasses Feature

Bug: 432240117
Bug: 430302860
Flag: com.android.microxr.flags.xr_glasses_feature
Test: m update-api
Change-Id: I64fd00a804dcc20b7b1afc0082fd10eb8e6c29fc
parent f70b8a43
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -13773,6 +13773,7 @@ package android.content.pm {
    field public static final String FEATURE_FINGERPRINT = "android.hardware.fingerprint";
    field public static final String FEATURE_FREEFORM_WINDOW_MANAGEMENT = "android.software.freeform_window_management";
    field public static final String FEATURE_GAMEPAD = "android.hardware.gamepad";
    field @FlaggedApi("com.android.microxr.flags.xr_glasses_feature") public static final String FEATURE_GLASSES = "android.hardware.type.glasses";
    field public static final String FEATURE_HARDWARE_KEYSTORE = "android.hardware.hardware_keystore";
    field public static final String FEATURE_HIFI_SENSORS = "android.hardware.sensor.hifi_sensors";
    field public static final String FEATURE_HOME_SCREEN = "android.software.home_screen";
+12 −0
Original line number Diff line number Diff line
@@ -4467,6 +4467,18 @@ public abstract class PackageManager {
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_PC = "android.hardware.type.pc";

    /**
     * Feature for {@link #getSystemAvailableFeatures} and
     * {@link #hasSystemFeature}: This is a full stack Android device with or without a display
     * on glasses. Glasses here are defined to be the device worn on the body, perhaps on
     * the head. The user is very close and usually wears the device when interacting with the
     * device. The device likely requires a companion phone to access features of apps. User input
     * can be a variety of touchpad on the glasses, audio and the companion phone.
     */
    @FlaggedApi(com.android.microxr.flags.Flags.FLAG_XR_GLASSES_FEATURE)
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_GLASSES = "android.hardware.type.glasses";

    /**
     * Feature for {@link #getSystemAvailableFeatures} and {@link #hasSystemFeature}:
     * The device supports printing.