Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 187) sorted by relevance

12345678

/libcore/ojluni/src/main/java/java/util/
DIntSummaryStatistics.java68 private int min = Integer.MAX_VALUE; field in IntSummaryStatistics
87 min = Math.min(min, value); in accept()
100 min = Math.min(min, other.min); in combine()
130 return min; in getMin()
DLongSummaryStatistics.java69 private long min = Long.MAX_VALUE; field in LongSummaryStatistics
98 min = Math.min(min, value); in accept()
112 min = Math.min(min, other.min); in combine()
142 return min; in getMin()
DDoubleSummaryStatistics.java68 private double min = Double.POSITIVE_INFINITY; field in DoubleSummaryStatistics
88 min = Math.min(min, value); in accept()
104 min = Math.min(min, other.min); in combine()
175 return min; in getMin()
DDate.java219 public Date(int year, int month, int date, int hrs, int min) { in Date() argument
220 this(year, month, date, hrs, min, 0); in Date()
243 public Date(int year, int month, int date, int hrs, int min, int sec) { in Date() argument
255 cdate.setNormalizedDate(y, month + 1, date).setTimeOfDay(hrs, min, sec, 0); in Date()
318 int hrs, int min, int sec) { in UTC() argument
331 udate.setNormalizedDate(y, m, date).setTimeOfDay(hrs, min, sec, 0); in UTC()
459 int min = -1; in parse() local
539 else if (min < 0) in parse()
540 min = (byte) n; in parse()
552 else if (hour >= 0 && min < 0) in parse()
[all …]
DJapaneseImperialCalendar.java274 dayOfYear = Math.min((int)(fd - fdd) + 1, dayOfYear);
279 dayOfYear = Math.min((int)(fdd - fd) + 1, dayOfYear);
290 year = Math.min(y, year);
571 int min = getMinimum(field); in roll() local
631 min = getActualMinimum(field); in roll()
647 int n = getRolledValue(internalGet(field), amount, min, max); in roll()
670 min = d.getMonth() - 1; in roll()
671 int n = getRolledValue(internalGet(field), amount, min, max); in roll()
672 if (n == min) { in roll()
712 min = transition.getMonth() - 1; in roll()
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DMinMaxTest.java55 assertTrue(!countTo(0).stream().min(Integer::compare).isPresent()); in testMinMax()
57 assertEquals(1, (int) countTo(1000).stream().min(Integer::compare).get()); in testMinMax()
63 exerciseTerminalOps(data, s -> s.min(Integer::compare)); in testOps()
68 assertEquals(IntStream.empty().min(), OptionalInt.empty()); in testIntMinMax()
70 assertEquals(1, IntStream.range(1, 1001).min().getAsInt()); in testIntMinMax()
76 exerciseTerminalOps(data, s -> s.min()); in testIntOps()
81 assertEquals(LongStream.empty().min(), OptionalLong.empty()); in testLongMinMax()
83 assertEquals(1, LongStream.range(1, 1001).min().getAsLong()); in testLongMinMax()
89 exerciseTerminalOps(data, s -> s.min()); in testLongOps()
94 assertEquals(DoubleStream.empty().min(), OptionalDouble.empty()); in testDoubleMinMax()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DByteTest.java21 final byte min = Byte.MIN_VALUE; in test_compare()
25 assertTrue(Byte.compare(min, min) == 0); in test_compare()
28 assertTrue(Byte.compare(max, min) > 0); in test_compare()
30 assertTrue(Byte.compare(zero, min) > 0); in test_compare()
31 assertTrue(Byte.compare(min, zero) < 0); in test_compare()
32 assertTrue(Byte.compare(min, max) < 0); in test_compare()
DShortTest.java21 final short min = Short.MIN_VALUE; in test_compare() local
25 assertTrue(Short.compare(min, min) == 0); in test_compare()
28 assertTrue(Short.compare(max, min) > 0); in test_compare()
30 assertTrue(Short.compare(zero, min) > 0); in test_compare()
31 assertTrue(Short.compare(min, zero) < 0); in test_compare()
32 assertTrue(Short.compare(min, max) < 0); in test_compare()
DIntegerTest.java40 final int min = Integer.MIN_VALUE; in testCompare() local
44 assertTrue(Integer.compare(min, min) == 0); in testCompare()
47 assertTrue(Integer.compare(max, min) > 0); in testCompare()
49 assertTrue(Integer.compare(zero, min) > 0); in testCompare()
50 assertTrue(Integer.compare(min, zero) < 0); in testCompare()
51 assertTrue(Integer.compare(min, max) < 0); in testCompare()
148 assertEquals(Math.min(a, b), Integer.min(a, b));
DLongTest.java39 final long min = Long.MIN_VALUE; in testCompare() local
43 assertTrue(Long.compare(min, min) == 0); in testCompare()
46 assertTrue(Long.compare(max, min) > 0); in testCompare()
48 assertTrue(Long.compare(zero, min) > 0); in testCompare()
49 assertTrue(Long.compare(min, zero) < 0); in testCompare()
50 assertTrue(Long.compare(min, max) < 0); in testCompare()
155 assertEquals(Math.min(a, b), Long.min(a, b));
/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()
146 public static ValueRange of(long min, long maxSmallest, long maxLargest) { in of() argument
147 return of(min, min, maxSmallest, maxLargest); in of()
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeSetTest.java716 void mutateSet(NavigableSet<Integer> set, int min, int max) { in mutateSet() argument
718 int rangeSize = max - min + 1; in mutateSet()
722 remove(set, min - 5 + rnd.nextInt(rangeSize + 10)); in mutateSet()
735 int element = min + rnd.nextInt(rangeSize); 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()
747 remove(set, min - 5 + rnd.nextInt(rangeSize + 10)); in mutateSubSet()
760 int element = min - 5 + rnd.nextInt(rangeSize + 10); in mutateSubSet()
761 if (element >= min && element <= max) { in mutateSubSet()
[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()
718 remove(set, min - 5 + rnd.nextInt(rangeSize + 10), bs); in mutateSet()
731 int element = min + rnd.nextInt(rangeSize); 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()
744 remove(set, min - 5 + rnd.nextInt(rangeSize + 10), bs); in mutateSubSet()
757 int element = min - 5 + rnd.nextInt(rangeSize + 10); in mutateSubSet()
758 if (element >= min && element <= max) { in mutateSubSet()
[all …]
DTreeMapTest.java823 void mutateMap(NavigableMap<Integer, Integer> map, int min, int max) {
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) {
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 && key <= max) {
[all …]
DConcurrentSkipListMapTest.java1018 void mutateMap(NavigableMap<Integer, Integer> map, int min, int max) {
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) {
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 && key <= max) {
[all …]
/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java1063 public static int min(int a, int b) { in min() method in StrictMath
1064 return Math.min(a, b); in min()
1077 public static long min(long a, long b) { in min() method in StrictMath
1078 return Math.min(a, b); in min()
1095 public static float min(float a, float b) { in min() method in StrictMath
1096 return Math.min(a, b); in min()
1113 public static double min(double a, double b) { in min() method in StrictMath
1114 return Math.min(a, b); in min()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java1531 int min = 0; in test_plusMinutes_one() local
1534 min++; in test_plusMinutes_one()
1535 if (min == 60) { in test_plusMinutes_one()
1537 min = 0; in test_plusMinutes_one()
1540 assertEquals(t.getMinute(), min); in test_plusMinutes_one() local
1548 int min; in test_plusMinutes_fromZero() local
1553 min = i + 120; in test_plusMinutes_fromZero()
1556 min = i + 60; in test_plusMinutes_fromZero()
1559 min = i - 60; in test_plusMinutes_fromZero()
1562 min = i; in test_plusMinutes_fromZero()
[all …]
DTCKLocalDateTime.java1824 int min = 0;
1828 min++;
1829 if (min == 60) {
1831 min = 0;
1836 assertEquals(t.getMinute(), min);
1874 int min = 0;
1881 min++;
1884 if (min == 60) {
1886 min = 0;
1891 assertEquals(t.getMinute(), min);
[all …]
/libcore/ojluni/src/main/java/sun/security/util/
DDerInputBuffer.java415 int hr, min; in getTime() local
421 min = 10 * Character.digit((char)buf[pos++], 10); in getTime()
422 min += Character.digit((char)buf[pos++], 10); in getTime()
424 if (hr >= 24 || min >= 60) in getTime()
427 time -= ((hr * 60) + min) * 60 * 1000; in getTime()
433 min = 10 * Character.digit((char)buf[pos++], 10); in getTime()
434 min += Character.digit((char)buf[pos++], 10); in getTime()
436 if (hr >= 24 || min >= 60) in getTime()
439 time += ((hr * 60) + min) * 60 * 1000; in getTime()
/libcore/luni/src/main/java/java/math/
DLogical.java113 int resLength = Math.min(val.numberLength, that.numberLength); in andPositive()
148 int limit = Math.min(negative.numberLength, positive.numberLength); in andDiffSigns()
254 int limit = Math.min(val.numberLength, that.numberLength); in andNotPositive()
276 int resLength = Math.min(positive.numberLength, negative.numberLength); in andNotPositiveNegative()
316 limit = Math.min(negative.numberLength, iPos); in andNotNegativePositive()
331 limit = Math.min(positive.numberLength, negative.numberLength); in andNotNegativePositive()
354 limit = Math.min(positive.numberLength, negative.numberLength); in andNotNegativePositive()
387 limit = Math.min(val.numberLength, iThat); in andNotNegative()
411 limit = Math.min(val.numberLength, that.numberLength); in andNotNegative()
489 int resLength = Math.min(val.numberLength, that.numberLength); in orNegative()
[all …]
/libcore/ojluni/src/main/native/
DSocketOutputStream.c41 #define min(a, b) ((a) < (b) ? (a) : (b)) macro
83 buflen = min(MAX_HEAP_BUFFER_LEN, len); in SocketOutputStream_socketWrite0()
95 int chunkLen = min(buflen, len); in SocketOutputStream_socketWrite0()
/libcore/ojluni/annotations/mmodule/java/lang/
DMath.annotated.java134 public static int min(int a, int b) { throw new RuntimeException("Stub!"); } in min() method in Math
136 public static long min(long a, long b) { throw new RuntimeException("Stub!"); } in min() method in Math
138 public static float min(float a, float b) { throw new RuntimeException("Stub!"); } in min() method in Math
140 public static double min(double a, double b) { throw new RuntimeException("Stub!"); } in min() method in Math
/libcore/ojluni/src/main/java/sun/misc/
DFormattedFloatingDecimal.java175 int t = Math.min(nDigits - exp, precision); in fillCompatible()
187 int zeros = Math.max(0, Math.min(-exp, precision)); in fillCompatible()
188 int t = Math.max(0, Math.min(nDigits, precision + exp)); in fillCompatible()
274 int t = Math.min(nDigits - exp, precision); in fillDecimal()
286 int zeros = Math.max(0, Math.min(-exp, precision)); in fillDecimal()
287 int t = Math.max(0, Math.min(nDigits, precision + exp)); in fillDecimal()
316 int t = Math.max(0, Math.min(nDigits - 1, precision)); in fillScientific()
/libcore/ojluni/src/main/java/java/io/
DBufferedWriter.java152 private int min(int a, int b) { in min() method in BufferedWriter
194 int d = min(nChars - nextChar, t - b); in write()
225 int d = min(nChars - nextChar, t - b); in write()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatters.java451 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_print_isoLocalTime() argument
453 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoLocalTime()
468 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_parse_isoLocalTime() argument
471 Expected expected = createTime(hour, min, sec, nano); in test_parse_isoLocalTime()
521 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_print_isoOffsetTime() argument
523 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoOffsetTime()
538 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_parse_isoOffsetTime() argument
541 Expected expected = createTime(hour, min, sec, nano); in test_parse_isoOffsetTime()
591 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_print_isoTime() argument
593 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoTime()
[all …]

12345678