/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 | 571 int max = getMaximum(field); in roll() local 588 int unit = max + 1; // 12 or 24 hours in roll() 631 max = getActualMaximum(field); in roll() 645 max = d.getMonth() - 1; in roll() 646 int n = getRolledValue(internalGet(field), amount, min, max); in roll() 647 if (n == max) { in roll() 670 int n = getRolledValue(internalGet(field), amount, min, max); in roll() 716 max = transition.getMonth() - 1; in roll() 718 max--; in roll() 724 if (min == max) { in roll() [all …]
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | AttributesImpl.java | 202 int max = length * 5; in getIndex() local 203 for (int i = 0; i < max; i += 5) { in getIndex() 221 int max = length * 5; in getIndex() local 222 for (int i = 0; i < max; i += 5) { in getIndex() 243 int max = length * 5; in getType() local 244 for (int i = 0; i < max; i += 5) { in getType() 263 int max = length * 5; in getType() local 264 for (int i = 0; i < max; i += 5) { in getType() 285 int max = length * 5; in getValue() local 286 for (int i = 0; i < max; i += 5) { in getValue() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
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 | 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 | 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/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 …]
|
D | ConcurrentSkipListMapTest.java | 1018 void mutateMap(NavigableMap<Integer, Integer> map, int min, int max) { 1020 int rangeSize = max - min + 1; 1038 assertTrue(key >= min && key <= max); 1043 void mutateSubMap(NavigableMap<Integer, Integer> map, int min, int max) { 1045 int rangeSize = max - min + 1; 1063 if (key >= min && key <= max) { 1085 int min, int max, boolean ascending) { 1086 check(map, min, max, ascending); 1087 check(map.descendingMap(), min, max, !ascending); 1089 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/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 | 999 public static int max(int a, int b) { in max() method in StrictMath 1000 return Math.max(a, b); in max() 1013 public static long max(long a, long b) { in max() method in StrictMath 1014 return Math.max(a, b); in max() 1031 public static float max(float a, float b) { in max() method in StrictMath 1032 return Math.max(a, b); in max() 1049 public static double max(double a, double b) { in max() method in StrictMath 1050 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()
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | NativeAllocationRegistryTest.java | 59 long max = Runtime.getRuntime().maxMemory(); in testNativeAllocation() local 62 int expectedMaxNumAllocations = (int)(max-total)/size; in testNativeAllocation() 99 + " given max memory of (" + max + ")", nativeBytes < 2 * max); in testNativeAllocation()
|
/libcore/ojluni/annotations/mmodule/java/lang/ |
D | Math.annotated.java | 126 public static int max(int a, int b) { throw new RuntimeException("Stub!"); } in max() method in Math 128 public static long max(long a, long b) { throw new RuntimeException("Stub!"); } in max() method in Math 130 public static float max(float a, float b) { throw new RuntimeException("Stub!"); } in max() method in Math 132 public static double max(double a, double b) { throw new RuntimeException("Stub!"); } in max() method in Math
|
/libcore/ojluni/src/main/java/java/io/ |
D | CharArrayWriter.java | 82 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); in write() 105 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); in write() 122 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); in write()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | InflaterInputStream.java | 228 int max = (int)Math.min(n, Integer.MAX_VALUE); in skip() local 230 while (total < max) { in skip() 231 int len = max - total; in skip()
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
D | SSLContextSpiImpl.java | 62 int max = 65535; in engineCreateSSLEngine() local 64 if (port < 0 || port > max) { in engineCreateSSLEngine()
|