Home
last modified time | relevance | path

Searched refs:forLanguageTag (Results 1 – 25 of 76) sorted by relevance

1234

/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/
DModelFileManagerTest.java47 private static final Locale DEFAULT_LOCALE = Locale.forLanguageTag("en-US");
111 Locale locale = Locale.forLanguageTag("ja"); in findBestModel_languageDependentModelIsPreferred()
132 Locale locale = Locale.forLanguageTag("ja"); in findBestModel_noMatchedLanguageModel()
179 Collections.singletonList(Locale.forLanguageTag("fr")), in findBestModel_languageIsMoreImportantThanVersion()
187 Collections.singletonList(Locale.forLanguageTag("ja")), in findBestModel_languageIsMoreImportantThanVersion()
205 Collections.singletonList(Locale.forLanguageTag("ja")), in findBestModel_languageIsMoreImportantThanVersion_bestModelComesFirst()
226 Collections.singletonList(Locale.forLanguageTag("ja")), in modelFileEquals()
234 Collections.singletonList(Locale.forLanguageTag("ja")), in modelFileEquals()
247 Collections.singletonList(Locale.forLanguageTag("ja")), in modelFile_different()
255 Collections.singletonList(Locale.forLanguageTag("ja")), in modelFile_different()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DCompactDecimalFormatTest.java381 getCDFInstance(ULocale.forLanguageTag("sw"), CompactStyle.SHORT); in TestCharacterIterator()
405 checkLocale(ULocale.forLanguageTag("cs"), CompactStyle.SHORT, CsTestDataShort); in TestCsShort()
410 checkLocale(ULocale.forLanguageTag("sk"), CompactStyle.LONG, SkTestDataLong); in TestSkLong()
415 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.SHORT, SerbianTestDataShort); in TestSerbianShort()
420 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLong); in TestSerbianLong()
425 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLongNegative); in TestSerbianLongNegative()
440 checkLocale(ULocale.forLanguageTag("sw"), CompactStyle.SHORT, SwahiliTestData); in TestSwahiliShort()
445 checkLocale(ULocale.forLanguageTag("sw"), CompactStyle.SHORT, SwahiliTestDataNegative); in TestSwahiliShortNegative()
466 ULocale.forLanguageTag("sw"), CompactStyle.SHORT); in TestFieldPosition()
478 ULocale.forLanguageTag("sw"), CompactStyle.SHORT); in TestEquals()
[all …]
DIntlTestDateFormatAPI.java168 Locale.forLanguageTag("zh-Hans-CN"), in TestAPI()
169 Locale.forLanguageTag("zh-Hant-TW"), in TestAPI()
170 Locale.forLanguageTag("zh-Hant-HK"), in TestAPI()
171 Locale.forLanguageTag("sr-Cyrl-RS"), in TestAPI()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DCompactDecimalFormatTest.java378 getCDFInstance(ULocale.forLanguageTag("sw"), CompactStyle.SHORT); in TestCharacterIterator()
402 checkLocale(ULocale.forLanguageTag("cs"), CompactStyle.SHORT, CsTestDataShort); in TestCsShort()
407 checkLocale(ULocale.forLanguageTag("sk"), CompactStyle.LONG, SkTestDataLong); in TestSkLong()
412 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.SHORT, SerbianTestDataShort); in TestSerbianShort()
417 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLong); in TestSerbianLong()
422 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLongNegative); in TestSerbianLongNegative()
437 checkLocale(ULocale.forLanguageTag("sw"), CompactStyle.SHORT, SwahiliTestData); in TestSwahiliShort()
442 checkLocale(ULocale.forLanguageTag("sw"), CompactStyle.SHORT, SwahiliTestDataNegative); in TestSwahiliShortNegative()
463 ULocale.forLanguageTag("sw"), CompactStyle.SHORT); in TestFieldPosition()
475 ULocale.forLanguageTag("sw"), CompactStyle.SHORT); in TestEquals()
[all …]
DIntlTestDateFormatAPI.java165 Locale.forLanguageTag("zh-Hans-CN"), in TestAPI()
166 Locale.forLanguageTag("zh-Hant-TW"), in TestAPI()
167 Locale.forLanguageTag("zh-Hant-HK"), in TestAPI()
168 Locale.forLanguageTag("sr-Cyrl-RS"), in TestAPI()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java329 ULocale.forLanguageTag("es"), in notationCompact()
337 ULocale.forLanguageTag("es"), in notationCompact()
512 ULocale.forLanguageTag("brx"), in unitMeasure()
521 ULocale.forLanguageTag("brx"), in unitMeasure()
531 ULocale.forLanguageTag("en-GB"), in unitMeasure()
540 ULocale.forLanguageTag("root"), in unitMeasure()
550 ULocale.forLanguageTag("es-US"), in unitMeasure()
558 ULocale.forLanguageTag("es-US"), in unitMeasure()
566 ULocale.forLanguageTag("es-MX"), in unitMeasure()
577 ULocale.forLanguageTag("es-MX"), in unitMeasure()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberFormatterApiTest.java332 ULocale.forLanguageTag("es"), in notationCompact()
340 ULocale.forLanguageTag("es"), in notationCompact()
515 ULocale.forLanguageTag("brx"), in unitMeasure()
524 ULocale.forLanguageTag("brx"), in unitMeasure()
534 ULocale.forLanguageTag("en-GB"), in unitMeasure()
543 ULocale.forLanguageTag("root"), in unitMeasure()
553 ULocale.forLanguageTag("es-US"), in unitMeasure()
561 ULocale.forLanguageTag("es-US"), in unitMeasure()
569 ULocale.forLanguageTag("es-MX"), in unitMeasure()
580 ULocale.forLanguageTag("es-MX"), in unitMeasure()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DBreakIteratorTest.java409 … filteredBI = BreakIterator.getSentenceInstance(ULocale.forLanguageTag("en-US-u-ss-standard")); in TestFilteredBreakIteratorBuilder()
418 … filteredBI = BreakIterator.getSentenceInstance(ULocale.forLanguageTag("af-u-ss-standard")); in TestFilteredBreakIteratorBuilder()
425 … filteredBI = BreakIterator.getSentenceInstance(ULocale.forLanguageTag("ja-u-ss-standard")); in TestFilteredBreakIteratorBuilder()
431 … filteredBI = BreakIterator.getSentenceInstance(ULocale.forLanguageTag("tfg-u-ss-standard")); in TestFilteredBreakIteratorBuilder()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DBreakIteratorTest.java412 … filteredBI = BreakIterator.getSentenceInstance(ULocale.forLanguageTag("en-US-u-ss-standard")); in TestFilteredBreakIteratorBuilder()
421 … filteredBI = BreakIterator.getSentenceInstance(ULocale.forLanguageTag("af-u-ss-standard")); in TestFilteredBreakIteratorBuilder()
428 … filteredBI = BreakIterator.getSentenceInstance(ULocale.forLanguageTag("ja-u-ss-standard")); in TestFilteredBreakIteratorBuilder()
434 … filteredBI = BreakIterator.getSentenceInstance(ULocale.forLanguageTag("tfg-u-ss-standard")); in TestFilteredBreakIteratorBuilder()
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/test/
DKeyboardTest.java59 KeyboardId testId = KeyboardId.of(ULocale.forLanguageTag("cs"), Platform.OSX, in testKeyboardId()
103 KeyboardId id = KeyboardId.of(ULocale.forLanguageTag("cs"), Platform.OSX, in testEqualsTrue()
139 KeyboardId id = KeyboardId.of(ULocale.forLanguageTag("cs"), Platform.OSX, in testEqualsFalse()
DKeyboardIdTest.java16 assertEquals("", ULocale.forLanguageTag("de-CH"), id.locale()); in testKeyboardId()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DULocaleTest.java1527 ULocale locale = ULocale.forLanguageTag("de-x-foobar"); in TestDisplayWithKeyword()
4148 ULocale uloc = ULocale.forLanguageTag("de-DE-1901-1901"); in TestForLanguageTagBug20148()
4152 uloc = ULocale.forLanguageTag("de-DE-1aBc-1AbC"); in TestForLanguageTagBug20148()
4156 uloc = ULocale.forLanguageTag("en-a-bbb-a-ccc"); in TestForLanguageTagBug20148()
4160 uloc = ULocale.forLanguageTag("en-A-bbb-a-ccc"); in TestForLanguageTagBug20148()
4169 Locale loc = Locale.forLanguageTag("ar-EG-u-nu-latn"); in TestForLanguageTagBug13776()
4180 ULocale uloc = ULocale.forLanguageTag("en-0-abc-a-xyz"); in TestDigitSingletonExtensionBug20320()
4282 ULocale loc = ULocale.forLanguageTag(tag); in TestForLanguageTag()
4382 ULocale loc = ULocale.forLanguageTag(testcase[0]); in TestExtension()
4407 ULocale l = ULocale.forLanguageTag("en-US-a-exta"); in TestExtension()
[all …]
DCurrencyTest.java191 ULocale en_CA = ULocale.forLanguageTag("en-CA"); in TestNames()
192 ULocale en_US = ULocale.forLanguageTag("en-US"); in TestNames()
193 ULocale en_NZ = ULocale.forLanguageTag("en-NZ"); in TestNames()
301 cdn = CurrencyDisplayNames.getInstance(ULocale.forLanguageTag("en-US")); in TestCurrencyDisplayNames()
313 cdn = CurrencyDisplayNames.getInstance(ULocale.forLanguageTag("zz-Gggg-YY")); in TestCurrencyDisplayNames()
335 cdn = CurrencyDisplayNames.getInstance(ULocale.forLanguageTag("zz-Gggg-YY"), true); in TestCurrencyDisplayNames()
DLocaleBuilderTest.java192 ULocale loc1 = ULocale.forLanguageTag(langtag); in TestLocaleBuilder()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DULocaleTest.java1530 ULocale locale = ULocale.forLanguageTag("de-x-foobar"); in TestDisplayWithKeyword()
4151 ULocale uloc = ULocale.forLanguageTag("de-DE-1901-1901"); in TestForLanguageTagBug20148()
4155 uloc = ULocale.forLanguageTag("de-DE-1aBc-1AbC"); in TestForLanguageTagBug20148()
4159 uloc = ULocale.forLanguageTag("en-a-bbb-a-ccc"); in TestForLanguageTagBug20148()
4163 uloc = ULocale.forLanguageTag("en-A-bbb-a-ccc"); in TestForLanguageTagBug20148()
4172 Locale loc = Locale.forLanguageTag("ar-EG-u-nu-latn"); in TestForLanguageTagBug13776()
4183 ULocale uloc = ULocale.forLanguageTag("en-0-abc-a-xyz"); in TestDigitSingletonExtensionBug20320()
4285 ULocale loc = ULocale.forLanguageTag(tag); in TestForLanguageTag()
4385 ULocale loc = ULocale.forLanguageTag(testcase[0]); in TestExtension()
4410 ULocale l = ULocale.forLanguageTag("en-US-a-exta"); in TestExtension()
[all …]
DCurrencyTest.java194 ULocale en_CA = ULocale.forLanguageTag("en-CA"); in TestNames()
195 ULocale en_US = ULocale.forLanguageTag("en-US"); in TestNames()
196 ULocale en_NZ = ULocale.forLanguageTag("en-NZ"); in TestNames()
304 cdn = CurrencyDisplayNames.getInstance(ULocale.forLanguageTag("en-US")); in TestCurrencyDisplayNames()
316 cdn = CurrencyDisplayNames.getInstance(ULocale.forLanguageTag("zz-Gggg-YY")); in TestCurrencyDisplayNames()
338 cdn = CurrencyDisplayNames.getInstance(ULocale.forLanguageTag("zz-Gggg-YY"), true); in TestCurrencyDisplayNames()
DLocaleBuilderTest.java195 ULocale loc1 = ULocale.forLanguageTag(langtag); in TestLocaleBuilder()
/external/icu/android_icu4j/testing/src/com/android/libcore/java/text/
DNumberFormatTest.java43 Locale locale = Locale.forLanguageTag("en-BE"); in testMonetarySeparator()
/external/icu/icu4c/source/test/intltest/
Dloctest.cpp2004 Locale l = Locale::forLanguageTag(tag, status); in TestGetKeywordValueStdString()
3090 Locale result1 = Locale::forLanguageTag(tag1, status); in TestBug20410()
3096 Locale result2 = Locale::forLanguageTag(tag2, status); in TestBug20410()
3167 Locale result_en = Locale::forLanguageTag(tag_en, status); in TestForLanguageTag()
3171 Locale result_oed = Locale::forLanguageTag(tag_oed, status); in TestForLanguageTag()
3175 Locale result_af = Locale::forLanguageTag(tag_af, status); in TestForLanguageTag()
3179 Locale result_ill = Locale::forLanguageTag(tag_ill, status); in TestForLanguageTag()
3183 Locale result_null = Locale::forLanguageTag(nullptr, status); in TestForLanguageTag()
3188 Locale result_substr = Locale::forLanguageTag(sp_substr, status); in TestForLanguageTag()
3194 Locale result_no_nul = Locale::forLanguageTag(sp_no_nul, status); in TestForLanguageTag()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DLocalizedNumberFormatterAsFormat.java146 .locale(ULocale.forLanguageTag(languageTag)) in readResolve()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DXLocaleMatcherTest.java168 …double d = lm.distance(ULocale.forLanguageTag("xx-Xxxx-" + x), ULocale.forLanguageTag("xx-Xxxx-" +… in testComputeDistance_monkeyTest()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DLocalizedNumberFormatterAsFormat.java144 .locale(ULocale.forLanguageTag(languageTag)) in readResolve()
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/
DKeyboardIdMap.java55 ULocale locale = ULocale.forLanguageTag(components.get(1)); in fromCsv()
DKeyboardId.java58 ULocale locale = ULocale.forLanguageTag(localeString); in fromString()
/external/icu/icu4c/source/common/
Dlocalebuilder.cpp63 Locale l = Locale::forLanguageTag(tag, status_); in setLanguageTag()
211 Locale::forLanguageTag(locale_str.data(), errorCode), nullptr, in _setUnicodeExtensions()

1234