/**@class android.os.LocaleList implements android.os.Parcelable @extends java.lang.Object LocaleList is an immutable list of Locales, typically used to keep an ordered list of user preferences for locales. */ var LocaleList = { /***/ CREATOR : "null", /**Retrieves the {@link Locale} at the specified index. @param {Number} index The position to retrieve. @return {Object {java.util.Locale}} The {@link Locale} in the given index. */ get : function( ) {}, /**Returns whether the {@link android.os.LocaleList} contains no {@link Locale} items. @return {Boolean} {@code true} if this {@link LocaleList} has no {@link Locale} items, {@code false} otherwise. */ isEmpty : function( ) {}, /**Returns the number of {@link Locale} items in this {@link android.os.LocaleList}. */ size : function( ) {}, /**Searches this {@link android.os.LocaleList} for the specified {@link Locale} and returns the index of the first occurrence. @param {Object {Locale}} locale The {@link Locale} to search for. @return {Number} The index of the first occurrence of the {@link Locale} or {@code -1} if the item wasn't found. */ indexOf : function( ) {}, /** */ equals : function( ) {}, /** */ hashCode : function( ) {}, /** */ toString : function( ) {}, /** */ describeContents : function( ) {}, /** */ writeToParcel : function( ) {}, /**Helper to write LocaleList to a protocol buffer output stream. Assumes the parent protobuf has declared the locale as repeated. @param {Object {ProtoOutputStream}} protoOutputStream Stream to write the locale to. @param {Number} fieldId Field Id of the Locale as defined in the parent message. @hide */ writeToProto : function( ) {}, /**Retrieves a String representation of the language tags in this list. */ toLanguageTags : function( ) {}, /**Retrieve an empty instance of {@link android.os.LocaleList}. */ getEmptyLocaleList : function( ) {}, /**Generates a new LocaleList with the given language tags. @param {String} list The language tags to be included as a single {@link String} separated by commas. @return {Object {android.os.LocaleList}} A new instance with the {@link Locale} items identified by the given tags. */ forLanguageTags : function( ) {}, /**Returns true if locale is a pseudo-locale, false otherwise. {@hide} */ isPseudoLocale : function( ) {}, /**Returns true if locale is a pseudo-locale, false otherwise. */ isPseudoLocale : function( ) {}, /**Returns the first match in the locale list given an unordered array of supported locales in BCP 47 format. @return {Object {java.util.Locale}} The first {@link Locale} from this list that appears in the given array, or {@code null} if the {@link LocaleList} is empty. */ getFirstMatch : function( ) {}, /**{@hide} */ getFirstMatchIndex : function( ) {}, /**Same as getFirstMatch(), but with English assumed to be supported, even if it's not. {@hide} */ getFirstMatchWithEnglishSupported : function( ) {}, /**{@hide} */ getFirstMatchIndexWithEnglishSupported : function( ) {}, /**{@hide} */ getFirstMatchIndexWithEnglishSupported : function( ) {}, /**Returns true if the collection of locale tags only contains empty locales and pseudolocales. Assumes that there is no repetition in the input. {@hide} */ isPseudoLocalesOnly : function( ) {}, /**The result is guaranteed to include the default Locale returned by Locale.getDefault(), but not necessarily at the top of the list. The default locale not being at the top of the list is an indication that the system has set the default locale to one of the user's other preferred locales, having concluded that the primary preference is not supported but a secondary preference is. <p>Note that the default LocaleList would change if Locale.setDefault() is called. This method takes that into account by always checking the output of Locale.getDefault() and recalculating the default LocaleList if needed.</p> */ getDefault : function( ) {}, /**Returns the default locale list, adjusted by moving the default locale to its first position. */ getAdjustedDefault : function( ) {}, /**Also sets the default locale by calling Locale.setDefault() with the first locale in the list. @throws NullPointerException if the input is <code>null</code>. @throws IllegalArgumentException if the input is empty. */ setDefault : function( ) {}, /**This may be used directly by system processes to set the default locale list for apps. For such uses, the default locale list would always come from the user preferences, but the default locale may have been chosen to be a locale other than the first locale in the locale list (based on the locales the app supports). {@hide} */ setDefault : function( ) {}, };