Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 150) sorted by relevance

123456

/libcore/ojluni/src/main/java/java/util/
DIntSummaryStatistics.java69 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()
DLongSummaryStatistics.java70 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()
DDoubleSummaryStatistics.java69 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()
DJapaneseImperialCalendar.java572 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 …]
DGregorianCalendar.java1183 int max = getMaximum(field); in roll() local
1201 int unit = max + 1; // 12 or 24 hours in roll()
1281 max = getActualMaximum(WEEK_OF_YEAR); in roll()
1290 if (value > min && value < max) { in roll()
1303 fd += 7 * (max - internalGet(WEEK_OF_YEAR)); in roll()
1305 max--; in roll()
1314 woy = max; in roll()
1317 amount -= woy - max; in roll()
1322 set(field, getRolledValue(woy, amount, min, max)); in roll()
1343 fd += 7 * (max - woy); in roll()
[all …]
/libcore/luni/src/main/java/org/xml/sax/helpers/
DAttributesImpl.java203 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/
DMinMaxTest.java56 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/luni/src/test/java/libcore/java/lang/
DByteTest.java23 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()
DShortTest.java23 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()
DIntegerTest.java42 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));
DLongTest.java41 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/jsr166-tests/src/test/java/jsr166/
DLongAccumulatorTest.java32 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()
DDoubleAccumulatorTest.java32 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()
DTreeSetTest.java716 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 …]
DConcurrentSkipListSetTest.java712 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 …]
DTreeMapTest.java823 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 …]
DConcurrentSkipListMapTest.java1018 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/
DPropertyExpander.java71 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/
DLoopingBackwardsBenchmark.java27 @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/
DStrictMath.java999 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/
DValueRange.java125 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/ojluni/annotations/mmodule/java/lang/
DMath.annotated.java126 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/luni/src/test/java/libcore/libcore/util/
DNativeAllocationRegistryTest.java62 long max = Runtime.getRuntime().maxMemory(); in testNativeAllocation() local
67 int expectedMaxNumAllocations = (int)(max-total)/javaSize; in testNativeAllocation()
107 + " given max memory of (" + max + ")", nativeBytes <= max); in testNativeAllocation()
/libcore/ojluni/src/main/java/java/util/zip/
DInflaterInputStream.java228 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/ojluni/src/main/java/java/io/
DCharArrayWriter.java82 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()

123456