Home
last modified time | relevance | path

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

123

/libcore/luni/src/test/java/libcore/java/io/
DDataOutputStreamTest.java32 assertEquals("[01, 00]", toHexString(bytes.toByteArray())); in test_writeBoolean()
42 assertEquals("[ff, 00, 01, 81, 34]", toHexString(bytes.toByteArray())); in test_writeByte()
48 assertEquals("[30, 34, 31]", toHexString(bytes.toByteArray())); in test_writeBytes()
55 assertEquals("[00, 30, 12, 34]", toHexString(bytes.toByteArray())); in test_writeChar()
61 assertEquals("[00, 30, 12, 34, 00, 31]", toHexString(bytes.toByteArray())); in test_writeChars()
66 assertEquals("[01, 23, 45, 67, 89, ab, cd, ef]", toHexString(bytes.toByteArray())); in test_writeDouble()
71 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray())); in test_writeFloat()
76 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray())); in test_writeInt()
81 assertEquals("[01, 23, 45, 67, 89, ab, cd, ef]", toHexString(bytes.toByteArray())); in test_writeLong()
87 assertEquals("[45, 67]", toHexString(bytes.toByteArray())); in test_writeShort()
[all …]
/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()
/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(FpUtils.scalb((double)f, in toHexString()
296 return Double.toHexString(f); in toHexString()
DObject.java260 return getClass().getName() + "@" + Integer.toHexString(hashCode()); in toString()
DDouble.java280 public static String toHexString(double d) { in toHexString() method in Double
321 String signif = Long.toHexString(signifBits).substring(3,16); in toHexString()
DByte.java477 public static String toHexString(byte b, boolean upperCase) { in toHexString() method in Byte
/libcore/dalvik/src/test/java/dalvik/system/profiler/
DSamplingProfilerTest.java298 assertEquals(Long.toHexString(hprofData.getStartMillis()), in test_HprofData_binary()
299 Long.toHexString(parsed.getStartMillis())); in test_HprofData_binary()
300 assertEquals(Long.toHexString(hprofData.getFlags()), in test_HprofData_binary()
301 Long.toHexString(parsed.getFlags())); in test_HprofData_binary()
302 assertEquals(Long.toHexString(hprofData.getDepth()), in test_HprofData_binary()
303 Long.toHexString(parsed.getDepth())); in test_HprofData_binary()
/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()
347 Debug.toHexString(this.version) + in decode()
349 Debug.toHexString(version)); in decode()
/libcore/ojluni/src/main/java/java/util/zip/
DZipInputStream.java228 "invalid entry CRC (expected 0x" + Long.toHexString(entry.crc) + in read()
229 " but got 0x" + Long.toHexString(crc.getValue()) + ")"); in read()
423 "invalid entry CRC (expected 0x" + Long.toHexString(e.crc) + in readEnd()
424 " but got 0x" + Long.toHexString(crc.getValue()) + ")"); in readEnd()
DZipOutputStream.java256 Long.toHexString(e.crc) + " but got 0x" + in closeEntry()
257 Long.toHexString(crc.getValue()) + ")"); in closeEntry()
278 Long.toHexString(e.crc) + " but got 0x" + in closeEntry()
279 Long.toHexString(crc.getValue()) + ")"); in closeEntry()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestUtils.java52 String tail = Integer.toHexString(0x000000ff & data[i]); in printAsHex()
/libcore/dex/src/main/java/com/android/dex/
DEncodedValue.java55 return Integer.toHexString(data[0] & 0xff) + "...(" + data.length + ")"; in toString()
DTableOfContents.java88 throw new DexException("Unexpected header: 0x" + Integer.toHexString(headerSize)); in readHeader()
92 throw new DexException("Unexpected endian tag: 0x" + Integer.toHexString(endianTag)); in readHeader()
128 throw new DexException("Unexpected map value for 0x" + Integer.toHexString(type)); in readMap()
/libcore/ojluni/src/main/java/sun/net/www/http/
DChunkedOutputStream.java66 return (Integer.toHexString(size)).length() + CRLF_SIZE; in getHeaderSize()
72 String hexStr = Integer.toHexString(size); in getHeader()
/libcore/ojluni/src/main/java/sun/security/x509/
DSerialNumber.java104 return ("SerialNumber: [" + Debug.toHexString(serialNum) + "]"); in toString()
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DDdmServer.java58 throw new RuntimeException("type " + Integer.toHexString(type) in registerHandler()
/libcore/benchmarks/src/benchmarks/
DZipFileBenchmark.java64 ZipEntry ze = new ZipEntry(Integer.toHexString(entry)); in writeEntries()
/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/support/src/test/java/tests/http/
DMockResponse.java120 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII)); in setChunkedBody()
/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()

123