/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | ZipInputStream.java | 253 int max = (int)Math.min(n, Integer.MAX_VALUE); 255 while (total < max) { 256 int len = max - total;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | MathTest.java | 615 * java.lang.Math#max(double, double) 618 // Test for method double java.lang.Math.max(double, double) 619 assertEquals("Incorrect double max value", 1908897.6000089, 620 max(-1908897.6000089, 1908897.6000089, useMath), 0D); 621 assertEquals("Incorrect double max value", 622 1908897.6000089, max(2.0, 1908897.6000089, useMath), 0D); 623 assertEquals("Incorrect double max value", -2.0, max(-2.0, -1908897.6000089, useMath), 0D); 628 Double.toString(Double.NaN), Double.toString(max(Double.NaN, 42.0d, useMath))); 630 Double.toString(Double.NaN), Double.toString(max(42. 739 private static double max(double a, double b, boolean useMath) { method in class:MathTest [all...] |
H A D | StrictMathTest.java | 582 * java.lang.StrictMath#max(double, double) 585 // Test for method double java.lang.StrictMath.max(double, double) 586 assertEquals("Incorrect double max value", 1908897.6000089, StrictMath.max( 588 assertEquals("Incorrect double max value", 1908897.6000089, StrictMath.max(2.0, 590 assertEquals("Incorrect double max value", -2.0, StrictMath.max(-2.0, 596 * java.lang.StrictMath#max(float, float) 599 // Test for method float java.lang.StrictMath.max(floa [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Math.java | 1273 public static int max(int a, int b) { method in class:Math 1287 public static long max(long a, long b) { method in class:Math 1309 public static float max(float a, float b) { method in class:Math 1335 public static double max(double a, double b) { method in class:Math 2285 scaleFactor = Math.max(scaleFactor, -MAX_SCALE); 2349 scaleFactor = Math.max(Math.min(scaleFactor, MAX_SCALE), -MAX_SCALE);
|
H A D | Integer.java | 313 int chars = Math.max(((mag + (shift - 1)) / shift), 1); 828 i = Math.max(i, 127); 1602 * as if by calling {@link Math#max(int, int) Math.max}. 1610 public static int max(int a, int b) { method in class:Integer 1611 return Math.max(a, b);
|
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | DerInputBuffer.java | 108 int max = this.available(); 109 if (other.available() != max) 111 for (int i = 0; i < max; i++) {
|
H A D | DerInputStream.java | 479 int i, max = vec.size(); 480 DerValue[] retval = new DerValue[max]; 482 for (i = 0; i < max; i++)
|
H A D | ManifestDigester.java | 233 int max = offset + length; 235 while(i <max) {
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | MathBenchmark.java | 245 result = Math.max(d, d); 253 result = Math.max(f, f); 261 result = Math.max(i, i); 269 result = Math.max(l, l);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
H A D | BigIntegerCompareTest.java | 28 * Methods: abs, compareTo, equals, max, min, negate, signum 294 * max(BigInteger val). 305 BigInteger result = aNumber.max(bNumber); 315 * max(BigInteger val). 326 BigInteger result = aNumber.max(bNumber); 336 * max(BigInteger val). 347 BigInteger result = aNumber.max(bNumber); 357 * max(BigInteger val). 358 * max of negative and ZERO. 366 BigInteger result = aNumber.max(bNumbe [all...] |
H A D | BigDecimalCompareTest.java | 33 * max, min, negate, signum 259 * max() for equal BigDecimals 271 assertEquals("incorrect value", cNumber, aNumber.max(bNumber)); 275 * max() for unequal BigDecimals 287 assertEquals("incorrect value", cNumber, aNumber.max(bNumber)); 291 * max() for unequal BigDecimals 303 assertEquals("incorrect value", cNumber, aNumber.max(bNumber));
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Calendar.java | 1078 // maxFieldIndex keeps the max index of fields which have been set. 1523 // Set the fields from the min stamp to the max stamp so that 2474 dowimStamp = Math.max(stamp[DAY_OF_WEEK_IN_MONTH], dowStamp); 2476 bestStamp = Math.max(Math.max(womStamp, dowimStamp), woyStamp); 2540 bestStamp = Math.max(stamp[HOUR], stamp[AM_PM]); 3422 int max = MINIMUM_USER_STAMP; 3432 if (max < v) { 3433 max = v; 3436 if (max ! [all...] |
H A D | HashSet.java | 118 map = new HashMap<>(Math.max((int) (c.size()/.75f) + 1, 16));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/ |
H A D | ThreadsTest.java | 239 Math.max((long) ((double) expectedMillis * 1.20), 10); 240 long waitMillis = Math.max(expectedMillis * 10, 1000);
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ArrayDequeTest.java | 787 int max = rng.nextInt(5) + 2; 788 int split = rng.nextInt(max - 1) + 1; 789 for (int j = 1; j <= max; ++j) 799 for (int j = split + 1; j <= max; ++j) { 855 int max = rng.nextInt(5) + 2; 856 int split = rng.nextInt(max - 1) + 1; 857 for (int j = max; j >= 1; --j) 867 for (int j = split + 1; j <= max; ++j) {
|
H A D | ConcurrentLinkedDequeTest.java | 759 int max = rng.nextInt(5) + 2; 760 int split = rng.nextInt(max - 1) + 1; 761 for (int j = 1; j <= max; ++j) 771 for (int j = split + 1; j <= max; ++j) { 827 int max = rng.nextInt(5) + 2; 828 int split = rng.nextInt(max - 1) + 1; 829 for (int j = max; j >= 1; --j) 839 for (int j = split + 1; j <= max; ++j) {
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
H A D | VerifyAccess.java | 220 for (int n = -1, max = type.parameterCount(); n < max; n++) {
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
H A D | TestFractionPrinterParser.java | 327 public void test_parse_nothing(TemporalField field, int min, int max, boolean decimalPoint, String text, int pos, int expected) { argument 329 TemporalAccessor parsed = getFormatter(field, min, max, decimalPoint).parseUnresolved(text, ppos);
|
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | DoubleStream.java | 346 * @apiNote Sum, min, max, and average are all special cases of reduction. 372 * @see #max() 526 * return reduce(Double::max); 535 OptionalDouble max(); method in interface:DoubleStream
|
/libcore/ojluni/src/main/java/sun/net/www/ |
H A D | ParseUtil.java | 547 int f = Math.max(Math.min(first, 63), 0); 548 int l = Math.max(Math.min(last, 63), 0); 570 int f = Math.max(Math.min(first, 127), 64) - 64; 571 int l = Math.max(Math.min(last, 127), 64) - 64;
|
/libcore/luni/src/main/java/java/math/ |
H A D | BigDecimal.java | 750 if (Math.max(this.bitLength, augend.bitLength) + 1 < 64) { 764 Math.max(thisValue.bitLength,augend.bitLength+LONG_POWERS_OF_TEN_BIT_LENGTH[diffScale])+1<64) { 854 if (Math.max(this.bitLength, subtrahend.bitLength) + 1 < 64) { 861 Math.max(this.bitLength,subtrahend.bitLength+LONG_POWERS_OF_TEN_BIT_LENGTH[diffScale])+1<64) { 869 Math.max(this.bitLength+LONG_POWERS_OF_TEN_BIT_LENGTH[diffScale],subtrahend.bitLength)+1<64) { 1252 newScale = safeLongToInt(diffScale + Math.max(k, l)); 1442 newScale = Math.min(diffScale, Math.max(mcPrecision - quotPrecision + 1, 0)); 1448 long exp = Math.min(-diffScale, Math.max((long)mcPrecision - diffPrecision, 0)); 1966 return zeroScaledBy(Math.max(newScale, 0)); 2156 * @return {@code max(thi 2160 public BigDecimal max(BigDecimal val) { method in class:BigDecimal [all...] |
/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | MinguoDate.java | 264 long max = (getProlepticYear() <= 0 ? -range.getMinimum() + 1 + YEARS_DIFFERENCE : range.getMaximum() - YEARS_DIFFERENCE); 265 return ValueRange.of(1, max);
|
H A D | ThaiBuddhistDate.java | 264 long max = (getProlepticYear() <= 0 ? -(range.getMinimum() + YEARS_DIFFERENCE) + 1 : range.getMaximum() + YEARS_DIFFERENCE); 265 return ValueRange.of(1, max);
|
/libcore/ojluni/src/main/java/javax/sql/ |
H A D | RowSet.java | 331 * @param max the new max column size limit in bytes; zero means unlimited 335 void setMaxFieldSize(int max) throws SQLException; argument 354 * @param max the new maximum number of rows; zero means unlimited 358 void setMaxRows(int max) throws SQLException; argument
|
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | FloatingDecimal.java | 443 int nTinyBits = Math.max( 0, nFractBits - binExp - 1 ); 503 // B = d// 2^nTinyBits// 10^max( 0, -decExp ) 504 // S = 10^max( 0, decExp)// 2^nTinyBits 507 // M = (1/2^nSignificantBits)// 2^nTinyBits// 10^max( 0, -decExp ) 520 B5 = Math.max( 0, -decExp ); 523 S5 = Math.max( 0, decExp ); 1252 final int B5 = Math.max(0, -exp); // powers of 5 in bigB, value is not modified inside correctionLoop 1253 final int D5 = Math.max(0, exp); // powers of 5 in bigD, value is not modified inside correctionLoop 1541 fValue = Math.max(Float.MIN_VALUE, Math.min(Float.MAX_VALUE, (float) dValue)); 1558 final int B5 = Math.max( [all...] |