Searched refs:encodeToString (Results 1 – 8 of 8) sorted by relevance
/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/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/luni/src/test/java/libcore/libcore/util/ |
D | SerializationTester.java | 59 + HexEncoding.encodeToString(serialize(value))); in test() 105 return HexEncoding.encodeToString(serialize(object)); in serializeHex()
|
/libcore/luni/src/main/java/libcore/util/ |
D | HexEncoding.java | 59 public static String encodeToString(byte[] data) { in encodeToString() method in HexEncoding
|
/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/platform/ |
D | current-api.txt | 1311 method public static String encodeToString(byte[]);
|