Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/util/
DLocaleTest.java77 assertEquals("DDEEFF", invalid.getCountry()); in test_getDisplayName_invalid()
106 assertEquals("YY", unknown.getCountry()); in test_getDisplayName_unknown()
276 assertNotNull(Locale.getDefault().getCountry()); in test_nullCountry_fails()
278 assertNotNull(locale.getCountry()); in test_nullCountry_fails()
377 assertEquals("US", b.build().getCountry()); in test_Builder_setRegion()
406 assertEquals("", b.build().getCountry()); in test_Builder_setRegion()
411 assertEquals("", b.build().getCountry()); in test_Builder_setRegion()
464 assertEquals("US", b.build().getCountry()); in test_Builder_setLocale()
497 assertEquals("US", l.getCountry()); in test_Builder_setLocale()
513 assertEquals("FR", l.getCountry()); in test_Builder_setLocale()
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DZoneName.java48 String region = uLocale.getCountry(); in toZid()
51 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.java296 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()
DLocale.java1014 System.getProperty(category.countryKey, defaultLocale.getCountry()), in initDefault()
1231 public String getCountry() { 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/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.java1075 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