/libcore/ojluni/src/main/java/java/util/ |
D | IntSummaryStatistics.java | 67 private int min = Integer.MAX_VALUE; field in IntSummaryStatistics 86 min = Math.min(min, value); in accept() 99 min = Math.min(min, other.min); in combine() 129 return min; in getMin()
|
D | LongSummaryStatistics.java | 68 private long min = Long.MAX_VALUE; field in LongSummaryStatistics 97 min = Math.min(min, value); in accept() 111 min = Math.min(min, other.min); in combine() 141 return min; in getMin()
|
D | DoubleSummaryStatistics.java | 67 private double min = Double.POSITIVE_INFINITY; field in DoubleSummaryStatistics 87 min = Math.min(min, value); in accept() 103 min = Math.min(min, other.min); in combine() 174 return min; in getMin()
|
D | Date.java | 217 public Date(int year, int month, int date, int hrs, int min) { in Date() argument 218 this(year, month, date, hrs, min, 0); in Date() 241 public Date(int year, int month, int date, int hrs, int min, int sec) { in Date() argument 253 cdate.setNormalizedDate(y, month + 1, date).setTimeOfDay(hrs, min, sec, 0); in Date() 316 int hrs, int min, int sec) { in UTC() argument 329 udate.setNormalizedDate(y, m, date).setTimeOfDay(hrs, min, sec, 0); in UTC() 457 int min = -1; in parse() local 534 else if (min < 0) in parse() 535 min = (byte) n; in parse() 547 else if (hour >= 0 && min < 0) in parse() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ByteTest.java | 21 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()
|
D | ShortTest.java | 21 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()
|
D | IntegerTest.java | 40 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));
|
D | LongTest.java | 38 final long min = Long.MIN_VALUE; in testCompare() local 42 assertTrue(Long.compare(min, min) == 0); in testCompare() 45 assertTrue(Long.compare(max, min) > 0); in testCompare() 47 assertTrue(Long.compare(zero, min) > 0); in testCompare() 48 assertTrue(Long.compare(min, zero) < 0); in testCompare() 49 assertTrue(Long.compare(min, max) < 0); in testCompare() 154 assertEquals(Math.min(a, b), Long.min(a, b));
|
D | OldAndroidMathTest.java | 370 assertEquals("Incorrect double min value", -1908897.6000089, Math.min(-1908897.6000089, in testMinDD() 373 2.0, Math.min(2.0, 1908897.6000089), 0D); in testMinDD() 374 assertEquals("Incorrect double min value", -1908897.6000089, Math.min(-2.0, in testMinDD() 380 assertTrue("Incorrect float min value", Math.min(-1908897.600f, in testMinFF() 383 Math.min(2.0f, 1908897.600f) == 2.0f); in testMinFF() 385 Math.min(-2.0f, -1908897.600f) == -1908897.600f); in testMinFF() 391 -19088976, Math.min(-19088976, 19088976)); in testMinII() 392 assertEquals("Incorrect int min value", 20, Math.min(20, 19088976)); in testMinII() 394 -19088976, Math.min(-20, -19088976)); in testMinII() 400 assertEquals("Incorrect long min value", -19088976000089L, Math.min(-19088976000089L, in testMinJJ() [all …]
|
D | OldAndroidStrictMathTest.java | 386 assertEquals("Incorrect double min value", -1908897.6000089, StrictMath.min( in testMinDD() 388 assertEquals("Incorrect double min value", 2.0, StrictMath.min(2.0, in testMinDD() 390 assertEquals("Incorrect double min value", -1908897.6000089, StrictMath.min(-2.0, in testMinDD() 396 assertTrue("Incorrect float min value", StrictMath.min(-1908897.600f, in testMinFF() 398 assertTrue("Incorrect float min value", StrictMath.min(2.0f, in testMinFF() 400 assertTrue("Incorrect float min value", StrictMath.min(-2.0f, in testMinFF() 406 assertEquals("Incorrect int min value", -19088976, StrictMath.min(-19088976, in testMinII() 409 20, StrictMath.min(20, 19088976)); in testMinII() 411 -19088976, StrictMath.min(-20, -19088976)); in testMinII() 417 assertEquals("Incorrect long min value", -19088976000089L, StrictMath.min(-19088976000089L, in testMinJJ() [all …]
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | MinMaxTest.java | 55 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/jsr166-tests/src/test/java/jsr166/ |
D | TreeSetTest.java | 716 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 …]
|
D | ConcurrentSkipListSetTest.java | 712 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 …]
|
D | TreeMapTest.java | 823 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 …]
|
D | ConcurrentSkipListMapTest.java | 1018 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/sun/security/util/ |
D | DerInputBuffer.java | 408 int hr, min; in getTime() local 414 min = 10 * Character.digit((char)buf[pos++], 10); in getTime() 415 min += Character.digit((char)buf[pos++], 10); in getTime() 417 if (hr >= 24 || min >= 60) in getTime() 420 time -= ((hr * 60) + min) * 60 * 1000; in getTime() 426 min = 10 * Character.digit((char)buf[pos++], 10); in getTime() 427 min += Character.digit((char)buf[pos++], 10); in getTime() 429 if (hr >= 24 || min >= 60) in getTime() 432 time += ((hr * 60) + min) * 60 * 1000; in getTime()
|
/libcore/luni/src/main/java/java/math/ |
D | Logical.java | 113 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/ |
D | SocketOutputStream.c | 41 #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/src/main/java/java/io/ |
D | InputStream.java | 219 int size = (int)Math.min(MAX_SKIP_BUFFER_SIZE, remaining); in skip() 222 nr = read(skipBuffer, 0, (int)Math.min(size, remaining)); in skip()
|
D | BufferedWriter.java | 152 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()
|
D | Reader.java | 179 int nn = (int) Math.min(n, maxSkipBufferSize); in skip() 185 int nc = read(skipBuffer, 0, (int)Math.min(r, nn)); in skip()
|
D | StringReader.java | 99 int n = Math.min(length - next, len); in read() 128 long n = Math.min(length - next, ns); in skip()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | String.java | 1106 int min = Math.min(n1, n2); in compare() local 1107 for (int i = 0; i < min; i++) { in compare() 1552 int i = Math.min(fromIndex, count - 1); in lastIndexOf() 1571 int i = Math.min(fromIndex, count - 2); in lastIndexOfSupplementary() 1790 int min = target.count - 1; in lastIndexOf() local 1791 int i = min + fromIndex; in lastIndexOf() 1795 while (i >= min && source.charAt(i) != strLastChar) { in lastIndexOf() 1798 if (i < min) { in lastIndexOf() 1849 int min = sourceOffset + targetCount - 1; in lastIndexOf() local 1850 int i = min + fromIndex; in lastIndexOf() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ByteTest.java | 357 final Byte min = new Byte(Byte.MIN_VALUE); in test_compareToLjava_lang_Byte() local 362 assertTrue(min.compareTo(min) == 0); in test_compareToLjava_lang_Byte() 366 assertTrue(max.compareTo(min) > 0); in test_compareToLjava_lang_Byte() 369 assertTrue(zero.compareTo(min) > 0); in test_compareToLjava_lang_Byte() 371 assertTrue(min.compareTo(zero) < 0); in test_compareToLjava_lang_Byte() 372 assertTrue(min.compareTo(max) < 0); in test_compareToLjava_lang_Byte() 375 min.compareTo(null); in test_compareToLjava_lang_Byte()
|
/libcore/luni/src/test/resources/ |
D | math_java_only.csv | 2933 min,-0x1.13a94916c6632p1,0x1.ac23ebf48ab15p-1,-0x1.13a94916c6632p1 2934 min,0x1.2d7766f5c9b61p0,0x1.2d7766f5c9b61p0,0x1.59be058e00538p0 2935 min,0x1.fe34c9c10228dp-2,0x1.0c09f682d7678p3,0x1.fe34c9c10228dp-2 2936 min,-0x1.ce89c50cf4192p-1,0x1.3491274e10f1ep-1,-0x1.ce89c50cf4192p-1 2937 min,-0x1.4981407ee7abep3,-0x1.32fa1d18254cbp2,-0x1.4981407ee7abep3 2938 min,-0x1.3e13233971719p0,-0x1.3e13233971719p0,0x1.4239cce7fed1ap0 2939 min,-0x1.b93ae6945c66cp-2,-0x1.b93ae6945c66cp-2,0x1.4e41c5625209ap2 2940 min,-0x1.bae87769f9bc5p-4,0x1.1cfccaf510c3dp1,-0x1.bae87769f9bc5p-4 2941 min,-0x1.4513fe72d84fcp-1,-0x1.2204a6b91c706p-2,-0x1.4513fe72d84fcp-1 2942 min,-0x1.7d39541b56792p-1,-0x1.7d39541b56792p-1,0x1.9e00ae836a6d8p-4 [all …]
|