/libcore/ojluni/src/main/java/java/util/ |
D | IntSummaryStatistics.java | 69 private int max = Integer.MIN_VALUE; field in IntSummaryStatistics 88 max = Math.max(max, value); in accept() 101 max = Math.max(max, other.max); in combine() 140 return max; in getMax()
|
D | LongSummaryStatistics.java | 70 private long max = Long.MIN_VALUE; field in LongSummaryStatistics 99 max = Math.max(max, value); in accept() 113 max = Math.max(max, other.max); in combine() 152 return max; in getMax()
|
D | DoubleSummaryStatistics.java | 69 private double max = Double.NEGATIVE_INFINITY; field in DoubleSummaryStatistics 89 max = Math.max(max, value); in accept() 105 max = Math.max(max, other.max); in combine() 189 return max; in getMax()
|
D | JapaneseImperialCalendar.java | 572 int max = getMaximum(field); in roll() local 589 int unit = max + 1; // 12 or 24 hours in roll() 632 max = getActualMaximum(field); in roll() 646 max = d.getMonth() - 1; in roll() 647 int n = getRolledValue(internalGet(field), amount, min, max); in roll() 648 if (n == max) { in roll() 671 int n = getRolledValue(internalGet(field), amount, min, max); in roll() 717 max = transition.getMonth() - 1; in roll() 719 max--; in roll() 725 if (min == max) { in roll() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | TimeUnitTest.java | 327 long max = Long.MAX_VALUE/ratio; in testConvertSaturate() local 328 assertEquals(max * ratio, y.convert(max, x)); in testConvertSaturate() 329 assertEquals(-max * ratio, y.convert(-max, x)); in testConvertSaturate() 330 assertEquals(max, x.convert(max * ratio, y)); in testConvertSaturate() 331 assertEquals(-max, x.convert(-max * ratio, y)); in testConvertSaturate() 332 if (max < Long.MAX_VALUE) { in testConvertSaturate() 333 assertEquals(Long.MAX_VALUE, y.convert(max + 1, x)); in testConvertSaturate() 334 assertEquals(Long.MIN_VALUE, y.convert(-max - 1, x)); in testConvertSaturate() 356 long max = Long.MAX_VALUE/ratio; in testToNanosSaturate() local 357 for (long z : new long[] {0, 1, -1, max, -max}) in testToNanosSaturate() [all …]
|
D | LongAccumulatorTest.java | 55 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testConstructor() 63 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testAccumulateAndGet() 76 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testReset() 87 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testGetThenReset() 98 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testToString() 108 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testIntValue() 118 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testLongValue() 128 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testFloatValue() 138 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testDoubleValue() 151 LongAccumulator a = new LongAccumulator(Long::max, 0L); in testAccumulateAndGetMT()
|
D | DoubleAccumulatorTest.java | 55 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testConstructor() 63 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testAccumulateAndGet() 76 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testReset() 87 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testGetThenReset() 98 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testToString() 108 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testIntValue() 118 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testLongValue() 128 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testFloatValue() 138 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testDoubleValue() 151 DoubleAccumulator a = new DoubleAccumulator(Double::max, 0.0); in testAccumulateAndGetMT()
|
D | TreeSetTest.java | 740 void mutateSet(NavigableSet<Integer> set, int min, int max) { in mutateSet() argument 742 int rangeSize = max - min + 1; in mutateSet() 760 assertTrue(element >= min && element <= max); in mutateSet() 765 void mutateSubSet(NavigableSet<Integer> set, int min, int max) { in mutateSubSet() argument 767 int rangeSize = max - min + 1; in mutateSubSet() 785 if (element >= min && element <= max) { in mutateSubSet() 807 int min, int max, boolean ascending) { in bashSubSet() argument 808 check(set, min, max, ascending); in bashSubSet() 809 check(set.descendingSet(), min, max, !ascending); in bashSubSet() local 811 mutateSubSet(set, min, max); in bashSubSet() [all …]
|
D | ConcurrentSkipListSetTest.java | 743 void mutateSet(NavigableSet<Integer> set, int min, int max, BitSet bs) { in mutateSet() argument 745 int rangeSize = max - min + 1; in mutateSet() 763 assertTrue(element >= min && element <= max); in mutateSet() 768 void mutateSubSet(NavigableSet<Integer> set, int min, int max, in mutateSubSet() argument 771 int rangeSize = max - min + 1; in mutateSubSet() 789 if (element >= min && element <= max) { in mutateSubSet() 811 int min, int max, boolean ascending, in bashSubSet() argument 813 check(set, min, max, ascending, bs); in bashSubSet() 814 check(set.descendingSet(), min, max, !ascending, bs); in bashSubSet() local 816 mutateSubSet(set, min, max, bs); in bashSubSet() [all …]
|
D | TreeMapTest.java | 846 void mutateMap(NavigableMap<Integer, Integer> map, int min, int max) { 848 int rangeSize = max - min + 1; 866 assertTrue(key >= min && key <= max); 871 void mutateSubMap(NavigableMap<Integer, Integer> map, int min, int max) { 873 int rangeSize = max - min + 1; 891 if (key >= min && key <= max) { 913 int min, int max, boolean ascending) { 914 check(map, min, max, ascending); 915 check(map.descendingMap(), min, max, !ascending); 917 mutateSubMap(map, min, max); [all …]
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | AttributesImpl.java | 203 int max = length * 5; in getIndex() local 204 for (int i = 0; i < max; i += 5) { in getIndex() 222 int max = length * 5; in getIndex() local 223 for (int i = 0; i < max; i += 5) { in getIndex() 244 int max = length * 5; in getType() local 245 for (int i = 0; i < max; i += 5) { in getType() 264 int max = length * 5; in getType() local 265 for (int i = 0; i < max; i += 5) { in getType() 286 int max = length * 5; in getValue() local 287 for (int i = 0; i < max; i += 5) { in getValue() [all …]
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | MinMaxTest.java | 56 assertTrue(!countTo(0).stream().max(Integer::compare).isPresent()); in testMinMax() 58 assertEquals(1000, (int) countTo(1000).stream().max(Integer::compare).get()); in testMinMax() 64 exerciseTerminalOps(data, s -> s.max(Integer::compare)); in testOps() 69 assertEquals(IntStream.empty().max(), OptionalInt.empty()); in testIntMinMax() 71 assertEquals(1000, IntStream.range(1, 1001).max().getAsInt()); in testIntMinMax() 77 exerciseTerminalOps(data, s -> s.max()); in testIntOps() 82 assertEquals(LongStream.empty().max(), OptionalLong.empty()); in testLongMinMax() 84 assertEquals(1000, LongStream.range(1, 1001).max().getAsLong()); in testLongMinMax() 90 exerciseTerminalOps(data, s -> s.max()); in testLongOps() 95 assertEquals(DoubleStream.empty().max(), OptionalDouble.empty()); in testDoubleMinMax() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | DoubleAccumulatorTest.java | 32 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testConstructor() 40 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testAccumulateAndGet() 53 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testReset() 64 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testGetThenReset() 75 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testToString() 85 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testIntValue() 95 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testLongValue() 105 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testFloatValue() 115 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0); in testDoubleValue() 128 DoubleAccumulator a = new DoubleAccumulator(Double::max, 0.0); in testAccumulateAndGetMT()
|
D | LongAccumulatorTest.java | 32 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testConstructor() 40 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testAccumulateAndGet() 53 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testReset() 64 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testGetThenReset() 75 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testToString() 85 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testIntValue() 95 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testLongValue() 105 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testFloatValue() 115 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testDoubleValue() 128 LongAccumulator a = new LongAccumulator(Long::max, 0L); in testAccumulateAndGetMT()
|
D | TreeSetTest.java | 716 void mutateSet(NavigableSet<Integer> set, int min, int max) { in mutateSet() argument 718 int rangeSize = max - min + 1; in mutateSet() 736 assertTrue(element >= min && element <= max); in mutateSet() 741 void mutateSubSet(NavigableSet<Integer> set, int min, int max) { in mutateSubSet() argument 743 int rangeSize = max - min + 1; in mutateSubSet() 761 if (element >= min && element <= max) { in mutateSubSet() 783 int min, int max, boolean ascending) { in bashSubSet() argument 784 check(set, min, max, ascending); in bashSubSet() 785 check(set.descendingSet(), min, max, !ascending); in bashSubSet() local 787 mutateSubSet(set, min, max); in bashSubSet() [all …]
|
D | ConcurrentSkipListSetTest.java | 712 void mutateSet(NavigableSet<Integer> set, int min, int max, BitSet bs) { in mutateSet() argument 714 int rangeSize = max - min + 1; in mutateSet() 732 assertTrue(element >= min && element <= max); in mutateSet() 737 void mutateSubSet(NavigableSet<Integer> set, int min, int max, in mutateSubSet() argument 740 int rangeSize = max - min + 1; in mutateSubSet() 758 if (element >= min && element <= max) { in mutateSubSet() 780 int min, int max, boolean ascending, in bashSubSet() argument 782 check(set, min, max, ascending, bs); in bashSubSet() 783 check(set.descendingSet(), min, max, !ascending, bs); in bashSubSet() local 785 mutateSubSet(set, min, max, bs); in bashSubSet() [all …]
|
D | TreeMapTest.java | 823 void mutateMap(NavigableMap<Integer, Integer> map, int min, int max) { 825 int rangeSize = max - min + 1; 843 assertTrue(key >= min && key <= max); 848 void mutateSubMap(NavigableMap<Integer, Integer> map, int min, int max) { 850 int rangeSize = max - min + 1; 868 if (key >= min && key <= max) { 890 int min, int max, boolean ascending) { 891 check(map, min, max, ascending); 892 check(map.descendingMap(), min, max, !ascending); 894 mutateSubMap(map, min, max); [all …]
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | PropertyExpander.java | 71 int max = value.length(); in expand() local 75 while (p < max) { in expand() 84 if (pe < max && value.charAt(pe) == '{') { in expand() 86 if (pe == -1 || pe+2 == max) { in expand() 96 while ((pe < max) && (value.charAt(pe) != '}')) { in expand() 99 if (pe == max) { in expand() 134 if (i < max) { in expand() 135 sb.append(value.substring(i, max)); in expand()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ShortTest.java | 23 final short max = Short.MAX_VALUE; in test_compare() local 24 assertTrue(Short.compare(max, max) == 0); in test_compare() 27 assertTrue(Short.compare(max, zero) > 0); in test_compare() 28 assertTrue(Short.compare(max, min) > 0); in test_compare() 29 assertTrue(Short.compare(zero, max) < 0); in test_compare() 32 assertTrue(Short.compare(min, max) < 0); in test_compare()
|
D | ByteTest.java | 23 final byte max = Byte.MAX_VALUE; in test_compare() 24 assertTrue(Byte.compare(max, max) == 0); in test_compare() 27 assertTrue(Byte.compare(max, zero) > 0); in test_compare() 28 assertTrue(Byte.compare(max, min) > 0); in test_compare() 29 assertTrue(Byte.compare(zero, max) < 0); in test_compare() 32 assertTrue(Byte.compare(min, max) < 0); in test_compare()
|
D | IntegerTest.java | 42 final int max = Integer.MAX_VALUE; in testCompare() local 43 assertTrue(Integer.compare(max, max) == 0); in testCompare() 46 assertTrue(Integer.compare(max, zero) > 0); in testCompare() 47 assertTrue(Integer.compare(max, min) > 0); in testCompare() 48 assertTrue(Integer.compare(zero, max) < 0); in testCompare() 51 assertTrue(Integer.compare(min, max) < 0); in testCompare() 142 assertEquals(Math.max(a, b), Integer.max(a, b));
|
D | LongTest.java | 41 final long max = Long.MAX_VALUE; in testCompare() local 42 assertTrue(Long.compare(max, max) == 0); in testCompare() 45 assertTrue(Long.compare(max, zero) > 0); in testCompare() 46 assertTrue(Long.compare(max, min) > 0); in testCompare() 47 assertTrue(Long.compare(zero, max) < 0); in testCompare() 50 assertTrue(Long.compare(min, max) < 0); in testCompare() 149 assertEquals(Math.max(a, b), Long.max(a, b));
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | LoopingBackwardsBenchmark.java | 27 @Param({"2", "20", "2000", "20000000"}) int max; field in LoopingBackwardsBenchmark 32 for (int j = 0; j < max; j++) { in timeForwards() 42 for (int j = max - 1; j >= 0; j--) { in timeBackwards()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 1108 public static int max(int a, int b) { in max() method in StrictMath 1109 return Math.max(a, b); in max() 1122 public static long max(long a, long b) { in max() method in StrictMath 1123 return Math.max(a, b); in max() 1140 public static float max(float a, float b) { in max() method in StrictMath 1141 return Math.max(a, b); in max() 1158 public static double max(double a, double b) { in max() method in StrictMath 1159 return Math.max(a, b); in max()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ValueRange.java | 125 public static ValueRange of(long min, long max) { in of() argument 126 if (min > max) { in of() 129 return new ValueRange(min, min, max, max); in of()
|