Home
last modified time | relevance | path

Searched refs:toHexString (Results 1 – 25 of 61) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DFloatTest.java93 + ") 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 …]
DDoubleTest.java787 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 …]
DIntegerTest.java464 .toHexString(i).equals(hexvals[i])); in test_toHexStringI()
468 + Integer.toHexString(Integer.MAX_VALUE), Integer.toHexString( in test_toHexStringI()
471 + Integer.toHexString(Integer.MIN_VALUE), Integer.toHexString( in test_toHexStringI()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSNIServerName.java184 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/benchmarks/src/benchmarks/regression/
DIntegralToStringBenchmark.java117 Integer.toHexString(SMALL); in time_IntegerToHexString_small()
123 Integer.toHexString(MEDIUM); in time_IntegerToHexString_medium()
129 Integer.toHexString(LARGE); in time_IntegerToHexString_large()
DFormatterBenchmark.java78 sb.append(Integer.toHexString(1024)); in timeStringBuilder_OneHexInt()
/libcore/ojluni/src/main/java/java/lang/
DFloat.java283 public static String toHexString(float f) { in toHexString() method in Float
289 String s = Double.toHexString(Math.scalb((double)f, in toHexString()
296 return Double.toHexString(f); in toHexString()
DDouble.java281 public static String toHexString(double d) { in toHexString() method in Double
321 String signif = Long.toHexString(signifBits).substring(3,16); in toHexString()
DObject.java273 return getClass().getName() + "@" + Integer.toHexString(hashCode()); in toString()
DByte.java525 public static String toHexString(byte b, boolean upperCase) { in toHexString() method in Byte
/libcore/support/src/test/java/tests/security/
DMessageDigestTest.java157 String res = Integer.toHexString(computedDigest[i] & 0xFF); in testfips180_2_singleblock()
173 String res = Integer.toHexString(computedDigest[i] & 0xFF); in testfips180_2_multiblock()
189 String res = Integer.toHexString(computedDigest[i] & 0xFF); in testfips180_2_longMessage()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS8Key.java126 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/main/java/java/util/zip/
DZipInputStream.java231 "invalid entry CRC (expected 0x" + Long.toHexString(entry.crc) + in read()
232 " but got 0x" + Long.toHexString(crc.getValue()) + ")"); in read()
404 "invalid entry CRC (expected 0x" + Long.toHexString(e.crc) + in readEnd()
405 " but got 0x" + Long.toHexString(crc.getValue()) + ")"); in readEnd()
DZipOutputStream.java274 Long.toHexString(e.crc) + " but got 0x" + in closeEntry()
275 Long.toHexString(crc.getValue()) + ")"); in closeEntry()
296 Long.toHexString(e.crc) + " but got 0x" + in closeEntry()
297 Long.toHexString(crc.getValue()) + ")"); in closeEntry()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileKey.java61 .append(Long.toHexString(st_dev)) in toString()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestUtils.java52 String tail = Integer.toHexString(0x000000ff & data[i]); in printAsHex()
/libcore/ojluni/src/main/java/sun/security/x509/
DSerialNumber.java104 return ("SerialNumber: [" + Debug.toHexString(serialNum) + "]"); in toString()
/libcore/benchmarks/src/benchmarks/
DZipFileBenchmark.java64 ZipEntry ze = new ZipEntry(Integer.toHexString(entry)); in writeEntries()
DZipFileReadBenchmark.java57 ZipEntry ze = new ZipEntry(Integer.toHexString(entry)); in writeEntries()
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DDdmServer.java59 throw new RuntimeException("type " + Integer.toHexString(type) in registerHandler()
/libcore/xml/src/main/java/org/kxml2/io/
DKXmlSerializer.java182 … throw new IllegalArgumentException("Illegal character (U+" + Integer.toHexString((int) ch) + ")"); in reportInvalidCharacter()
605 … throw new IllegalArgumentException("Bad surrogate pair (U+" + Integer.toHexString((int) high) + in writeSurrogate()
606 " U+" + Integer.toHexString((int) low) + ")"); in writeSurrogate()
/libcore/luni/src/test/java/libcore/java/lang/
DIntegerTest.java204 assertEquals(val, Integer.parseUnsignedInt(Integer.toHexString(val), 16));
252 assertTrue(Integer.toUnsignedString(val, 16).equals(Integer.toHexString(val)));
DLongTest.java220 assertEquals(val, Long.parseUnsignedLong(Long.toHexString(val), 16));
259 assertTrue(Long.toUnsignedString(val, 16).equals(Long.toHexString(val)));
/libcore/support/src/test/java/libcore/tlswire/handshake/
DCipherSuite.java385 "Cipher suite multiply defined: " + Integer.toHexString(cipherSuite.code));
434 return new CipherSuite(code, Integer.toHexString(code)); in valueOf()
/libcore/support/src/test/java/tests/http/
DMockResponse.java120 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII)); in setChunkedBody()

123