/libcore/luni/src/test/java/libcore/java/util/ |
D | LocaleLanguageRangeTest.java | 19 import static java.util.Locale.LanguageRange.MAX_WEIGHT; 26 import java.util.Locale.LanguageRange; 41 assertEquals(0.0, LanguageRange.MIN_WEIGHT); in testWeight_constantValues() 46 assertEquals(MAX_WEIGHT, new LanguageRange("de-DE").getWeight()); in testConstructor_defaultsToMaxWeight() 51 new LanguageRange("de-DE", -0.00000001); in testConstructor_invalidWeight() 57 new LanguageRange("de-DE", 1.00000001); in testConstructor_invalidWeight() 62 new LanguageRange("de-DE", 0); in testConstructor_invalidWeight() 63 new LanguageRange("de-DE", 1); in testConstructor_invalidWeight() 68 new LanguageRange(null); in testConstructor_nullRange() 73 new LanguageRange(null, MAX_WEIGHT); in testConstructor_nullRange() [all …]
|
D | LocaleTest.java | 38 import java.util.Locale.LanguageRange; 843 List<LanguageRange> ranges = new ArrayList<>(); in test_filter_basic() 844 ranges.add(new LanguageRange("en-US")); in test_filter_basic() 858 ranges.add(new LanguageRange("zh-Hant-TW")); in test_filter_basic() 878 List<LanguageRange> priorityList = languageRangesOf("de-DE", "de-*-DE"); in test_filter_extended() 983 List<LanguageRange> languageRanges = languageRangesOf("en-*-US", "de-DE"); in test_filter_nullArguments() 1004 List<LanguageRange> priorityList = languageRangesOf("zh-Hant-TW", "en-US"); in test_filter_priorityOrder() 1021 List<LanguageRange> priorityList = languageRangesOf("de-DE", "de-*-DE"); in test_filter_resultIsModifiable_locales() 1035 List<LanguageRange> priorityList = languageRangesOf("de-DE", "de-*-DE"); in test_filter_resultIsModifiable_tags() 1295 List<LanguageRange> languageRanges = languageRangesOf( in test_lookup_noMatch() [all …]
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleMatcher.java | 38 import static java.util.Locale.LanguageRange.*; 48 public static List<Locale> filter(List<LanguageRange> priorityList, in filter() 73 public static List<String> filterTags(List<LanguageRange> priorityList, in filterTags() 80 ArrayList<LanguageRange> list; in filterTags() 85 for (LanguageRange lr : priorityList) { in filterTags() 97 list.add(new LanguageRange(range, lr.getWeight())); in filterTags() 112 private static List<String> filterBasic(List<LanguageRange> priorityList, in filterBasic() 115 for (LanguageRange lr : priorityList) { in filterBasic() 136 private static List<String> filterExtended(List<LanguageRange> priorityList, in filterExtended() 139 for (LanguageRange lr : priorityList) { in filterExtended() [all …]
|
/libcore/ojluni/annotations/mmodule/java/util/ |
D | Locale.annotated.java | 136 public static java.util.List<java.util.Locale> filter(java.util.List<java.util.Locale.LanguageRange… in filter() 138 public static java.util.List<java.util.Locale> filter(java.util.List<java.util.Locale.LanguageRange… in filter() 140 …til.List<java.lang.String> filterTags(java.util.List<java.util.Locale.LanguageRange> priorityList,… in filterTags() 142 …til.List<java.lang.String> filterTags(java.util.List<java.util.Locale.LanguageRange> priorityList,… in filterTags() 144 public static java.util.Locale lookup(java.util.List<java.util.Locale.LanguageRange> priorityList, … in lookup() 146 public static java.lang.String lookupTag(java.util.List<java.util.Locale.LanguageRange> priorityLis… in lookupTag() 265 public static final class LanguageRange { class in Locale 267 public LanguageRange(java.lang.String range) { throw new RuntimeException("Stub!"); } in LanguageRange() method in Locale.LanguageRange 269 public LanguageRange(java.lang.String range, double weight) { throw new RuntimeException("Stub!"); } in LanguageRange() method in Locale.LanguageRange 275 public static java.util.List<java.util.Locale.LanguageRange> parse(java.lang.String ranges) { throw… in parse() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Locale.java | 330 java.util.List<java.util.Locale.LanguageRange> priorityList, in filter() 337 java.util.List<java.util.Locale.LanguageRange> priorityList, in filter() 343 java.util.List<java.util.Locale.LanguageRange> priorityList, in filterTags() 350 java.util.List<java.util.Locale.LanguageRange> priorityList, in filterTags() 356 java.util.List<java.util.Locale.LanguageRange> priorityList, in lookup() 362 java.util.List<java.util.Locale.LanguageRange> priorityList, in lookupTag() 664 public static final class LanguageRange { class in Locale 666 public LanguageRange(java.lang.String range) { in LanguageRange() method in Locale.LanguageRange 670 public LanguageRange(java.lang.String range, double weight) { in LanguageRange() method in Locale.LanguageRange 686 public static java.util.List<java.util.Locale.LanguageRange> parse( in parse() [all …]
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Locale.annotated.java | 131 …re.util.NonNull java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> priorityList,… in filter() 133 …re.util.NonNull java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> priorityList,… in filter() 135 …re.util.NonNull java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> priorityList,… in filterTags() 137 …re.util.NonNull java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> priorityList,… in filterTags() 139 …re.util.NonNull java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> priorityList,… in lookup() 141 …re.util.NonNull java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> priorityList,… in lookupTag() 261 public static final class LanguageRange { class in Locale 263 public LanguageRange(@libcore.util.NonNull java.lang.String range) { throw new RuntimeException("St… in LanguageRange() method in Locale.LanguageRange 265 public LanguageRange(@libcore.util.NonNull java.lang.String range, double weight) { throw new Runti… in LanguageRange() method in Locale.LanguageRange 271 …l public static java.util.List<java.util.Locale.@libcore.util.NonNull LanguageRange> parse(@libcor… in parse() [all …]
|