/libcore/ojluni/src/main/java/java/awt/font/ |
D | NumericShaper.java | 323 private static int toRangeMask(Set<Range> ranges) { in toRangeMask() argument 325 for (Range range : ranges) { in toRangeMask() 571 final Range[] ranges = rangeArray; in rangeForCodePoint() local 572 if (ranges.length > BSEARCH_THRESHOLD) { in rangeForCodePoint() 574 int hi = ranges.length - 1; in rangeForCodePoint() 577 Range range = ranges[mid]; in rangeForCodePoint() 588 for (int i = 0; i < ranges.length; i++) { in rangeForCodePoint() 589 if (ranges[i].inRange(codepoint)) { in rangeForCodePoint() 590 return ranges[i]; in rangeForCodePoint() 977 public static NumericShaper getContextualShaper(int ranges) { in getContextualShaper() argument [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | LocaleLanguageRangeTest.java | 238 String ranges = "Accept-Language: fr,en;q=0.7"; in testMapEquivalents() local 239 assertEquals(expected, LanguageRange.parse(ranges, map)); in testMapEquivalents() 241 assertEquals(expected, LanguageRange.mapEquivalents(LanguageRange.parse(ranges), map)); in testMapEquivalents() 262 String ranges = "Accept-Language: iw,en;q=0.7"; in testParse_map_localeEquivalent() local 263 assertEquals(expectedOutput, LanguageRange.parse(ranges, map)); in testParse_map_localeEquivalent() 266 LanguageRange.mapEquivalents(LanguageRange.parse(ranges), map)); in testParse_map_localeEquivalent() 423 private static void assertParseRanges(String ranges, String... expectedAdditional) { in assertParseRanges() argument 425 expected.add(ranges); in assertParseRanges() 428 List<String> actual = rangesToStrings(LanguageRange.parse(ranges)); in assertParseRanges()
|
D | LocaleTest.java | 843 List<LanguageRange> ranges = new ArrayList<>(); in test_filter_basic() local 844 ranges.add(new LanguageRange("en-US")); in test_filter_basic() 847 assertFilter(tagsOf("en-US"), ranges, tags); in test_filter_basic() 850 assertFilter(tagsOf("en-US"), ranges, tags, AUTOSELECT_FILTERING); in test_filter_basic() 851 assertFilter(tagsOf("en-US"), ranges, tags, REJECT_EXTENDED_RANGES); in test_filter_basic() 852 assertFilter(tagsOf("en-US"), ranges, tags, IGNORE_EXTENDED_RANGES); in test_filter_basic() 856 assertFilter(tagsOf("en-US", "en-Latn-US"), ranges, tags, EXTENDED_FILTERING); in test_filter_basic() 858 ranges.add(new LanguageRange("zh-Hant-TW")); in test_filter_basic() 859 assertFilter(tagsOf("en-US", "zh-Hant-TW"), ranges, tags); in test_filter_basic()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | RangeTest.java | 265 long[][] ranges = { {Long.MIN_VALUE, 0}, {-1, Long.MAX_VALUE} }; in testLongLongRange() 266 for (int i = 0; i < ranges.length; i++) { in testLongLongRange() 267 long start = ranges[i][0]; in testLongLongRange() 268 long end = ranges[i][1]; in testLongLongRange() 320 long[][] ranges = { {Long.MIN_VALUE, 0}, {-1, Long.MAX_VALUE} }; 321 for (int i = 0; i < ranges.length; i++) { 322 long start = ranges[i][0]; 323 long end = ranges[i][1];
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleMatcher.java | 244 public static List<LanguageRange> parse(String ranges) { in parse() argument 246 ranges = ranges.replace(" ", "").toLowerCase(); in parse() 247 if (ranges.startsWith("accept-language:")) { in parse() 248 ranges = ranges.substring(16); // delete unnecessary prefix in parse() 251 String[] langRanges = ranges.split(","); in parse()
|
/libcore/tools/docs/crypto/ |
D | README | 16 ranges separated by commas followed by a "N+" value if the algorithm is
|
/libcore/ojluni/annotations/mmodule/java/util/ |
D | Locale.annotated.java | 275 public static java.util.List<java.util.Locale.LanguageRange> parse(java.lang.String ranges) { throw… in parse() argument 277 public static java.util.List<java.util.Locale.LanguageRange> parse(java.lang.String ranges, java.ut… in parse() argument
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Locale.java | 687 java.lang.String ranges) { in parse() argument 692 java.lang.String ranges, in parse() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Locale.annotated.java | 271 …util.NonNull LanguageRange> parse(@libcore.util.NonNull java.lang.String ranges) { throw new Runti… in parse() argument 273 ….util.Locale.LanguageRange> parse(@libcore.util.NonNull java.lang.String ranges, @libcore.util.Non… in parse() argument
|
/libcore/ojluni/ |
D | NOTICE | 1474 <p><code>Replaceable</code> specifies ranges using a start
|