From 927f5c687bd46f4720ddb2c003d501154240736d Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Thu, 3 Nov 2022 14:40:32 -0400 Subject: [PATCH] Add meta data for panel Test: build Bug: 257283506 Change-Id: I656b81fe3faef442c5780985495dad900a1dab57 --- .../service/controls/ControlsProviderService.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/core/java/android/service/controls/ControlsProviderService.java b/core/java/android/service/controls/ControlsProviderService.java index 47b16a3518065..d2a4ae2820611 100644 --- a/core/java/android/service/controls/ControlsProviderService.java +++ b/core/java/android/service/controls/ControlsProviderService.java @@ -54,6 +54,20 @@ public abstract class ControlsProviderService extends Service { public static final String SERVICE_CONTROLS = "android.service.controls.ControlsProviderService"; + /** + * Manifest metadata to show a custom embedded activity as part of device controls. + * + * The value of this metadata must be the {@link ComponentName} as a string of an activity in + * the same package that will be launched as part of a TaskView. + * + * The activity must be exported, enabled and protected by + * {@link Manifest.permission.BIND_CONTROLS}. + * + * @hide + */ + public static final String META_DATA_PANEL_ACTIVITY = + "android.service.controls.META_DATA_PANEL_ACTIVITY"; + /** * @hide */