Searched refs:locales (Results 1 – 12 of 12) sorted by relevance
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldAndroidLocaleTest.java | 80 Locale[] locales = new Locale[] { in testICULocales() local 96 for (int i = 0; i < locales.length; i++) { in testICULocales() 97 final Locale l = locales[i]; in testICULocales() 100 assertEquals("Monday name for " + locales[i] + " must match", in testICULocales() 104 assertEquals("Currency code for " + locales[i] + " must match", in testICULocales()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | BreakIteratorTest.java | 33 Locale[] locales = BreakIterator.getAvailableLocales(); in testGetAvailableLocales() local 34 assertTrue("Array available locales is null", locales != null); in testGetAvailableLocales() 36 (locales != null && locales.length != 0)); in testGetAvailableLocales() 38 for (Locale l : locales) { in testGetAvailableLocales()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollatorTest.java | 160 Locale[] locales = Collator.getAvailableLocales(); in failing_test_getAvailableLocales() local 161 assertTrue("No locales", locales.length > 0); in failing_test_getAvailableLocales() 163 for (int i = locales.length; --i >= 0;) { in failing_test_getAvailableLocales() 164 if (locales[i].equals(Locale.ENGLISH)) in failing_test_getAvailableLocales() 166 if (locales[i].equals(Locale.GERMAN)) in failing_test_getAvailableLocales() 169 Collator c1 = Collator.getInstance(locales[i]); in failing_test_getAvailableLocales()
|
D | DateFormatTest.java | 45 Locale[] locales = DateFormat.getAvailableLocales(); in test_getAvailableLocales() local 46 assertTrue("No locales", locales.length > 0); in test_getAvailableLocales() 48 for (int i = locales.length; --i >= 0;) { in test_getAvailableLocales() 49 if (locales[i].equals(Locale.ENGLISH)) in test_getAvailableLocales() 51 if (locales[i].equals(Locale.GERMAN)) in test_getAvailableLocales() 54 DateFormat.SHORT, locales[i]); in test_getAvailableLocales()
|
D | DecimalFormatSymbolsTest.java | 65 Locale[] locales = DecimalFormatSymbols.getAvailableLocales(); in test_getAvailableLocales_no_provider() local 66 assertNotNull(locales); in test_getAvailableLocales_no_provider() 69 for (Locale locale : locales) { in test_getAvailableLocales_no_provider()
|
D | DateFormatSymbolsTest.java | 52 Locale[] locales = DateFormatSymbols.getAvailableLocales(); in test_getAvailableLocales_no_provider() local 53 assertNotNull(locales); in test_getAvailableLocales_no_provider() 56 for (Locale locale : locales) { in test_getAvailableLocales_no_provider()
|
D | BreakIteratorTest.java | 166 Locale[] locales = BreakIterator.getAvailableLocales(); in testGetAvailableLocales() local 167 assertTrue(locales.length > 0); in testGetAvailableLocales()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | LocaleTest.java | 133 Locale[] locales = Locale.getAvailableLocales(); in test_getAvailableLocales() local 134 assertTrue("Wrong number of locales: " + locales.length, locales.length > 10); in test_getAvailableLocales() 137 Set<Locale> localesSet = new HashSet<Locale>(Arrays.asList(locales)); in test_getAvailableLocales() 138 assertEquals(localesSet.size(), locales.length); in test_getAvailableLocales()
|
D | CurrencyTest.java | 210 ArrayList<Locale> locales = new ArrayList<Locale>(); in test_getSymbolLjava_util_Locale() local 213 locales.add(desiredLocale); in test_getSymbolLjava_util_Locale() 217 Locale[] loc1 = locales.toArray(new Locale[locales.size()]); in test_getSymbolLjava_util_Locale()
|
D | CalendarTest.java | 480 private static final Locale[] locales = new Locale[] { Locale.getDefault(), field in CalendarTest 638 Locale[] locales = Calendar.getAvailableLocales(); in test_getAvailableLocales() local 640 for (int i = 0; i < locales.length; i++) { in test_getAvailableLocales() 641 Locale l = locales[i]; in test_getAvailableLocales() 797 for (Locale locale : locales) { in test_getDisplayNameIILjava_util_Locale() 909 for (Locale locale : locales) { in test_getDisplayNameIILjava_util_Locale() 955 for (Locale locale : locales) { in test_getDisplayNamesIILjava_util_Locale()
|
/libcore/luni/src/main/java/java/util/ |
D | ResourceBundle.java | 334 List<Locale> locales = control.getCandidateLocales(baseName, targetLocale); in processGetBundle() local 335 if (locales == null) { in processGetBundle() 347 for (Locale locale : locales) { in processGetBundle() 389 || (Locale.ROOT.equals(ret.getLocale()) && (!(locales.size() == 1 && locales in processGetBundle()
|
/libcore/expectations/ |
D | knownfailures.txt | 26 description: "ICU seems to treat unknown and invalid locales differently",
|