/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
LocaleTest.java | 28 Locale testLocale; 87 assertTrue("Same object returned false", testLocale.equals(testLocale)); 88 assertTrue("Same values returned false", testLocale.equals(l2)); 89 assertTrue("Different locales returned true", !testLocale.equals(l)); 114 assertTrue("Returned incorrect country: " + testLocale.getCountry(), 115 testLocale.getCountry().equals("CA")); 137 + testLocale.getDisplayCountry(), testLocale 164 + testLocale.getDisplayLanguage(), testLocal [all...] |
ControlTest.java | 361 Locale testLocale = new Locale("TestLanguage", "TestCountry", "Var"); 362 Locale.setDefault(testLocale); 363 assertSame(testLocale, control.getFallbackLocale("baseName", 365 assertSame(testLocale, control.getFallbackLocale("baseName", Locale.US)); 366 assertSame(null, control.getFallbackLocale("baseName", testLocale)); [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
LocaleTest.java | 33 Locale testLocale; 122 assertTrue("Same object returned false", testLocale.equals(testLocale)); 123 assertTrue("Same values returned false", testLocale.equals(l2)); 124 assertTrue("Different locales returned true", !testLocale.equals(l)); 155 assertTrue("Returned incorrect country: " + testLocale.getCountry(), 156 testLocale.getCountry().equals("CA")); 179 + testLocale.getDisplayCountry(), testLocale 206 + testLocale.getDisplayLanguage(), testLocal [all...] |
/external/icu4c/test/intltest/ |
tsnmfmt.h | 30 * call tryIt with many variations, called by testLocale 46 * call testLocale for all locales 52 void testLocale(/* char *par, */const Locale& locale, const UnicodeString& localeName);
|
tsdate.h | 31 * call testLocale for all locales 36 * call tryDate with variations, called by testLocale 46 void testLocale(/*char *par, */const Locale&, const UnicodeString&);
|
winnmtst.cpp | 229 static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UBool currency, TestLog *log) 298 testLocale(lcidRecords[i].localeID, lcidRecords[i].lcid, wnf, FALSE, log); 299 testLocale(lcidRecords[i].localeID, lcidRecords[i].lcid, wcf, TRUE, log); 306 testLocale(lcidRecords[i].localeID, lcidRecords[i].lcid, wnf, FALSE, log); 307 testLocale(lcidRecords[i].localeID, lcidRecords[i].lcid, wcf, TRUE, log);
|
icusvtst.h | 33 void testLocale(void);
|
dtifmtts.cpp | [all...] |
dtptngts.cpp | 62 const char* testLocale[MAX_LOCALE][4] = { 566 Locale loc(testLocale[localeIndex][0], testLocale[localeIndex][1], testLocale[localeIndex][2], testLocale[localeIndex][3]); 567 logln("\n\n Locale: %s_%s_%s@%s", testLocale[localeIndex][0], testLocale[localeIndex][1], testLocale[localeIndex][2], testLocale[localeIndex][3]); [all...] |
loctest.cpp | 243 Locale testLocale(""); 245 testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i], rawData[VAR][i]); 248 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i], rawData[VAR][i]); 250 logln("Testing " + (UnicodeString)testLocale.getName() + "..."); 252 if ( (temp=testLocale.getLanguage()) != (dataTable[LANG][i])) 255 if ( (temp=testLocale.getScript()) != (dataTable[SCRIPT][i])) 258 if ( (temp=testLocale.getCountry()) != (dataTable[CTRY][i])) 261 if ( (temp=testLocale.getVariant()) != (dataTable[VAR][i])) 264 if ( (temp=testLocale.getName()) != (dataTable[NAME][i])) 271 Locale testLocale(""); [all...] |
tsdate.cpp | 44 testLocale(/*par, */Locale::getDefault(), "Default Locale"); 67 IntlTestDateFormat::testLocale(/*char* par, */const Locale& locale, const UnicodeString& localeName) 283 testLocale(/*par, */locales[i], name);
|
tsnmfmt.cpp | 53 if (exec) testLocale(/*par, */Locale::getDefault(), name); 75 IntlTestNumberFormat::testLocale(/* char* par, */const Locale& locale, const UnicodeString& localeName) 445 testLocale(/* par, */locales[i], name);
|
icusvtst.cpp | 147 TESTCASE(4,testLocale); 1036 void ICUServiceTest::testLocale() { [all...] |
rbbitst.cpp | [all...] |
/external/icu4c/test/cintltst/ |
cloctst.c | 255 char *testLocale = 0; 259 testLocale=(char*)malloc(sizeof(char) * (strlen(rawData2[NAME][i])+1)); 260 strcpy(testLocale,rawData2[NAME][i]); 262 log_verbose("Testing %s .....\n", testLocale); 263 cap=uloc_getLanguage(testLocale, NULL, 0, &status); 267 uloc_getLanguage(testLocale, temp, cap+1, &status); 277 cap=uloc_getCountry(testLocale, temp, cap, &status); 281 uloc_getCountry(testLocale, temp, cap+1, &status); 291 cap=uloc_getVariant(testLocale, temp, cap, &status); 295 uloc_getVariant(testLocale, temp, cap+1, &status) [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
OldAndroidLocaleTest.java | 36 public void testLocale() throws Exception {
|
/libcore/luni/src/test/java/libcore/java/text/ |
OldNumberFormatTest.java | 360 Locale testLocale = new Locale("de", "CH"); 362 if (Support_Locale.isLocaleAvailable(testLocale)) { 363 NumberFormat format = NumberFormat.getInstance(testLocale); [all...] |