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

12345

/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/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.java40 final long max = Long.MAX_VALUE;
41 assertTrue(Long.compare(max, max) == 0);
44 assertTrue(Long.compare(max, zero) > 0);
45 assertTrue(Long.compare(max, min) > 0);
46 assertTrue(Long.compare(zero, max) < 0);
49 assertTrue(Long.compare(min, max) < 0);
148 assertEquals(Math.max(a, b), Long.max(a, b));
/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/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...]
H A DConcurrentSkipListMapTest.java1018 void mutateMap(NavigableMap<Integer, Integer> map, int min, int max) { argument
1020 int rangeSize = max - min + 1;
1038 assertTrue(key >= min && key <= max);
1043 void mutateSubMap(NavigableMap<Integer, Integer> map, int min, int max) { argument
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);
1084 bashSubMap(NavigableMap<Integer, Integer> map, int min, int max, boolean ascending) argument
1165 check(NavigableMap<Integer, Integer> map, final int min, final int max, final boolean ascending) argument
[all...]
/libcore/ojluni/src/main/java/java/util/stream/
H A DAbstractSpinedBuffer.java93 this.initialChunkPower = Math.max(MIN_CHUNK_POWER,
/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.java96 int max = 100;
97 for (int i = 0; i < max; i++) {
103 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.java207 int max = (int)Math.min(n, Integer.MAX_VALUE);
209 while (total < max) {
210 int len = max - total;
/libcore/luni/src/test/java/libcore/util/
H A DNativeAllocationRegistryTest.java48 long max = Runtime.getRuntime().maxMemory();
51 int expectedMaxNumAllocations = (int)(max-total)/size;
91 + " exceeds max memory (" + max + ")",
92 getNumNativeBytesAllocated() < 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
/libcore/ojluni/src/main/java/java/text/
H A DCharacterIteratorFieldDelegate.java68 int aStart = Math.max(0, start - newIndex);
84 int aStart = Math.max(start, size);

Completed in 1370 milliseconds

12345