Home
last modified time | relevance | path

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

1234

/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/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/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberFormatterApiTest.java353 ULocale.forLanguageTag("es"), in notationCompact()
362 ULocale.forLanguageTag("es"), in notationCompact()
371 ULocale.forLanguageTag("es"), in notationCompact()
592 ULocale.forLanguageTag("brx"), in unitMeasure()
602 ULocale.forLanguageTag("brx"), in unitMeasure()
613 ULocale.forLanguageTag("en-GB"), in unitMeasure()
623 ULocale.forLanguageTag("root"), in unitMeasure()
634 ULocale.forLanguageTag("es-US"), in unitMeasure()
643 ULocale.forLanguageTag("es-US"), in unitMeasure()
652 ULocale.forLanguageTag("es-MX"), in unitMeasure()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java350 ULocale.forLanguageTag("es"), in notationCompact()
359 ULocale.forLanguageTag("es"), in notationCompact()
368 ULocale.forLanguageTag("es"), in notationCompact()
589 ULocale.forLanguageTag("brx"), in unitMeasure()
599 ULocale.forLanguageTag("brx"), in unitMeasure()
610 ULocale.forLanguageTag("en-GB"), in unitMeasure()
620 ULocale.forLanguageTag("root"), in unitMeasure()
631 ULocale.forLanguageTag("es-US"), in unitMeasure()
640 ULocale.forLanguageTag("es-US"), in unitMeasure()
649 ULocale.forLanguageTag("es-MX"), in unitMeasure()
[all …]
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/
DModelFileManagerTest.java52 private static final Locale DEFAULT_LOCALE = Locale.forLanguageTag("en-US");
255 setDefaultLocalesRule.set(new LocaleList(Locale.forLanguageTag("ja"))); in deleteUnusedModelFiles_olderModelDeleted()
287 setDefaultLocalesRule.set(new LocaleList(Locale.forLanguageTag("ja"))); in deleteUnusedModelFiles_languageIndependentOlderModelDeleted()
311 setDefaultLocalesRule.set(new LocaleList(Locale.forLanguageTag("ja"))); in deleteUnusedModelFiles_modelOnlySupportingLocalesNotInListDeleted()
336 new LocaleList(Locale.forLanguageTag("ja"), Locale.forLanguageTag("en"))); in deleteUnusedModelFiles_multiLocalesInLocaleList()
361 setDefaultLocalesRule.set(new LocaleList(Locale.forLanguageTag("ja"))); in deleteUnusedModelFiles_readOnlyModelsUntouched()
/external/libchrome/base/android/java/src/org/chromium/base/
DLocaleUtils.java129 public static Locale forLanguageTag(String languageTag) { in forLanguageTag() method in LocaleUtils
131 Locale locale = Locale.forLanguageTag(languageTag); in forLanguageTag()
/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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DULocaleTest.java1533 ULocale locale = ULocale.forLanguageTag("de-x-foobar"); in TestDisplayWithKeyword()
4130 ULocale uloc = ULocale.forLanguageTag("de-DE-1901-1901"); in TestForLanguageTagBug20148()
4134 uloc = ULocale.forLanguageTag("de-DE-1aBc-1AbC"); in TestForLanguageTagBug20148()
4138 uloc = ULocale.forLanguageTag("en-a-bbb-a-ccc"); in TestForLanguageTagBug20148()
4142 uloc = ULocale.forLanguageTag("en-A-bbb-a-ccc"); in TestForLanguageTagBug20148()
4151 Locale loc = Locale.forLanguageTag("ar-EG-u-nu-latn"); in TestForLanguageTagBug13776()
4162 ULocale uloc = ULocale.forLanguageTag("en-0-abc-a-xyz"); in TestDigitSingletonExtensionBug20320()
4274 ULocale loc = ULocale.forLanguageTag(tag); in TestForLanguageTag()
4374 ULocale loc = ULocale.forLanguageTag(testcase[0]); in TestExtension()
4399 ULocale l = ULocale.forLanguageTag("en-US-a-exta"); in TestExtension()
[all …]
DCurrencyTest.java198 ULocale en_CA = ULocale.forLanguageTag("en-CA"); in TestNames()
199 ULocale en_US = ULocale.forLanguageTag("en-US"); in TestNames()
200 ULocale en_NZ = ULocale.forLanguageTag("en-NZ"); in TestNames()
326 cdn = CurrencyDisplayNames.getInstance(ULocale.forLanguageTag("en-US")); in TestCurrencyDisplayNames()
338 cdn = CurrencyDisplayNames.getInstance(ULocale.forLanguageTag("zz-Gggg-YY")); in TestCurrencyDisplayNames()
360 cdn = CurrencyDisplayNames.getInstance(ULocale.forLanguageTag("zz-Gggg-YY"), true); in TestCurrencyDisplayNames()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DULocaleTest.java1536 ULocale locale = ULocale.forLanguageTag("de-x-foobar"); in TestDisplayWithKeyword()
4133 ULocale uloc = ULocale.forLanguageTag("de-DE-1901-1901"); in TestForLanguageTagBug20148()
4137 uloc = ULocale.forLanguageTag("de-DE-1aBc-1AbC"); in TestForLanguageTagBug20148()
4141 uloc = ULocale.forLanguageTag("en-a-bbb-a-ccc"); in TestForLanguageTagBug20148()
4145 uloc = ULocale.forLanguageTag("en-A-bbb-a-ccc"); in TestForLanguageTagBug20148()
4154 Locale loc = Locale.forLanguageTag("ar-EG-u-nu-latn"); in TestForLanguageTagBug13776()
4165 ULocale uloc = ULocale.forLanguageTag("en-0-abc-a-xyz"); in TestDigitSingletonExtensionBug20320()
4277 ULocale loc = ULocale.forLanguageTag(tag); in TestForLanguageTag()
4377 ULocale loc = ULocale.forLanguageTag(testcase[0]); in TestExtension()
4402 ULocale l = ULocale.forLanguageTag("en-US-a-exta"); in TestExtension()
[all …]
DCurrencyTest.java201 ULocale en_CA = ULocale.forLanguageTag("en-CA"); in TestNames()
202 ULocale en_US = ULocale.forLanguageTag("en-US"); in TestNames()
203 ULocale en_NZ = ULocale.forLanguageTag("en-NZ"); in TestNames()
329 cdn = CurrencyDisplayNames.getInstance(ULocale.forLanguageTag("en-US")); in TestCurrencyDisplayNames()
341 cdn = CurrencyDisplayNames.getInstance(ULocale.forLanguageTag("zz-Gggg-YY")); in TestCurrencyDisplayNames()
363 cdn = CurrencyDisplayNames.getInstance(ULocale.forLanguageTag("zz-Gggg-YY"), true); in TestCurrencyDisplayNames()
/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/android_icu4j/libcore_bridge/src/native/
DScopedIcuLocale.h40 icu::Locale locale = icu::Locale::forLanguageTag(languageTag.c_str(), err); in ScopedIcuLocale()
/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.cpp4125 Locale l = Locale::forLanguageTag(tag, status); in TestGetKeywordValueStdString()
4924 Locale loc = Locale::forLanguageTag(otag.c_str(), status); in TestCanonicalize()
5327 Locale result1 = Locale::forLanguageTag(tag1, status); in TestBug20410()
5333 Locale result2 = Locale::forLanguageTag(tag2, status); in TestBug20410()
5499 Locale result_en = Locale::forLanguageTag(tag_en, status); in TestForLanguageTag()
5503 Locale result_oed = Locale::forLanguageTag(tag_oed, status); in TestForLanguageTag()
5507 Locale result_af = Locale::forLanguageTag(tag_af, status); in TestForLanguageTag()
5511 Locale result_var = Locale::forLanguageTag(tag_var, status); in TestForLanguageTag()
5515 Locale result_ill = Locale::forLanguageTag(tag_ill, status); in TestForLanguageTag()
5519 Locale result_null = Locale::forLanguageTag(nullptr, status); in TestForLanguageTag()
[all …]
/external/icu/android_icu4j/testing/src/android/icu/extratest/text/
DAlphabeticIndexTest.java51 Locale locale = Locale.forLanguageTag(language); in testBucketCount_withNoIndexCharacters()
/external/icu/android_icu4j/testing/src/com/android/icu/test/util/
DLocaleNativeTest.java88 Locale displayLocale = Locale.forLanguageTag(languageTag); in assertSameDisplayNames()
/external/icu/android_icu4j/testing/src/com/android/i18n/test/timezone/
DTimeZoneIntegrationTest.java389 Locale latinLocale = Locale.forLanguageTag("sr-Latn-RS"); in testDisplayNamesWithScript()
390 Locale cyrillicLocale = Locale.forLanguageTag("sr-Cyrl-RS"); in testDisplayNamesWithScript()
391 Locale noScriptLocale = Locale.forLanguageTag("sr-RS"); in testDisplayNamesWithScript()
/external/icu/android_icu4j/testing/src/com/android/icu/test/text/
DExtendedDateFormatSymbolsTest.java64 ULocale locale = ULocale.forLanguageTag("ar-EG-u-nu-arab"); in test_arabicQuarters()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DLocalizedNumberFormatterAsFormat.java150 .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()

1234