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

Commit 1aebc9b5 authored by Gustav Sennton's avatar Gustav Sennton
Browse files

Add a DeviceConfig namespace for the NOTIFICATION_ASSITANT package.

The notification_assistant package will contain flags controling the
default Android Platform implementation of the Notification Assistant
(named ExtServices).
The flags will be read in
android.ext.services.notification.AssistantSettings.

Bug: 120792826
Test: build
Change-Id: Ib57ca8bb707e1582f315390d5d2eb833033b7d25
parent cc249beb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5449,6 +5449,7 @@ package android.provider {
    field public static final String NAMESPACE_GAME_DRIVER = "game_driver";
    field public static final String NAMESPACE_INPUT_NATIVE_BOOT = "input_native_boot";
    field public static final String NAMESPACE_NETD_NATIVE = "netd_native";
    field public static final String NAMESPACE_NOTIFICATION_ASSISTANT = "notification_assistant";
  }
  public static interface DeviceConfig.OnPropertyChangedListener {
+9 −0
Original line number Diff line number Diff line
@@ -94,6 +94,15 @@ public final class DeviceConfig {
    @SystemApi
    public static final String NAMESPACE_NETD_NATIVE = "netd_native";

    /**
     * Namespace for features related to the ExtServices Notification Assistant.
     * These features are applied immediately.
     *
     * @hide
     */
    @SystemApi
    public static final String NAMESPACE_NOTIFICATION_ASSISTANT = "notification_assistant";

    private static final Object sLock = new Object();
    @GuardedBy("sLock")
    private static Map<OnPropertyChangedListener, Pair<String, Executor>> sListeners =