/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() 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/ |
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 | 295 assertEquals("one", locale.getLanguage()); in test_getCandidateLocales_LStringLLocale()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Locale.java | 1012 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 …]
|
D | ResourceBundle.java | 2371 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/ |
D | CaseMapper.java | 48 String languageCode = locale.getLanguage(); in toLowerCase() 147 String languageCode = locale.getLanguage(); in toUpperCase()
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LanguageTag.java | 419 String language = baseLocale.getLanguage(); in parseLocale() 546 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()
|
D | BaseLocale.java | 91 public String getLanguage() { in getLanguage() method in BaseLocale
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneTextPrinterParser.java | 84 if (locale.getLanguage().equals("ji")) { in test_printText()
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 113 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/hiddenapi/java/util/ |
D | Locale.java | 129 public java.lang.String getLanguage() { in getLanguage() method in Locale
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Locale.annotated.java | 73 @libcore.util.NonNull public java.lang.String getLanguage() { throw new RuntimeException("Stub!"); } in getLanguage() method in Locale
|
/libcore/ojluni/src/main/java/java/lang/ |
D | System.java | 1074 setUnchangeableSystemProperty("user.language", l.getLanguage()); in addLegacyLocaleSystemProperties()
|