/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
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 …]
|
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() 948 assertEquals(64.0, StrictMath.scalb(Double.MIN_VALUE, 1080)); in test_scalb_DI() 979 Double.MIN_VALUE, 8000)); in test_scalb_DI() [all …]
|
D | LongTest.java | 324 .toBinaryString(Long.MIN_VALUE) in test_toBinaryStringJ() 341 Long.MIN_VALUE)); in test_toHexStringJ() 354 Long.MIN_VALUE)); in test_toOctalStringJ() 367 assertEquals("Returned incorrect String", "-9223372036854775808", new Long(Long.MIN_VALUE) in test_toString2() 381 … assertEquals("Returned incorrect String", "-9223372036854775808", Long.toString(Long.MIN_VALUE) in test_toStringJ2() 422 "-9223372036854775808").longValue() == Long.MIN_VALUE); in test_valueOfLjava_lang_String2() 472 "-9223372036854775808", 10).longValue() == Long.MIN_VALUE); in test_valueOfLjava_lang_StringI() 476 "-8000000000000000", 16).longValue() == Long.MIN_VALUE); in test_valueOfLjava_lang_StringI() 513 assertEquals(new Long(Long.MIN_VALUE), Long.valueOf(Long.MIN_VALUE)); in test_valueOfJ() 931 assertEquals(0, Long.numberOfLeadingZeros(Long.MIN_VALUE)); in test_numberOfLeadingZerosJ() [all …]
|
D | IntegerTest.java | 450 Integer.MIN_VALUE)); in test_toBinaryStringI() 471 + Integer.toHexString(Integer.MIN_VALUE), Integer.toHexString( in test_toHexStringI() 472 Integer.MIN_VALUE).equals("80000000")); in test_toHexStringI() 484 Integer.MIN_VALUE)); in test_toOctalStringI() 511 Integer.MIN_VALUE)); in test_toStringI2() 572 .intValue() == Integer.MIN_VALUE); in test_valueOfLjava_lang_String2() 615 .intValue() == Integer.MIN_VALUE); in test_valueOfLjava_lang_StringI2() 619 .intValue() == Integer.MIN_VALUE); in test_valueOfLjava_lang_StringI2() 675 assertEquals(new Integer(Integer.MIN_VALUE), Integer.valueOf(Integer.MIN_VALUE)); in test_valueOfI() 1096 assertEquals(0, Integer.numberOfLeadingZeros(Integer.MIN_VALUE)); in test_numberOfLeadingZerosI() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
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()
|
D | FloatTest.java | 32 assertEquals(-2.14748365E9f, Float.valueOf(String.valueOf(Integer.MIN_VALUE))); in test_valueOf_String2() 120 f1 = Float.MIN_VALUE; in testVerifierTyping()
|
/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/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Arrays2Test.java | 37 -Double.MAX_VALUE, -2d, -Double.MIN_VALUE, -0d, 0d, in test_binarySearch$DD() 38 Double.MIN_VALUE, 2d, Double.MAX_VALUE, in test_binarySearch$DD() 57 -Float.MAX_VALUE, -2f, -Float.MIN_VALUE, -0f, 0f, in test_binarySearch$FF() 58 Float.MIN_VALUE, 2f, Float.MAX_VALUE, Float.POSITIVE_INFINITY, in test_binarySearch$FF() 79 Arrays.fill(x, Double.MIN_VALUE); in test_equals$D$D() 102 Arrays.fill(x, Float.MIN_VALUE); in test_equals$F$F() 131 …double[] specials1 = new double[] { Double.NaN, Double.MAX_VALUE, Double.MIN_VALUE, 0d, -0d, Doubl… in test_sort$D() 132 …] { 0d, Double.POSITIVE_INFINITY, -0d, Double.NEGATIVE_INFINITY, Double.MIN_VALUE, Double.NaN, Dou… in test_sort$D() 133 …double[] answer = new double[] { Double.NEGATIVE_INFINITY, -0d, 0d, Double.MIN_VALUE, Double.MAX_V… in test_sort$D() 167 …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()
|
D | FormatterTest.java | 2781 { Float.MIN_VALUE, "%e", "1.401298e-45" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2782 { Float.MIN_VALUE, "%#.0e", "1.e-45" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2783 { Float.MIN_VALUE, "%#- (9.8e", " 1.40129846e-45" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2784 { Float.MIN_VALUE, "%#+0(8.4e", "+1.4013e-45" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2785 { Float.MIN_VALUE, "%-+(1.6e", "+1.401298e-45" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2786 { Float.MIN_VALUE, "% 0(12e", " 1.401298e-45" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2881 { Double.MIN_VALUE, "%e", "4.900000e-324" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2882 { Double.MIN_VALUE, "%#.0e", "5.e-324" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2883 { Double.MIN_VALUE, "%#- (9.8e", " 4.90000000e-324" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2884 { Double.MIN_VALUE, "%#+0(8.4e", "+4.9000e-324" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() [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/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/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,
|
/libcore/dex/src/main/java/com/android/dex/ |
D | Leb128.java | 64 int end = ((value & Integer.MIN_VALUE) == 0) ? 0 : -1; in signedLeb128Size() 150 int end = ((value & Integer.MIN_VALUE) == 0) ? 0 : -1; in writeSignedLeb128()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalScaleOperationsTest.java | 38 a.movePointRight(Integer.MIN_VALUE + 2); in testMovePointRightEx() 66 a.scaleByPowerOfTen(Integer.MIN_VALUE + 2); in testScaleByPowerOfTenEx()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | Adler32Test.java | 52 adl.update(Integer.MIN_VALUE); in test_getValue() 94 adl.update(Integer.MIN_VALUE); in test_updateI()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ |
D | SocketFactoryTest.java | 61 int[] invalidPorts = {Integer.MIN_VALUE, -1, 65536, Integer.MAX_VALUE}; in test_createSocket_StringI() 98 int[] invalidPorts = {Integer.MIN_VALUE, -1, 65536, Integer.MAX_VALUE}; in test_createSocket_InetAddressI() 129 int[] invalidPorts = {Integer.MIN_VALUE, -1, 65536, Integer.MAX_VALUE}; in test_createSocket_InetAddressIInetAddressI() 175 int[] invalidPorts = {Integer.MIN_VALUE, -1, 65536, Integer.MAX_VALUE}; in test_createSocket_05()
|
/libcore/luni/src/main/java/java/lang/ |
D | Math.java | 1086 if ((start == Float.MIN_VALUE && direction < start) in nextAfter() 1087 || (start == -Float.MIN_VALUE && direction > start)) { in nextAfter() 1105 return +Float.MIN_VALUE; in nextAfter() 1114 return -Float.MIN_VALUE; in nextAfter() 1131 return Double.MIN_VALUE; in nextUp() 1151 return Float.MIN_VALUE; in nextUp()
|