/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.
|
H A D | DecimalFormatTest.java | 172 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 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); 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 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 | 34 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 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 | NativeCollation.java | 29 public static native int openCollator(String locale); argument
|
/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
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | SecurityTest.java | 233 * independent of its locale. 235 private void testGetProviders(Locale locale) { argument 237 Locale.setDefault(locale);
|
/libcore/luni/src/main/java/java/text/ |
H A D | Collator.java | 26 * 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...] |