From 05bcbd6a562c9d09637353be9005eeed38326f2e Mon Sep 17 00:00:00 2001 From: Calvin Huang Date: Thu, 18 May 2023 18:59:54 +0000 Subject: [PATCH] Add system feature for car splitscreen multitasking Bug: 280394553 Test: atest android.app.cts.SystemFeaturesTest#testFeatureNamespaces Change-Id: I63024850214a99069c839c7683acfdcbbc87185e --- core/java/android/content/pm/PackageManager.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index 7f198975db053..8fafb18393ef0 100644 --- a/core/java/android/content/pm/PackageManager.java +++ b/core/java/android/content/pm/PackageManager.java @@ -2882,6 +2882,20 @@ public abstract class PackageManager { public static final String FEATURE_CAR_TEMPLATES_HOST = "android.software.car.templates_host"; + /** + * Feature for {@link #getSystemAvailableFeatures} and {@link #hasSystemFeature}:If this + * feature is supported, the device should also declare {@link #FEATURE_AUTOMOTIVE} and show + * a UI that can display multiple tasks at the same time on a single display. The user can + * perform multiple actions on different tasks simultaneously. Apps open in split screen mode + * by default, instead of full screen. Unlike Android's multi-window mode, where users can + * choose how to display apps, the device determines how apps are shown. + * + * @hide + */ + @SdkConstant(SdkConstantType.FEATURE) + public static final String FEATURE_CAR_SPLITSCREEN_MULTITASKING = + "android.software.car.splitscreen_multitasking"; + /** * Feature for {@link #getSystemAvailableFeatures} and * {@link #hasSystemFeature(String, int)}: If this feature is supported, the device supports