/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleMatcher.java | 46 public static List<Locale> filter(List<LanguageRange> priorityList, in filter() argument 49 if (priorityList.isEmpty() || locales.isEmpty()) { in filter() 60 List<String> filteredTags = filterTags(priorityList, tags, mode); in filter() 71 public static List<String> filterTags(List<LanguageRange> priorityList, in filterTags() argument 74 if (priorityList.isEmpty() || tags.isEmpty()) { in filterTags() 80 return filterExtended(priorityList, tags); in filterTags() 83 for (LanguageRange lr : priorityList) { in filterTags() 88 return filterExtended(priorityList, tags); in filterTags() 110 private static List<String> filterBasic(List<LanguageRange> priorityList, in filterBasic() argument 112 int splitIndex = splitRanges(priorityList); in filterBasic() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Locale.java | 3779 List<LanguageRange>priorityList, in mapEquivalents() argument 3781 return LocaleMatcher.mapEquivalents(priorityList, map); in mapEquivalents() 3860 public static List<Locale> filter(List<LanguageRange> priorityList, in filter() argument 3863 return LocaleMatcher.filter(priorityList, locales, mode); in filter() 3886 public static List<Locale> filter(List<LanguageRange> priorityList, in filter() argument 3888 return filter(priorityList, locales, FilteringMode.AUTOSELECT_FILTERING); in filter() 3921 public static List<String> filterTags(List<LanguageRange> priorityList, in filterTags() argument 3924 return LocaleMatcher.filterTags(priorityList, tags, mode); in filterTags() 3955 public static List<String> filterTags(List<LanguageRange> priorityList, in filterTags() argument 3957 return filterTags(priorityList, tags, FilteringMode.AUTOSELECT_FILTERING); in filterTags() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | LocaleTest.java | 849 List<LanguageRange> priorityList = languageRangesOf("de-DE", "de-*-DE"); in test_filter_extended() local 872 assertFilter(filteredTags, priorityList, tags, EXTENDED_FILTERING); in test_filter_extended() 876 assertFilter(filteredTags, priorityList, tags); in test_filter_extended() 877 assertFilter(filteredTags, priorityList, tags, AUTOSELECT_FILTERING); in test_filter_extended() 880 assertFilter(tagsOf("de-DE", "de-DE-x-goethe"), priorityList, tags, IGNORE_EXTENDED_RANGES); in test_filter_extended() 975 List<LanguageRange> priorityList = languageRangesOf("zh-Hant-TW", "en-US"); in test_filter_priorityOrder() local 992 List<LanguageRange> priorityList = languageRangesOf("de-DE", "de-*-DE"); 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() [all …]
|
D | LocaleLanguageRangeTest.java | 221 List<LanguageRange> priorityList = Collections.unmodifiableList(Arrays.asList( in testMapEquivalents_nullMap() local 225 assertEquals(priorityList, LanguageRange.mapEquivalents(priorityList, null)); in testMapEquivalents_nullMap()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Locale.annotated.java | 133 … java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> priorityList, @libcore.util.… in filter() argument 135 … java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> priorityList, @libcore.util.… in filter() argument 137 … java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> priorityList, @libcore.util.… in filterTags() argument 139 … java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> priorityList, @libcore.util.… in filterTags() argument 141 … java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> priorityList, @libcore.util.… in lookup() argument 143 … java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> priorityList, @libcore.util.… in lookupTag() argument 277 … java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> priorityList, @libcore.util.… in mapEquivalents() argument
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Locale.java | 330 java.util.List<java.util.Locale.LanguageRange> priorityList, in filter() argument 337 java.util.List<java.util.Locale.LanguageRange> priorityList, in filter() argument 343 java.util.List<java.util.Locale.LanguageRange> priorityList, in filterTags() argument 350 java.util.List<java.util.Locale.LanguageRange> priorityList, in filterTags() argument 356 java.util.List<java.util.Locale.LanguageRange> priorityList, in lookup() argument 362 java.util.List<java.util.Locale.LanguageRange> priorityList, in lookupTag() argument 698 java.util.List<java.util.Locale.LanguageRange> priorityList, in mapEquivalents() argument
|