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

Commit e1bff3f0 authored by Ng Zhi An's avatar Ng Zhi An
Browse files

Add native boot flag namespace for activity_manager

Bug: 120794810
Test: m, flash, boot
Change-Id: I2b1d9274ac1d185845a906b0e3e3a899fa4f8e74
parent ffa0d6c9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -5743,6 +5743,11 @@ package android.provider {
    field public static final String NAMESPACE = "activity_manager";
  }
  public static interface DeviceConfig.ActivityManagerNativeBoot {
    field public static final String NAMESPACE = "activity_manager_native_boot";
    field public static final String OFFLOAD_QUEUE_ENABLED = "offload_queue_enabled";
  }
  public static interface DeviceConfig.AttentionManagerService {
    field public static final String NAMESPACE = "attention_manager_service";
    field public static final String PROPERTY_COMPONENT_NAME = "component_name";
+12 −0
Original line number Diff line number Diff line
@@ -104,6 +104,18 @@ public final class DeviceConfig {
    @SystemApi
    public static final String NAMESPACE_NOTIFICATION_ASSISTANT = "notification_assistant";

    /**
     * Namespace for all activity manager related features that are used at the native level.
     * These features are applied at reboot.
     *
     * @hide
     */
    @SystemApi
    public interface ActivityManagerNativeBoot {
        String NAMESPACE = "activity_manager_native_boot";
        String OFFLOAD_QUEUE_ENABLED = "offload_queue_enabled";
    }

    /**
     * Namespace for attention-based features provided by on-device machine intelligence.
     *
+1 −0
Original line number Diff line number Diff line
@@ -77,6 +77,7 @@ class SettingsToPropertiesMapper {
    // permission in the corresponding .te file your feature belongs to.
    @VisibleForTesting
    static final String[] sDeviceConfigScopes = new String[] {
        DeviceConfig.ActivityManagerNativeBoot.NAMESPACE,
        DeviceConfig.NAMESPACE_INPUT_NATIVE_BOOT,
        DeviceConfig.NAMESPACE_NETD_NATIVE,
    };