/libcore/luni/src/main/java/java/util/spi/ |
LocaleServiceProvider.java | 20 import java.util.Locale;
23 * The base class for all the locale related service provider interfaces (SPIs).
24 * <p>Note that Android does not support user-supplied locale service providers.
37 * Returns all locales for which this locale service provider has localized objects or names.
39 public abstract Locale[] getAvailableLocales();
|
LocaleNameProvider.java | 20 import java.util.Locale;
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);
54 * @param locale a locale [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
CurrencyTest.java | 21 import java.util.Locale; 25 private static Locale defaultLocale = Locale.getDefault(); 35 * @tests java.util.Currency#getInstance(java.util.Locale) 40 * method ignores language and variant component of the locale. 43 Currency c1 = Currency.getInstance(new Locale("en", "CA")); 45 "Currency.getInstance(new Locale(\"en\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")", 47 Currency c2 = Currency.getInstance(new Locale("fr", "CA")); 49 "Currency.getInstance(new Locale(\"fr\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")", 51 Currency c3 = Currency.getInstance(new Locale("", "CA")) [all...] |
LocaleTest.java | 23 import java.util.Locale; 28 Locale testLocale; 30 Locale l; 32 Locale defaultLocale; 35 * @tests java.util.Locale#Locale(java.lang.String, java.lang.String) 38 // Test for method java.util.Locale(java.lang.String, java.lang.String) 39 Locale x = new Locale("xx", "CV"); 40 assertTrue("Failed to create Locale", x.getCountry().equals("CV" 174 Locale locale = new Locale("no", "NO"); local 376 Locale locale = new Locale("an"); local [all...] |
/external/icu4c/common/unicode/ |
locid.h | 41 * \brief C++ API: Locale ID object. 47 * A <code>Locale</code> object represents a specific geographical, political, 48 * or cultural region. An operation that requires a <code>Locale</code> to perform 49 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code> 51 * is a locale-sensitive operation--the number should be formatted 55 * The Locale class is not suitable for subclassing. 58 * You can create a <code>Locale</code> object using the constructor in 62 * Locale( const char* language, 92 * Because a <code>Locale</code> object is just an identifier for a region [all...] |
/external/chromium_org/third_party/icu/source/common/unicode/ |
locid.h | 41 * \brief C++ API: Locale ID object. 45 * A <code>Locale</code> object represents a specific geographical, political, 46 * or cultural region. An operation that requires a <code>Locale</code> to perform 47 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code> 49 * is a locale-sensitive operation--the number should be formatted 53 * The Locale class is not suitable for subclassing. 56 * You can create a <code>Locale</code> object using the constructor in 60 * Locale( const char* language, 90 * Because a <code>Locale</code> object is just an identifier for a region [all...] |
/libcore/luni/src/main/java/java/text/spi/ |
BreakIteratorProvider.java | 21 import java.util.Locale; 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); 54 * given locale [all...] |
NumberFormatProvider.java | 21 import java.util.Locale; 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); 54 * integer values for the given locale. The returned {@code NumberFormat [all...] |
DateFormatProvider.java | 21 import java.util.Locale; 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); 55 * in the given style for the given locale [all...] |
CollatorProvider.java | 21 import java.util.Locale; 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);
|
DateFormatSymbolsProvider.java | 21 import java.util.Locale; 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);
|
DecimalFormatSymbolsProvider.java | 21 import java.util.Locale; 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);
|
/libcore/luni/src/test/java/tests/api/java/util/ |
LocaleTest.java | 24 import java.util.Locale; 30 Locale testLocale; 32 Locale l; 34 Locale defaultLocale; 37 * java.util.Locale#Locale(java.lang.String, java.lang.String) 40 // Test for method java.util.Locale(java.lang.String) 41 Locale x = new Locale("xx"); 42 assertTrue("Failed to create Locale", x.getVariant().equals("")) [all...] |
CurrencyTest.java | 26 import java.util.Locale; 31 private static Locale defaultLocale = Locale.getDefault(); 41 * java.util.Currency#getInstance(java.util.Locale) 46 * method ignores language and variant component of the locale. 49 Currency c1 = Currency.getInstance(new Locale("en", "CA")); 51 "Currency.getInstance(new Locale(\"en\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")", 53 Currency c2 = Currency.getInstance(new Locale("fr", "CA")); 55 "Currency.getInstance(new Locale(\"fr\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")", 57 Currency c3 = Currency.getInstance(new Locale("", "CA")) [all...] |
/external/nist-sip/java/javax/sip/header/ |
ContentLanguageHeader.java | 3 import java.util.Locale; 8 Locale getContentLanguage(); 9 void setContentLanguage(Locale language);
|
/external/apache-http/src/org/apache/http/ |
ReasonPhraseCatalog.java | 34 import java.util.Locale; 56 * @param loc the preferred locale for the reason phrase 60 public String getReason(int status, Locale loc)
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
LocaleTest.java | 31 assertEquals(Locale.ANY, Locale.ANY); 32 assertFalse(Locale.ANY.hasLanguage()); 33 assertFalse(Locale.ANY.hasRegion()); 34 assertFalse(Locale.create(new LanguageQualifier(LanguageQualifier.FAKE_LANG_VALUE), 36 assertFalse(Locale.create(new LanguageQualifier(LanguageQualifier.FAKE_LANG_VALUE), 39 assertEquals(Locale.create(language1), Locale.create(language1)); 40 assertTrue(Locale.create(language1).hasLanguage()); 41 assertFalse(Locale.create(language1).hasRegion()) [all...] |
/external/smack/src/org/apache/harmony/javax/security/auth/callback/ |
LanguageCallback.java | 21 import java.util.Locale; 27 private Locale locale; field in class:LanguageCallback 33 public Locale getLocale() { 34 return locale; 37 public void setLocale(Locale locale) { 38 this.locale = locale;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
CommonDateUtils.java | 20 import java.util.Locale; 29 new SimpleDateFormat("--MM-dd", Locale.US); 31 new SimpleDateFormat("yyyy-MM-dd", Locale.US); 33 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US); 35 new SimpleDateFormat("--MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
|
/libcore/luni/src/test/java/libcore/java/util/ |
LocaleTest.java | 27 import java.util.Locale; 33 Locale invalid = new Locale("AaBbCc", "DdEeFf", "GgHhIi"); 50 Locale unknown = new Locale("xx", "YY", "Traditional"); 62 assertEquals("English", Locale.ENGLISH.getDisplayLanguage(Locale.ENGLISH)); 63 assertEquals("German", Locale.GERMAN.getDisplayLanguage(Locale.ENGLISH)); 64 assertEquals("Englisch", Locale.ENGLISH.getDisplayLanguage(Locale.GERMAN)) [all...] |
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
MockedDateFormatSymbolsProvider.java | 22 import java.util.Locale; 25 private static Locale supportLocale = new Locale("mock"); 28 public DateFormatSymbols getInstance(Locale locale) { 29 if (locale == null) { 32 if (!locale.equals(supportLocale)) { 40 public Locale[] getAvailableLocales() { 41 return new Locale[] { supportLocale };
|
MockedDecimalFormatSymbolsProvider.java | 22 import java.util.Locale; 26 private static Locale supportLocale = new Locale("mock"); 29 public DecimalFormatSymbols getInstance(Locale locale) { 30 if (locale == null) { 33 if (!locale.equals(supportLocale)) { 41 public Locale[] getAvailableLocales() { 42 return new Locale[] { supportLocale };
|
/libcore/luni/src/main/java/java/util/ |
Locale.java | 28 * {@code Locale} represents a language/country/variant combination. Locales are used to 40 * rewriting happens even if you construct your own {@code Locale} object, not just for 44 * <p>This class' constructors do no error checking. You can create a {@code Locale} for languages 48 * <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 59 * device you're running on, or {@link Locale#getAvailableLocales} to get a list of all the locales 62 * <a name="locale_data"><h3>Locale data</h3></a> 63 * <p>Note that locale data comes solely from ICU. User-supplied locale service providers (usin [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/ |
SSLKeyGenerator.h | 36 class Locale; 41 PLATFORM_EXPORT void getSupportedKeySizes(Locale&, Vector<String>& sizes);
|
/external/icu4c/common/ |
locid.cpp | 53 static Locale *gLocaleCache = NULL; 58 static Locale *gDefaultLocale = NULL; 98 // Deleter function for Locales owned by the default Locale hash table/ 102 delete (icu::Locale *) obj; 126 Locale *locale_set_default_internal(const char *id, UErrorCode& status) { 132 // If given a NULL string for the locale id, grab the default 134 // (Different from most other locale APIs, where a null name means use 135 // the current ICU default locale.) 165 Locale *newDefault = (Locale *)uhash_get(gDefaultLocalesHashT, localeNameBuf) [all...] |