Searched refs:max (Results 1 - 25 of 135) sorted by relevance

123456

/libcore/ojluni/src/main/java/java/util/
H A DIntSummaryStatistics.java30 * A state object for collecting statistics such as count, min, max, sum, and
68 private int max = Integer.MIN_VALUE; field in class:IntSummaryStatistics
72 * {@code Integer.MAX_VALUE} min, {@code Integer.MIN_VALUE} max and zero
87 max = Math.max(max, value);
100 max = Math.max(max, other.max);
[all...]
H A DDoubleSummaryStatistics.java30 * A state object for collecting statistics such as count, min, max, sum, and
68 private double max = Double.NEGATIVE_INFINITY; field in class:DoubleSummaryStatistics
73 * max and zero average.
88 max = Math.max(max, value);
104 max = Math.max(max, other.max);
[all...]
H A DLongSummaryStatistics.java31 * A state object for collecting statistics such as count, min, max, sum, and
69 private long max = Long.MIN_VALUE; field in class:LongSummaryStatistics
73 * {@code Long.MAX_VALUE} min, {@code Long.MIN_VALUE} max and zero
98 max = Math.max(max, value);
112 max = Math.max(max, other.max);
[all...]
H A DLinkedHashSet.java168 super(Math.max(2*c.size(), 11), .75f, true);
/libcore/benchmarks/src/benchmarks/regression/
H A DLoopingBackwardsBenchmark.java27 @Param({"2", "20", "2000", "20000000"}) int max; field in class:LoopingBackwardsBenchmark
32 for (int j = 0; j < max; j++) {
42 for (int j = max - 1; j >= 0; j--) {
/libcore/luni/src/test/java/libcore/java/lang/
H A DByteTest.java23 final byte max = Byte.MAX_VALUE;
24 assertTrue(Byte.compare(max, max) == 0);
27 assertTrue(Byte.compare(max, zero) > 0);
28 assertTrue(Byte.compare(max, min) > 0);
29 assertTrue(Byte.compare(zero, max) < 0);
32 assertTrue(Byte.compare(min, max) < 0);
H A DShortTest.java23 final short max = Short.MAX_VALUE;
24 assertTrue(Short.compare(max, max) == 0);
27 assertTrue(Short.compare(max, zero) > 0);
28 assertTrue(Short.compare(max, min) > 0);
29 assertTrue(Short.compare(zero, max) < 0);
32 assertTrue(Short.compare(min, max) < 0);
H A DIntegerTest.java42 final int max = Integer.MAX_VALUE;
43 assertTrue(Integer.compare(max, max) == 0);
46 assertTrue(Integer.compare(max, zero) > 0);
47 assertTrue(Integer.compare(max, min) > 0);
48 assertTrue(Integer.compare(zero, max) < 0);
51 assertTrue(Integer.compare(min, max) < 0);
142 assertEquals(Math.max(a, b), Integer.max(a, b));
H A DLongTest.java41 final long max = Long.MAX_VALUE;
42 assertTrue(Long.compare(max, max) == 0);
45 assertTrue(Long.compare(max, zero) > 0);
46 assertTrue(Long.compare(max, min) > 0);
47 assertTrue(Long.compare(zero, max) < 0);
50 assertTrue(Long.compare(min, max) < 0);
149 assertEquals(Math.max(a, b), Long.max(a, b));
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DMinMaxTest.java56 assertTrue(!countTo(0).stream().max(Integer::compare).isPresent());
58 assertEquals(1000, (int) countTo(1000).stream().max(Integer::compare).get());
64 exerciseTerminalOps(data, s -> s.max(Integer::compare));
69 assertEquals(IntStream.empty().max(), OptionalInt.empty());
71 assertEquals(1000, IntStream.range(1, 1001).max().getAsInt());
77 exerciseTerminalOps(data, s -> s.max());
82 assertEquals(LongStream.empty().max(), OptionalLong.empty());
84 assertEquals(1000, LongStream.range(1, 1001).max().getAsLong());
90 exerciseTerminalOps(data, s -> s.max());
95 assertEquals(DoubleStream.empty().max(), OptionalDoubl
[all...]
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DAttributesImpl.java203 int max = length * 5;
204 for (int i = 0; i < max; i += 5) {
222 int max = length * 5;
223 for (int i = 0; i < max; i += 5) {
244 int max = length * 5;
245 for (int i = 0; i < max; i += 5) {
264 int max = length * 5;
265 for (int i = 0; i < max; i += 5) {
286 int max = length * 5;
287 for (int i = 0; i < max;
[all...]
/libcore/ojluni/src/main/java/sun/security/util/
H A DPropertyExpander.java71 int max = value.length();
75 while (p < max) {
84 if (pe < max && value.charAt(pe) == '{') {
86 if (pe == -1 || pe+2 == max) {
96 while ((pe < max) && (value.charAt(pe) != '}')) {
99 if (pe == max) {
134 if (i < max) {
135 sb.append(value.substring(i, max));
/libcore/jsr166-tests/src/test/java/jsr166/
H A DDoubleAccumulatorTest.java32 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0);
40 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0);
53 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0);
64 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0);
75 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0);
85 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0);
95 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0);
105 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0);
115 DoubleAccumulator ai = new DoubleAccumulator(Double::max, 0.0);
128 DoubleAccumulator a = new DoubleAccumulator(Double::max, 0.
[all...]
H A DLongAccumulatorTest.java32 LongAccumulator ai = new LongAccumulator(Long::max, 0L);
40 LongAccumulator ai = new LongAccumulator(Long::max, 0L);
53 LongAccumulator ai = new LongAccumulator(Long::max, 0L);
64 LongAccumulator ai = new LongAccumulator(Long::max, 0L);
75 LongAccumulator ai = new LongAccumulator(Long::max, 0L);
85 LongAccumulator ai = new LongAccumulator(Long::max, 0L);
95 LongAccumulator ai = new LongAccumulator(Long::max, 0L);
105 LongAccumulator ai = new LongAccumulator(Long::max, 0L);
115 LongAccumulator ai = new LongAccumulator(Long::max, 0L);
128 LongAccumulator a = new LongAccumulator(Long::max,
[all...]
H A DConcurrentSkipListSetTest.java712 void mutateSet(NavigableSet<Integer> set, int min, int max, BitSet bs) { argument
714 int rangeSize = max - min + 1;
732 assertTrue(element >= min && element <= max);
737 void mutateSubSet(NavigableSet<Integer> set, int min, int max, argument
740 int rangeSize = max - min + 1;
758 if (element >= min && element <= max) {
780 int min, int max, boolean ascending,
782 check(set, min, max, ascending, bs);
783 check(set.descendingSet(), min, max, !ascending, bs);
785 mutateSubSet(set, min, max, b
779 bashSubSet(NavigableSet<Integer> set, int min, int max, boolean ascending, BitSet bs) argument
861 check(NavigableSet<Integer> set, final int min, final int max, final boolean ascending, final BitSet bs) argument
[all...]
H A DTreeSetTest.java716 void mutateSet(NavigableSet<Integer> set, int min, int max) { argument
718 int rangeSize = max - min + 1;
736 assertTrue(element >= min && element <= max);
741 void mutateSubSet(NavigableSet<Integer> set, int min, int max) { argument
743 int rangeSize = max - min + 1;
761 if (element >= min && element <= max) {
783 int min, int max, boolean ascending) {
784 check(set, min, max, ascending);
785 check(set.descendingSet(), min, max, !ascending);
787 mutateSubSet(set, min, max);
782 bashSubSet(NavigableSet<Integer> set, int min, int max, boolean ascending) argument
863 check(NavigableSet<Integer> set, final int min, final int max, final boolean ascending) argument
[all...]
/libcore/ojluni/src/main/java/java/time/temporal/
H A DValueRange.java121 * @param max the maximum value
122 * @return the ValueRange for min, max, not null
125 public static ValueRange of(long min, long max) { argument
126 if (min > max) {
129 return new ValueRange(min, min, max, max);
141 * @return the ValueRange for min, smallest max, largest max, not null
159 * @return the ValueRange for smallest min, largest min, smallest max, largest max, no
[all...]
/libcore/ojluni/src/main/java/java/util/stream/
H A DAbstractSpinedBuffer.java93 this.initialChunkPower = Math.max(MIN_CHUNK_POWER,
/libcore/ojluni/src/main/java/java/lang/
H A DStrictMath.java999 public static int max(int a, int b) { method in class:StrictMath
1000 return Math.max(a, b);
1013 public static long max(long a, long b) { method in class:StrictMath
1014 return Math.max(a, b);
1031 public static float max(float a, float b) { method in class:StrictMath
1032 return Math.max(a, b);
1049 public static double max(double a, double b) { method in class:StrictMath
1050 return Math.max(a, b);
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DSSLContextSpiImpl.java62 int max = 65535;
64 if (port < 0 || port > max) {
/libcore/luni/src/test/java/libcore/javax/net/
H A DServerSocketFactoryTest.java100 int max = 100;
101 for (int i = 0; i < max; i++) {
107 fail("Failed to exhaust backlog after " + max + " connections!");
/libcore/ojluni/src/main/java/java/io/
H A DCharArrayWriter.java82 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount));
105 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount));
122 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount));
/libcore/ojluni/src/main/java/java/util/zip/
H A DInflaterInputStream.java212 int max = (int)Math.min(n, Integer.MAX_VALUE);
214 while (total < max) {
215 int len = max - total;
/libcore/luni/src/test/java/libcore/libcore/util/
H A DNativeAllocationRegistryTest.java50 long max = Runtime.getRuntime().maxMemory();
53 int expectedMaxNumAllocations = (int)(max-total)/size;
93 + " given max memory of (" + max + ")", nativeBytes < 2 * max);
/libcore/ojluni/src/main/java/java/sql/
H A DStatement.java144 * @param max the new column size limit in bytes; zero means there is no limit
147 * or the condition max >= 0 is not satisfied
150 void setMaxFieldSize(int max) throws SQLException; argument
174 * @param max the new max rows limit; zero means there is no limit
177 * or the condition max >= 0 is not satisfied
180 void setMaxRows(int max) throws SQLException; argument

Completed in 536 milliseconds

123456