Home
last modified time | relevance | path

Searched refs:getLanguage (Results 1 – 15 of 15) 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()
220 assertEquals(oldCode, newLocale.getLanguage()); in assertObsolete()
221 assertEquals(oldCode, oldLocale.getLanguage()); in assertObsolete()
333 assertEquals("en", b.build().getLanguage()); in test_Builder_setLanguage()
364 assertEquals("", b.build().getLanguage()); in test_Builder_setLanguage()
369 assertEquals("", b.build().getLanguage()); in test_Builder_setLanguage()
463 assertEquals("en", b.build().getLanguage()); in test_Builder_setLocale()
496 assertEquals("en", l.getLanguage()); in test_Builder_setLocale()
512 assertEquals("fr", l.getLanguage()); in test_Builder_setLocale()
[all …]
/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.java295 assertEquals("one", locale.getLanguage()); in test_getCandidateLocales_LStringLLocale()
/libcore/ojluni/src/main/java/java/util/
DLocale.java1012 System.getProperty(category.languageKey, defaultLocale.getLanguage()), in initDefault()
1205 public String getLanguage() { in getLanguage() method in Locale
1206 return baseLocale.getLanguage(); in getLanguage()
1421 boolean l = (baseLocale.getLanguage().length() != 0); in toString()
1427 StringBuilder result = new StringBuilder(baseLocale.getLanguage()); in toString()
1528 String subtag = tag.getLanguage(); in toLanguageTag()
1704 exts = getCompatibilityExtensions(base.getLanguage(), base.getScript(), in forLanguageTag()
1725 String lang = baseLocale.getLanguage(); in getISO3Language()
1858 String languageCode = baseLocale.getLanguage(); in getDisplayLanguage()
2362 String languageCode = baseLocale.getLanguage(); in getDisplayName()
[all …]
DResourceBundle.java2371 String language = base.getLanguage(); in createObject()
2393 if (l.getLanguage().length() == 0) { in createObject()
2890 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/main/java/sun/util/locale/
DLanguageTag.java419 String language = baseLocale.getLanguage(); in parseLocale()
546 public String getLanguage() { in getLanguage() method in LanguageTag
DInternalLocaleBuilder.java353 String lang = langtag.getLanguage(); in setLanguageTag()
377 String language = base.getLanguage(); in setLocale()
DBaseLocale.java91 public String getLanguage() { in getLanguage() method in BaseLocale
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestZoneTextPrinterParser.java84 if (locale.getLanguage().equals("ji")) { in test_printText()
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java113 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/hiddenapi/java/util/
DLocale.java129 public java.lang.String getLanguage() { in getLanguage() method in Locale
/libcore/ojluni/annotations/sdk/nullability/java/util/
DLocale.annotated.java73 @libcore.util.NonNull public java.lang.String getLanguage() { throw new RuntimeException("Stub!"); } in getLanguage() method in Locale
/libcore/ojluni/src/main/java/java/lang/
DSystem.java1074 setUnchangeableSystemProperty("user.language", l.getLanguage()); in addLegacyLocaleSystemProperties()