Home
last modified time | relevance | path

Searched refs:getDisplayCountry (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DLocaleTest.java42 assertEquals("DDEEFF", invalid.getDisplayCountry()); in test_getDisplayName_invalid()
52 assertEquals("", emptyCountry.getDisplayCountry()); in test_getDisplayName_emptyCodes()
56 assertEquals("", emptyCountryAndLanguage.getDisplayCountry()); in test_getDisplayName_emptyCodes()
68 assertEquals("YY", unknown.getDisplayCountry()); in test_getDisplayName_unknown()
97 assertEquals("Hong Kong", new Locale("", "HK").getDisplayCountry(Locale.US)); in test_getDisplayCountry_8870289()
98 assertEquals("Macau", new Locale("", "MO").getDisplayCountry(Locale.US)); in test_getDisplayCountry_8870289()
99 assertEquals("Palestine", new Locale("", "PS").getDisplayCountry(Locale.US)); in test_getDisplayCountry_8870289()
101 assertEquals("Cocos (Keeling) Islands", new Locale("", "CC").getDisplayCountry(Locale.US)); in test_getDisplayCountry_8870289()
102 assertEquals("Congo (DRC)", new Locale("", "CD").getDisplayCountry(Locale.US)); in test_getDisplayCountry_8870289()
103 assertEquals("Congo (Republic)", new Locale("", "CG").getDisplayCountry(Locale.US)); in test_getDisplayCountry_8870289()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLocaleTest.java173 + testLocale.getDisplayCountry(), testLocale in test_getDisplayCountry()
174 .getDisplayCountry().equals("Canada")); in test_getDisplayCountry()
179 l_countryCD.getDisplayCountry()); in test_getDisplayCountry()
183 assertEquals("Italie", Locale.ITALY.getDisplayCountry(new Locale("fr", "CA", "WIN32"))); in test_getDisplayCountryLjava_util_Locale()
/libcore/luni/src/test/java/libcore/icu/
DICUTest.java156 assertEquals("Босна и Херцеговина", sr_Cyrl_BA.getDisplayCountry(sr_Cyrl_BA)); in testScriptsPassedToIcu()
161 assertEquals("Црна Гора", sr_Cyrl_ME.getDisplayCountry(sr_Cyrl_ME)); in testScriptsPassedToIcu()
166 assertEquals("Bosna i Hercegovina", sr_Latn_BA.getDisplayCountry(sr_Latn_BA)); in testScriptsPassedToIcu()
171 assertEquals("Crna Gora", sr_Latn_ME.getDisplayCountry(sr_Latn_ME)); in testScriptsPassedToIcu()
/libcore/luni/src/main/java/java/util/
DLocale.java1015 public final String getDisplayCountry() { in getDisplayCountry() method in Locale
1016 return getDisplayCountry(getDefault()); in getDisplayCountry()
1024 public String getDisplayCountry(Locale locale) { in getDisplayCountry() method in Locale
1035 String result = ICU.getDisplayCountry(this, locale); in getDisplayCountry()
1037 result = ICU.getDisplayCountry(this, Locale.getDefault()); in getDisplayCountry()
1125 String displayCountry = getDisplayCountry(locale); in getDisplayName()
/libcore/luni/src/main/java/libcore/icu/
DICU.java401 public static String getDisplayCountry(Locale targetLocale, Locale locale) { in getDisplayCountry() method in ICU
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp232 icuTargetLocale.locale().getDisplayCountry(icuLocale.locale(), str); in ICU_getDisplayCountryNative()