/libcore/luni/src/test/java/libcore/java/util/ |
D | LocaleTest.java | 76 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 …]
|
D | LegacyLocalesTest.java | 79 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/ |
D | BaseLocale.java | 183 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()
|
D | LanguageTag.java | 420 String language = baseLocale.getLanguage(); in parseLocale() 544 public String getLanguage() { in getLanguage() method in LanguageTag
|
D | InternalLocaleBuilder.java | 353 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/ |
D | LocaleTest.java | 82 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()
|
D | ControlTest.java | 290 assertEquals("one", locale.getLanguage()); in test_getCandidateLocales_LStringLLocale()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Locale.java | 1152 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 …]
|
D | ResourceBundle.java | 2934 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/ |
D | CaseMapper.java | 48 String languageCode = locale.getLanguage(); in toLowerCase() 147 String languageCode = locale.getLanguage(); in toUpperCase()
|
/libcore/ojluni/src/test/java/text/BreakIterator/ |
D | Bug4740757.java | 41 if (defaultLocale.getLanguage().equals("th")) { in main()
|
/libcore/luni/src/test/java/libcore/sun/util/locale/ |
D | BaseLocaleTest.java | 85 assertEquals(lang, b.getLanguage()); in testCacheCreateObject_notNull()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | SimpleDateFormatData.java | 233 String language = locale.getLanguage(); in isBug266731719Locale()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneTextPrinterParser.java | 106 if (locale.getLanguage().equals("ji")) { in test_printText()
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 118 if (calLocale.getLanguage().equals("ja")) { in test()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | MessageFormatTest.java | 103 assertEquals(l[i].getLanguage(), result.getLanguage()); in test_getLocale()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Locale.annotated.java | 75 @libcore.util.NonNull public java.lang.String getLanguage() { throw new RuntimeException("Stub!"); } in getLanguage() method in Locale
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Locale.java | 129 public java.lang.String getLanguage() { in getLanguage() method in Locale
|
/libcore/ojluni/src/main/java/java/lang/ |
D | System.java | 1167 setUnchangeableSystemProperty("user.language", l.getLanguage()); in addLegacyLocaleSystemProperties()
|
/libcore/api/ |
D | current.txt | 14264 method @NonNull public String getLanguage();
|