OSDN Git Service

Merge "Add native boot flag namespace for activity_manager"
authorTreeHugger Robot <treehugger-gerrit@google.com>
Wed, 30 Jan 2019 17:35:20 +0000 (17:35 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Wed, 30 Jan 2019 17:35:20 +0000 (17:35 +0000)
1  2 
api/system-current.txt
core/java/android/provider/DeviceConfig.java
services/core/java/com/android/server/am/SettingsToPropertiesMapper.java

Simple merge
@@@ -137,29 -102,21 +137,41 @@@ public final class DeviceConfig 
       * @hide
       */
      @SystemApi
 -    public static final String NAMESPACE_NOTIFICATION_ASSISTANT = "notification_assistant";
 +    public interface NotificationAssistant {
 +        String NAMESPACE = "notification_assistant";
 +        /**
 +         * Whether the Notification Assistant should generate replies for notifications.
 +         */
 +        String GENERATE_REPLIES = "generate_replies";
 +        /**
 +         * Whether the Notification Assistant should generate contextual actions for notifications.
 +         */
 +        String GENERATE_ACTIONS = "generate_actions";
 +    }
 +
 +    /**
 +     * Namespace for all runtime native related features.
 +     *
 +     * @hide
 +     */
 +    @SystemApi
 +    public interface RuntimeNative {
 +        String NAMESPACE = "runtime_native";
 +    }
  
      /**
+      * 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.
       *
       * @hide
@@@ -77,9 -77,9 +77,10 @@@ 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,
 +        DeviceConfig.RuntimeNative.NAMESPACE,
      };
  
      private final String[] mGlobalSettings;