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

Commit 8bab2ef6 authored by Saeid Farivar Asanjan's avatar Saeid Farivar Asanjan Committed by Android Build Cherrypicker Worker
Browse files

Add display compat system feature to PackageManager

Bug: 300642384
Test: atest-src CtsAppTestCases:android.app.cts.SystemFeaturesTest#testFeatureNamespaces
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:71d171a13beb9adfa7c9f6a5a7beccca9c9a7580)
Merged-In: I1c01965764e308491e0f064f0d3e1129c66101bb
Change-Id: I1c01965764e308491e0f064f0d3e1129c66101bb
parent ee000fe9
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2483,6 +2483,16 @@ public abstract class PackageManager {
    public static final String FEATURE_CAR_TEMPLATES_HOST =
            "android.software.car.templates_host";

    /**
     * Feature for {@link #getSystemAvailableFeatures} and
     * {@link #hasSystemFeature}: This device is capable of launching apps in automotive display
     * compatibility mode.
     * @hide
     */
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_CAR_DISPLAY_COMPATIBILITY =
            "android.software.car.display_compatibility";

    /**
     * Feature for {@link #getSystemAvailableFeatures} and
     * {@link #hasSystemFeature(String, int)}: If this feature is supported, the device supports