/libcore/ojluni/src/test/java/lang/Math/ |
D | Tests.java | 44 public static String toHexString(float f) { in toHexString() method in Tests 46 return Float.toHexString(f); in toHexString() 48 return "NaN(0x" + Integer.toHexString(Float.floatToRawIntBits(f)) + ")"; in toHexString() 52 public static String toHexString(double d) { in toHexString() method in Tests 54 return Double.toHexString(d); in toHexString() 56 return "NaN(0x" + Long.toHexString(Double.doubleToRawLongBits(d)) + ")"; in toHexString() 240 "\tFor input " + input + "\t(" + toHexString(input) + ")\n" + in test() 248 "\tFor input " + input + "\t(" + toHexString(input) + ")\n" + in test() 256 "\tFor inputs " + input1 + "\t(" + toHexString(input1) + ") and " in test() 257 + input2 + "\t(" + toHexString(input2) + ")\n" + in test() [all …]
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | Tests.java | 41 "\tFor input " + input + "\t(" + Double.toHexString(input) + ")\n" + in test() 42 "\texpected " + expected + "\t(" + Double.toHexString(expected) + ")\n" + in test() 43 "\tgot " + result + "\t(" + Double.toHexString(result) + ")."); in test() 50 "\tFor input " + input1 + "\t(" + Double.toHexString(input1) + "), " + in test() 51 +input2 + "\t(" + Double.toHexString(input2) + ")\n" + in test() 52 "\texpected " + expected + "\t(" + Double.toHexString(expected) + ")\n" + in test() 53 "\tgot " + result + "\t(" + Double.toHexString(result) + ")."); in test()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | FloatTest.java | 93 + ") Expecting:" + Integer.toHexString(expectedRawBits) + " Got: " in doTestCompareRawBits() 94 + Integer.toHexString(rawBits), expectedRawBits, rawBits); in doTestCompareRawBits() 492 String expectedString = Integer.toHexString(Float.floatToIntBits(expected)); in test_parseFloat_LString_NormalPositiveExponent() 493 String actualString = Integer.toHexString(Float.floatToIntBits(actual)); in test_parseFloat_LString_NormalPositiveExponent() 541 String expectedString = Integer.toHexString(Float.floatToIntBits(expected)); in test_parseFloat_LString_NormalNegativeExponent() 542 String actualString = Integer.toHexString(Float.floatToIntBits(actual)); in test_parseFloat_LString_NormalNegativeExponent() 591 String expectedString = Integer.toHexString(Float.floatToIntBits(expected)); in test_parseFloat_LString_MaxNormalBoundary() 592 String actualString = Integer.toHexString(Float.floatToIntBits(actual)); in test_parseFloat_LString_MaxNormalBoundary() 641 String expectedString = Integer.toHexString(Float.floatToIntBits(expected)); in test_parseFloat_LString_MinNormalBoundary() 642 String actualString = Integer.toHexString(Float.floatToIntBits(actual)); in test_parseFloat_LString_MinNormalBoundary() [all …]
|
D | DoubleTest.java | 787 String expectedString = "0x" + Long.toHexString(Double.doubleToLongBits(expected)); in test_parseDouble_LString_NormalPositiveExponent() 788 String actualString = "0x" + Long.toHexString(Double.doubleToLongBits(actual)); in test_parseDouble_LString_NormalPositiveExponent() 848 String expectedString = "0x" + Long.toHexString(Double.doubleToLongBits(expected)); in test_parseDouble_LString_NormalNegativeExponent() 849 String actualString = "0x" + Long.toHexString(Double.doubleToLongBits(actual)); in test_parseDouble_LString_NormalNegativeExponent() 912 String expectedString = "0x" + Long.toHexString(Double.doubleToLongBits(expected)); in test_parseDouble_LString_MaxNormalBoundary() 913 String actualString = "0x" + Long.toHexString(Double.doubleToLongBits(actual)); in test_parseDouble_LString_MaxNormalBoundary() 976 String expectedString = "0x" + Long.toHexString(Double.doubleToLongBits(expected)); in test_parseDouble_LString_MinNormalBoundary() 977 String actualString = "0x" + Long.toHexString(Double.doubleToLongBits(actual)); in test_parseDouble_LString_MinNormalBoundary() 1040 String expectedString = "0x" + Long.toHexString(Double.doubleToLongBits(expected)); in test_parseDouble_LString_MaxSubNormalBoundary() 1041 String actualString = "0x" + Long.toHexString(Double.doubleToLongBits(actual)); in test_parseDouble_LString_MaxSubNormalBoundary() [all …]
|
/libcore/ojluni/src/test/java/lang/Character/ |
D | Supplementary.java | 112 + toHexString(value) in constantError() 113 + ", expected " + toHexString(expectedValue)); in constantError() 126 + toHexString(cp)); in test00() 131 + toHexString(cp)); in test00() 138 + toHexString(cp)); in test00() 142 + toHexString(cp)); in test00() 171 + toHexString("u", u)); in test01() 177 + ", cu["+index+"]="+toHexString(cu[index])); in test01() 182 + toHexString(i)); in test01() 187 + toHexString(i)); in test01() [all …]
|
/libcore/ojluni/src/test/java/lang/String/CompactString/ |
D | Numbers.java | 59 { Integer.toHexString(Integer.MAX_VALUE), "7fffffff" }, in numbers() 60 { Integer.toHexString(Integer.MIN_VALUE), "80000000" }, in numbers() 61 { Integer.toHexString(17), "11" }, in numbers() 62 { Integer.toHexString(0), "0" }, in numbers() 81 { Long.toHexString(Long.MAX_VALUE), "7fffffffffffffff" }, in numbers() 82 { Long.toHexString(Long.MIN_VALUE), "8000000000000000" }, in numbers()
|
/libcore/ojluni/src/test/java/util/Random/ |
D | RandomNextDoubleBoundary.java | 49 System.err.println("r = " + r + "\t" + Double.toHexString(r)); in negativeBounds() 50 System.err.println("ub = " + upperBound + "\t" + Double.toHexString(upperBound)); in negativeBounds() 55 System.err.println("r = " + r + "\t" + Double.toHexString(r)); in negativeBounds() 56 System.err.println("lb = " + lowerBound + "\t" + Double.toHexString(lowerBound)); in negativeBounds()
|
/libcore/ojluni/src/test/java/lang/StringBuffer/ |
D | Supplementary.java | 185 "reverse() for <" + toHexString(input[i]) + ">", in test3() 193 "reverse() for <" + toHexString(testdata1[i][0]) + ">", in test3() 348 check(true, "appendCodePoint(" + toHexString(codePoint) + ") didn't throw " in testAppendCodePoint() 388 + toHexString(got) in check() 390 + toHexString(expected)); in check() 398 + toHexString(new String(got)) in check() 400 + toHexString(expected) in check() 405 private static String toHexString(int c) { in toHexString() method in Supplementary 406 return "0x" + Integer.toHexString(c); in toHexString() 409 private static String toHexString(String s) { in toHexString() method in Supplementary [all …]
|
/libcore/ojluni/src/test/java/lang/StringBuilder/ |
D | Supplementary.java | 187 "reverse() for <" + toHexString(input[i]) + ">", in test3() 195 "reverse() for <" + toHexString(testdata1[i][0]) + ">", in test3() 363 check(true, "appendCodePoint(" + toHexString(codePoint) + ") didn't throw " in testAppendCodePoint() 403 + toHexString(got) in check() 405 + toHexString(expected)); in check() 413 + toHexString(got.toString()) in check() 415 + toHexString(expected) in check() 420 private static String toHexString(int c) { in toHexString() method in Supplementary 421 return "0x" + Integer.toHexString(c); in toHexString() 424 private static String toHexString(String s) { in toHexString() method in Supplementary [all …]
|
/libcore/ojluni/src/test/java/lang/Double/ |
D | ToHexStringTest.java | 50 return hexLongStringtoHexDoubleString(Long.toHexString(Double.doubleToLongBits(d))); in doubleToHexString() 134 String result = Double.toHexString(Double.parseDouble(testCases1[i][0])); in testToHexString() 164 String result = Float.toHexString(Float.parseFloat(floatTestCases[i][0])); in testToHexString() 217 String result = Double.toHexString(Double.parseDouble(testCases2[i][0])); in testToHexString() 232 String result = Double.toHexString(d); in testRandomDoubles()
|
D | ParseHexFloatingPointTest.java | 190 testCase("0x"+Long.toHexString(signif)+"p0", signif); in testDouble() 258 testCase(Double.toHexString(d), d); in testRandomDoubles() 311 Long.toHexString((m >=0) ?(testValue<<m):(testValue>>(-m))) + in significandAlignmentTests() 408 "Expected = " + Float.toHexString(expected) + in testFloat() 409 "Rounded = " + Float.toHexString(result) + in testFloat() 410 "Double = " + Double.toHexString(Double.parseDouble(resultIn)) + in testFloat()
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | Basic.java | 68 out.println(toString(b) + " " + Integer.toHexString(b.hashCode())); in show() 92 out.print(" " + Integer.toHexString(bb.get(i) & 0xff)); in fail() 99 out.print(" " + Integer.toHexString(bb.get(i) & 0xffff)); in fail() 111 Long.toHexString(expected), (char)expected, in fail() 112 Long.toHexString(got), (char)got); in fail()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | SNIServerName.java | 184 return "type=host_name (0), value=" + toHexString(encoded); in toString() 186 return "type=(" + type + "), value=" + toHexString(encoded); in toString() 191 private static String toHexString(byte[] bytes) { in toHexString() method in SNIServerName
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | FP16Test.java | 90 assertEquals("NaN", toHexString(NaN)); in testHexString() 91 assertEquals("Infinity", toHexString(POSITIVE_INFINITY)); in testHexString() 92 assertEquals("-Infinity", toHexString(NEGATIVE_INFINITY)); in testHexString() 93 assertEquals("0x0.0p0", toHexString(POSITIVE_ZERO)); in testHexString() 94 assertEquals("-0x0.0p0", toHexString(NEGATIVE_ZERO)); in testHexString() 95 assertEquals("0x1.0p0", toHexString(toHalf(1.0f))); in testHexString() 96 assertEquals("-0x1.0p0", toHexString(toHalf(-1.0f))); in testHexString() 97 assertEquals("0x1.0p1", toHexString(toHalf(2.0f))); in testHexString() 98 assertEquals("0x1.0p8", toHexString(toHalf(256.0f))); in testHexString() 99 assertEquals("0x1.0p-1", toHexString(toHalf(0.5f))); in testHexString() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | IntegralToStringBenchmark.java | 117 Integer.toHexString(SMALL); in time_IntegerToHexString_small() 123 Integer.toHexString(MEDIUM); in time_IntegerToHexString_medium() 129 Integer.toHexString(LARGE); in time_IntegerToHexString_large()
|
/libcore/ojluni/src/test/java/math/BigDecimal/ |
D | SerializationTests.java | 53 " (hash: 0x" + Integer.toHexString(bd.hashCode()) + ")" + in checkSerialForm() 55 " (hash: 0x" + Integer.toHexString(tmp.hashCode()) + ")"); in checkSerialForm()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Float.java | 318 public static String toHexString(float f) { in toHexString() method in Float 324 String s = Double.toHexString(Math.scalb((double)f, in toHexString() 331 return Double.toHexString(f); in toHexString()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS8Key.java | 126 Debug.toHexString(version) + in parseKey() 128 Debug.toHexString(parsedVersion)); in parseKey() 336 Debug.toHexString(PKCS8Key.version) + in decode() 338 Debug.toHexString(version)); in decode()
|
/libcore/ojluni/src/test/java/util/zip/ |
D | ChecksumBase.java | 94 + " Expected " + Long.toHexString(expected) in checkChecksum() 95 + ", but got " + Long.toHexString(checksum.getValue()) + "."); in checkChecksum() 195 + offset + ". Expected: " + Long.toHexString(expected) + ", Got: " in checkChecksumOffset() 196 + Long.toHexString(checksum.getValue())); in checkChecksumOffset()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | EmptyCollectionSerialization.java | 72 … copy.getClass().getName() + "@" + Integer.toHexString(System.identityHashCode(copy)) + in serializableSingletons() 74 … singleton.getClass().getName() + "@" + Integer.toHexString(System.identityHashCode(singleton))); in serializableSingletons()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipInputStream.java | 251 "invalid entry CRC (expected 0x" + Long.toHexString(entry.crc) + in read() 252 " but got 0x" + Long.toHexString(crc.getValue()) + ")"); in read() 445 "invalid entry CRC (expected 0x" + Long.toHexString(e.crc) + in readEnd() 446 " but got 0x" + Long.toHexString(crc.getValue()) + ")"); in readEnd()
|
/libcore/ojluni/src/test/java/math/BigInteger/ |
D | SerializationTests.java | 67 System.err.println(" (hash: 0x" + Integer.toHexString(bi.hashCode()) + ")"); in checkSerialForm0() 69 System.err.println(" (hash: 0x" + Integer.toHexString(tmp.hashCode()) + ")"); in checkSerialForm0()
|
/libcore/luni/src/main/java/libcore/util/ |
D | NativeAllocationRegistry.java | 305 return super.toString() + "(freeFunction = 0x" + Long.toHexString(freeFunction) in toString() 306 + ", nativePtr = 0x" + Long.toHexString(nativePtr) + ", size = " + size + ")"; in toString()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | IntegerTest.java | 200 assertEquals(value, Integer.parseUnsignedInt(Integer.toHexString(value), 16)); in testParseUnsignedInt() 222 () -> Integer.parseUnsignedInt(Long.toHexString(longValue), 16)); in testParseUnsignedInt() 265 String hex = leftPad + Integer.toHexString(value) + rightPad; in testParseUnsignedIntSubstring() 296 final String input = leftPad + Long.toHexString(large_value) + rightPad; in testParseUnsignedIntSubstring() 348 assertTrue(Integer.toUnsignedString(val, 16).equals(Integer.toHexString(val))); in testToUnsignedString()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixFileKey.java | 61 .append(Long.toHexString(st_dev)) in toString()
|