Home
last modified time | relevance | path

Searched refs:language (Results 1 – 25 of 35) 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/luni/src/test/java9language/
DAndroid.bp12 // See the License for the specific language governing permissions and
15 // Android tests related to Java 9 language features.
27 name: "core-java-9-language-features-repackaged-for-test",
30 srcs: [":core-java-9-language-features-source"],
44 // compiled from Java 9 language features.
52 name: "core-java-9-language-features-test-src",
58 name: "core-gen-test-repackaged-java-9-language-features",
61 ":core-java-9-language-features-test-src",
64 …ation :core-rewrite-test-for-jarjar-sed-script) $(location :core-java-9-language-features-test-src…
69 name: "core-java-9-language-tests",
[all …]
Drewrite-test-for-jarjar.sed12 # See the License for the specific language governing permissions and
/libcore/ojluni/src/main/java/java/util/
DLocale.java736 public Locale(String language, String country, String variant) { in Locale() argument
737 if (language== null || country == null || variant == null) { in Locale()
740 baseLocale = BaseLocale.getInstance(convertOldISOCodes(language), "", country, variant); in Locale()
741 localeExtensions = getCompatibilityExtensions(language, "", country, variant); in Locale()
766 public Locale(String language, String country) { in Locale() argument
767 this(language, country, ""); in Locale()
790 public Locale(String language) { in Locale() argument
791 this(language, "", ""); in Locale()
817 static Locale getInstance(String language, String country, String variant) { in getInstance() argument
818 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/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/luni/
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
/libcore/metrictests/memory/host/
DAndroid.bp12 // See the License for the specific language governing permissions and
/libcore/metrictests/memory/apps/
DAndroid.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
/libcore/benchmarks/
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/luni/src/test/filesystems/
DAndroid.bp12 // See the License for the specific language governing permissions and
/libcore/luni/src/main/native/
DAndroid.bp12 // See the License for the specific language governing permissions and
/libcore/expectations/
DAndroid.bp12 // 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/luni/src/test/parameter_metadata/
DAndroid.bp12 // See the License for the specific language governing permissions and
/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/ojluni/src/main/native/
DAndroid.bp12 // See the License for the specific language governing permissions and
/libcore/luni/src/test/java/libcore/java/lang/
DThreadTestHelper.smali13 # See the License for the specific language governing permissions and
/libcore/luni/src/main/java/java/security/
Dsecurity.properties13 # See the License for the specific language governing permissions and

12