/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()
|
D | CurrencyTest.java | 52 Locales locales = Locales.getAndSetDefaultForTest(Locale.US, Locale.GERMANY, Locale.FRANCE); in test_getSymbol_noLocaleArgument() local 57 locales.setAsDefault(); in test_getSymbol_noLocaleArgument() 114 Locales locales = Locales.getAndSetDefaultForTest(Locale.US, Locale.GERMANY, Locale.FRANCE); in test_getDisplayName_noLocaleArgument() local 118 locales.setAsDefault(); in test_getDisplayName_noLocaleArgument() 199 Locale[] locales = Locale.getAvailableLocales(); in test_currencyCodeIcuConsistency() local 200 for (Locale l : locales) { in test_currencyCodeIcuConsistency()
|
D | LocaleTest.java | 998 List<Locale> locales = localesOf(tags); in test_filter_nullArguments() local 1001 assertThrowsNpe(() -> { Locale.filter(null, locales); }); in test_filter_nullArguments() 1010 List<Locale> filteredLocales = Locale.filter(languageRanges, locales, null); in test_filter_nullArguments() 1038 List<Locale> locales = localesOf("de-DE", "de-Latn-DE", "ja-JP"); in test_filter_resultIsModifiable_locales() local 1042 Locale.filter(priorityList, locales).add(fake); in test_filter_resultIsModifiable_locales() 1043 Locale.filter(priorityList, locales, AUTOSELECT_FILTERING).add(fake); in test_filter_resultIsModifiable_locales() 1044 Locale.filter(priorityList, locales, EXTENDED_FILTERING).add(fake); in test_filter_resultIsModifiable_locales() 1045 Locale.filter(priorityList, locales, IGNORE_EXTENDED_RANGES).add(fake); in test_filter_resultIsModifiable_locales() 1046 Locale.filter(priorityList, locales, MAP_EXTENDED_RANGES).add(fake); in test_filter_resultIsModifiable_locales() 1047 Locale.filter(languageRangesOf("de-DE"), locales, REJECT_EXTENDED_RANGES).add(fake); in test_filter_resultIsModifiable_locales() [all …]
|
/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/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDecimalStyle.java | 79 Set<Locale> locales = DecimalStyle.getAvailableLocales(); in test_getAvailableLocales() local 80 assertEquals(locales.size() > 0, true, "locales: " + locales); in test_getAvailableLocales() local 81 assertEquals(locales.contains(Locale.US), true, "Locale.US not found in available Locales"); in test_getAvailableLocales()
|
/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 | 222 ArrayList<Locale> locales = new ArrayList<Locale>(); in test_getSymbolLjava_util_Locale() local 225 locales.add(desiredLocale); in test_getSymbolLjava_util_Locale() 229 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/ojluni/src/main/java/java/time/format/ |
D | DecimalStyle.java | 124 Set<Locale> locales = new HashSet<>(l.length); in getAvailableLocales() local 125 Collections.addAll(locales, l); in getAvailableLocales() 126 return locales; in getAvailableLocales()
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleMatcher.java | 49 Collection<Locale> locales, in filter() argument 51 if (priorityList.isEmpty() || locales.isEmpty()) { in filter() 57 for (Locale locale : locales) { in filter() 181 Collection<Locale> locales) { in lookup() argument 182 if (priorityList.isEmpty() || locales.isEmpty()) { in lookup() 188 for (Locale locale : locales) { in lookup()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneTextPrinterParser.java | 73 Locale[] locales = Locale.getAvailableLocales(); in test_printText() local 83 for (Locale locale : locales) { in test_printText() 134 Locale[] locales = new Locale[] { Locale.ENGLISH, Locale.JAPANESE, Locale.FRENCH }; in test_ParseText() local 136 for (Locale locale : locales) { in test_ParseText()
|
/libcore/ojluni/annotations/mmodule/java/util/ |
D | Locale.annotated.java | 136 …cale.LanguageRange> priorityList, java.util.Collection<java.util.Locale> locales, java.util.Locale… in filter() argument 138 …cale.LanguageRange> priorityList, java.util.Collection<java.util.Locale> locales) { throw new Runt… in filter() argument 144 …cale.LanguageRange> priorityList, java.util.Collection<java.util.Locale> locales) { throw new Runt… in lookup() argument
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 87 Locale[] locales = new Locale[] { in test() local 119 for (Locale locale : locales) { in test()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Locale.java | 3660 Collection<Locale> locales, in filter() argument 3662 return LocaleMatcher.filter(priorityList, locales, mode); in filter() 3683 Collection<Locale> locales) { in filter() argument 3684 return filter(priorityList, locales, FilteringMode.AUTOSELECT_FILTERING); in filter() 3749 Collection<Locale> locales) { in lookup() argument 3750 return LocaleMatcher.lookup(priorityList, locales); in lookup()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Locale.annotated.java | 131 …til.NonNull java.util.Collection<java.util.@libcore.util.NonNull Locale> locales, @libcore.util.No… in filter() argument 133 …til.NonNull java.util.Collection<java.util.@libcore.util.NonNull Locale> locales) { throw new Runt… in filter() argument 139 …til.NonNull java.util.Collection<java.util.@libcore.util.NonNull Locale> locales) { throw new Runt… in lookup() argument
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Locale.java | 331 java.util.Collection<java.util.Locale> locales, in filter() argument 338 java.util.Collection<java.util.Locale> locales) { in filter() argument 357 java.util.Collection<java.util.Locale> locales) { in lookup() argument
|
/libcore/expectations/ |
D | knownfailures.txt | 63 description: "ICU seems to treat unknown and invalid locales differently",
|
/libcore/ojluni/ |
D | NOTICE | 113 http://oss.software.ibm.com/cvs/icu/icu/source/data/locales/vi.txt?rev=1.38
|