/libcore/luni/src/main/java/java/text/spi/ |
H A D | CollatorProvider.java | 27 * <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 D | DateFormatSymbolsProvider.java | 27 * <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 D | DecimalFormatSymbolsProvider.java | 27 * <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 D | BreakIteratorProvider.java | 27 * <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 D | NumberFormatProvider.java | 27 * <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 D | DateFormatProvider.java | 27 * <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 D | CurrencyNameProvider.java | 25 * <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 D | TimeZoneNameProvider.java | 25 * <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 D | LocaleNameProvider.java | 24 * 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 D | DecimalFormatSymbolsTest.java | 27 private void checkLocaleIsEquivalentToRoot(Locale locale) { argument 28 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(locale);
|
H A D | DateFormatSymbolsTest.java | 32 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 D | Currency.java | 64 * 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 D | Parser.java | 57 * 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 D | libcore_icu_NativePluralRules.cpp | 51 Locale locale = Locale::createFromName(localeName.c_str()); local 53 PluralRules* result = PluralRules::forLocale(locale, status);
|
H A D | libcore_icu_DateIntervalFormat.cpp | 27 Locale locale = getLocale(env, javaLocaleName); local 35 DateIntervalFormat* formatter(DateIntervalFormat::createInstance(skeletonHolder.unicodeString(), locale, status));
|
H A D | libcore_icu_TimeZoneNames.cpp | 59 Locale locale = getLocale(env, localeName); local 62 UniquePtr<TimeZoneNames> names(TimeZoneNames::createInstance(locale, status));
|
/libcore/luni/src/main/java/java/lang/ |
H A D | CaseMapper.java | 46 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 D | NativePluralRules.java | 49 public static NativePluralRules forLocale(Locale locale) { argument 50 return new NativePluralRules(forLocaleImpl(locale.toString()));
|
H A D | AlphabeticIndex.java | 78 * 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 D | TimeZoneNames.java | 46 // 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 D | DoNothingParser.java | 52 public void setLocale(Locale locale) { argument
|
H A D | MockParser.java | 64 public void setLocale(Locale locale) throws SAXException { argument 65 logger.add("setLocale", locale);
|
H A D | NoAccessParser.java | 52 public void setLocale(Locale locale) { argument
|
H A D | NoInstanceParser.java | 55 public void setLocale(Locale locale) { argument
|
H A D | NoSubclassParser.java | 51 public void setLocale(Locale locale) { argument
|