Searched refs:locale (Results 1 - 25 of 62) sorted by relevance

123

/libcore/luni/src/main/java/java/text/spi/
H A DBreakIteratorProvider.java27 * <p>Note that Android does not support user-supplied locale service providers.
41 * given locale.
43 * @param locale the locale
45 * @throws NullPointerException if {@code locale == null}
47 * if locale isn't one of the locales returned from
50 public abstract BreakIterator getWordInstance(Locale locale); argument
54 * given locale.
56 * @param locale the locale
63 getLineInstance(Locale locale) argument
76 getCharacterInstance(Locale locale) argument
89 getSentenceInstance(Locale locale) argument
[all...]
H A DNumberFormatProvider.java27 * <p>Note that Android does not support user-supplied locale service providers.
41 * monetary values for the given locale.
43 * @param locale the locale
45 * @throws NullPointerException if {@code locale == null}
47 * if locale isn't one of the locales returned from
50 public abstract NumberFormat getCurrencyInstance(Locale locale); argument
54 * integer values for the given locale. The returned {@code NumberFormat}
59 * @param locale the locale
66 getIntegerInstance(Locale locale) argument
79 getNumberInstance(Locale locale) argument
92 getPercentInstance(Locale locale) argument
[all...]
H A DDateFormatProvider.java27 * <p>Note that Android does not support user-supplied locale service providers.
41 * in the given style for the given locale.
44 * @param locale the locale
46 * @throws NullPointerException if {@code locale == null}
48 * if locale isn't one of the locales returned from
51 public abstract DateFormat getTimeInstance(int style, Locale locale); argument
55 * in the given style for the given locale.
58 * @param locale the locale
65 getDateInstance(int style, Locale locale) argument
80 getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) argument
[all...]
H A DCollatorProvider.java27 * <p>Note that Android does not support user-supplied locale service providers.
40 * Returns an instance of {@code Collator} for the given locale.
42 * @param locale the locale
44 * @throws NullPointerException if {@code locale == null}
46 * if locale isn't one of the locales returned from
49 public abstract Collator getInstance(Locale locale); argument
H A DDateFormatSymbolsProvider.java27 * <p>Note that Android does not support user-supplied locale service providers.
40 * Returns an instance of {@code DateFormatSymbols} for the given locale.
42 * @param locale the locale
44 * @throws NullPointerException if {@code locale == null}
46 * if locale isn't one of the locales returned from
49 public abstract DateFormatSymbols getInstance(Locale locale); argument
H A DDecimalFormatSymbolsProvider.java27 * <p>Note that Android does not support user-supplied locale service providers.
40 * Returns an instance of {@code DecimalFormatSymbols} for the given locale.
42 * @param locale the locale
44 * @throws NullPointerException if {@code locale == null}
46 * if locale isn't one of the locales returned from
49 public abstract DecimalFormatSymbols getInstance(Locale locale); argument
/libcore/luni/src/main/java/java/util/spi/
H A DLocaleNameProvider.java24 * localized locale names.
25 * <p>Note that Android does not support user-supplied locale service providers.
41 * @param locale a locale
44 * if {@code code == null || locale == null}
46 * if code or locale is not in a legal format or not available
48 public abstract String getDisplayLanguage(String languageCode, Locale locale); argument
54 * @param locale a locale
57 * if {@code code == null || locale
61 getDisplayCountry(String countryCode, Locale locale) argument
74 getDisplayVariant(String variantCode, Locale locale) argument
[all...]
H A DCurrencyNameProvider.java25 * <p>Note that Android does not support user-supplied locale service providers.
41 * @param locale a locale
42 * @return the symbol or null if there is no available symbol in the locale
44 * if {@code code == null || locale == null}
46 * if code or locale is not in a legal format or not available
48 public abstract String getSymbol(String code, Locale locale); argument
H A DTimeZoneNameProvider.java25 * <p>Note that Android does not support user-supplied locale service providers.
38 * Returns the localized name for the given time zone in the given locale.
43 * @param locale the locale
46 * if {@code id == null || locale == null}
48 * if locale is not available or style is invalid
50 public abstract String getDisplayName(String id, boolean daylight, int style, Locale locale); argument
/libcore/luni/src/main/java/java/util/
H A DCurrency.java64 * if the locale's country is not a supported ISO 3166 country.
66 public static Currency getInstance(Locale locale) { argument
68 Currency currency = localesToCurrencies.get(locale);
72 String country = locale.getCountry();
73 String variant = locale.getVariant();
81 throw new IllegalArgumentException("Unsupported ISO 3166 country: " + locale);
86 localesToCurrencies.put(locale, result);
113 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".
121 * Returns the localized name of this currency in the given {@code locale}.
125 public String getDisplayName(Locale locale) { argument
148 getSymbol(Locale locale) argument
[all...]
H A DResourceBundle.java92 private Locale locale; field in class:ResourceBundle
148 * @param locale
154 public static ResourceBundle getBundle(String bundleName, Locale locale) { argument
159 return getBundle(bundleName, locale, classLoader);
203 * @param locale
211 public static ResourceBundle getBundle(String bundleName, Locale locale, argument
224 if (!locale.equals(defaultLocale)) {
225 bundle = handleGetBundle(false, bundleName, locale, loader);
230 throw missingResourceException(bundleName + '_' + locale, "");
262 * the target locale o
476 handleGetBundle(boolean loadBase, String base, Locale locale, ClassLoader loader) argument
588 strip(Locale locale) argument
604 setLocale(Locale locale) argument
668 getFallbackLocale(String baseName, Locale locale) argument
809 getCandidateLocales(String baseName, Locale locale) argument
845 getFallbackLocale(String baseName, Locale locale) argument
878 newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) argument
949 getTimeToLive(String baseName, Locale locale) argument
975 needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime) argument
1013 toBundleName(String baseName, Locale locale) argument
[all...]
H A DLocale.java48 * <p>Note that locale data is not necessarily available for any of the locales pre-defined as
49 * constants in this class except for en_US, which is the only locale Java guarantees is always
58 * <p>You can use {@link Locale#getDefault} to get an appropriate locale for the <i>user</i> of the
63 * <p>Note that locale data comes solely from ICU. User-supplied locale service providers (using
99 * <a name="default_locale"><h3>Be wary of the default locale</h3></a>
100 * <p>Note that there are many convenience methods that automatically use the default locale, but
103 * <p>The default locale is appropriate for tasks that involve presenting data to the user. In
108 * <p>The default locale is <i>not</i> appropriate for machine-readable output. The best choice
109 * there is usually {@code Locale.US}&nbsp;&ndash; this locale i
398 getDisplayCountry(Locale locale) argument
420 getDisplayLanguage(Locale locale) argument
462 getDisplayName(Locale locale) argument
508 getDisplayVariant(Locale locale) argument
591 setDefault(Locale locale) argument
[all...]
/libcore/luni/src/main/java/libcore/icu/
H A DAlphabeticIndex.java78 * Creates a new AlphabeticIndex for the given locale.
80 public AlphabeticIndex(Locale locale) { argument
81 peer = create(locale.toString());
110 * Adds the index characters from the given locale to the index.
114 * it remains that of the locale that was originally specified
117 public synchronized AlphabeticIndex addLabels(Locale locale) { argument
118 addLabels(peer, locale.toString());
161 private static native long create(String locale); argument
165 private static native void addLabels(long peer, String locale); argument
H A DNativePluralRules.java49 public static NativePluralRules forLocale(Locale locale) { argument
50 return new NativePluralRules(forLocaleImpl(locale.toString()));
H A DICU.java227 public static native String getCurrencyDisplayName(String locale, String currencyCode); argument
229 public static native String getCurrencySymbol(String locale, String currencyCode); argument
231 public static native String getDisplayCountryNative(String countryCode, String locale); argument
232 public static native String getDisplayLanguageNative(String languageCode, String locale); argument
233 public static native String getDisplayVariantNative(String variantCode, String locale); argument
235 public static native String getISO3CountryNative(String locale); argument
236 public static native String getISO3LanguageNative(String locale); argument
238 public static native String addLikelySubtags(String locale); argument
239 public static native String getScript(String locale); argument
244 static native boolean initLocaleDataNative(String locale, LocaleDat argument
[all...]
H A DLocaleData.java26 * Passes locale-specific from ICU native code to Java.
33 // A cache for the locale-specific data.
36 // Ensure that we pull in the locale data for the root locale, en_US, and the
37 // user's default locale. (All devices must support the root locale and en_US,
116 * Returns a shared LocaleData for the given locale.
118 public static LocaleData get(Locale locale) { argument
119 if (locale == null) {
120 locale
172 initLocaleData(Locale locale) argument
[all...]
H A DTimeZoneNames.java46 // Ensure that we pull in the zone strings for the root locale, en_US, and the
47 // user's default locale. (All devices must support the root locale and en_US,
67 @Override protected String[][] create(Locale locale) { argument
77 fillZoneStrings(locale.toString(), result);
87 System.logI("Loaded time zone names for \"" + locale + "\" in " + duration + "ms" +
135 public static String[][] getZoneStrings(Locale locale) { argument
136 if (locale == null) {
137 locale = Locale.getDefault();
139 return cachedZoneStrings.get(locale);
149 forLocale(Locale locale) argument
165 fillZoneStrings(String locale, String[][] result) argument
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DOldAndroidLocaleTest.java29 * Test some locale-dependent stuff for Android. This test mainly ensures that
36 Locale locale = new Locale("en");
37 assertEquals("en", locale.toString());
39 locale = new Locale("en", "US");
40 assertEquals("en_US", locale.toString());
42 locale = new Locale("en", "", "POSIX");
43 assertEquals("en__POSIX", locale.toString());
45 locale = new Locale("en", "US", "POSIX");
46 assertEquals("en_US_POSIX", locale.toString());
92 // Check language part of locale
[all...]
/libcore/luni/src/main/java/java/text/
H A DDateFormatSymbols.java74 transient final Locale locale; field in class:DateFormatSymbols
83 zoneStrings = TimeZoneNames.getZoneStrings(locale);
90 * symbols for the user's default locale.
91 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".
99 * symbols for the specified locale.
101 * @param locale
102 * the locale.
104 public DateFormatSymbols(Locale locale) { argument
105 this.locale = locale;
136 getInstance(Locale locale) argument
[all...]
H A DMessageFormat.java44 * {@code MessageFormat} itself doesn't implement locale-specific
45 * behavior. Any locale-specific behavior is defined by the pattern that you
336 private Locale locale; field in class:MessageFormat
349 * Constructs a new {@code MessageFormat} using the specified pattern and {@code locale}.
353 * @param locale
354 * the locale.
358 public MessageFormat(String template, Locale locale) { argument
359 this.locale = locale;
365 * the user's default locale
1068 setLocale(Locale locale) argument
[all...]
H A DNumberFormat.java38 * {@code NumberFormat} helps you to format and parse numbers for any locale.
39 * Your code can be completely independent of the locale conventions for decimal
43 * To format a number for the current locale, use one of the factory class
67 * To format a number for a different locale, specify it in the call to
310 * <p>Note that Android does not support user-supplied locale service providers.
334 * for the user's default locale.
335 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".
345 * for the specified locale.
347 * @param locale
348 * the locale t
351 getCurrencyInstance(Locale locale) argument
374 getIntegerInstance(Locale locale) argument
398 getInstance(Locale locale) argument
402 getInstance(String pattern, Locale locale) argument
467 getNumberInstance(Locale locale) argument
494 getPercentInstance(Locale locale) argument
[all...]
H A DDecimalFormatSymbols.java34 * {@code DecimalFormatSymbols} from its locale data. If you need to change any
57 private transient Locale locale; field in class:DecimalFormatSymbols
62 * the user's default locale.
63 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".
75 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".
80 * @param locale
81 * the locale.
83 public DecimalFormatSymbols(Locale locale) { argument
84 LocaleData localeData = LocaleData.get(locale);
97 this.locale
128 getInstance(Locale locale) argument
[all...]
H A DDateFormat.java32 * <p>This class provides factories for obtaining instances configured for a specific locale.
333 * <p>Note that Android does not support user-supplied locale service providers.
350 * the DEFAULT style for the default locale.
352 * @return the {@code DateFormat} instance for the default style and locale.
360 * the specified style for the user's default locale.
361 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".
365 * locale.
377 * the specified style for the specified locale.
381 * @param locale
382 * the locale
389 getDateInstance(int style, Locale locale) argument
440 getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) argument
509 getTimeInstance(int style, Locale locale) argument
[all...]
/libcore/luni/src/test/java/libcore/java/text/
H A DDecimalFormatSymbolsTest.java27 private void checkLocaleIsEquivalentToRoot(Locale locale) { argument
28 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(locale);
/libcore/luni/src/main/java/org/xml/sax/
H A DParser.java57 * Allow an application to request a locale for errors and warnings.
60 * and warnings; if they cannot support the requested locale,
62 * not request a locale change in the middle of a parse.</p>
64 * @param locale A Java Locale object.
66 * (using the previous or default locale) if the
67 * requested locale is not supported.
71 public abstract void setLocale (Locale locale) argument

Completed in 237 milliseconds

123