Loading api/system-current.txt +6 −0 Original line number Diff line number Diff line Loading @@ -5604,6 +5604,12 @@ package android.provider { field public static final String OOB_WHITELIST = "oob_whitelist"; } public static interface DeviceConfig.IntelligenceAttention { field public static final String NAMESPACE = "intelligence_attention"; field public static final String PROPERTY_ATTENTION_CHECK_ENABLED = "attention_check_enabled"; field public static final String PROPERTY_ATTENTION_CHECK_SETTINGS = "attention_check_settings"; } public static interface DeviceConfig.OnPropertyChangedListener { method public void onPropertyChanged(String, String, String); } Loading core/java/android/provider/DeviceConfig.java +31 −17 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ public final class DeviceConfig { /** * Namespace for all Game Driver features. * * @hide */ @SystemApi Loading Loading @@ -103,6 +104,24 @@ public final class DeviceConfig { @SystemApi public static final String NAMESPACE_NOTIFICATION_ASSISTANT = "notification_assistant"; /** * 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 check. */ String PROPERTY_ATTENTION_CHECK_ENABLED = "attention_check_enabled"; /** * Settings for performing the attention check. */ String PROPERTY_ATTENTION_CHECK_SETTINGS = "attention_check_settings"; } /** * Telephony related properties definitions. * Loading Loading @@ -151,7 +170,6 @@ public final class DeviceConfig { * @param namespace The namespace containing the property to look up. * @param name The name of the property to look up. * @return the corresponding value, or null if not present. * * @hide */ @SystemApi Loading @@ -178,9 +196,8 @@ public final class DeviceConfig { * @param value The value to store for the property. * @param makeDefault Whether to make the new value the default one. * @return True if the value was set, false if the storage implementation throws errors. * @see #resetToDefaults(int, String). * * @hide * @see #resetToDefaults(int, String). */ @SystemApi @RequiresPermission(WRITE_DEVICE_CONFIG) Loading @@ -199,9 +216,8 @@ public final class DeviceConfig { * * @param resetMode The reset mode to use. * @param namespace Optionally, the specific namespace which resets will be limited to. * @see #setProperty(String, String, String, boolean) * * @hide * @see #setProperty(String, String, String, boolean) */ @SystemApi @RequiresPermission(WRITE_DEVICE_CONFIG) Loading @@ -221,9 +237,8 @@ public final class DeviceConfig { * @param namespace The namespace containing properties to monitor. * @param executor The executor which will be used to run callbacks. * @param onPropertyChangedListener The listener to add. * @see #removeOnPropertyChangedListener(OnPropertyChangedListener) * * @hide * @see #removeOnPropertyChangedListener(OnPropertyChangedListener) */ @SystemApi @RequiresPermission(READ_DEVICE_CONFIG) Loading Loading @@ -255,9 +270,8 @@ public final class DeviceConfig { * property changes. * * @param onPropertyChangedListener The listener to remove. * @see #addOnPropertyChangedListener(String, Executor, OnPropertyChangedListener) * * @hide * @see #addOnPropertyChangedListener(String, Executor, OnPropertyChangedListener) */ @SystemApi public static void removeOnPropertyChangedListener( Loading Loading
api/system-current.txt +6 −0 Original line number Diff line number Diff line Loading @@ -5604,6 +5604,12 @@ package android.provider { field public static final String OOB_WHITELIST = "oob_whitelist"; } public static interface DeviceConfig.IntelligenceAttention { field public static final String NAMESPACE = "intelligence_attention"; field public static final String PROPERTY_ATTENTION_CHECK_ENABLED = "attention_check_enabled"; field public static final String PROPERTY_ATTENTION_CHECK_SETTINGS = "attention_check_settings"; } public static interface DeviceConfig.OnPropertyChangedListener { method public void onPropertyChanged(String, String, String); } Loading
core/java/android/provider/DeviceConfig.java +31 −17 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ public final class DeviceConfig { /** * Namespace for all Game Driver features. * * @hide */ @SystemApi Loading Loading @@ -103,6 +104,24 @@ public final class DeviceConfig { @SystemApi public static final String NAMESPACE_NOTIFICATION_ASSISTANT = "notification_assistant"; /** * 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 check. */ String PROPERTY_ATTENTION_CHECK_ENABLED = "attention_check_enabled"; /** * Settings for performing the attention check. */ String PROPERTY_ATTENTION_CHECK_SETTINGS = "attention_check_settings"; } /** * Telephony related properties definitions. * Loading Loading @@ -151,7 +170,6 @@ public final class DeviceConfig { * @param namespace The namespace containing the property to look up. * @param name The name of the property to look up. * @return the corresponding value, or null if not present. * * @hide */ @SystemApi Loading @@ -178,9 +196,8 @@ public final class DeviceConfig { * @param value The value to store for the property. * @param makeDefault Whether to make the new value the default one. * @return True if the value was set, false if the storage implementation throws errors. * @see #resetToDefaults(int, String). * * @hide * @see #resetToDefaults(int, String). */ @SystemApi @RequiresPermission(WRITE_DEVICE_CONFIG) Loading @@ -199,9 +216,8 @@ public final class DeviceConfig { * * @param resetMode The reset mode to use. * @param namespace Optionally, the specific namespace which resets will be limited to. * @see #setProperty(String, String, String, boolean) * * @hide * @see #setProperty(String, String, String, boolean) */ @SystemApi @RequiresPermission(WRITE_DEVICE_CONFIG) Loading @@ -221,9 +237,8 @@ public final class DeviceConfig { * @param namespace The namespace containing properties to monitor. * @param executor The executor which will be used to run callbacks. * @param onPropertyChangedListener The listener to add. * @see #removeOnPropertyChangedListener(OnPropertyChangedListener) * * @hide * @see #removeOnPropertyChangedListener(OnPropertyChangedListener) */ @SystemApi @RequiresPermission(READ_DEVICE_CONFIG) Loading Loading @@ -255,9 +270,8 @@ public final class DeviceConfig { * property changes. * * @param onPropertyChangedListener The listener to remove. * @see #addOnPropertyChangedListener(String, Executor, OnPropertyChangedListener) * * @hide * @see #addOnPropertyChangedListener(String, Executor, OnPropertyChangedListener) */ @SystemApi public static void removeOnPropertyChangedListener( Loading