Home
last modified time | relevance | path

Searched refs:getVariant (Results 1 – 13 of 13) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DLocaleTest.java78 assertEquals("GgHhIi", invalid.getVariant()); in test_getDisplayName_invalid()
107 assertEquals("Traditional", unknown.getVariant()); in test_getDisplayName_unknown()
420 assertEquals("vArIaNt_VaRiAnT_VARIANT", b.build().getVariant()); in test_Builder_setVariant()
446 assertEquals("0ABC", b.build().getVariant()); in test_Builder_setVariant()
451 assertEquals("", b.build().getVariant()); in test_Builder_setVariant()
456 assertEquals("", b.build().getVariant()); in test_Builder_setVariant()
498 assertEquals("variant_VARIANT", l.getVariant()); in test_Builder_setLocale()
559 assertEquals("", l.getVariant()); in test_Builder_clear()
651 assertEquals("POSIX", l.getVariant()); in test_setLanguageTag_twoWellFormedSubtags()
733 assertEquals("FOOOO", l.getVariant()); in test_setLanguageTag_threeWellFormedSubtags()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLocaleTest.java40 assertTrue("Failed to create Locale", x.getVariant().equals("")); in test_ConstructorLjava_lang_String()
57 && x.getVariant().equals("")); 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()
332 assertTrue("Returned incorrect variant: " + testLocale.getVariant(), in test_getVariant()
333 testLocale.getVariant().equals("WIN32")); in test_getVariant()
405 assertEquals("", root.getVariant()); in test_constantROOT()
DControlTest.java297 assertEquals("three", locale.getVariant()); in test_getCandidateLocales_LStringLLocale()
/libcore/ojluni/src/main/java/java/util/
DLocale.java1015 System.getProperty(category.variantKey, defaultLocale.getVariant()), in initDefault()
1241 public String getVariant() { in getVariant() method in Locale
1242 return baseLocale.getVariant(); in getVariant()
1424 boolean v = (baseLocale.getVariant().length() != 0); in toString()
1434 .append(baseLocale.getVariant()); in toString()
1703 if (exts == null && base.getVariant().length() > 0) { in forLanguageTag()
1705 base.getRegion(), base.getVariant()); in forLanguageTag()
2147 String variantCode = baseLocale.getVariant(); in getDisplayVariant()
2388 String variantCode = baseLocale.getVariant(); in getDisplayName()
2619 fields.put("variant", baseLocale.getVariant()); in writeObject()
[all …]
DCurrency.java364 String variant = locale.getVariant(); in getInstance()
DResourceBundle.java694 if (locale.getVariant().length() != 0) { in toString()
695 l = "__" + locale.getVariant(); in toString()
2374 String variant = base.getVariant(); in createObject()
2397 l.getVariant(), null)); in createObject()
2893 String variant = locale.getVariant(); in toBundleName()
/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java103 public String getVariant() { in getVariant() method in BaseLocale
DLanguageTag.java422 String variant = baseLocale.getVariant(); in parseLocale()
DInternalLocaleBuilder.java380 String variant = base.getVariant(); in setLocale()
/libcore/ojluni/annotations/mmodule/java/util/
DLocale.annotated.java81 public java.lang.String getVariant() { throw new RuntimeException("Stub!"); } in getVariant() method in Locale
/libcore/ojluni/annotations/sdk/nullability/java/util/
DLocale.annotated.java79 @libcore.util.NonNull public java.lang.String getVariant() { throw new RuntimeException("Stub!"); } in getVariant() method in Locale
/libcore/ojluni/annotations/hiddenapi/java/util/
DLocale.java141 public java.lang.String getVariant() { in getVariant() method in Locale
/libcore/ojluni/src/main/java/java/lang/
DSystem.java1088 setUnchangeableSystemProperty("user.variant", l.getVariant()); in addLegacyLocaleSystemProperties()