Home
last modified time | relevance | path

Searched refs:getLanguage (Results 1 – 20 of 20) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DLocaleTest.java76 assertEquals("aabbcc", invalid.getLanguage()); in test_getDisplayName_invalid()
105 assertEquals("xx", unknown.getLanguage()); in test_getDisplayName_unknown()
288 assertEquals("en", b.build().getLanguage()); in test_Builder_setLanguage()
319 assertEquals("", b.build().getLanguage()); in test_Builder_setLanguage()
324 assertEquals("", b.build().getLanguage()); in test_Builder_setLanguage()
418 assertEquals("en", b.build().getLanguage()); in test_Builder_setLocale()
451 assertEquals("en", l.getLanguage()); in test_Builder_setLocale()
467 assertEquals("fr", l.getLanguage()); in test_Builder_setLocale()
512 assertEquals("", l.getLanguage()); in test_Builder_clear()
580 assertEquals("en", l.getLanguage()); in test_setLanguageTag_wellFormedsingleSubtag()
[all …]
DLegacyLocalesTest.java79 assertEquals(oldCode, newLocale.getLanguage()); in assertObsolete()
80 assertEquals(oldCode, oldLocale.getLanguage()); in assertObsolete()
104 assertEquals(newCode, newLocale.getLanguage()); in assertNew()
105 assertEquals(newCode, oldLocale.getLanguage()); in assertNew()
/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java183 if (baseLocale.getLanguage().equals(language) in getInstance()
215 public String getLanguage() { in getLanguage() method
337 String lang = locale.getLanguage(); in hashCode()
379 && LocaleUtils.caseIgnoreMatch(other.getLanguage(), locale.getLanguage()) in equals()
398 return new Key(locale.getLanguage(), locale.getScript(), in normalize()
DLanguageTag.java420 String language = baseLocale.getLanguage(); in parseLocale()
544 public String getLanguage() { in getLanguage() method in LanguageTag
DInternalLocaleBuilder.java353 String lang = langtag.getLanguage(); in setLanguageTag()
377 String language = base.getLanguage(); in setLocale()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLocaleTest.java82 assertTrue("Failed to create Locale", x.getLanguage().equals("xx") in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
323 assertTrue("Returned incorrect language: " + testLocale.getLanguage(), in test_getLanguage()
324 testLocale.getLanguage().equals("en")); in test_getLanguage()
403 assertEquals("", root.getLanguage()); in test_constantROOT()
DControlTest.java290 assertEquals("one", locale.getLanguage()); in test_getCandidateLocales_LStringLLocale()
/libcore/ojluni/src/main/java/java/util/
DLocale.java1152 System.getProperty(category.languageKey, defaultLocale.getLanguage()), in initDefault()
1374 public String getLanguage() { in getLanguage() method in Locale
1375 return baseLocale.getLanguage(); in getLanguage()
1590 boolean l = !baseLocale.getLanguage().isEmpty(); in toString()
1596 StringBuilder result = new StringBuilder(baseLocale.getLanguage()); in toString()
1697 String subtag = tag.getLanguage(); in toLanguageTag()
1882 exts = getCompatibilityExtensions(base.getLanguage(), base.getScript(), in forLanguageTag()
1903 String lang = baseLocale.getLanguage(); in getISO3Language()
2036 String languageCode = baseLocale.getLanguage(); in getDisplayLanguage()
2551 String languageCode = baseLocale.getLanguage(); in getDisplayName()
[all …]
DResourceBundle.java2934 String language = base.getLanguage(); in createObject()
2956 if (l.getLanguage().isEmpty()) { in createObject()
3485 String language = locale.getLanguage(); in toBundleName()
/libcore/libart/src/main/java/java/lang/
DCaseMapper.java48 String languageCode = locale.getLanguage(); in toLowerCase()
147 String languageCode = locale.getLanguage(); in toUpperCase()
/libcore/ojluni/src/test/java/text/BreakIterator/
DBug4740757.java41 if (defaultLocale.getLanguage().equals("th")) { in main()
/libcore/luni/src/test/java/libcore/sun/util/locale/
DBaseLocaleTest.java85 assertEquals(lang, b.getLanguage()); in testCacheCreateObject_notNull()
/libcore/luni/src/main/java/libcore/icu/
DSimpleDateFormatData.java233 String language = locale.getLanguage(); in isBug266731719Locale()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestZoneTextPrinterParser.java106 if (locale.getLanguage().equals("ji")) { in test_printText()
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java118 if (calLocale.getLanguage().equals("ja")) { in test()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DMessageFormatTest.java103 assertEquals(l[i].getLanguage(), result.getLanguage()); in test_getLocale()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DLocale.annotated.java75 @libcore.util.NonNull public java.lang.String getLanguage() { throw new RuntimeException("Stub!"); } in getLanguage() method in Locale
/libcore/ojluni/annotations/hiddenapi/java/util/
DLocale.java129 public java.lang.String getLanguage() { in getLanguage() method in Locale
/libcore/ojluni/src/main/java/java/lang/
DSystem.java1167 setUnchangeableSystemProperty("user.language", l.getLanguage()); in addLegacyLocaleSystemProperties()
/libcore/api/
Dcurrent.txt14264 method @NonNull public String getLanguage();