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

Commit f82bb8b0 authored by Matt Pape's avatar Matt Pape
Browse files

Remove interface for Intelligence_Attention.

Per API council feedback, we are making changes to include only the
namespace in the system API defined in DeviceConfig.java. Strings which
define property names should be defined in code local to the feature
instead.

Bug: 126411407
Test: atest FrameworksCoreTests:DeviceConfigTest

Change-Id: Ia51733a0fcb061e754ea16c8496100fad338b614
parent 5bb71f49
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -5868,6 +5868,7 @@ package android.provider {
    field public static final String NAMESPACE_DEX_BOOT = "dex_boot";
    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_INTELLIGENCE_ATTENTION = "intelligence_attention";
    field public static final String NAMESPACE_MEDIA_NATIVE = "media_native";
    field public static final String NAMESPACE_NETD_NATIVE = "netd_native";
    field public static final String NAMESPACE_RUNTIME_NATIVE_BOOT = "runtime_native_boot";
@@ -5881,12 +5882,6 @@ package android.provider {
    field public static final String SERVICE_ENABLED = "service_enabled";
  }
  public static interface DeviceConfig.IntelligenceAttention {
    field public static final String ATTENTION_ENABLED = "attention_enabled";
    field public static final String ATTENTION_SETTINGS = "attention_settings";
    field public static final String NAMESPACE = "intelligence_attention";
  }
  public static interface DeviceConfig.OnPropertiesChangedListener {
    method public void onPropertiesChanged(@NonNull android.provider.DeviceConfig.Properties);
  }
+8 −16
Original line number Diff line number Diff line
@@ -129,6 +129,14 @@ public final class DeviceConfig {
    @SystemApi
    public static final String NAMESPACE_INPUT_NATIVE_BOOT = "input_native_boot";

    /**
     * Namespace for attention-based features provided by on-device machine intelligence.
     *
     * @hide
     */
    @SystemApi
    public static final String NAMESPACE_INTELLIGENCE_ATTENTION = "intelligence_attention";

    /**
     * Namespace for all media native related features.
     *
@@ -227,22 +235,6 @@ public final class DeviceConfig {
        String USAP_POOL_REFILL_THRESHOLD = "usap_refill_threshold";
    }

    /**
     * Namespace for attention-based features provided by on-device machine intelligence.
     *
     * @hide
     */
    @SystemApi
    public interface IntelligenceAttention {
        String NAMESPACE = "intelligence_attention";

        /** If {@code true}, enables the attention features. */
        String ATTENTION_ENABLED = "attention_enabled";

        /** Settings for the attention features. */
        String ATTENTION_SETTINGS = "attention_settings";
    }

    /**
     * Privacy related properties definitions.
     *