Home
last modified time | relevance | path

Searched refs:testLocale (Results 1 – 22 of 22) sorted by relevance

/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestCollationStringByteConverter.java156 private static void check2(ULocale testLocale) { in check2() argument
191 LenientDateParser ldp = LenientDateParser.getInstance(testLocale); in check2()
223 testLocale); in check2()
227 testLocale); in check2()
232 .getDateTimeInstance(style, style, testLocale); in check2()
237 testLocale)).toPattern() in check2()
240 testLocale); in check2()
/external/icu/icu4c/source/test/intltest/
Dloctest.cpp264 Locale testLocale(""); in TestBasicGetters() local
266testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i], rawData[VAR][i]); in TestBasicGetters()
269 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i], rawData[VAR][i]); in TestBasicGetters()
271 logln("Testing " + (UnicodeString)testLocale.getName() + "..."); in TestBasicGetters()
273 if ( (temp=testLocale.getLanguage()) != (dataTable[LANG][i])) in TestBasicGetters()
276 if ( (temp=testLocale.getScript()) != (dataTable[SCRIPT][i])) in TestBasicGetters()
279 if ( (temp=testLocale.getCountry()) != (dataTable[CTRY][i])) in TestBasicGetters()
282 if ( (temp=testLocale.getVariant()) != (dataTable[VAR][i])) in TestBasicGetters()
285 if ( (temp=testLocale.getName()) != (dataTable[NAME][i])) in TestBasicGetters()
292 Locale testLocale(""); in TestBasicGetters() local
[all …]
Dwinnmtst.cpp234 static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UBool currency, TestL… in testLocale() function
318 testLocale(lcidRecords[i].localeID, lcidRecords[i].lcid, wnf, FALSE, log); in testLocales()
319 testLocale(lcidRecords[i].localeID, lcidRecords[i].lcid, wcf, TRUE, log); in testLocales()
326 testLocale(lcidRecords[i].localeID, lcidRecords[i].lcid, wnf, FALSE, log); in testLocales()
327 testLocale(lcidRecords[i].localeID, lcidRecords[i].lcid, wcf, TRUE, log); in testLocales()
Ddtptngts.cpp73 const char* testLocale[MAX_LOCALE][4] = { in testAPI() local
637 …Locale loc(testLocale[localeIndex][0], testLocale[localeIndex][1], testLocale[localeIndex][2], tes… in testAPI()
638 …("\n\n Locale: %s_%s_%s@%s", testLocale[localeIndex][0], testLocale[localeIndex][1], testLocale[lo… in testAPI()
Ddtifmtts.cpp1318 const char* testLocale[][3] = { in testStress() local
1361 for ( localeIndex = 0; localeIndex < UPRV_LENGTHOF(testLocale); ++localeIndex ) { in testStress()
1363 uprv_strcpy(locName, testLocale[localeIndex][0]); in testStress()
1364 uprv_strcat(locName, testLocale[localeIndex][1]); in testStress()
1365 …stress(DATA, UPRV_LENGTHOF(DATA), Locale(testLocale[localeIndex][0], testLocale[localeIndex][1], t… in testStress()
Dtsdate.cpp47 testLocale(/*par, */Locale::getDefault(), "Default Locale"); in runIndexedTest()
70 IntlTestDateFormat::testLocale(/*char* par, */const Locale& locale, const UnicodeString& localeName) in testLocale() function in IntlTestDateFormat
286 testLocale(/*par, */locales[i], name); in monsterTest()
Dtsnmfmt.cpp55 if (exec) testLocale(/*par, */Locale::getDefault(), name); in runIndexedTest()
77 IntlTestNumberFormat::testLocale(/* char* par, */const Locale& locale, const UnicodeString& localeN… in testLocale() function in IntlTestNumberFormat
447 testLocale(/* par, */locales[i], name); in monsterTest()
Dtsnmfmt.h54 void testLocale(/* char *par, */const Locale& locale, const UnicodeString& localeName);
Dtsdate.h48 void testLocale(/*char *par, */const Locale&, const UnicodeString&);
Dicusvtst.h35 void testLocale(void);
Dicusvtst.cpp150 TESTCASE(4,testLocale); in runIndexedTest()
1038 void ICUServiceTest::testLocale() { in testLocale() function in ICUServiceTest
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DDataDrivenUScriptTest.java119 private Locale testLocale; field in DataDrivenUScriptTest.TestMultipleUScript
122 public TestMultipleUScript(String testLocaleName, int[] expected, Locale testLocale) { in TestMultipleUScript() argument
124 this.testLocale = testLocale; in TestMultipleUScript()
152 logln(" Testing UScript.getCode(Locale) with locale: " + testLocale.getDisplayName()); in TestMultipleCodes()
153 code = UScript.getCode(testLocale); in TestMultipleCodes()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DDataDrivenUScriptTest.java122 private Locale testLocale; field in DataDrivenUScriptTest.TestMultipleUScript
125 public TestMultipleUScript(String testLocaleName, int[] expected, Locale testLocale) { in TestMultipleUScript() argument
127 this.testLocale = testLocale; in TestMultipleUScript()
155 logln(" Testing UScript.getCode(Locale) with locale: " + testLocale.getDisplayName()); in TestMultipleCodes()
156 code = UScript.getCode(testLocale); in TestMultipleCodes()
/external/icu/icu4c/source/test/cintltst/
Dcloctst.c275 char *testLocale = 0; in TestBasicGetters() local
279 testLocale=(char*)malloc(sizeof(char) * (strlen(rawData2[NAME][i])+1)); in TestBasicGetters()
280 strcpy(testLocale,rawData2[NAME][i]); in TestBasicGetters()
282 log_verbose("Testing %s .....\n", testLocale); in TestBasicGetters()
283 cap=uloc_getLanguage(testLocale, NULL, 0, &status); in TestBasicGetters()
287 uloc_getLanguage(testLocale, temp, cap+1, &status); in TestBasicGetters()
297 cap=uloc_getCountry(testLocale, temp, cap, &status); in TestBasicGetters()
301 uloc_getCountry(testLocale, temp, cap+1, &status); in TestBasicGetters()
311 cap=uloc_getVariant(testLocale, temp, cap, &status); in TestBasicGetters()
315 uloc_getVariant(testLocale, temp, cap+1, &status); in TestBasicGetters()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DULocaleTest.java633 String testLocale=(rawData2[NAME][i]); in TestBasicGetters() local
634 logln("Testing "+ testLocale+".....\n"); in TestBasicGetters()
636 String lang =ULocale.getLanguage(testLocale); in TestBasicGetters()
641 String ctry=ULocale.getCountry(testLocale); in TestBasicGetters()
646 String var=ULocale.getVariant(testLocale); in TestBasicGetters()
651 String name = ULocale.getName(testLocale); in TestBasicGetters()
1268 String testLocale=(rawData2[NAME][i]); in TestCoverage() local
1270 logln("Testing "+ testLocale+"....."); in TestCoverage()
1271 name = ULocale.getDisplayName(localeID, testLocale); in TestCoverage()
1272 language = ULocale.getDisplayLanguage(localeID, testLocale); in TestCoverage()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DULocaleTest.java630 String testLocale=(rawData2[NAME][i]); in TestBasicGetters() local
631 logln("Testing "+ testLocale+".....\n"); in TestBasicGetters()
633 String lang =ULocale.getLanguage(testLocale); in TestBasicGetters()
638 String ctry=ULocale.getCountry(testLocale); in TestBasicGetters()
643 String var=ULocale.getVariant(testLocale); in TestBasicGetters()
648 String name = ULocale.getName(testLocale); in TestBasicGetters()
1265 String testLocale=(rawData2[NAME][i]); in TestCoverage() local
1267 logln("Testing "+ testLocale+"....."); in TestCoverage()
1268 name = ULocale.getDisplayName(localeID, testLocale); in TestCoverage()
1269 language = ULocale.getDisplayLanguage(localeID, testLocale); in TestCoverage()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateIntervalFormatTest.java938 String[][] testLocale = { in TestStress() local
981 for ( localeIndex = 0; localeIndex < testLocale.length; ++localeIndex) { in TestStress()
982 stress(DATA, DATA.length, new Locale(testLocale[localeIndex][0], in TestStress()
983 testLocale[localeIndex][1], testLocale[localeIndex][2]), in TestStress()
984 testLocale[localeIndex][0]+testLocale[localeIndex][1]); in TestStress()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateIntervalFormatTest.java941 String[][] testLocale = { in TestStress() local
984 for ( localeIndex = 0; localeIndex < testLocale.length; ++localeIndex) { in TestStress()
985 stress(DATA, DATA.length, new Locale(testLocale[localeIndex][0], in TestStress()
986 testLocale[localeIndex][1], testLocale[localeIndex][2]), in TestStress()
987 testLocale[localeIndex][0]+testLocale[localeIndex][1]); in TestStress()
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/android/
DResTable_configTest.java13 public void testLocale() throws Exception { in testLocale() method in ResTable_configTest
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/internal/html/table/
DPercentageColumnTest.java111 public void testLocale() throws Exception { in testLocale() method in PercentageColumnTest
DBarColumnTest.java173 public void testLocale() throws Exception { in testLocale() method in BarColumnTest
DCounterColumnTest.java135 public void testLocale() throws Exception { in testLocale() method in CounterColumnTest