Home
last modified time | relevance | path

Searched refs:Locale (Results 1 – 25 of 1038) sorted by relevance

12345678910>>...42

/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/util/
DLocale.java107 public final class Locale implements Cloneable, Serializable { class
114 public static final Locale CANADA = new Locale(true, "en", "CA");
119 public static final Locale CANADA_FRENCH = new Locale(true, "fr", "CA");
124 public static final Locale CHINA = new Locale(true, "zh", "CN");
129 public static final Locale CHINESE = new Locale(true, "zh", "");
134 public static final Locale ENGLISH = new Locale(true, "en", "");
139 public static final Locale FRANCE = new Locale(true, "fr", "FR");
144 public static final Locale FRENCH = new Locale(true, "fr", "");
149 public static final Locale GERMAN = new Locale(true, "de", "");
154 public static final Locale GERMANY = new Locale(true, "de", "DE");
[all …]
/external/icu/icu4c/source/common/unicode/
Dlocid.h185 class U_COMMON_API Locale : public UObject {
188 static const Locale &U_EXPORT2 getRoot(void);
190 static const Locale &U_EXPORT2 getEnglish(void);
192 static const Locale &U_EXPORT2 getFrench(void);
194 static const Locale &U_EXPORT2 getGerman(void);
196 static const Locale &U_EXPORT2 getItalian(void);
198 static const Locale &U_EXPORT2 getJapanese(void);
200 static const Locale &U_EXPORT2 getKorean(void);
202 static const Locale &U_EXPORT2 getChinese(void);
204 static const Locale &U_EXPORT2 getSimplifiedChinese(void);
[all …]
Dbrkiter.h359 createWordInstance(const Locale& where, UErrorCode& status);
383 createLineInstance(const Locale& where, UErrorCode& status);
405 createCharacterInstance(const Locale& where, UErrorCode& status);
426 createSentenceInstance(const Locale& where, UErrorCode& status);
451 createTitleInstance(const Locale& where, UErrorCode& status);
462 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
473 static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale,
474 const Locale& displayLocale,
485 static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale,
540 const Locale& locale,
[all …]
/external/icu/icu4c/source/common/
Dlocid.cpp52 static Locale *gLocaleCache = NULL;
58 static Locale *gDefaultLocale = NULL;
102 delete (icu::Locale *) obj; in deleteLocale()
126 gLocaleCache = new Locale[(int)eMAX_LOCALES]; in locale_init()
132 gLocaleCache[eROOT] = Locale(""); in locale_init()
133 gLocaleCache[eENGLISH] = Locale("en"); in locale_init()
134 gLocaleCache[eFRENCH] = Locale("fr"); in locale_init()
135 gLocaleCache[eGERMAN] = Locale("de"); in locale_init()
136 gLocaleCache[eITALIAN] = Locale("it"); in locale_init()
137 gLocaleCache[eJAPANESE] = Locale("ja"); in locale_init()
[all …]
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/
DRbnfSampleRuleSets.java9 import java.util.Locale;
1697 public static final Locale[] sampleRuleSetLocales =
1698 { Locale.US,
1699 Locale.UK,
1700 new Locale("es", "", ""),
1701 Locale.FRANCE,
1702 new Locale("fr", "CH", ""),
1703 Locale.GERMAN,
1704 Locale.ITALIAN,
1705 new Locale("sv", "", ""),
[all …]
/external/libphonenumber/geocoder/test/com/google/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoderTest.java22 import java.util.Locale;
71 geocoder.getDescriptionForNumber(US_NUMBER1, Locale.SIMPLIFIED_CHINESE)); in testGetDescriptionForNumberWithNoDataFile()
73 geocoder.getDescriptionForNumber(BS_NUMBER1, new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
75 geocoder.getDescriptionForNumber(AU_NUMBER, new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
77 new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
79 new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
86 geocoder.getDescriptionForNumber(US_NUMBER4, new Locale("en", "US"))); in testGetDescriptionForNumberWithMissingPrefix()
93 geocoder.getDescriptionForNumber(NANPA_TOLL_FREE, new Locale("en", "US"))); in testGetDescriptionForNumberBelongingToMultipleCountriesIsEmpty()
98 geocoder.getDescriptionForNumber(US_NUMBER1, new Locale("en", "US"))); in testGetDescriptionForNumber_en_US()
100 geocoder.getDescriptionForNumber(US_NUMBER2, new Locale("en", "US"))); in testGetDescriptionForNumber_en_US()
[all …]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/
DICULocaleServiceProvider.java15 import java.util.Locale;
39 private static final Locale[] SPECIAL_LOCALES = {
40 new Locale("ja", "JP", "JP"),
41 new Locale("no"),
42 new Locale("no", "NO"),
43 new Locale("no", "NO", "NY"),
44 new Locale("sr", "CS"),
45 new Locale("th", "TH", "TH"),
48 private static Map<Locale, Locale> SPECIAL_LOCALES_MAP = null;
50 private static Locale[] LOCALES = null;
[all …]
/external/libphonenumber/carrier/test/com/google/i18n/phonenumbers/
DPhoneNumberToCarrierMapperTest.java21 import java.util.Locale;
66 carrierMapper.getNameForNumber(UK_MOBILE1, Locale.ENGLISH)); in testGetNameForMobilePortableRegion()
68 carrierMapper.getNameForNumber(UK_MOBILE1, new Locale("sv", "SE"))); in testGetNameForMobilePortableRegion()
70 carrierMapper.getNameForNumber(UK_MOBILE1, Locale.FRENCH)); in testGetNameForMobilePortableRegion()
72 assertEquals("", carrierMapper.getSafeDisplayName(UK_MOBILE1, Locale.ENGLISH)); in testGetNameForMobilePortableRegion()
77 carrierMapper.getNameForNumber(AO_MOBILE1, Locale.ENGLISH)); in testGetNameForNonMobilePortableRegion()
79 carrierMapper.getSafeDisplayName(AO_MOBILE1, Locale.ENGLISH)); in testGetNameForNonMobilePortableRegion()
83 assertEquals("", carrierMapper.getNameForNumber(AO_FIXED1, Locale.ENGLISH)); in testGetNameForFixedLineNumber()
84 assertEquals("", carrierMapper.getNameForNumber(UK_FIXED1, Locale.ENGLISH)); in testGetNameForFixedLineNumber()
88 carrierMapper.getNameForValidNumber(AO_FIXED2, Locale.ENGLISH)); in testGetNameForFixedLineNumber()
[all …]
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DLocaleNameTest.java11 import java.util.Locale;
27 … mGetDisplayScript = Locale.class.getMethod("getDisplayScript", new Class[] {Locale.class});
35 Locale[] locales = Locale.getAvailableLocales(); in TestLanguageNames()
37 for (Locale inLocale : locales) { in TestLanguageNames()
44 Locale inLocaleICU = TestUtil.toICUExtendedLocale(inLocale); in TestLanguageNames()
45 for (Locale forLocale : locales) { in TestLanguageNames()
100 Locale[] locales = Locale.getAvailableLocales(); in TestScriptNames()
101 for (Locale inLocale : locales) { in TestScriptNames()
108 Locale inLocaleICU = TestUtil.toICUExtendedLocale(inLocale); in TestScriptNames()
113 Locale forLocale = forULocale.toLocale(); in TestScriptNames()
[all …]
/external/icu/icu4c/source/test/perf/normperf/
Ddtfmtrtperf.h114 const Locale testLocales[] = { in call()
115 Locale("en"), in call()
116 Locale("en_US"), in call()
117 Locale("en_AU"), in call()
118 Locale("de_DE"), in call()
119 Locale("fr"), in call()
120 Locale("ja_JP"), in call()
121 Locale("ko"), in call()
122 Locale("pt"), in call()
123 Locale("th_TH"), in call()
[all …]
/external/icu/icu4c/source/test/intltest/
Dloctest.cpp236 Locale testLocale(""); in TestBasicGetters()
238 … testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i], rawData[VAR][i]); in TestBasicGetters()
241 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i], rawData[VAR][i]); in TestBasicGetters()
264 Locale testLocale(""); in TestBasicGetters()
266 testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i]); in TestBasicGetters()
269 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i]); in TestBasicGetters()
287 Locale test8 = Locale::createFromName("x-klingon-latn-zx.utf32be@special"); in TestBasicGetters()
308 if (Locale::getDefault() != Locale::createFromName(NULL)) in TestBasicGetters()
317 Locale bogusLang("THISISABOGUSLANGUAGE"); // Jitterbug 2864: language code too long in TestBasicGetters()
322 bogusLang=Locale("eo"); in TestBasicGetters()
[all …]
Dsvccoll.cpp35 const Locale& FR = Locale::getFrance(); in TestRegister()
36 const Locale& US = Locale::getUS(); in TestRegister()
37 const Locale US_FOO("en", "US", "FOO"); in TestRegister()
64 Locale loc = ncol->getLocale(ULOC_REQUESTED_LOCALE, status); in TestRegister()
96 Locale fu_FU_FOO("fu", "FU", "FOO"); in TestRegister()
97 Locale fu_FU("fu", "FU", ""); in TestRegister()
157 const Locale& defaultLocale = Locale::getDefault(); in TestRegister()
159 …((defaultLocale == Locale::getKorean() && defaultLocale == Locale::getJapanese()) && displayName =… in TestRegister()
160 ((defaultLocale == Locale::getChinese()) && displayName != zh_fuFU)) { in TestRegister()
166 …((defaultLocale == Locale::getKorean() && defaultLocale == Locale::getJapanese()) && displayName =… in TestRegister()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/utils/
DI18NBundle.java25 import java.util.Locale;
71 private static final Locale ROOT_LOCALE = new Locale("", "", "");
80 private Locale locale;
121 return createBundleImpl(baseFileHandle, Locale.getDefault(), DEFAULT_ENCODING); in createBundle()
132 public static I18NBundle createBundle (FileHandle baseFileHandle, Locale locale) { in createBundle()
144 return createBundleImpl(baseFileHandle, Locale.getDefault(), encoding); in createBundle()
156 public static I18NBundle createBundle (FileHandle baseFileHandle, Locale locale, String encoding) { in createBundle()
160 …private static I18NBundle createBundleImpl (FileHandle baseFileHandle, Locale locale, String encod… in createBundleImpl()
165 Locale targetLocale = locale; in createBundleImpl()
168 List<Locale> candidateLocales = getCandidateLocales(targetLocale); in createBundleImpl()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/
DMathRuntimeException.java26 import java.util.Locale;
135 private static String buildMessage(final Locale locale, final Localizable pattern, in buildMessage()
179 public String getMessage(final Locale locale) { in getMessage()
189 return getMessage(Locale.US); in getMessage()
195 return getMessage(Locale.getDefault()); in getLocalizedMessage()
253 return buildMessage(Locale.US, pattern, arguments); in createArithmeticException()
259 return buildMessage(Locale.getDefault(), pattern, arguments); in createArithmeticException()
297 return buildMessage(Locale.US, pattern, arguments); in createArrayIndexOutOfBoundsException()
303 return buildMessage(Locale.getDefault(), pattern, arguments); in createArrayIndexOutOfBoundsException()
341 return buildMessage(Locale.US, pattern, arguments);
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DBreakIteratorRegTest.java12 import java.util.Locale;
27 Locale thailand_locale = new Locale("th", "TH", ""); in TestRegUnreg()
28 Locale foo_locale = new Locale("fu", "FU", "FOO"); in TestRegUnreg()
29 BreakIterator jwbi = BreakIterator.getWordInstance(Locale.JAPAN); in TestRegUnreg()
30 BreakIterator uwbi = BreakIterator.getWordInstance(Locale.US); in TestRegUnreg()
31 BreakIterator usbi = BreakIterator.getSentenceInstance(Locale.US); in TestRegUnreg()
33 BreakIterator rwbi = BreakIterator.getWordInstance(new Locale("", "", "")); in TestRegUnreg()
43 Object key1 = BreakIterator.registerInstance(sbi, Locale.US, BreakIterator.KIND_WORD); in TestRegUnreg()
44 …Object key2 = BreakIterator.registerInstance((BreakIterator)twbi.clone(), Locale.US, BreakIterator… in TestRegUnreg()
47 BreakIterator test0 = BreakIterator.getWordInstance(Locale.JAPAN); in TestRegUnreg()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DBreakIteratorRegTest.java11 import java.util.Locale;
23 Locale thailand_locale = new Locale("th", "TH", ""); in TestRegUnreg()
24 Locale foo_locale = new Locale("fu", "FU", "FOO"); in TestRegUnreg()
25 BreakIterator jwbi = BreakIterator.getWordInstance(Locale.JAPAN); in TestRegUnreg()
26 BreakIterator uwbi = BreakIterator.getWordInstance(Locale.US); in TestRegUnreg()
27 BreakIterator usbi = BreakIterator.getSentenceInstance(Locale.US); in TestRegUnreg()
29 BreakIterator rwbi = BreakIterator.getWordInstance(new Locale("", "", "")); in TestRegUnreg()
39 Object key1 = BreakIterator.registerInstance(sbi, Locale.US, BreakIterator.KIND_WORD); in TestRegUnreg()
40 …Object key2 = BreakIterator.registerInstance((BreakIterator)twbi.clone(), Locale.US, BreakIterator… in TestRegUnreg()
43 BreakIterator test0 = BreakIterator.getWordInstance(Locale.JAPAN); in TestRegUnreg()
[all …]
/external/icu/android_icu4j/cts-coverage/src/main/tests/android/icu/cts/coverage/text/
DLocaleDisplayNamesTest.java23 import java.util.Locale;
42 Locale.CANADA, capitalization, dialectHandling); in testGetInstance()
50 Locale.CANADA); in testGetLocale()
57 Locale.GERMANY, DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE); in testKeyDisplayName()
64 Locale.CANADA, DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU); in testKeyValueDisplayName()
71 Locale.FRANCE, DisplayContext.CAPITALIZATION_FOR_STANDALONE); in testLocaleDisplayName()
72 assertEquals("coréen (Corée du Sud)", names.localeDisplayName(Locale.KOREA)); in testLocaleDisplayName()
78 Locale.CHINA, DisplayContext.CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE); in testScriptDisplayName_Int()
85 Locale.CHINA, DisplayContext.CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE); in testScriptDisplayName_String()
92 Locale.CHINA, DisplayContext.CAPITALIZATION_NONE); in testVariantDisplayName()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DDateFormatSymbolsTest.java10 import java.util.Locale;
21 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); in testHashCode()
23 DateFormatSymbols dfsn = new DateFormatSymbols(Locale.US); in testHashCode()
47 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); in testDateFormatSymbolsLocale()
63 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); in testGetEras()
71 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); in testSetEras()
85 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); in testGetMonths()
93 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); in testSetMonths()
107 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); in testGetShortMonths()
115 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); in testSetShortMonths()
[all …]
DULocaleTest.java11 import java.util.Locale;
22 private Locale sampleLocale;
53 assertEquals(ULocale.GERMANY, ULocale.forLocale(Locale.GERMANY)); in testForLocale()
96 assertEquals(Locale.getDefault(), ULocale.getDefault().toLocale()); in testGetDefault()
103 Locale oldLocale = Locale.getDefault(); in testSetDefault()
107 ICUTestCase.assertNotEqual(Locale.getDefault(), oldLocale); in testSetDefault()
110 assertEquals(sampleLocale, Locale.getDefault()); in testSetDefault()
114 Locale.setDefault(oldLocale); // in case of some error in testSetDefault()
138 Locale[] locales = Locale.getAvailableLocales(); in testGetAvailableLocales()
357 String jl = Locale.GERMANY.getISO3Language(); in testGetISO3Language()
[all …]
DMessageFormatTest.java14 import java.util.Locale;
61 MessageFormat mf = new MessageFormat(pattern, Locale.US); in testMessageFormatStringLocale()
77 MessageFormat mf = new MessageFormat(pattern, Locale.US); in testSetLocaleLocale()
78 mf.setLocale(Locale.GERMANY); in testSetLocaleLocale()
87 MessageFormat mf = new MessageFormat(pattern, Locale.US); in testSetLocaleULocale()
97 MessageFormat mf = new MessageFormat(pattern, Locale.US); in testGetLocale()
98 mf.setLocale(Locale.GERMANY); in testGetLocale()
99 assertEquals(Locale.GERMANY, mf.getLocale()); in testGetLocale()
106 MessageFormat mf = new MessageFormat(pattern, Locale.US); in testGetULocale()
151 MessageFormat mf = new MessageFormat(pattern, Locale.US); in testSetFormats()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatRegressionTest.java27 import java.util.Locale;
94 … DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US); in Test4052408()
174 SimpleDateFormat fmt = new SimpleDateFormat("yyMMdd", Locale.US); in Test4056591()
303 Locale saveLocale = Locale.getDefault(); in Test4065240()
307 Locale curLocale = new Locale("de", "DE"); in Test4065240()
308 Locale.setDefault(curLocale); in Test4065240()
347 Locale.setDefault(saveLocale); in Test4065240()
404 DateFormat fmt = DateFormat.getDateInstance(DateFormat.SHORT, Locale.US); in Test4073003()
450 Locale locales[] = { in Test4100302()
451 Locale.CANADA, Locale.CANADA_FRENCH, Locale.CHINA, in Test4100302()
[all …]
DRbnfRoundTripTest.java10 import java.util.Locale;
37 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpelloutRT()
48 = new RuleBasedNumberFormat(Locale.US, in TestDurationsRT()
59 = new RuleBasedNumberFormat(new Locale("es", "es", in TestSpanishSpelloutRT()
70 = new RuleBasedNumberFormat(Locale.FRANCE, in TestFrenchSpelloutRT()
81 = new RuleBasedNumberFormat(new Locale("fr", "CH", in TestSwissFrenchSpelloutRT()
92 = new RuleBasedNumberFormat(Locale.ITALIAN, in TestItalianSpelloutRT()
103 = new RuleBasedNumberFormat(Locale.GERMANY, in TestGermanSpelloutRT()
114 = new RuleBasedNumberFormat(new Locale("sv", "SE", in TestSwedishSpelloutRT()
125 = new RuleBasedNumberFormat(new Locale("nl", "NL", in TestDutchSpelloutRT()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRegressionTest.java26 import java.util.Locale;
90 … DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US); in Test4052408()
170 SimpleDateFormat fmt = new SimpleDateFormat("yyMMdd", Locale.US); in Test4056591()
299 Locale saveLocale = Locale.getDefault(); in Test4065240()
303 Locale curLocale = new Locale("de", "DE"); in Test4065240()
304 Locale.setDefault(curLocale); in Test4065240()
343 Locale.setDefault(saveLocale); in Test4065240()
400 DateFormat fmt = DateFormat.getDateInstance(DateFormat.SHORT, Locale.US); in Test4073003()
446 Locale locales[] = { in Test4100302()
447 Locale.CANADA, Locale.CANADA_FRENCH, Locale.CHINA, in Test4100302()
[all …]
DRbnfRoundTripTest.java9 import java.util.Locale;
33 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpelloutRT()
44 = new RuleBasedNumberFormat(Locale.US, in TestDurationsRT()
55 = new RuleBasedNumberFormat(new Locale("es", "es", in TestSpanishSpelloutRT()
66 = new RuleBasedNumberFormat(Locale.FRANCE, in TestFrenchSpelloutRT()
77 = new RuleBasedNumberFormat(new Locale("fr", "CH", in TestSwissFrenchSpelloutRT()
88 = new RuleBasedNumberFormat(Locale.ITALIAN, in TestItalianSpelloutRT()
99 = new RuleBasedNumberFormat(Locale.GERMANY, in TestGermanSpelloutRT()
110 = new RuleBasedNumberFormat(new Locale("sv", "SE", in TestSwedishSpelloutRT()
121 = new RuleBasedNumberFormat(new Locale("nl", "NL", in TestDutchSpelloutRT()
[all …]
/external/messageformat/javatests/com/android/messageformat/
DSimpleMessageFormatTest.java10 import java.util.Locale;
17 Locale.US, "Going to {place} and back", "place", "Germany")); in testBasic()
23 MessageFormat.formatNamedArgs(Locale.US, msg, "gender", "female")); in testSelect()
25 MessageFormat.formatNamedArgs(Locale.US, msg, "gender", "male")); in testSelect()
27 MessageFormat.formatNamedArgs(Locale.US, msg, "gender", "unknown")); in testSelect()
33 Locale sr = new Locale("sr"); in testPlural()
51 Locale ja = Locale.JAPANESE; // always "other" in testSelectAndPlural()
69 Locale en = Locale.ENGLISH; in testSelectOrdinal()

12345678910>>...42