Home
last modified time | relevance | path

Searched refs:getCountry (Results 1 – 16 of 16) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DLocaleTest.java72 assertEquals("DDEEFF", invalid.getCountry()); in test_getDisplayName_invalid()
101 assertEquals("YY", unknown.getCountry()); in test_getDisplayName_unknown()
260 assertNotNull(Locale.getDefault().getCountry()); in test_nullCountry_fails()
262 assertNotNull(locale.getCountry()); in test_nullCountry_fails()
361 assertEquals("US", b.build().getCountry()); in test_Builder_setRegion()
390 assertEquals("", b.build().getCountry()); in test_Builder_setRegion()
395 assertEquals("", b.build().getCountry()); in test_Builder_setRegion()
448 assertEquals("US", b.build().getCountry()); in test_Builder_setLocale()
481 assertEquals("US", l.getCountry()); in test_Builder_setLocale()
497 assertEquals("FR", l.getCountry()); in test_Builder_setLocale()
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DZoneName.java49 String region = uLocale.getCountry(); in toZid()
52 region = uLocale.getCountry(); in toZid()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLocaleTest.java56 assertTrue("Failed to create Locale", x.getCountry().equals("CV") in test_ConstructorLjava_lang_StringLjava_lang_String()
83 && (x.getCountry().equals("CV") && x.getVariant().equals("ZZ"))); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
150 assertTrue("Returned incorrect country: " + testLocale.getCountry(), in test_getCountry()
151 testLocale.getCountry().equals("CA")); in test_getCountry()
404 assertEquals("", root.getCountry()); in test_constantROOT()
DControlTest.java293 assertEquals("TWO", locale.getCountry()); in test_getCandidateLocales_LStringLLocale()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DZoneName.java40 if (map != null && map.containsKey(locale.getCountry())) { in toZid()
41 zid = map.get(locale.getCountry()); in toZid()
/libcore/ojluni/src/main/java/java/util/
DCurrency.java321 String country = locale.getCountry(); in getInstance()
DResourceBundle.java2396 bokmalList.add(Locale.getInstance("no", l.getScript(), l.getCountry(), in createObject()
2892 String country = locale.getCountry(); in toBundleName()
/libcore/ojluni/annotations/mmodule/java/util/
DLocale.annotated.java79 public java.lang.String getCountry() { throw new RuntimeException("Stub!"); } in getCountry() method in Locale
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DMessageFormatTest.java104 assertEquals(l[i].getCountry(), result.getCountry()); in test_getLocale()
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/
DX500Name.java132 public java.lang.String getCountry() throws java.io.IOException { in getCountry() method in X500Name
/libcore/ojluni/src/main/java/java/text/
DDecimalFormatSymbols.java701 if (locale.getCountry().length() > 0) { in initialize()
/libcore/ojluni/annotations/hiddenapi/java/util/
DLocale.java137 public java.lang.String getCountry() { in getCountry() method in Locale
/libcore/ojluni/annotations/sdk/nullability/java/util/
DLocale.annotated.java77 @libcore.util.NonNull public java.lang.String getCountry() { throw new RuntimeException("Stub!"); } in getCountry() method in Locale
/libcore/ojluni/src/main/java/java/lang/
DSystem.java1086 setUnchangeableSystemProperty("user.region", l.getCountry()); in addLegacyLocaleSystemProperties()
/libcore/ojluni/src/main/java/sun/security/x509/
DX500Name.java450 public String getCountry() throws IOException { in getCountry() method in X500Name
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp680 jstring countryCode = env->NewStringUTF(icuLocale.locale().getCountry()); in ICU_initLocaleDataNative()