/libcore/ojluni/src/main/java/java/util/ |
H A D | IntSummaryStatistics.java | 30 * A state object for collecting statistics such as count, min, max, sum, and 67 private int min = Integer.MAX_VALUE; field in class:IntSummaryStatistics 72 * {@code Integer.MAX_VALUE} min, {@code Integer.MIN_VALUE} max and zero 86 min = Math.min(min, value); 99 min = Math.min(min, other.min); [all...] |
H A D | DoubleSummaryStatistics.java | 30 * A state object for collecting statistics such as count, min, max, sum, and 67 private double min = Double.POSITIVE_INFINITY; field in class:DoubleSummaryStatistics 72 * {@code Double.POSITIVE_INFINITY} min, {@code Double.NEGATIVE_INFINITY} 87 min = Math.min(min, value); 103 min = Math.min(min, other.min); [all...] |
H A D | LongSummaryStatistics.java | 31 * A state object for collecting statistics such as count, min, max, sum, and 68 private long min = Long.MAX_VALUE; field in class:LongSummaryStatistics 73 * {@code Long.MAX_VALUE} min, {@code Long.MIN_VALUE} max and zero 97 min = Math.min(min, value); 111 min = Math.min(min, other.min); [all...] |
H A D | Date.java | 202 * <code>hrs</code>, and <code>min</code> arguments, in the local 209 * @param min the minutes between 0-59. 213 * hrs, min)</code> or <code>GregorianCalendar(year + 1900, 214 * month, date, hrs, min)</code>. 217 public Date(int year, int month, int date, int hrs, int min) { argument 218 this(year, month, date, hrs, min, 0); 225 * <code>hrs</code>, <code>min</code>, and <code>sec</code> arguments, 232 * @param min the minutes between 0-59. 237 * hrs, min, sec)</code> or <code>GregorianCalendar(year + 1900, 238 * month, date, hrs, min, se 241 Date(int year, int month, int date, int hrs, int min, int sec) argument 315 UTC(int year, int month, int date, int hrs, int min, int sec) argument [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | ByteTest.java | 21 final byte min = Byte.MIN_VALUE; 25 assertTrue(Byte.compare(min, min) == 0); 28 assertTrue(Byte.compare(max, min) > 0); 30 assertTrue(Byte.compare(zero, min) > 0); 31 assertTrue(Byte.compare(min, zero) < 0); 32 assertTrue(Byte.compare(min, max) < 0);
|
H A D | ShortTest.java | 21 final short min = Short.MIN_VALUE; 25 assertTrue(Short.compare(min, min) == 0); 28 assertTrue(Short.compare(max, min) > 0); 30 assertTrue(Short.compare(zero, min) > 0); 31 assertTrue(Short.compare(min, zero) < 0); 32 assertTrue(Short.compare(min, max) < 0);
|
H A D | IntegerTest.java | 40 final int min = Integer.MIN_VALUE; 44 assertTrue(Integer.compare(min, min) == 0); 47 assertTrue(Integer.compare(max, min) > 0); 49 assertTrue(Integer.compare(zero, min) > 0); 50 assertTrue(Integer.compare(min, zero) < 0); 51 assertTrue(Integer.compare(min, max) < 0); 148 assertEquals(Math.min(a, b), Integer.min(a, b));
|
H A D | LongTest.java | 38 final long min = Long.MIN_VALUE; 42 assertTrue(Long.compare(min, min) == 0); 45 assertTrue(Long.compare(max, min) > 0); 47 assertTrue(Long.compare(zero, min) > 0); 48 assertTrue(Long.compare(min, zero) < 0); 49 assertTrue(Long.compare(min, max) < 0); 154 assertEquals(Math.min(a, b), Long.min(a, b));
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | MinMaxTest.java | 55 assertTrue(!countTo(0).stream().min(Integer::compare).isPresent()); 57 assertEquals(1, (int) countTo(1000).stream().min(Integer::compare).get()); 63 exerciseTerminalOps(data, s -> s.min(Integer::compare)); 68 assertEquals(IntStream.empty().min(), OptionalInt.empty()); 70 assertEquals(1, IntStream.range(1, 1001).min().getAsInt()); 76 exerciseTerminalOps(data, s -> s.min()); 81 assertEquals(LongStream.empty().min(), OptionalLong.empty()); 83 assertEquals(1, LongStream.range(1, 1001).min().getAsLong()); 89 exerciseTerminalOps(data, s -> s.min()); 94 assertEquals(DoubleStream.empty().min(), OptionalDoubl [all...] |
/libcore/ojluni/src/main/java/sun/security/jca/ |
H A D | JCAUtil.java | 60 return Math.min(ARRAY_SIZE, totalSize);
|
/libcore/ojluni/src/main/native/ |
H A D | SocketOutputStream.c | 41 #define min(a, b) ((a) < (b) ? (a) : (b)) macro 83 buflen = min(MAX_HEAP_BUFFER_LEN, len); 95 int chunkLen = min(buflen, len);
|
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | AbstractSpinedBuffer.java | 119 : Math.min(initialChunkPower + n - 1, AbstractSpinedBuffer.MAX_CHUNK_POWER);
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ConcurrentSkipListSetTest.java | 712 void mutateSet(NavigableSet<Integer> set, int min, int max, BitSet bs) { argument 714 int rangeSize = max - min + 1; 718 remove(set, min - 5 + rnd.nextInt(rangeSize + 10), bs); 731 int element = min + rnd.nextInt(rangeSize); 732 assertTrue(element >= min && element <= max); 737 void mutateSubSet(NavigableSet<Integer> set, int min, int max, argument 740 int rangeSize = max - min + 1; 744 remove(set, min - 5 + rnd.nextInt(rangeSize + 10), bs); 757 int element = min - 5 + rnd.nextInt(rangeSize + 10); 758 if (element >= min 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 D | TreeSetTest.java | 716 void mutateSet(NavigableSet<Integer> set, int min, int max) { argument 718 int rangeSize = max - min + 1; 722 remove(set, min - 5 + rnd.nextInt(rangeSize + 10)); 735 int element = min + rnd.nextInt(rangeSize); 736 assertTrue(element >= min && element <= max); 741 void mutateSubSet(NavigableSet<Integer> set, int min, int max) { argument 743 int rangeSize = max - min + 1; 747 remove(set, min - 5 + rnd.nextInt(rangeSize + 10)); 760 int element = min - 5 + rnd.nextInt(rangeSize + 10); 761 if (element >= min 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 D | ConcurrentSkipListMapTest.java | 1018 void mutateMap(NavigableMap<Integer, Integer> map, int min, int max) { argument 1020 int rangeSize = max - min + 1; 1024 remove(map, min - 5 + rnd.nextInt(rangeSize + 10)); 1037 int key = min + rnd.nextInt(rangeSize); 1038 assertTrue(key >= min && key <= max); 1043 void mutateSubMap(NavigableMap<Integer, Integer> map, int min, int max) { argument 1045 int rangeSize = max - min + 1; 1049 remove(map, min - 5 + rnd.nextInt(rangeSize + 10)); 1062 int key = min - 5 + rnd.nextInt(rangeSize + 10); 1063 if (key >= min 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...] |
H A D | TreeMapTest.java | 823 void mutateMap(NavigableMap<Integer, Integer> map, int min, int max) { argument 825 int rangeSize = max - min + 1; 829 remove(map, min - 5 + rnd.nextInt(rangeSize + 10)); 842 int key = min + rnd.nextInt(rangeSize); 843 assertTrue(key >= min && key <= max); 848 void mutateSubMap(NavigableMap<Integer, Integer> map, int min, int max) { argument 850 int rangeSize = max - min + 1; 854 remove(map, min - 5 + rnd.nextInt(rangeSize + 10)); 867 int key = min - 5 + rnd.nextInt(rangeSize + 10); 868 if (key >= min 889 bashSubMap(NavigableMap<Integer, Integer> map, int min, int max, boolean ascending) argument 970 check(NavigableMap<Integer, Integer> map, final int min, final int max, final boolean ascending) argument [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | InputStream.java | 219 int size = (int)Math.min(MAX_SKIP_BUFFER_SIZE, remaining); 222 nr = read(skipBuffer, 0, (int)Math.min(size, remaining));
|
H A D | Reader.java | 179 int nn = (int) Math.min(n, maxSkipBufferSize); 185 int nc = read(skipBuffer, 0, (int)Math.min(r, nn));
|
H A D | StringReader.java | 99 int n = Math.min(length - next, len); 128 long n = Math.min(length - next, ns);
|
H A D | BufferedWriter.java | 149 * Our own little min method, to avoid loading java.lang.Math if we've run 152 private int min(int a, int b) { method in class:BufferedWriter 194 int d = min(nChars - nextChar, t - b); 225 int d = min(nChars - nextChar, t - b);
|
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | DerInputBuffer.java | 408 int hr, min; 414 min = 10 * Character.digit((char)buf[pos++], 10); 415 min += Character.digit((char)buf[pos++], 10); 417 if (hr >= 24 || min >= 60) 420 time -= ((hr * 60) + min) * 60 * 1000; 426 min = 10 * Character.digit((char)buf[pos++], 10); 427 min += Character.digit((char)buf[pos++], 10); 429 if (hr >= 24 || min >= 60) 432 time += ((hr * 60) + min) * 60 * 1000;
|
/libcore/dex/src/main/java/com/android/dex/ |
H A D | EncodedValue.java | 45 int size = Math.min(data.length, other.data.length);
|
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | IOUtils.java | 58 bytesToRead = Math.min(length - pos, output.length + 1024);
|
/libcore/support/src/test/java/tests/support/ |
H A D | ThrowingReader.java | 50 count = Math.min(count, (throwAt - total));
|
/libcore/luni/src/main/java/libcore/util/ |
H A D | NativeAllocationRegistry.java | 219 VMRuntime.getRuntime().registerNativeAllocation((int)Math.min(size, Integer.MAX_VALUE)); 223 VMRuntime.getRuntime().registerNativeFree((int)Math.min(size, Integer.MAX_VALUE));
|