/**@class android.provider.DeviceConfig @extends java.lang.Object Device level configuration parameters which can be tuned by a separate configuration service. Namespaces that end in "_native" such as {@link #NAMESPACE_NETD_NATIVE} are intended to be used by native code and should be pushed to system properties to make them accessible. @hide */ var DeviceConfig = { /** The content:// style URL for the config table. @hide */ CONTENT_URI : "null", /** Namespace for activity manager related features. These features will be applied immediately upon change. @hide */ NAMESPACE_ACTIVITY_MANAGER : "activity_manager", /** Namespace for all activity manager related features that are used at the native level. These features are applied at reboot. @hide */ NAMESPACE_ACTIVITY_MANAGER_NATIVE_BOOT : "activity_manager_native_boot", /** Namespace for all app compat related features. These features will be applied immediately upon change. @hide */ NAMESPACE_APP_COMPAT : "app_compat", /** Namespace for AttentionManagerService related features. @hide */ NAMESPACE_ATTENTION_MANAGER_SERVICE : "attention_manager_service", /** Namespace for autofill feature that provides suggestions across all apps when the user interacts with input fields. @hide */ NAMESPACE_AUTOFILL : "autofill", /** Namespace for all networking connectivity related features. @hide */ NAMESPACE_CONNECTIVITY : "connectivity", /** Namespace for content capture feature used by on-device machine intelligence to provide suggestions in a privacy-safe manner. @hide */ NAMESPACE_CONTENT_CAPTURE : "content_capture", /** Namespace for how dex runs. The feature requires a reboot to reach a clean state. @hide */ NAMESPACE_DEX_BOOT : "dex_boot", /** Namespace for all Game Driver features. @hide */ NAMESPACE_GAME_DRIVER : "game_driver", /** Namespace for all input-related features that are used at the native level. These features are applied at reboot. @hide */ NAMESPACE_INPUT_NATIVE_BOOT : "input_native_boot", /** Namespace for attention-based features provided by on-device machine intelligence. @hide */ NAMESPACE_INTELLIGENCE_ATTENTION : "intelligence_attention", /** Definitions for properties related to Content Suggestions. @hide */ NAMESPACE_INTELLIGENCE_CONTENT_SUGGESTIONS : "intelligence_content_suggestions", /** Namespace for all media native related features. @hide */ NAMESPACE_MEDIA_NATIVE : "media_native", /** Namespace for all netd related features. @hide */ NAMESPACE_NETD_NATIVE : "netd_native", /** Namespace for Rollback flags that are applied immediately. @hide */ NAMESPACE_ROLLBACK : "rollback", /** Namespace for Rollback flags that are applied after a reboot. @hide */ NAMESPACE_ROLLBACK_BOOT : "rollback_boot", /** Namespace for all runtime related features that don't require a reboot to become active. There are no feature flags using NAMESPACE_RUNTIME. @hide */ NAMESPACE_RUNTIME : "runtime", /** Namespace for all runtime related features that require system properties for accessing the feature flags from C++ or Java language code. One example is the app image startup cache feature use_app_image_startup_cache. @hide */ NAMESPACE_RUNTIME_NATIVE : "runtime_native", /** Namespace for all runtime native boot related features. Boot in this case refers to the fact that the properties only take affect after rebooting the device. @hide */ NAMESPACE_RUNTIME_NATIVE_BOOT : "runtime_native_boot", /** Namespace for system scheduler related features. These features will be applied immediately upon change. @hide */ NAMESPACE_SCHEDULER : "scheduler", /** Namespace for storage-related features. @hide */ NAMESPACE_STORAGE : "storage", /** Namespace for System UI related features. @hide */ NAMESPACE_SYSTEMUI : "systemui", /** Telephony related properties. @hide */ NAMESPACE_TELEPHONY : "telephony", /** Namespace for TextClassifier related features. @hide @see android.provider.Settings.Global.TEXT_CLASSIFIER_CONSTANTS */ NAMESPACE_TEXTCLASSIFIER : "textclassifier", /** Namespace for contacts provider related features. @hide */ NAMESPACE_CONTACTS_PROVIDER : "contacts_provider", /** Namespace for settings ui related features @hide */ NAMESPACE_SETTINGS_UI : "settings_ui", /** Namespace for window manager related features. The names to access the properties in this namespace should be defined in {@link android.provider.DeviceConfig.WindowManager}. @hide */ NAMESPACE_WINDOW_MANAGER : "android:window_manager", /** Privacy related properties definitions. @hide */ NAMESPACE_PRIVACY : "privacy", /**Look up the value of a property for a particular namespace. @param {String} namespace The namespace containing the property to look up. @param {String} name The name of the property to look up. @return {String} the corresponding value, or null if not present. @hide */ getProperty : function( ) {}, /**Look up the String value of a property for a particular namespace. @param {String} namespace The namespace containing the property to look up. @param {String} name The name of the property to look up. @param {String} defaultValue The value to return if the property does not exist or has no non-null value. @return {String} the corresponding value, or defaultValue if none exists. @hide */ getString : function( ) {}, /**Look up the boolean value of a property for a particular namespace. @param {String} namespace The namespace containing the property to look up. @param {String} name The name of the property to look up. @param {Boolean} defaultValue The value to return if the property does not exist or has no non-null value. @return {Boolean} the corresponding value, or defaultValue if none exists. @hide */ getBoolean : function( ) {}, /**Look up the int value of a property for a particular namespace. @param {String} namespace The namespace containing the property to look up. @param {String} name The name of the property to look up. @param {Number} defaultValue The value to return if the property does not exist, has no non-null value, or fails to parse into an int. @return {Number} the corresponding value, or defaultValue if either none exists or it does not parse. @hide */ getInt : function( ) {}, /**Look up the long value of a property for a particular namespace. @param {String} namespace The namespace containing the property to look up. @param {String} name The name of the property to look up. @param {Number} defaultValue The value to return if the property does not exist, has no non-null value, or fails to parse into a long. @return {Number} the corresponding value, or defaultValue if either none exists or it does not parse. @hide */ getLong : function( ) {}, /**Look up the float value of a property for a particular namespace. @param {String} namespace The namespace containing the property to look up. @param {String} name The name of the property to look up. @param {Number} defaultValue The value to return if the property does not exist, has no non-null value, or fails to parse into a float. @return {Number} the corresponding value, or defaultValue if either none exists or it does not parse. @hide */ getFloat : function( ) {}, /**Create a new property with the the provided name and value in the provided namespace, or update the value of such a property if it already exists. The same name can exist in multiple namespaces and might have different values in any or all namespaces. <p> The method takes an argument indicating whether to make the value the default for this property. <p> All properties stored for a particular scope can be reverted to their default values by passing the namespace to {@link #resetToDefaults(int, String)}. @param {String} namespace The namespace containing the property to create or update. @param {String} name The name of the property to create or update. @param {String} value The value to store for the property. @param {Boolean} makeDefault Whether to make the new value the default one. @return {Boolean} True if the value was set, false if the storage implementation throws errors. @hide @see #resetToDefaults(int, String). */ setProperty : function( ) {}, /**Reset properties to their default values. <p> The method accepts an optional namespace parameter. If provided, only properties set within that namespace will be reset. Otherwise, all properties will be reset. @param {Number} resetMode The reset mode to use. @param {String} namespace Optionally, the specific namespace which resets will be limited to. @hide @see #setProperty(String, String, String, boolean) */ resetToDefaults : function( ) {}, /**Add a listener for property changes. <p> This listener will be called whenever properties in the specified namespace change. Callbacks will be made on the specified executor. Future calls to this method with the same listener will replace the old namespace and executor. Remove the listener entirely by calling {@link #removeOnPropertyChangedListener}(OnPropertyChangedListener). @param {String} namespace The namespace containing properties to monitor. @param {Object {Executor}} executor The executor which will be used to run callbacks. @param {Object {DeviceConfig.OnPropertyChangedListener}} onPropertyChangedListener The listener to add. @hide @see #removeOnPropertyChangedListener(OnPropertyChangedListener) @removed */ addOnPropertyChangedListener : function( ) {}, /**Add a listener for property changes. <p> This listener will be called whenever properties in the specified namespace change. Callbacks will be made on the specified executor. Future calls to this method with the same listener will replace the old namespace and executor. Remove the listener entirely by calling {@link #removeOnPropertiesChangedListener}(OnPropertiesChangedListener). @param {String} namespace The namespace containing properties to monitor. @param {Object {Executor}} executor The executor which will be used to run callbacks. @param {Object {DeviceConfig.OnPropertiesChangedListener}} onPropertiesChangedListener The listener to add. @hide @see #removeOnPropertiesChangedListener(OnPropertiesChangedListener) */ addOnPropertiesChangedListener : function( ) {}, /**Remove a listener for property changes. The listener will receive no further notification of property changes. @param {Object {DeviceConfig.OnPropertyChangedListener}} onPropertyChangedListener The listener to remove. @hide @see #addOnPropertyChangedListener(String, Executor, OnPropertyChangedListener) @removed */ removeOnPropertyChangedListener : function( ) {}, /**Remove a listener for property changes. The listener will receive no further notification of property changes. @param {Object {DeviceConfig.OnPropertiesChangedListener}} onPropertiesChangedListener The listener to remove. @hide @see #addOnPropertiesChangedListener(String, Executor, OnPropertiesChangedListener) */ removeOnPropertiesChangedListener : function( ) {}, /**Enforces READ_DEVICE_CONFIG permission if namespace is not one of public namespaces. @hide */ enforceReadPermission : function( ) {}, };