/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 | 814 List<LanguageRange> ranges = new ArrayList<>(); in test_filter_basic() local 815 ranges.add(new LanguageRange("en-US")); in test_filter_basic() 818 assertFilter(tagsOf("en-US"), ranges, tags); in test_filter_basic() 821 assertFilter(tagsOf("en-US"), ranges, tags, AUTOSELECT_FILTERING); in test_filter_basic() 822 assertFilter(tagsOf("en-US"), ranges, tags, REJECT_EXTENDED_RANGES); in test_filter_basic() 823 assertFilter(tagsOf("en-US"), ranges, tags, IGNORE_EXTENDED_RANGES); in test_filter_basic() 827 assertFilter(tagsOf("en-US", "en-Latn-US"), ranges, tags, EXTENDED_FILTERING); in test_filter_basic() 829 ranges.add(new LanguageRange("zh-Hant-TW")); in test_filter_basic() 830 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/test/java/awt/font/NumericShaper/ |
D | ShapingTest.java | 147 private static void checkResult(String ranges, NumericShaper ns, in checkResult() argument 155 System.err.println("Error with range(s) <" + ranges + ">."); in checkResult() 160 System.out.println("OK with range(s) <" + ranges + ">."); in checkResult()
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleMatcher.java | 485 public static List<LanguageRange> parse(String ranges) { in parse() argument 486 ranges = ranges.replace(" ", "").toLowerCase(Locale.ROOT); in parse() 487 if (ranges.startsWith("accept-language:")) { in parse() 488 ranges = ranges.substring(16); // delete unnecessary prefix in parse() 491 String[] langRanges = ranges.split(","); in parse()
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | EqualsCompareTest.java | 628 for (int s : ranges(0, n)) { in testBufferType() 632 for (int aFrom : ranges(0, s)) { in testBufferType() 633 for (int aTo : ranges(aFrom, s)) { in testBufferType() 640 for (int bFrom : ranges(0, s)) { in testBufferType() 641 for (int bTo : ranges(bFrom, s)) { in testBufferType() 701 static int[] ranges(int from, int to) { in ranges() method in EqualsCompareTest
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | ArraysEqCmpTest.java | 818 for (int s : ranges(0, n)) { in testSignedUnsignedArray() 821 for (int aFrom : ranges(0, s)) { in testSignedUnsignedArray() 822 for (int aTo : ranges(aFrom, s)) { in testSignedUnsignedArray() 848 for (int s : ranges(0, n)) { in testArrayType() 852 for (int aFrom : ranges(0, s)) { in testArrayType() 853 for (int aTo : ranges(aFrom, s)) { in testArrayType() 856 for (int bFrom : ranges(0, s)) { in testArrayType() 857 for (int bTo : ranges(bFrom, s)) { in testArrayType() 975 static int[] ranges(int from, int to) { in ranges() method in ArraysEqCmpTest
|
/libcore/tools/docs/crypto/ |
D | README | 16 ranges separated by commas followed by a "N+" value if the algorithm is
|
/libcore/ojluni/src/main/java/java/util/ |
D | Locale.java | 3703 public static List<LanguageRange> parse(String ranges) { in parse() argument 3704 return LocaleMatcher.parse(ranges); in parse() 3726 public static List<LanguageRange> parse(String ranges, in parse() argument 3728 return mapEquivalents(parse(ranges), map); in parse()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Locale.annotated.java | 273 …util.NonNull LanguageRange> parse(@libcore.util.NonNull java.lang.String ranges) { throw new Runti… in parse() argument 275 ….util.Locale.LanguageRange> parse(@libcore.util.NonNull java.lang.String ranges, @libcore.util.Non… 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/src/main/ |
D | LICENSE | 1196 <p><code>Replaceable</code> specifies ranges using a start
|