Home
last modified time | relevance | path

Searched refs:getVariant (Results 1 – 15 of 15) 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()
375 assertEquals("vArIaNt_VaRiAnT_VARIANT", b.build().getVariant()); in test_Builder_setVariant()
401 assertEquals("0ABC", b.build().getVariant()); in test_Builder_setVariant()
406 assertEquals("", b.build().getVariant()); in test_Builder_setVariant()
411 assertEquals("", b.build().getVariant()); in test_Builder_setVariant()
453 assertEquals("variant_VARIANT", l.getVariant()); in test_Builder_setLocale()
514 assertEquals("", l.getVariant()); in test_Builder_clear()
606 assertEquals("POSIX", l.getVariant()); in test_setLanguageTag_twoWellFormedSubtags()
688 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.java292 assertEquals("three", locale.getVariant()); in test_getCandidateLocales_LStringLLocale()
/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java227 public String getVariant() { in getVariant() method
352 String vart = locale.getVariant(); in hashCode()
383 && other.getVariant().equals(locale.getVariant())) { in equals()
399 locale.getRegion(), locale.getVariant(), true); in normalize()
DLanguageTag.java423 String variant = baseLocale.getVariant(); in parseLocale()
DInternalLocaleBuilder.java380 String variant = base.getVariant(); in setLocale()
/libcore/ojluni/src/main/java/java/util/
DLocale.java1155 System.getProperty(category.variantKey, defaultLocale.getVariant()), in initDefault()
1410 public String getVariant() { in getVariant() method in Locale
1411 return baseLocale.getVariant(); in getVariant()
1593 boolean v = !baseLocale.getVariant().isEmpty(); in toString()
1603 .append(baseLocale.getVariant()); in toString()
1881 if (exts == null && !base.getVariant().isEmpty()) { in forLanguageTag()
1883 base.getRegion(), base.getVariant()); in forLanguageTag()
2321 String variantCode = baseLocale.getVariant(); in getDisplayVariant()
2577 String variantCode = baseLocale.getVariant(); in getDisplayName()
2816 fields.put("variant", baseLocale.getVariant()); in writeObject()
[all …]
DResourceBundle.java800 if (!locale.getVariant().isEmpty()) { in toString()
801 l = "__" + locale.getVariant(); in toString()
2937 String variant = base.getVariant(); in createObject()
2960 l.getVariant(), null)); in createObject()
3488 String variant = locale.getVariant(); in toBundleName()
DCurrency.java412 String variant = locale.getVariant(); in getInstance()
/libcore/ojluni/src/main/java/sun/security/util/
DConstraintsParameters.java59 String getVariant(); in getVariant() method
/libcore/ojluni/src/test/java/text/testlib/
DTestUtils.java71 String variant = locale.getVariant(); in hasSpecialVariant()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DLocale.annotated.java81 @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.java1169 setUnchangeableSystemProperty("user.variant", l.getVariant()); in addLegacyLocaleSystemProperties()
/libcore/api/
Dcurrent.txt14269 method @NonNull public String getVariant();