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