/libcore/luni/src/test/java/libcore/java/io/ |
D | DataOutputStreamTest.java | 32 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/ |
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 …]
|
D | IntegerTest.java | 464 .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/ |
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/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/main/java/java/lang/ |
D | Float.java | 283 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()
|
D | Object.java | 260 return getClass().getName() + "@" + Integer.toHexString(hashCode()); in toString()
|
D | Double.java | 280 public static String toHexString(double d) { in toHexString() method in Double 321 String signif = Long.toHexString(signifBits).substring(3,16); in toHexString()
|
D | Byte.java | 477 public static String toHexString(byte b, boolean upperCase) { in toHexString() method in Byte
|
/libcore/dalvik/src/test/java/dalvik/system/profiler/ |
D | SamplingProfilerTest.java | 298 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/ |
D | MessageDigestTest.java | 157 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/ |
D | PKCS8Key.java | 126 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/ |
D | ZipInputStream.java | 228 "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()
|
D | ZipOutputStream.java | 256 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/ |
D | TestUtils.java | 52 String tail = Integer.toHexString(0x000000ff & data[i]); in printAsHex()
|
/libcore/dex/src/main/java/com/android/dex/ |
D | EncodedValue.java | 55 return Integer.toHexString(data[0] & 0xff) + "...(" + data.length + ")"; in toString()
|
D | TableOfContents.java | 88 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/ |
D | ChunkedOutputStream.java | 66 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/ |
D | SerialNumber.java | 104 return ("SerialNumber: [" + Debug.toHexString(serialNum) + "]"); in toString()
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
D | DdmServer.java | 58 throw new RuntimeException("type " + Integer.toHexString(type) in registerHandler()
|
/libcore/benchmarks/src/benchmarks/ |
D | ZipFileBenchmark.java | 64 ZipEntry ze = new ZipEntry(Integer.toHexString(entry)); in writeEntries()
|
/libcore/xml/src/main/java/org/kxml2/io/ |
D | KXmlSerializer.java | 182 … 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/ |
D | MockResponse.java | 120 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII)); in setChunkedBody()
|
/libcore/support/src/test/java/libcore/tlswire/handshake/ |
D | CipherSuite.java | 385 "Cipher suite multiply defined: " + Integer.toHexString(cipherSuite.code)); 434 return new CipherSuite(code, Integer.toHexString(code)); in valueOf()
|