/**@class android.content.res.Resources @extends java.lang.Object Class for accessing an application's resources. This sits on top of the asset manager of the application (accessible through {@link #getAssets}) and provides a high-level API for getting typed data from the assets. <p>The Android resource system keeps track of all non-code assets associated with an application. You can use this class to access your application's resources. You can generally acquire the {@link android.content.res.Resources} instance associated with your application with {@link android.content.Context#getResources getResources()}.</p> <p>The Android SDK tools compile your application's resources into the application binary at build time. To use a resource, you must install it correctly in the source tree (inside your project's {@code res/} directory) and build your application. As part of the build process, the SDK tools generate symbols for each resource, which you can use in your application code to access the resources.</p> <p>Using application resources makes it easy to update various characteristics of your application without modifying code, and—by providing sets of alternative resources—enables you to optimize your application for a variety of device configurations (such as for different languages and screen sizes). This is an important aspect of developing Android applications that are compatible on different types of devices.</p> <p>For more information about using resources, see the documentation about <a href="{@docRoot}guide/topics/resources/index.html">Application Resources</a>.</p> */ var Resources = { /** The {@code null} resource ID. This denotes an invalid resource ID that is returned by the system when a resource is not found or the value is set to {@code @null} in XML. */ ID_NULL : "0", /**Returns the most appropriate default theme for the specified target SDK version. <ul> <li>Below API 11: Gingerbread <li>APIs 12 thru 14: Holo <li>APIs 15 thru 23: Device default dark <li>APIs 24 and above: Device default light with dark action bar </ul> @param {Number} curTheme The current theme, or 0 if not specified. @param {Number} targetSdkVersion The target SDK version. @return {Number} A theme resource identifier @hide */ selectDefaultTheme : function( ) {}, /** @hide */ selectSystemTheme : function( ) {}, /**Return a global shared Resources object that provides access to only system resources (no application resources), is not configured for the current screen (can not use dimension units, does not change based on orientation, etc), and is not affected by Runtime Resource Overlay. */ getSystem : function( ) {}, /**Set the underlying implementation (containing all the resources and caches) and updates all Theme references to new implementations as well. @hide */ setImpl : function( ) {}, /** @hide */ getImpl : function( ) {}, /** @hide */ getClassLoader : function( ) {}, /** @return {Object {android.graphics.drawable.DrawableInflater}} the inflater used to create drawable objects @hide Pending API finalization. */ getDrawableInflater : function( ) {}, /**Used by AnimatorInflater. @hide */ getAnimatorCache : function( ) {}, /**Used by AnimatorInflater. @hide */ getStateListAnimatorCache : function( ) {}, /**Return the string value associated with a particular resource ID. The returned object will be a String if this is a plain string; it will be some other type of CharSequence if it is styled. {@more} @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Object {java.lang.CharSequence}} CharSequence The string data associated with the resource, plus possibly styled text information. */ getText : function( ) {}, /**Return the Typeface value associated with a particular resource ID. {@more} @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Object {android.graphics.Typeface}} Typeface The Typeface data associated with the resource. */ getFont : function( ) {}, /** @hide */ preloadFonts : function( ) {}, /**Returns the character sequence necessary for grammatically correct pluralization of the given resource ID for the given quantity. Note that the character sequence is selected based solely on grammatical necessity, and that such rules differ between languages. Do not assume you know which string will be returned for a given quantity. See <a href="{@docRoot}guide/topics/resources/string-resource.html#Plurals">String Resources</a> for more detail. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @param {Number} quantity The number used to get the correct string for the current language's plural rules. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Object {java.lang.CharSequence}} CharSequence The string data associated with the resource, plus possibly styled text information. */ getQuantityText : function( ) {}, /**Return the string value associated with a particular resource ID. It will be stripped of any styled text information. {@more} @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {String} String The string data associated with the resource, stripped of styled text information. */ getString : function( ) {}, /**Return the string value associated with a particular resource ID, substituting the format arguments as defined in {@link java.util.Formatter} and {@link java.lang.String#format}. It will be stripped of any styled text information. {@more} @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @param {Object {java.lang.Object[]}} formatArgs The format arguments that will be used for substitution. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {String} String The string data associated with the resource, stripped of styled text information. */ getString : function( ) {}, /**Formats the string necessary for grammatically correct pluralization of the given resource ID for the given quantity, using the given arguments. Note that the string is selected based solely on grammatical necessity, and that such rules differ between languages. Do not assume you know which string will be returned for a given quantity. See <a href="{@docRoot}guide/topics/resources/string-resource.html#Plurals">String Resources</a> for more detail. <p>Substitution of format arguments works as if using {@link java.util.Formatter} and {@link java.lang.String#format}. The resulting string will be stripped of any styled text information. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @param {Number} quantity The number used to get the correct string for the current language's plural rules. @param {Object {java.lang.Object[]}} formatArgs The format arguments that will be used for substitution. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {String} String The string data associated with the resource, stripped of styled text information. */ getQuantityString : function( ) {}, /**Returns the string necessary for grammatically correct pluralization of the given resource ID for the given quantity. Note that the string is selected based solely on grammatical necessity, and that such rules differ between languages. Do not assume you know which string will be returned for a given quantity. See <a href="{@docRoot}guide/topics/resources/string-resource.html#Plurals">String Resources</a> for more detail. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @param {Number} quantity The number used to get the correct string for the current language's plural rules. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {String} String The string data associated with the resource, stripped of styled text information. */ getQuantityString : function( ) {}, /**Return the string value associated with a particular resource ID. The returned object will be a String if this is a plain string; it will be some other type of CharSequence if it is styled. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @param {Object {CharSequence}} def The default CharSequence to return. @return {Object {java.lang.CharSequence}} CharSequence The string data associated with the resource, plus possibly styled text information, or def if id is 0 or not found. */ getText : function( ) {}, /**Return the styled text array associated with a particular resource ID. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Object {java.lang.CharSequence}} The styled text array associated with the resource. */ getTextArray : function( ) {}, /**Return the string array associated with a particular resource ID. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {String} The string array associated with the resource. */ getStringArray : function( ) {}, /**Return the int array associated with a particular resource ID. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Number} The int array associated with the resource. */ getIntArray : function( ) {}, /**Return an array of heterogeneous values. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Object {android.content.res.TypedArray}} Returns a TypedArray holding an array of the array values. Be sure to call {@link TypedArray#recycle() TypedArray.recycle()} when done with it. */ obtainTypedArray : function( ) {}, /**Retrieve a dimensional for a particular resource ID. Unit conversions are based on the current {@link DisplayMetrics} associated with the resources. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @return {Number} Resource dimension value multiplied by the appropriate metric to convert to pixels. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @see #getDimensionPixelOffset @see #getDimensionPixelSize */ getDimension : function( ) {}, /**Retrieve a dimensional for a particular resource ID for use as an offset in raw pixels. This is the same as {@link #getDimension}, except the returned value is converted to integer pixels for you. An offset conversion involves simply truncating the base value to an integer. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @return {Number} Resource dimension value multiplied by the appropriate metric and truncated to integer pixels. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @see #getDimension @see #getDimensionPixelSize */ getDimensionPixelOffset : function( ) {}, /**Retrieve a dimensional for a particular resource ID for use as a size in raw pixels. This is the same as {@link #getDimension}, except the returned value is converted to integer pixels for use as a size. A size conversion involves rounding the base value, and ensuring that a non-zero base value is at least one pixel in size. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @return {Number} Resource dimension value multiplied by the appropriate metric and truncated to integer pixels. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @see #getDimension @see #getDimensionPixelOffset */ getDimensionPixelSize : function( ) {}, /**Retrieve a fractional unit for a particular resource ID. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @param {Number} base The base value of this fraction. In other words, a standard fraction is multiplied by this value. @param {Number} pbase The parent base value of this fraction. In other words, a parent fraction (nn%p) is multiplied by this value. @return {Number} Attribute fractional value multiplied by the appropriate base value. @throws NotFoundException Throws NotFoundException if the given ID does not exist. */ getFraction : function( ) {}, /**Return a drawable object associated with a particular resource ID. Various types of objects will be returned depending on the underlying resource -- for example, a solid color, PNG image, scalable image, etc. The Drawable API hides these implementation details. <p class="note"><strong>Note:</strong> Prior to {@link android.os.Build.VERSION_CODES#JELLY_BEAN}, this function would not correctly retrieve the final configuration density when the resource ID passed here is an alias to another Drawable resource. This means that if the density configuration of the alias resource is different than the actual resource, the density of the returned Drawable would be incorrect, resulting in bad scaling. To work around this, you can instead manually resolve the aliased reference by using {@link #getValue(int, TypedValue, boolean)} and passing {@code true} for {@code resolveRefs}. The resulting {@link TypedValue#resourceId} value may be passed to this method.</p> <p class="note"><strong>Note:</strong> To obtain a themed drawable, use {@link android.content.Context#getDrawable(int) Context.getDrawable(int)} or {@link #getDrawable(int, android.content.res.Resources.Theme)} passing the desired theme.</p> @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @return {Object {android.graphics.drawable.Drawable}} Drawable An object that can be used to draw this resource. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @see #getDrawable(int, Theme) @deprecated Use {@link #getDrawable(int, Theme)} instead. */ getDrawable : function( ) {}, /**Return a drawable object associated with a particular resource ID and styled for the specified theme. Various types of objects will be returned depending on the underlying resource -- for example, a solid color, PNG image, scalable image, etc. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @param {Object {Resources.Theme}} theme The theme used to style the drawable attributes, may be {@code null}. @return {Object {android.graphics.drawable.Drawable}} Drawable An object that can be used to draw this resource. @throws NotFoundException Throws NotFoundException if the given ID does not exist. */ getDrawable : function( ) {}, /**Return a drawable object associated with a particular resource ID for the given screen density in DPI. This will set the drawable's density to be the device's density multiplied by the ratio of actual drawable density to requested density. This allows the drawable to be scaled up to the correct size if needed. Various types of objects will be returned depending on the underlying resource -- for example, a solid color, PNG image, scalable image, etc. The Drawable API hides these implementation details. <p class="note"><strong>Note:</strong> To obtain a themed drawable, use {@link android.content.Context#getDrawable(int) Context.getDrawable(int)} or {@link #getDrawableForDensity(int, int, android.content.res.Resources.Theme)} passing the desired theme.</p> @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @param {Number} density the desired screen density indicated by the resource as found in {@link DisplayMetrics}. A value of 0 means to use the density returned from {@link #getConfiguration()}. This is equivalent to calling {@link #getDrawable(int)}. @return {Object {android.graphics.drawable.Drawable}} Drawable An object that can be used to draw this resource. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @see #getDrawableForDensity(int, int, Theme) @deprecated Use {@link #getDrawableForDensity(int, int, Theme)} instead. */ getDrawableForDensity : function( ) {}, /**Return a drawable object associated with a particular resource ID for the given screen density in DPI and styled for the specified theme. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @param {Number} density The desired screen density indicated by the resource as found in {@link DisplayMetrics}. A value of 0 means to use the density returned from {@link #getConfiguration()}. This is equivalent to calling {@link #getDrawable(int, Theme)}. @param {Object {Resources.Theme}} theme The theme used to style the drawable attributes, may be {@code null} if the drawable cannot be decoded. @return {Object {android.graphics.drawable.Drawable}} Drawable An object that can be used to draw this resource. @throws NotFoundException Throws NotFoundException if the given ID does not exist. */ getDrawableForDensity : function( ) {}, /**Return a movie object associated with the particular resource ID. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @deprecated Prefer {@link android.graphics.drawable.AnimatedImageDrawable}. */ getMovie : function( ) {}, /**Returns a color integer associated with a particular resource ID. If the resource holds a complex {@link android.content.res.ColorStateList}, then the default color from the set is returned. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Number} A single color value in the form 0xAARRGGBB. @deprecated Use {@link #getColor(int, Theme)} instead. */ getColor : function( ) {}, /**Returns a themed color integer associated with a particular resource ID. If the resource holds a complex {@link android.content.res.ColorStateList}, then the default color from the set is returned. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @param {Object {Resources.Theme}} theme The theme used to style the color attributes, may be {@code null}. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Number} A single color value in the form 0xAARRGGBB. */ getColor : function( ) {}, /**Returns a color state list associated with a particular resource ID. The resource may contain either a single raw color value or a complex {@link android.content.res.ColorStateList} holding multiple possible colors. @param {Number} id The desired resource identifier of a {@link ColorStateList}, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Object {android.content.res.ColorStateList}} A ColorStateList object containing either a single solid color or multiple colors that can be selected based on a state. @deprecated Use {@link #getColorStateList(int, Theme)} instead. */ getColorStateList : function( ) {}, /**Returns a themed color state list associated with a particular resource ID. The resource may contain either a single raw color value or a complex {@link android.content.res.ColorStateList} holding multiple possible colors. @param {Number} id The desired resource identifier of a {@link ColorStateList}, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @param {Object {Resources.Theme}} theme The theme used to style the color attributes, may be {@code null}. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Object {android.content.res.ColorStateList}} A themed ColorStateList object containing either a single solid color or multiple colors that can be selected based on a state. */ getColorStateList : function( ) {}, /** @hide */ loadComplexColor : function( ) {}, /**Return a boolean associated with a particular resource ID. This can be used with any integral resource value, and will return true if it is non-zero. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Boolean} Returns the boolean value contained in the resource. */ getBoolean : function( ) {}, /**Return an integer associated with a particular resource ID. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Number} Returns the integer value contained in the resource. */ getInteger : function( ) {}, /**Retrieve a floating-point value for a particular resource ID. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @return {Number} Returns the floating-point value contained in the resource. @throws NotFoundException Throws NotFoundException if the given ID does not exist or is not a floating-point value. */ getFloat : function( ) {}, /**Return an XmlResourceParser through which you can read a view layout description for the given resource ID. This parser has limited functionality -- in particular, you can't change its input, and only the high-level events are available. <p>This function is really a simple wrapper for calling {@link #getXml} with a layout resource. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Object {android.content.res.XmlResourceParser}} A new parser object through which you can read the XML data. @see #getXml */ getLayout : function( ) {}, /**Return an XmlResourceParser through which you can read an animation description for the given resource ID. This parser has limited functionality -- in particular, you can't change its input, and only the high-level events are available. <p>This function is really a simple wrapper for calling {@link #getXml} with an animation resource. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Object {android.content.res.XmlResourceParser}} A new parser object through which you can read the XML data. @see #getXml */ getAnimation : function( ) {}, /**Return an XmlResourceParser through which you can read a generic XML resource for the given resource ID. <p>The XmlPullParser implementation returned here has some limited functionality. In particular, you can't change its input, and only high-level parsing events are available (since the document was pre-parsed for you at build time, which involved merging text and stripping comments). @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @return {Object {android.content.res.XmlResourceParser}} A new parser object through which you can read the XML data. @see android.util.AttributeSet */ getXml : function( ) {}, /**Open a data stream for reading a raw resource. This can only be used with resources whose value is the name of an asset files -- that is, it can be used to open drawable, sound, and raw resources; it will fail on string and color resources. @param {Number} id The resource identifier to open, as generated by the aapt tool. @return {Object {java.io.InputStream}} InputStream Access to the resource data. @throws NotFoundException Throws NotFoundException if the given ID does not exist. */ openRawResource : function( ) {}, /**Open a data stream for reading a raw resource. This can only be used with resources whose value is the name of an asset file -- that is, it can be used to open drawable, sound, and raw resources; it will fail on string and color resources. @param {Number} id The resource identifier to open, as generated by the aapt tool. @param {Object {TypedValue}} value The TypedValue object to hold the resource information. @return {Object {java.io.InputStream}} InputStream Access to the resource data. @throws NotFoundException Throws NotFoundException if the given ID does not exist. */ openRawResource : function( ) {}, /**Open a file descriptor for reading a raw resource. This can only be used with resources whose value is the name of an asset files -- that is, it can be used to open drawable, sound, and raw resources; it will fail on string and color resources. <p>This function only works for resources that are stored in the package as uncompressed data, which typically includes things like mp3 files and png images. @param {Number} id The resource identifier to open, as generated by the aapt tool. @return {Object {android.content.res.AssetFileDescriptor}} AssetFileDescriptor A new file descriptor you can use to read the resource. This includes the file descriptor itself, as well as the offset and length of data where the resource appears in the file. A null is returned if the file exists but is compressed. @throws NotFoundException Throws NotFoundException if the given ID does not exist. */ openRawResourceFd : function( ) {}, /**Return the raw data associated with a particular resource ID. @param {Number} id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier. @param {Object {TypedValue}} outValue Object in which to place the resource data. @param {Boolean} resolveRefs If true, a resource that is a reference to another resource will be followed so that you receive the actual final resource data. If false, the TypedValue will be filled in with the reference itself. @throws NotFoundException Throws NotFoundException if the given ID does not exist. */ getValue : function( ) {}, /**Get the raw value associated with a resource with associated density. @param {Number} id resource identifier @param {Number} density density in DPI @param {Object {TypedValue}} resolveRefs If true, a resource that is a reference to another resource will be followed so that you receive the actual final resource data. If false, the TypedValue will be filled in with the reference itself. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @see #getValue(String, TypedValue, boolean) */ getValueForDensity : function( ) {}, /**Return the raw data associated with a particular resource ID. See getIdentifier() for information on how names are mapped to resource IDs, and getString(int) for information on how string resources are retrieved. <p>Note: use of this function is discouraged. It is much more efficient to retrieve resources by identifier than by name. @param {String} name The name of the desired resource. This is passed to getIdentifier() with a default type of "string". @param {Object {TypedValue}} outValue Object in which to place the resource data. @param {Boolean} resolveRefs If true, a resource that is a reference to another resource will be followed so that you receive the actual final resource data. If false, the TypedValue will be filled in with the reference itself. @throws NotFoundException Throws NotFoundException if the given ID does not exist. */ getValue : function( ) {}, /**Returns the resource ID of the resource that was used to create this AttributeSet. @param {Object {AttributeSet}} set AttributeSet for which we want to find the source. @return {Number} The resource ID for the source that is backing the given AttributeSet or {@link Resources#ID_NULL} if the AttributeSet is {@code null}. */ getAttributeSetSourceResId : function( ) {}, /**Generate a new Theme object for this set of Resources. It initially starts out empty. @return {Object {android.content.res.Resources.Theme}} Theme The newly created Theme container. */ newTheme : function( ) {}, /**Retrieve a set of basic attribute values from an AttributeSet, not performing styling of them using a theme and/or style resources. @param {Object {AttributeSet}} set The current attribute values to retrieve. @param {Object {int[]}} attrs The specific attributes to be retrieved. These attribute IDs must be sorted in ascending order. @return {Object {android.content.res.TypedArray}} Returns a TypedArray holding an array of the attribute values. Be sure to call {@link TypedArray#recycle() TypedArray.recycle()} when done with it. @see Theme#obtainStyledAttributes(AttributeSet, int[], int, int) */ obtainAttributes : function( ) {}, /**Store the newly updated configuration. @deprecated See {@link android.content.Context#createConfigurationContext(Configuration)}. */ updateConfiguration : function( ) {}, /** @hide */ updateConfiguration : function( ) {}, /**Update the system resources configuration if they have previously been initialized. @hide */ updateSystemConfiguration : function( ) {}, /**Return the current display metrics that are in effect for this resource object. The returned object should be treated as read-only. @return {Object {android.util.DisplayMetrics}} The resource's current display metrics. */ getDisplayMetrics : function( ) {}, /** @hide */ getDisplayAdjustments : function( ) {}, /**Return the current configuration that is in effect for this resource object. The returned object should be treated as read-only. @return {Object {android.content.res.Configuration}} The resource's current configuration. */ getConfiguration : function( ) {}, /** @hide */ getSizeConfigurations : function( ) {}, /**Return the compatibility mode information for the application. The returned object should be treated as read-only. @return {Object {android.content.res.CompatibilityInfo}} compatibility info. @hide */ getCompatibilityInfo : function( ) {}, /**This is just for testing. @hide */ setCompatibilityInfo : function( ) {}, /**Return a resource identifier for the given resource name. A fully qualified resource name is of the form "package:type/entry". The first two components (package and type) are optional if defType and defPackage, respectively, are specified here. <p>Note: use of this function is discouraged. It is much more efficient to retrieve resources by identifier than by name. @param {String} name The name of the desired resource. @param {String} defType Optional default resource type to find, if "type/" is not included in the name. Can be null to require an explicit type. @param {String} defPackage Optional default package to find, if "package:" is not included in the name. Can be null to require an explicit package. @return {Number} int The associated resource identifier. Returns 0 if no such resource was found. (0 is not a valid resource ID.) */ getIdentifier : function( ) {}, /**Return true if given resource identifier includes a package. @hide */ resourceHasPackage : function( ) {}, /**Return the full name for a given resource identifier. This name is a single string of the form "package:type/entry". @param {Number} resid The resource identifier whose name is to be retrieved. @return {String} A string holding the name of the resource. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @see #getResourcePackageName @see #getResourceTypeName @see #getResourceEntryName */ getResourceName : function( ) {}, /**Return the package name for a given resource identifier. @param {Number} resid The resource identifier whose package name is to be retrieved. @return {String} A string holding the package name of the resource. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @see #getResourceName */ getResourcePackageName : function( ) {}, /**Return the type name for a given resource identifier. @param {Number} resid The resource identifier whose type name is to be retrieved. @return {String} A string holding the type name of the resource. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @see #getResourceName */ getResourceTypeName : function( ) {}, /**Return the entry name for a given resource identifier. @param {Number} resid The resource identifier whose entry name is to be retrieved. @return {String} A string holding the entry name of the resource. @throws NotFoundException Throws NotFoundException if the given ID does not exist. @see #getResourceName */ getResourceEntryName : function( ) {}, /**Return formatted log of the last retrieved resource's resolution path. @return {String} A string holding a formatted log of the steps taken to resolve the last resource. @throws NotFoundException Throws NotFoundException if there hasn't been a resource resolved yet. @hide */ getLastResourceResolution : function( ) {}, /**Parse a series of {@link android.R.styleable#Extra <extra>} tags from an XML file. You call this when you are at the parent tag of the extra tags, and it will return once all of the child tags have been parsed. This will call {@link #parseBundleExtra} for each extra tag encountered. @param {Object {XmlResourceParser}} parser The parser from which to retrieve the extras. @param {Object {Bundle}} outBundle A Bundle in which to place all parsed extras. @throws XmlPullParserException @throws IOException */ parseBundleExtras : function( ) {}, /**Parse a name/value pair out of an XML tag holding that data. The AttributeSet must be holding the data defined by {@link android.R.styleable#Extra}. The following value types are supported: <ul> <li> {@link TypedValue#TYPE_STRING}: {@link Bundle#putCharSequence Bundle.putCharSequence()} <li> {@link TypedValue#TYPE_INT_BOOLEAN}: {@link Bundle#putCharSequence Bundle.putBoolean()} <li> {@link TypedValue#TYPE_FIRST_INT}-{@link TypedValue#TYPE_LAST_INT}: {@link Bundle#putCharSequence Bundle.putBoolean()} <li> {@link TypedValue#TYPE_FLOAT}: {@link Bundle#putCharSequence Bundle.putFloat()} </ul> @param {String} tagName The name of the tag these attributes come from; this is only used for reporting error messages. @param {Object {AttributeSet}} attrs The attributes from which to retrieve the name/value pair. @param {Object {Bundle}} outBundle The Bundle in which to place the parsed value. @throws XmlPullParserException If the attributes are not valid. */ parseBundleExtra : function( ) {}, /**Retrieve underlying AssetManager storage for these resources. */ getAssets : function( ) {}, /**Call this to remove all cached loaded layout resources from the Resources object. Only intended for use with performance testing tools. */ flushLayoutCache : function( ) {}, /**Start preloading of resource data using this Resources object. Only for use by the zygote process for loading common system resources. {@hide} */ startPreloading : function( ) {}, /**Called by zygote when it is done preloading resources, to change back to normal Resources operation. */ finishPreloading : function( ) {}, /** @hide */ getPreloadedDrawables : function( ) {}, /**Called by ConfigurationBoundResourceCacheTest. @hide */ calcConfigChanges : function( ) {}, /**Obtains styled attributes from the theme, if available, or unstyled resources if the theme is null. @hide */ obtainAttributes : function( ) {}, };