Home
last modified time | relevance | path

Searched refs:localeString (Results 1 – 21 of 21) sorted by relevance

/external/libchrome/base/android/javatests/src/org/chromium/base/
DLocaleUtilsTest.java117 String localeString = LocaleUtils.toLanguageTag(locale); in testToLanguageTag() local
118 Assert.assertEquals("en-US", localeString); in testToLanguageTag()
121 localeString = LocaleUtils.toLanguageTag(locale); in testToLanguageTag()
122 Assert.assertEquals("jp", localeString); in testToLanguageTag()
125 localeString = LocaleUtils.toLanguageTag(locale); in testToLanguageTag()
126 Assert.assertEquals("mas", localeString); in testToLanguageTag()
129 localeString = LocaleUtils.toLanguageTag(locale); in testToLanguageTag()
130 Assert.assertEquals("es-005", localeString); in testToLanguageTag()
133 localeString = LocaleUtils.toLanguageTag(locale); in testToLanguageTag()
134 Assert.assertEquals("he", localeString); in testToLanguageTag()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationIteratorTest.java724 private String localeString; in TestSearchCollatorElements() field in CollationIteratorTest.TSCEItem
727 localeString = locStr; in TestSearchCollatorElements()
730 public String getLocaleString() { return localeString; } in TestSearchCollatorElements()
739 String localeString = tsceItem.getLocaleString(); in TestSearchCollatorElements() local
740 ULocale uloc = new ULocale(localeString); in TestSearchCollatorElements()
745 errln("Error: in locale " + localeString + ", err in Collator.getInstance"); in TestSearchCollatorElements()
757 … logln(String.format("(%s) offset=%2d ce=%08x\n", tsceItem.localeString, offset, element)); in TestSearchCollatorElements()
759 … errln("Error: in locale " + localeString + ", CEIterator next() returned element 0"); in TestSearchCollatorElements()
763 …errln("Error: in locale " + localeString + ", expected CEIterator next()->getOffset " + offsets[io… in TestSearchCollatorElements()
769 …errln("Error: in locale " + localeString + ", CEIterator next() returned more elements than expect… in TestSearchCollatorElements()
[all …]
DAlphabeticIndexTest.java397 …private void checkBuckets(String localeString, String[] test, ULocale additionalLocale, String tes… in checkBuckets() argument
399 ULocale desiredLocale = new ULocale(localeString); in checkBuckets()
578 String localeString = list[i].toString(); in TestBasics() local
579 if (!KEY_LOCALES.contains(localeString)) continue; // TODO change in exhaustive in TestBasics()
580 ULocale locale = new ULocale(localeString + collationValue); in TestBasics()
613 for (String localeString : new String[] {"zh"}) { // KEY_LOCALES, new String[] {"zh"} in TestClientSupport()
614 ULocale ulocale = new ULocale(localeString); in TestClientSupport()
619 if (!localeString.equals("zh") ) { in TestClientSupport()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationIteratorTest.java721 private String localeString; in TestSearchCollatorElements() field in CollationIteratorTest.TSCEItem
724 localeString = locStr; in TestSearchCollatorElements()
727 public String getLocaleString() { return localeString; } in TestSearchCollatorElements()
736 String localeString = tsceItem.getLocaleString(); in TestSearchCollatorElements() local
737 ULocale uloc = new ULocale(localeString); in TestSearchCollatorElements()
742 errln("Error: in locale " + localeString + ", err in Collator.getInstance"); in TestSearchCollatorElements()
754 … logln(String.format("(%s) offset=%2d ce=%08x\n", tsceItem.localeString, offset, element)); in TestSearchCollatorElements()
756 … errln("Error: in locale " + localeString + ", CEIterator next() returned element 0"); in TestSearchCollatorElements()
760 …errln("Error: in locale " + localeString + ", expected CEIterator next()->getOffset " + offsets[io… in TestSearchCollatorElements()
766 …errln("Error: in locale " + localeString + ", CEIterator next() returned more elements than expect… in TestSearchCollatorElements()
[all …]
DAlphabeticIndexTest.java394 …private void checkBuckets(String localeString, String[] test, ULocale additionalLocale, String tes… in checkBuckets() argument
396 ULocale desiredLocale = new ULocale(localeString); in checkBuckets()
575 String localeString = list[i].toString(); in TestBasics() local
576 if (!KEY_LOCALES.contains(localeString)) continue; // TODO change in exhaustive in TestBasics()
577 ULocale locale = new ULocale(localeString + collationValue); in TestBasics()
610 for (String localeString : new String[] {"zh"}) { // KEY_LOCALES, new String[] {"zh"} in TestClientSupport()
611 ULocale ulocale = new ULocale(localeString); in TestClientSupport()
616 if (!localeString.equals("zh") ) { in TestClientSupport()
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateSeedDurations.java52 String localeString = locale + "\t" + testInfo.getEnglish().getName(locale); in main() local
53 System.out.println("\n" + localeString); in main()
62 warnings.add(localeString + "\t" + patternString + "\t ***No 'H'"); in main()
69 warnings.add(localeString + "\t" + patternString + "\t ***No ':'"); in main()
DFixDelimiters.java109 static Matcher localeString = PatternCache.get(".*\\((.*)\\)").matcher(""); field in FixDelimiters.Data
122 if (!localeString.reset(locale).matches()) {
125 String localeCode = localeString.group(1);
/external/cldr/tools/java/org/unicode/cldr/test/
DSubmissionLocales.java84 …public static boolean allowEvenIfLimited(String localeString, String path, boolean isError, boolea… in allowEvenIfLimited() argument
88 if (SubmissionLocales.NEW_CLDR_LOCALES.contains(localeString) || isError) { in allowEvenIfLimited()
96 if (!SubmissionLocales.CLDR_LOCALES.contains(localeString)) { in allowEvenIfLimited()
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/
DKeyboardId.java57 String localeString = keyboardLocale.substring(0, tExtensionLocation); in fromString() local
58 ULocale locale = ULocale.forLanguageTag(localeString); in fromString()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
DICUDurationTest.java279 final String localeString; in TestXMLDuration() field in ICUDurationTest.TestCase
286 localeString = loc; in TestXMLDuration()
313 String loc = tc.localeString; in TestXMLDuration()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DICUDurationTest.java276 final String localeString; in TestXMLDuration() field in ICUDurationTest.TestCase
283 localeString = loc; in TestXMLDuration()
310 String loc = tc.localeString; in TestXMLDuration()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/search/
DSearchTest.java2138 private String localeString; in TestUsingSearchCollator() field in SearchTest.TUSCItem
2142 localeString = locStr; in TestUsingSearchCollator()
2146 public String getLocaleString() { return localeString; } in TestUsingSearchCollator()
2159 String localeString = tuscItem.getLocaleString(); in TestUsingSearchCollator() local
2160 ULocale uloc = new ULocale(localeString); in TestUsingSearchCollator()
2165 errln("Error: in locale " + localeString + ", err in Collator.getInstance"); in TestUsingSearchCollator()
2185 …errln("Error: in locale " + localeString + ", expected SearchIterator.next() " + offsets[ioff] + "… in TestUsingSearchCollator()
2191 …errln("Error: in locale " + localeString + ", SearchIterator.next() returned more matches than exp… in TestUsingSearchCollator()
2195 …errln("Error: in locale " + localeString + ", SearchIterator.next() returned fewer matches than ex… in TestUsingSearchCollator()
2208 …errln("Error: in locale " + localeString + ", expected SearchIterator.previous() " + offsets[ioff]… in TestUsingSearchCollator()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/search/
DSearchTest.java2141 private String localeString; in TestUsingSearchCollator() field in SearchTest.TUSCItem
2145 localeString = locStr; in TestUsingSearchCollator()
2149 public String getLocaleString() { return localeString; } in TestUsingSearchCollator()
2162 String localeString = tuscItem.getLocaleString(); in TestUsingSearchCollator() local
2163 ULocale uloc = new ULocale(localeString); in TestUsingSearchCollator()
2168 errln("Error: in locale " + localeString + ", err in Collator.getInstance"); in TestUsingSearchCollator()
2188 …errln("Error: in locale " + localeString + ", expected SearchIterator.next() " + offsets[ioff] + "… in TestUsingSearchCollator()
2194 …errln("Error: in locale " + localeString + ", SearchIterator.next() returned more matches than exp… in TestUsingSearchCollator()
2198 …errln("Error: in locale " + localeString + ", SearchIterator.next() returned fewer matches than ex… in TestUsingSearchCollator()
2211 …errln("Error: in locale " + localeString + ", expected SearchIterator.previous() " + offsets[ioff]… in TestUsingSearchCollator()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcnumtst.c2597 const char* localeString = DATA[i][0]; in TestCurrencyIsoPluralFormat() local
2608 UNumberFormat* unumFmt = unum_open(style, NULL, 0, localeString, NULL, &status); in TestCurrencyIsoPluralFormat()
2610 …log_data_err("FAIL: unum_open, locale %s, style %d - %s\n", localeString, (int)style, myErrorName(… in TestCurrencyIsoPluralFormat()
2616 …log_err("FAIL: unum_setTextAttribute, locale %s, UNUM_CURRENCY_CODE %s\n", localeString, currencyI… in TestCurrencyIsoPluralFormat()
2620 …r("FAIL: unum_formatDouble, locale %s, UNUM_CURRENCY_CODE %s - %s\n", localeString, currencyISOCod… in TestCurrencyIsoPluralFormat()
2625 localeString, currencyISOCode, DATA[i][3 + sIndex]); in TestCurrencyIsoPluralFormat()
2724 const char* localeString = "en_US"; in TestCurrencyUsage() local
2735 unumFmt = unum_open(style, NULL, 0, localeString, NULL, &status); in TestCurrencyUsage()
2738 localeString, (int)style, myErrorName(status)); in TestCurrencyUsage()
Dcdattst.c1631 const char* localeString = "zh@numbers=hanidays"; in TestOverrideNumberFormat() local
1648 overrideFmt = unum_open(UNUM_DEFAULT, NULL, 0, localeString, NULL, &status); in TestOverrideNumberFormat()
1662 overrideFmt = unum_open(UNUM_DEFAULT, NULL, 0, localeString, NULL, &status); in TestOverrideNumberFormat()
1680 overrideFmt2 = unum_open(UNUM_DEFAULT, NULL, 0, localeString, NULL, &status); in TestOverrideNumberFormat()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestCheckCLDR.java127 String localeString = "en"; in TestTestCache() local
128 CLDRLocale locale = CLDRLocale.getInstance(localeString); in TestTestCache()
133 final CLDRFile cldrFile = testInfo.getCLDRFile(localeString, true); in TestTestCache()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatTest.java796 String localeString = DATA[i][0]; in TestCurrencyIsoPluralFormat() local
799 ULocale locale = new ULocale(localeString); in TestCurrencyIsoPluralFormat()
811 …errln("FAIL: localeID: " + localeString + ", expected(" + formatResult.length() + "): \"" + format… in TestCurrencyIsoPluralFormat()
824 …errln("FAIL: getCurrencyFormat of locale " + localeString + " failed roundtripping the number. val… in TestCurrencyIsoPluralFormat()
879 private final String localeString; in TestParseCurrency() field in NumberFormatTest.ParseCurrencyItem
889 localeString = locStr; in TestParseCurrency()
898 public String getLocaleString() { return localeString; } in TestParseCurrency()
933 String localeString = item.getLocaleString(); in TestParseCurrency() local
934 ULocale uloc = new ULocale(localeString); in TestParseCurrency()
939 errln("NumberFormat.getCurrencyInstance fails for locale " + localeString); in TestParseCurrency()
[all …]
DPluralRulesTest.java1086 for (String localeString : parts[0].split("\\s*,\\s*")) {
1087 ULocale locale = new ULocale(localeString);
1093 checkCategoriesAndExpected(localeString, parts[i], rules);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatTest.java799 String localeString = DATA[i][0]; in TestCurrencyIsoPluralFormat() local
802 ULocale locale = new ULocale(localeString); in TestCurrencyIsoPluralFormat()
814 …errln("FAIL: localeID: " + localeString + ", expected(" + formatResult.length() + "): \"" + format… in TestCurrencyIsoPluralFormat()
827 …errln("FAIL: getCurrencyFormat of locale " + localeString + " failed roundtripping the number. val… in TestCurrencyIsoPluralFormat()
882 private final String localeString; in TestParseCurrency() field in NumberFormatTest.ParseCurrencyItem
892 localeString = locStr; in TestParseCurrency()
901 public String getLocaleString() { return localeString; } in TestParseCurrency()
936 String localeString = item.getLocaleString(); in TestParseCurrency() local
937 ULocale uloc = new ULocale(localeString); in TestParseCurrency()
942 errln("NumberFormat.getCurrencyInstance fails for locale " + localeString); in TestParseCurrency()
[all …]
DPluralRulesTest.java1089 for (String localeString : parts[0].split("\\s*,\\s*")) {
1090 ULocale locale = new ULocale(localeString);
1096 checkCategoriesAndExpected(localeString, parts[i], rules);
/external/icu/icu4c/source/test/intltest/
Dnumfmtst.cpp3858 const char* localeString = DATA[i][0]; in TestCurrencyIsoPluralFormat() local
3861 logln(UnicodeString(u"Locale: ") + localeString + "; amount: " + numberToBeFormat); in TestCurrencyIsoPluralFormat()
3862 Locale locale(localeString); in TestCurrencyIsoPluralFormat()
3870 …dataerrln((UnicodeString)"can not create instance, locale:" + localeString + ", style: " + k + " -… in TestCurrencyIsoPluralFormat()
3911 localeString + " failed roundtripping the number"); in TestCurrencyIsoPluralFormat()
3973 const char* localeString = DATA[i][0]; in TestCurrencyParsing() local
3976 Locale locale(localeString); in TestCurrencyParsing()
3980 i, localeString, currencyStyleNames[kIndex], in TestCurrencyParsing()
3985 …dataerrln((UnicodeString)"can not create instance, locale:" + localeString + ", style: " + k + " -… in TestCurrencyParsing()
4026 … errln((UnicodeString)"FAIL: NumberFormat(" + localeString +", " + currencyStyleNames[kIndex] + in TestCurrencyParsing()