/libcore/luni/src/test/java/libcore/java/lang/ |
D | StrictMathTest.java | 31 testIntExact(Integer.MIN_VALUE, 1); in testIntExact() 32 testIntExact(Integer.MIN_VALUE, -1); in testIntExact() 34 testIntExact(Integer.MIN_VALUE, Integer.MIN_VALUE); in testIntExact() 83 testLongExact(Long.MIN_VALUE, 1); in testLongExact() 84 testLongExact(Long.MIN_VALUE, -1); in testLongExact() 86 testLongExact(Long.MIN_VALUE, Long.MIN_VALUE); in testLongExact() 134 if (a <= Integer.MAX_VALUE && a >= Integer.MIN_VALUE) { in testToIntExactL() 147 testFloorDivModI(Integer.MIN_VALUE, 1); in testIntFloorDivMod() 148 testFloorDivModI(Integer.MIN_VALUE, -1); in testIntFloorDivMod() 193 testFloorDivModL(Long.MIN_VALUE, 1L); in testLongFloorDivMod() [all …]
|
D | MathTest.java | 31 testIntExact(Integer.MIN_VALUE, 1); in testIntExact() 32 testIntExact(Integer.MIN_VALUE, -1); in testIntExact() 34 testIntExact(Integer.MIN_VALUE, Integer.MIN_VALUE); in testIntExact() 119 testLongExact(Long.MIN_VALUE, 1); in testLongExact() 120 testLongExact(Long.MIN_VALUE, -1); in testLongExact() 122 testLongExact(Long.MIN_VALUE, Long.MIN_VALUE); in testLongExact() 206 if (a <= Integer.MAX_VALUE && a >= Integer.MIN_VALUE) { in testToIntExactL() 219 testFloorDivModI(Integer.MIN_VALUE, 1); in testIntFloorDivMod() 220 testFloorDivModI(Integer.MIN_VALUE, -1); in testIntFloorDivMod() 265 testFloorDivModL(Long.MIN_VALUE, 1L); in testLongFloorDivMod() [all …]
|
D | OldDoubleTest.java | 26 d= new Double(Byte.MIN_VALUE); in test_byteValue() 27 assertEquals("Returned incorrect byte value", Byte.MIN_VALUE, d.byteValue()); in test_byteValue() 48 assertEquals(Double.MIN_VALUE, new Double("4.9E-324").doubleValue()); in test_doubleValue() 55 assertEquals(Float.MIN_VALUE, new Double("1.4E-45").floatValue()); in test_floatValue() 61 assertEquals("Returned incorrect int value", Integer.MIN_VALUE, in test_intValue()
|
D | OldAndroidMathTest.java | 141 1.7031839360032603E-108, Math.cbrt(Double.MIN_VALUE), 0D); in testCbrtD() 182 assertEquals("Should return 1.0", 1.0, Math.cosh(Double.MIN_VALUE), 0D); in testCoshD() 217 assertEquals("Should return MIN_VALUE", Double.MIN_VALUE, Math in testExpm1D() 218 .expm1(Double.MIN_VALUE), 0D); in testExpm1D() 261 -5413.7185, Double.MIN_VALUE), 0D); in testHypotDD() 300 assertEquals(-323.3062153431158, Math.log10(Double.MIN_VALUE)); in testLog10D() 324 assertEquals("Should return Double.MIN_VALUE", Double.MIN_VALUE, Math in testLog1pD() 325 .log1p(Double.MIN_VALUE), 0D); in testLog1pD() 456 assertEquals(1.0, Math.signum(Double.MIN_VALUE), 0D); in testSignumD() 458 assertEquals(-1.0, Math.signum(-Double.MIN_VALUE), 0D); in testSignumD() [all …]
|
D | OldAndroidStrictMathTest.java | 121 1.7031839360032603E-108, StrictMath.cbrt(Double.MIN_VALUE)); in testCbrtD() 175 .cosh(Double.MIN_VALUE)); in testCosh_D() 211 assertEquals("Should return MIN_VALUE", Double.MIN_VALUE, StrictMath in testExpm1D() 212 .expm1(Double.MIN_VALUE)); in testExpm1D() 257 -5413.7185, Double.MIN_VALUE)); in testHypotDD() 311 StrictMath.log10(Double.MIN_VALUE)); in testLog10D() 339 assertEquals("Should return Double.MIN_VALUE", Double.MIN_VALUE, in testLog1pD() 340 StrictMath.log1p(Double.MIN_VALUE)); in testLog1pD() 472 assertEquals(1.0, StrictMath.signum(Double.MIN_VALUE), 0D); in testSignumD() 474 assertEquals(-1.0, StrictMath.signum(-Double.MIN_VALUE), 0D); in testSignumD() [all …]
|
D | OldFloatTest.java | 64 assertTrue(new Float(Float.MAX_VALUE).hashCode() != new Float(Float.MIN_VALUE).hashCode()); in test_hashCode() 79 assertEquals(0, new Float(Float.MIN_VALUE).intValue()); in test_intValue() 85 assertFalse(Float.isNaN(Float.MIN_VALUE)); in test_isNaNF() 90 assertEquals(0, new Float(Float.MIN_VALUE).longValue()); in test_longValue()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StrictMathTest.java | 156 1.7031839360032603E-108, StrictMath.cbrt(Double.MIN_VALUE)); in test_cbrt_D() 348 .cosh(Double.MIN_VALUE)); in test_cosh_D() 390 assertEquals("Should return MIN_VALUE", Double.MIN_VALUE, StrictMath in test_expm1_D() 391 .expm1(Double.MIN_VALUE)); in test_expm1_D() 483 -5413.7185, Double.MIN_VALUE)); in test_hypot_DD() 546 StrictMath.log10(Double.MIN_VALUE)); in test_log10_D() 577 assertEquals("Should return Double.MIN_VALUE", Double.MIN_VALUE, in test_log1p_D() 578 StrictMath.log1p(Double.MIN_VALUE)); in test_log1p_D() 1012 assertEquals(64.0, StrictMath.scalb(Double.MIN_VALUE, 1080)); in test_scalb_DI() 1043 Double.MIN_VALUE, 8000)); in test_scalb_DI() [all …]
|
D | MathTest.java | 137 assertEquals(1.7031839360032603E-108, Math.cbrt(Double.MIN_VALUE), 0D); in test_cbrt_D() 157 Double.MIN_NORMAL, Double.MIN_NORMAL / 2, Double.MIN_VALUE, +0.0, 158 0.0, -0.0, -Double.MIN_VALUE, -Double.MIN_NORMAL / 2, 229 Float.MIN_NORMAL, Float.MIN_NORMAL / 2, Float.MIN_VALUE, +0.0f, 230 0.0f, -0.0f, -Float.MIN_VALUE, -Float.MIN_NORMAL / 2, 330 assertEquals("Should return 1.0", 1.0, Math.cosh(Double.MIN_VALUE), 0D); in test_cosh_D() 371 assertEquals("Should return MIN_VALUE", Double.MIN_VALUE, Math in test_expm1_D() 372 .expm1(Double.MIN_VALUE), 0D); in test_expm1_D() 412 -Double.MIN_NORMAL / 2, Double.MIN_VALUE, -Double.MIN_VALUE, +0.0, 458 … Float.MIN_VALUE, -Float.MIN_VALUE, +0.0f, 0.0f, -0.0f, Float.NaN, 1, Float.MIN_NORMAL * 1.5f }; [all …]
|
/libcore/luni/src/test/java/dalvik/system/ |
D | JniTest.java | 150 final char[] literals = {Character.MAX_VALUE, Character.MIN_VALUE, in testPassingChars() 181 final byte[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, 0, -1}; in testPassingBytes() 209 …final short[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, 0, -1}; in testPassingShorts() 237 final int[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, in testPassingInts() 238 Integer.MAX_VALUE, Integer.MIN_VALUE, 0, -1}; in testPassingInts() 266 final long[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, in testPassingLongs() 267 … Integer.MAX_VALUE, Integer.MIN_VALUE, Long.MAX_VALUE, Long.MIN_VALUE, 0, -1}; in testPassingLongs() 295 final float[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, in testPassingFloats() 296 … Integer.MAX_VALUE, Integer.MIN_VALUE, Long.MAX_VALUE, Long.MIN_VALUE, in testPassingFloats() 297 Float.MAX_VALUE, Float.MIN_VALUE, Float.MIN_NORMAL, Float.NaN, in testPassingFloats() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
D | URLConnectionTest.java | 625 hf = uc.getHeaderFieldDate("Content-Encoding", Long.MIN_VALUE); 627 Long.MIN_VALUE, hf); 628 hf = uc.getHeaderFieldDate("Content-Length", Long.MIN_VALUE); 630 Long.MIN_VALUE, hf); 631 hf = uc.getHeaderFieldDate("Content-Type", Long.MIN_VALUE); 633 Long.MIN_VALUE, hf); 634 hf = uc.getHeaderFieldDate("content-type", Long.MIN_VALUE); 636 Long.MIN_VALUE, hf); 637 hf = uc.getHeaderFieldDate("Date", Long.MIN_VALUE); 640 hf = uc.getHeaderFieldDate("SERVER", Long.MIN_VALUE); [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | FieldTest.java | 1181 f.setByte(x, Byte.MIN_VALUE); in test_setByteLjava_lang_ObjectB() 1192 f.setByte(null, Byte.MIN_VALUE); in test_setByteLjava_lang_ObjectB() 1203 f.setByte(null, Byte.MIN_VALUE); in test_setByteLjava_lang_ObjectB() 1205 assertEquals("Returned incorrect byte field value", Byte.MIN_VALUE, in test_setByteLjava_lang_ObjectB() 1231 f.setChar(x, Character.MIN_VALUE); in test_setCharLjava_lang_ObjectC() 1242 f.setChar(null, Character.MIN_VALUE); in test_setCharLjava_lang_ObjectC() 1253 f.setChar(null, Character.MIN_VALUE); in test_setCharLjava_lang_ObjectC() 1256 Character.MIN_VALUE, val); in test_setCharLjava_lang_ObjectC() 1270 f.setDouble(x, Double.MIN_VALUE); in test_setDoubleLjava_lang_ObjectD() 1275 assertEquals("Returned incorrect double field value", Double.MIN_VALUE, in test_setDoubleLjava_lang_ObjectD() [all …]
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | TimestampTest.java | 32 Timestamp t1 = new Timestamp(Long.MIN_VALUE); in testToString() 35 Timestamp t2 = new Timestamp(Long.MIN_VALUE + 1); in testToString() 38 Timestamp t3 = new Timestamp(Long.MIN_VALUE + 807); in testToString() 41 Timestamp t4 = new Timestamp(Long.MIN_VALUE + 808); in testToString()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FloatConsts.java | 45 public static final float MIN_VALUE = java.lang.Float.MIN_VALUE; field in FloatConsts
|
D | DoubleConsts.java | 45 public static final double MIN_VALUE = java.lang.Double.MIN_VALUE; field in DoubleConsts
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | DHGenParameterSpecTest.java | 43 int[] primes = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE}; in testDHGenParameterSpec() 44 int[] exponents = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE}; in testDHGenParameterSpec()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Math.java | 854 (x == Long.MIN_VALUE && y == -1)) { in multiplyExact() 905 if (a == Integer.MIN_VALUE) { in decrementExact() 922 if (a == Long.MIN_VALUE) { in decrementExact() 939 if (a == Integer.MIN_VALUE) { in negateExact() 956 if (a == Long.MIN_VALUE) { in negateExact() 1888 return -Double.MIN_VALUE; in nextDown() 1925 return -Float.MIN_VALUE; in nextDown()
|
D | Short.java | 50 public static final short MIN_VALUE = -32768; field in Short 119 if (i < MIN_VALUE || i > MAX_VALUE) in parseShort() 283 if (i < MIN_VALUE || i > MAX_VALUE) in decode()
|
D | Byte.java | 51 public static final byte MIN_VALUE = -128; field in Byte 150 if (i < MIN_VALUE || i > MAX_VALUE) in parseByte() 278 if (i < MIN_VALUE || i > MAX_VALUE) in decode()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Arrays2Test.java | 39 -Double.MAX_VALUE, -2d, -Double.MIN_VALUE, -0d, 0d, in test_binarySearch$DD() 40 Double.MIN_VALUE, 2d, Double.MAX_VALUE, in test_binarySearch$DD() 59 -Float.MAX_VALUE, -2f, -Float.MIN_VALUE, -0f, 0f, in test_binarySearch$FF() 60 Float.MIN_VALUE, 2f, Float.MAX_VALUE, Float.POSITIVE_INFINITY, in test_binarySearch$FF() 81 Arrays.fill(x, Double.MIN_VALUE); in test_equals$D$D() 104 Arrays.fill(x, Float.MIN_VALUE); in test_equals$F$F() 133 …double[] specials1 = new double[] { Double.NaN, Double.MAX_VALUE, Double.MIN_VALUE, 0d, -0d, Doubl… in test_sort$D() 134 …] { 0d, Double.POSITIVE_INFINITY, -0d, Double.NEGATIVE_INFINITY, Double.MIN_VALUE, Double.NaN, Dou… in test_sort$D() 135 …double[] answer = new double[] { Double.NEGATIVE_INFINITY, -0d, 0d, Double.MIN_VALUE, Double.MAX_V… in test_sort$D() 169 …float[] specials1 = new float[] { Float.NaN, Float.MAX_VALUE, Float.MIN_VALUE, 0f, -0f, Float.POSI… in test_sort$F() [all …]
|
D | IllegalFormatPrecisionExceptionTest.java | 33 Integer.MIN_VALUE); in test_illegalFormatPrecisionException() 34 assertEquals(Integer.MIN_VALUE, illegalFormatPrecisionException in test_illegalFormatPrecisionException()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | IntReduceTest.java | 67 folded = exerciseTerminalOps(data, s -> s.reduce(Integer.MIN_VALUE, irMax)); in testOps() 68 assertEquals(folded, seedless.orElse(Integer.MIN_VALUE)); in testOps() 79 …folded = exerciseTerminalOps(data, s -> s.map(irDoubler), s -> s.reduce(Integer.MIN_VALUE, irMax)); in testOps() 80 assertEquals(folded, seedless.orElse(Integer.MIN_VALUE)); in testOps()
|
D | ReduceTest.java | 73 folded = exerciseTerminalOps(data, s -> s.reduce(Integer.MIN_VALUE, rMax, rMax)); in testOps() 74 assertEquals(folded, seedless.orElse(Integer.MIN_VALUE)); in testOps() 85 …folded = exerciseTerminalOps(data, s -> s.map(mDoubler), s -> s.reduce(Integer.MIN_VALUE, rMax, rM… in testOps() 86 assertEquals(folded, seedless.orElse(Integer.MIN_VALUE)); in testOps()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldRandomAccessFileTest.java | 422 raf.writeByte(Byte.MIN_VALUE); in test_read_writeByte() 425 raf.writeByte(Byte.MIN_VALUE - 1); in test_read_writeByte() 430 Byte.MIN_VALUE, raf.readByte()); in test_read_writeByte() 468 raf.writeChar(Character.MIN_VALUE); in test_read_writeChar() 471 raf.writeChar(Character.MIN_VALUE - 1); in test_read_writeChar() 476 Character.MIN_VALUE, raf.readChar()); in test_read_writeChar() 532 raf.writeDouble(Double.MIN_VALUE); in test_read_writeDouble() 569 raf.writeFloat(Float.MIN_VALUE); in test_read_writeFloat() 588 raf.writeInt(Integer.MIN_VALUE); in test_read_writeInt() 591 raf.writeInt(Integer.MIN_VALUE - 1); in test_read_writeInt() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ParsePositionTest.java | 30 ParsePosition pp1 = new ParsePosition(Integer.MIN_VALUE); in test_ConstructorI() 31 assertTrue("Initialization failed.", pp1.getIndex() == Integer.MIN_VALUE); in test_ConstructorI()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ThreadLocalRandomTest.java | 130 for (int bound : new int[] { 0, -17, Integer.MIN_VALUE }) { 145 { Integer.MAX_VALUE, Integer.MIN_VALUE }, 202 for (long bound : new long[] { 0L, -17L, Long.MIN_VALUE }) { 217 { Long.MAX_VALUE, Long.MIN_VALUE }, 276 -Double.MIN_VALUE,
|