Searched defs:locale (Results 1 - 25 of 51) 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.
H A DDecimalFormatTest.java172 private void assertDecFmtWithMultiplierAndFractionByLocale(String value, int multiplier, int fraction, Locale locale, String expectedResult) { argument
173 DecimalFormat df = (DecimalFormat)NumberFormat.getIntegerInstance(locale);
/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);
114 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".
123 * Returns the localized name of this currency in the given {@code locale}.
128 public String getDisplayName(Locale locale) { argument
151 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.cpp34 Locale locale = Locale::createFromName(ScopedUtfChars(env, localeName).c_str()); local
36 PluralRules* result = PluralRules::forLocale(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 DNativeCollation.java29 public static native int openCollator(String locale); argument
/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
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DSecurityTest.java233 * independent of its locale.
235 private void testGetProviders(Locale locale) { argument
237 Locale.setDefault(locale);
/libcore/luni/src/main/java/java/text/
H A DCollator.java26 * Performs locale-sensitive string comparison. A concrete subclass,
86 * the default locale.
90 * // Compare two strings in the default locale
248 * <p>Note that Android does not support user-supplied locale service providers.
278 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".
285 * Returns a {@code Collator} instance which is appropriate for {@code locale}.
287 public static Collator getInstance(Locale locale) { argument
288 if (locale == null) {
289 throw new NullPointerException("locale == null");
291 return new RuleBasedCollator(new RuleBasedCollatorICU(locale));
[all...]

Completed in 594 milliseconds

123