/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | SubjectAlternativeNameTest.java | 41 String decoded = formatIpAddress(mappedAddress); in testFormatIpv4MappedAddress() local 42 assertTrue(decoded, in testFormatIpv4MappedAddress() 43 decoded.equals("127.0.0.1") || decoded.equalsIgnoreCase("::ffff:127.0.0.1")); in testFormatIpv4MappedAddress() 48 String decoded = formatIpAddress(ipAddress); in testFormatIpv6Address() local 49 assertTrue(decoded, decoded.equals("::1") || decoded.equals("0:0:0:0:0:0:0:1")); in testFormatIpv6Address()
|
/libcore/ojluni/src/test/java/net/URLEncoder/ |
D | URLEncodeDecode.java | 65 String decoded; in testURLEncodeDecode() local 68 decoded = URLDecoder.decode(encoded); in testURLEncodeDecode() 70 decoded = URLDecoder.decode(encoded, enc); in testURLEncodeDecode() 72 Assert.assertEquals(str, decoded); in testURLEncodeDecode()
|
D | Decoder.java | 55 String decoded = URLDecoder.decode(encoded, enc); in testDecoder() local 56 Assert.assertEquals(strings[i], (decoded)); in testDecoder()
|
D | SurrogatePairs.java | 83 String decoded = URLDecoder.decode(encoded, "UTF-8"); in test() local 85 Assert.assertEquals(str, decoded); in test()
|
/libcore/ojluni/src/test/java/util/Base64/ |
D | TestBase64.java | 117 final byte[] decoded = Base64.getEncoder().encode(src); in main() 118 testIOE(Base64.getDecoder(), decoded); in main() local 119 testIOE(Base64.getMimeDecoder(), decoded); in main() local 129 decoded[2] = (byte)0xe0; in main() 130 checkIAE(() -> Base64.getDecoder().decode(decoded)); in main() 131 checkIAE(() -> Base64.getDecoder().decode(decoded, new byte[1024])); in main() 132 checkIAE(() -> Base64.getDecoder().decode(ByteBuffer.wrap(decoded))); in main() 170 byte[] decoded = dec.decode(encoded); in test() 172 checkEqual(orig, decoded, in test() 328 private static void testIOE(Base64.Decoder dec, byte[] decoded) throws Throwable { in testIOE() argument [all …]
|
D | TestBase64Golden.java | 165 byte[] decoded = decoder.decode(encoded); in test1() 166 if (!Objects.deepEquals(src, decoded)) { in test1()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | UrlEncodingTest.java | 248 private void assertDecoded(String decoded, String original) throws Exception { in assertDecoded() argument 249 assertEquals(decoded, new URI("http://foo#" + original).getFragment()); in assertDecoded() 250 assertEquals(decoded, URLDecoder.decode(original)); in assertDecoded() 251 assertEquals(decoded, URLDecoder.decode(original, "UTF-8")); in assertDecoded()
|
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/ |
D | X500PrincipalTest.java | 148 X500Principal decoded = new X500Principal(actualEncoded); in testIA5StringEncoding() local 149 assertEquals(original, decoded); in testIA5StringEncoding()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipCoder.java | 120 char[] decoded = cb.array(); in checkedHash() local 122 h = 31 * h + decoded[i]; in checkedHash() 124 if (limit > 0 && decoded[limit - 1] != '/') { in checkedHash()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldInputStreamReaderTest.java | 282 char decoded = decodedSuffix[at - prefixLength]; in test_readWhenCharacterSpansBuffer() local 283 if (c != decoded) { in test_readWhenCharacterSpansBuffer()
|
D | OldOutputStreamWriterTest.java | 316 char[] decoded = new char[maxChar]; in testEncodeCharset() local 318 r += charsIn.read(decoded, r, maxChar - r); in testEncodeCharset() 322 assertEquals(i, decoded[i]); in testEncodeCharset()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | LibcoreIoDerivedBase64Test.java | 78 byte[] decoded = decode(new byte[0]); in testDecode_empty() 79 assertEquals(0, decoded.length); in testDecode_empty()
|
D | Base64Test.java | 1067 String decoded = decodeToAscii(decoder, encoded); in encodeFromAscii() local 1068 assertEquals(plain, decoded); in encodeFromAscii()
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | Charset-X-Coder.java.template | 897 * have yet been decoded. Some auto-detecting decoders are capable of
|