Searched defs:locale (Results 1 - 25 of 56) sorted by relevance

123

/libcore/luni/src/main/java/java/text/spi/
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
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...]
/libcore/luni/src/main/java/java/util/spi/
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
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...]
/libcore/luni/src/test/java/libcore/java/text/
H A DDecimalFormatSymbolsTest.java27 private void checkLocaleIsEquivalentToRoot(Locale locale) { argument
28 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(locale);
H A DDateFormatSymbolsTest.java32 private void assertLocaleIsEquivalentToRoot(Locale locale) { argument
33 DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale);
39 // TODO: we fail this test. on Android, the root locale uses GMT offsets as names.
40 // see the invalid locale test below. on the RI, the root locale uses English names.
71 // contain the locale or the necessary strings. Don't serialize DateFormatSymbols, folks!
/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...]
/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
/libcore/luni/src/main/native/
H A Dlibcore_icu_NativePluralRules.cpp51 Locale locale = Locale::createFromName(localeName.c_str()); local
53 PluralRules* result = PluralRules::forLocale(locale, status);
H A Dlibcore_icu_DateIntervalFormat.cpp27 Locale locale = getLocale(env, javaLocaleName); local
35 DateIntervalFormat* formatter(DateIntervalFormat::createInstance(skeletonHolder.unicodeString(), locale, status));
H A Dlibcore_icu_TimeZoneNames.cpp59 Locale locale = getLocale(env, localeName); local
62 UniquePtr<TimeZoneNames> names(TimeZoneNames::createInstance(locale, status));
/libcore/luni/src/main/java/java/lang/
H A DCaseMapper.java46 public static String toLowerCase(Locale locale, String s, char[] value, int offset, int count) { argument
48 String languageCode = locale.getLanguage();
50 return ICU.toLowerCase(s, locale.toString());
60 return ICU.toLowerCase(s, locale.toString());
142 public static String toUpperCase(Locale locale, String s, char[] value, int offset, int count) { argument
143 String languageCode = locale.getLanguage();
145 return ICU.toUpperCase(s, locale.toString());
153 return ICU.toUpperCase(s, locale.toString());
/libcore/luni/src/main/java/libcore/icu/
H A DNativePluralRules.java49 public static NativePluralRules forLocale(Locale locale) { argument
50 return new NativePluralRules(forLocaleImpl(locale.toString()));
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 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/tests/api/org/xml/sax/support/
H A DDoNothingParser.java52 public void setLocale(Locale locale) { argument
H A DMockParser.java64 public void setLocale(Locale locale) throws SAXException { argument
65 logger.add("setLocale", locale);
H A DNoAccessParser.java52 public void setLocale(Locale locale) { argument
H A DNoInstanceParser.java55 public void setLocale(Locale locale) { argument
H A DNoSubclassParser.java51 public void setLocale(Locale locale) { argument

Completed in 2950 milliseconds

123