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

Commit 821f43aa authored by Sam Lin's avatar Sam Lin
Browse files

Add Foldable feature flag

This CL add a feature flag for an Android device with a foldable
display.

Bug: 124406307
Test: make checkbuild
Change-Id: I4f04be938322d1d27d382d6a30c5507413a269b8
parent 1ca52f00
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11647,6 +11647,7 @@ package android.content.pm {
    field public static final String FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT = "android.hardware.faketouch.multitouch.distinct";
    field public static final String FEATURE_FAKETOUCH_MULTITOUCH_JAZZHAND = "android.hardware.faketouch.multitouch.jazzhand";
    field public static final String FEATURE_FINGERPRINT = "android.hardware.fingerprint";
    field public static final String FEATURE_FOLDABLE = "android.hardware.type.foldable";
    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 public static final String FEATURE_HIFI_SENSORS = "android.hardware.sensor.hifi_sensors";
+8 −0
Original line number Diff line number Diff line
@@ -2563,6 +2563,14 @@ 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 foldable device. Properties such as
     * the display size may change in response to being folded.
     */
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_FOLDABLE = "android.hardware.type.foldable";

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