Lines Matching defs:locales

34  * preferences for locales.
38 // This is a comma-separated list of the locales in the LocaleList created at construction time,
156 * @throws NullPointerException if any of the input locales is <code>null</code>.
157 * @throws IllegalArgumentException if any of the input locales repeat.
311 // The locales are not the same, but the languages are the same, and one of the locales
317 // If we can't guess a script, we don't know enough about the locales' language to find
318 // if the locales match. So we fall back to old behavior of matching, which considered
319 // locales with different regions different.
326 // There is no match if the two locales use different scripts. This will most imporantly
388 * Returns the first match in the locale list given an unordered array of supported locales
433 * Returns true if the collection of locale tags only contains empty locales and pseudolocales.
444 // than the number of pseudo-locales plus one for the empty string, it's guaranteed
472 * preferred locales, having concluded that the primary preference is not supported but a
524 public static void setDefault(@NonNull @Size(min=1) LocaleList locales) {
525 setDefault(locales, 0);
532 * list (based on the locales the app supports).
536 public static void setDefault(@NonNull @Size(min=1) LocaleList locales, int localeIndex) {
537 if (locales == null) {
538 throw new NullPointerException("locales is null");
540 if (locales.isEmpty()) {
541 throw new IllegalArgumentException("locales is empty");
544 sLastDefaultLocale = locales.get(localeIndex);
546 sLastExplicitlySetLocaleList = locales;
547 sDefaultLocaleList = locales;