Home
last modified time | relevance | path

Searched refs:language (Results 1 – 25 of 28) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java43 private final String language; field in BaseLocale
51 private BaseLocale(String language, String region) { in BaseLocale() argument
52 this.language = language; in BaseLocale()
58 private BaseLocale(String language, String script, String region, String variant) { in BaseLocale() argument
59 this.language = (language != null) ? LocaleUtils.toLowerString(language).intern() : ""; in BaseLocale()
67 public static BaseLocale createInstance(String language, String region) { in createInstance() argument
68 BaseLocale base = new BaseLocale(language, region); in createInstance()
69 CACHE.put(new Key(language, region), base); in createInstance()
73 public static BaseLocale getInstance(String language, String script, in getInstance() argument
76 if (language != null) { in getInstance()
[all …]
DInternalLocaleBuilder.java46 private String language = ""; field in InternalLocaleBuilder
59 public InternalLocaleBuilder setLanguage(String language) throws LocaleSyntaxException { in setLanguage() argument
60 if (LocaleUtils.isEmpty(language)) { in setLanguage()
61 this.language = ""; in setLanguage()
63 if (!LanguageTag.isLanguage(language)) { in setLanguage()
64 throw new LocaleSyntaxException("Ill-formed language: " + language, 0); in setLanguage()
66 this.language = language; in setLanguage()
351 language = langtag.getExtlangs().get(0); in setLanguageTag()
355 language = lang; in setLanguageTag()
377 String language = base.getLanguage(); in setLocale() local
[all …]
DLanguageTag.java53 private String language = ""; // language subtag field in LanguageTag
238 language = s; in parseLanguage()
419 String language = baseLocale.getLanguage(); in parseLocale() local
428 if (isLanguage(language)) { in parseLocale()
430 if (language.equals("iw")) { in parseLocale()
431 language = "he"; in parseLocale()
432 } else if (language.equals("ji")) { in parseLocale()
433 language = "yi"; in parseLocale()
434 } else if (language.equals("in")) { in parseLocale()
435 language = "id"; in parseLocale()
[all …]
/libcore/ojluni/src/main/java/java/util/
DLocale.java735 public Locale(String language, String country, String variant) { in Locale() argument
736 if (language== null || country == null || variant == null) { in Locale()
739 baseLocale = BaseLocale.getInstance(convertOldISOCodes(language), "", country, variant); in Locale()
740 localeExtensions = getCompatibilityExtensions(language, "", country, variant); in Locale()
765 public Locale(String language, String country) { in Locale() argument
766 this(language, country, ""); in Locale()
789 public Locale(String language) { in Locale() argument
790 this(language, "", ""); in Locale()
816 static Locale getInstance(String language, String country, String variant) { in getInstance() argument
817 return getInstance(language, "", country, variant, null); in getInstance()
[all …]
DResourceBundle.java2371 String language = base.getLanguage(); in createObject() local
2379 if (language.equals("no")) { in createObject()
2387 if (language.equals("nb") || isNorwegianBokmal) { in createObject()
2400 } else if (language.equals("nn") || isNorwegianNynorsk) { in createObject()
2410 else if (language.equals("zh")) { in createObject()
2439 return getDefaultList(language, script, region, variant); in createObject()
2442 …private static List<Locale> getDefaultList(String language, String script, String region, String v… in getDefaultList() argument
2458 list.add(Locale.getInstance(language, script, region, v, null)); in getDefaultList()
2462 list.add(Locale.getInstance(language, script, region, "", null)); in getDefaultList()
2465 list.add(Locale.getInstance(language, script, "", "", null)); in getDefaultList()
[all …]
/libcore/luni/src/test/java/libcore/libcore/icu/
DAlphabeticIndexTest.java44 for (String language : Locale.getISOLanguages()) { in testBucketCount_withNoIndexCharacters()
45 Locale locale = Locale.forLanguageTag(language); in testBucketCount_withNoIndexCharacters()
/libcore/ojluni/annotations/hiddenapi/java/util/
DLocale.java54 public Locale(java.lang.String language, java.lang.String country, java.lang.String variant) { in Locale() argument
58 public Locale(java.lang.String language, java.lang.String country) { in Locale() argument
62 public Locale(java.lang.String language) { in Locale() argument
73 java.lang.String language, java.lang.String country, java.lang.String variant) { in getInstance() argument
78 java.lang.String language, in getInstance() argument
210 java.lang.String language, boolean strict) { in normalizeAndValidateLanguage() argument
313 private static java.lang.String convertOldISOCodes(java.lang.String language) { in convertOldISOCodes() argument
318 java.lang.String language, in getCompatibilityExtensions() argument
558 public java.util.Locale.Builder setLanguage(java.lang.String language) { in setLanguage() argument
/libcore/luni/src/test/resources/tests/api/java/io/
DsameFieldNames.smali7 # (Invalid in Java language but valid in bytecode.)
/libcore/ojluni/annotations/mmodule/java/util/
DLocale.annotated.java53 public Locale(java.lang.String language, java.lang.String country, java.lang.String variant) { thro… in Locale() argument
55 public Locale(java.lang.String language, java.lang.String country) { throw new RuntimeException("St… in Locale() argument
57 public Locale(java.lang.String language) { throw new RuntimeException("Stub!"); } in Locale() argument
226 public java.util.Locale.Builder setLanguage(java.lang.String language) { throw new RuntimeException… in setLanguage() argument
/libcore/metrictests/memory/apps/
DAndroid.bp12 // See the License for the specific language governing permissions and
/libcore/metrictests/memory/host/
DAndroid.bp12 // See the License for the specific language governing permissions and
/libcore/tools/upstream/
DAndroid.bp13 // See the License for the specific language governing permissions and
/libcore/
Dknown_oj_tags.txt12 # See the License for the specific language governing permissions and
DNativeCode.bp12 // See the License for the specific language governing permissions and
/libcore/harmony-tests/src/test/resources/resources/
Dtest.rtf14 * See the License for the specific language governing permissions and
Dtest.doc14 * See the License for the specific language governing permissions and
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DAttributedCharacterIteratorAttributeTest.java127 Attribute language = Attribute.LANGUAGE; in test_fields() local
/libcore/ojluni/annotations/sdk/nullability/java/util/
DLocale.annotated.java53 public Locale(@libcore.util.NonNull java.lang.String language, @libcore.util.NonNull java.lang.Stri… in Locale() argument
55 public Locale(@libcore.util.NonNull java.lang.String language, @libcore.util.NonNull java.lang.Stri… in Locale() argument
57 public Locale(@libcore.util.NonNull java.lang.String language) { throw new RuntimeException("Stub!"… in Locale() argument
222 …util.Locale.Builder setLanguage(@libcore.util.Nullable java.lang.String language) { throw new Runt… in setLanguage() argument
/libcore/luni/src/main/java/java/security/
Dsecurity.properties13 # See the License for the specific language governing permissions and
/libcore/mmodules/core_platform_api/
DAndroid.bp12 // See the License for the specific language governing permissions and
/libcore/mmodules/intracoreapi/
DAndroid.bp12 // See the License for the specific language governing permissions and
/libcore/luni/src/main/java/java/util/logging/
Dlogging.properties13 # See the License for the specific language governing permissions and
/libcore/ojluni/src/main/java/java/lang/
DSystem.java1093 final String language = getProperty("user.language", ""); in addLegacyLocaleSystemProperties() local
1096 if (language.isEmpty()) { in addLegacyLocaleSystemProperties()
/libcore/luni/src/test/java/libcore/java/lang/reflect/parameter/
DMetadataVariations.smali13 # See the License for the specific language governing permissions and
/libcore/benchmarks/libs/
Dcaliper.jar.txt201 See the License for the specific language governing permissions and

12