/libcore/ojluni/src/test/java/text/Format/DateFormat/ |
D | SimpleDateFormatPatternTest.java | 115 private static Locale[] locales = DateFormat.getAvailableLocales(); field in SimpleDateFormatPatternTest 121 Object[][] objArray = new Object[locales.length][]; in createAllLocales() 122 for (int i = 0; i < locales.length; i++) { in createAllLocales() 124 objArray[i][0] = locales[i]; in createAllLocales() 130 Object[][] objArray = new Object[locales.length * pattern.length][]; in createPatternObj() 132 for (int i = 0; i < locales.length; i++) { in createPatternObj() 136 objArray[k][1] = locales[i]; in createPatternObj()
|
/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 | 54 Locales locales = Locales.getAndSetDefaultForTest(Locale.US, Locale.GERMANY, Locale.FRANCE); in test_getSymbol_noLocaleArgument() local 59 locales.setAsDefault(); in test_getSymbol_noLocaleArgument() 116 Locales locales = Locales.getAndSetDefaultForTest(Locale.US, Locale.GERMANY, Locale.FRANCE); in test_getDisplayName_noLocaleArgument() local 120 locales.setAsDefault(); in test_getDisplayName_noLocaleArgument()
|
D | LocaleTest.java | 953 List<Locale> locales = localesOf(tags); in test_filter_nullArguments() local 956 assertThrowsNpe(() -> { Locale.filter(null, locales); }); in test_filter_nullArguments() 965 List<Locale> filteredLocales = Locale.filter(languageRanges, locales, null); in test_filter_nullArguments() 993 List<Locale> locales = localesOf("de-DE", "de-Latn-DE", "ja-JP"); in test_filter_resultIsModifiable_locales() local 997 Locale.filter(priorityList, locales).add(fake); in test_filter_resultIsModifiable_locales() 998 Locale.filter(priorityList, locales, AUTOSELECT_FILTERING).add(fake); in test_filter_resultIsModifiable_locales() 999 Locale.filter(priorityList, locales, EXTENDED_FILTERING).add(fake); in test_filter_resultIsModifiable_locales() 1000 Locale.filter(priorityList, locales, IGNORE_EXTENDED_RANGES).add(fake); in test_filter_resultIsModifiable_locales() 1001 Locale.filter(priorityList, locales, MAP_EXTENDED_RANGES).add(fake); in test_filter_resultIsModifiable_locales() 1002 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 | 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()
|
D | DateFormatTest.java | 52 Locale[] locales = DateFormat.getAvailableLocales(); in test_getAvailableLocales() local 53 assertTrue("No locales", locales.length > 0); in test_getAvailableLocales() 54 assertEquals(expectedLocales.size(), locales.length); in test_getAvailableLocales() 56 for (Locale locale : locales) { in test_getAvailableLocales()
|
/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/test/java/time/test/java/time/format/ |
D | TestZoneTextPrinterParser.java | 75 Locale[] locales = Locale.getAvailableLocales(); in test_printText() local 104 for (Locale locale : locales) { in test_printText() 169 Locale[] locales = new Locale[] { Locale.ENGLISH, Locale.JAPANESE, Locale.FRENCH }; in test_ParseText() local 171 for (Locale locale : locales) { in test_ParseText()
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleMatcher.java | 47 Collection<Locale> locales, in filter() argument 49 if (priorityList.isEmpty() || locales.isEmpty()) { in filter() 55 for (Locale locale : locales) { in filter() 357 Collection<Locale> locales) { in lookup() argument 358 if (priorityList.isEmpty() || locales.isEmpty()) { in lookup() 364 for (Locale locale : locales) { in lookup()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Locale.java | 3861 Collection<Locale> locales, in filter() argument 3863 return LocaleMatcher.filter(priorityList, locales, mode); in filter() 3887 Collection<Locale> locales) { in filter() argument 3888 return filter(priorityList, locales, FilteringMode.AUTOSELECT_FILTERING); in filter() 3975 Collection<Locale> locales) { in lookup() argument 3976 return LocaleMatcher.lookup(priorityList, locales); in lookup()
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 92 Locale[] locales = new Locale[] { in test() local 124 for (Locale locale : locales) { in test()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Locale.annotated.java | 133 …til.NonNull java.util.Collection<java.util.@libcore.util.NonNull Locale> locales, @libcore.util.No… in filter() argument 135 …til.NonNull java.util.Collection<java.util.@libcore.util.NonNull Locale> locales) { throw new Runt… in filter() argument 141 …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/ojluni/src/main/ |
D | NOTICE | 113 http://oss.software.ibm.com/cvs/icu/icu/source/data/locales/vi.txt?rev=1.38
|
/libcore/expectations/ |
D | knownfailures.txt | 63 description: "ICU seems to treat unknown and invalid locales differently",
|