/libcore/luni/src/test/java/libcore/java/io/ |
D | DataOutputStreamTest.java | 34 assertEquals("0100", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeBoolean() 44 assertEquals("FF00018134", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeByte() 50 assertEquals("303431", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeBytes() 57 assertEquals("00301234", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeChar() 63 assertEquals("003012340031", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeChars() 68 assertEquals("0123456789ABCDEF", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeDouble() 73 assertEquals("01234567", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeFloat() 78 assertEquals("01234567", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeInt() 83 assertEquals("0123456789ABCDEF", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeLong() 89 assertEquals("4567", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeShort() [all …]
|
/libcore/luni/src/main/java/libcore/util/ |
D | HexEncoding.java | 41 public static String encodeToString(byte b, boolean upperCase) { in encodeToString() method in HexEncoding 93 public static String encodeToString(byte[] data) { in encodeToString() method in HexEncoding 94 return encodeToString(data, true /* upperCase */); in encodeToString() 101 public static String encodeToString(byte[] data, boolean upperCase) { in encodeToString() method in HexEncoding
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | HexEncodingTest.java | 26 import static libcore.util.HexEncoding.encodeToString; 47 String actualUpper = encodeToString(toEncode.byteValue(), true /* upperCase */); in testEncodeByte() 50 String actualLower = encodeToString(toEncode.byteValue(), false /* upperCase */); in testEncodeByte()
|
D | SerializationTester.java | 59 + HexEncoding.encodeToString(serialize(value))); in test() 105 return HexEncoding.encodeToString(serialize(object)); in serializeHex()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | Base64Test.java | 521 assertThrowsNpe(() -> encoder.encodeToString(null)); in checkEncoder_nullArgs() 529 assertEquals("", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 0))); in testEncoder_nonPrintableBytes() 530 assertEquals("_w==", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 1))); in testEncoder_nonPrintableBytes() 531 assertEquals("_-4=", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 2))); in testEncoder_nonPrintableBytes() 532 assertEquals("_-7d", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 3))); in testEncoder_nonPrintableBytes() 533 assertEquals("_-7dzA==", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 4))); in testEncoder_nonPrintableBytes() 534 assertEquals("_-7dzLs=", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 5))); in testEncoder_nonPrintableBytes() 535 assertEquals("_-7dzLuq", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 6))); in testEncoder_nonPrintableBytes() 536 … assertEquals("_-7dzLuqmQ==", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 7))); in testEncoder_nonPrintableBytes() 537 … assertEquals("_-7dzLuqmYg=", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 8))); in testEncoder_nonPrintableBytes() [all …]
|
D | LibcoreIoDerivedBase64Test.java | 274 return Base64.getEncoder().encodeToString(data); in encode()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Byte.java | 529 return HexEncoding.encodeToString(b, upperCase); in toHexString()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | PrintStreamTest.java | 763 String message = "Expected " + Base64.getEncoder().encodeToString(expected) + ", got: " in assertByteArraysEqual() 764 + Base64.getEncoder().encodeToString(actual); in assertByteArraysEqual()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Base64.java | 314 public String encodeToString(byte[] src) { in encodeToString() method in Base64.Encoder
|
/libcore/mmodules/core_platform_api/api/legacy_platform/ |
D | current-api.txt | 1087 method public static String encodeToString(byte, boolean); 1088 method public static String encodeToString(byte[]); 1089 method public static String encodeToString(byte[], boolean);
|