Home
last modified time | relevance | path

Searched refs:decoded (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/java/security/cert/
DSubjectAlternativeNameTest.java41 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/
DURLEncodeDecode.java65 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()
DDecoder.java55 String decoded = URLDecoder.decode(encoded, enc); in testDecoder() local
56 Assert.assertEquals(strings[i], (decoded)); in testDecoder()
DSurrogatePairs.java83 String decoded = URLDecoder.decode(encoded, "UTF-8"); in test() local
85 Assert.assertEquals(str, decoded); in test()
/libcore/ojluni/src/test/java/util/Base64/
DTestBase64.java117 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 …]
DTestBase64Golden.java165 byte[] decoded = decoder.decode(encoded); in test1()
166 if (!Objects.deepEquals(src, decoded)) { in test1()
/libcore/luni/src/test/java/libcore/java/net/
DUrlEncodingTest.java248 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/
DX500PrincipalTest.java148 X500Principal decoded = new X500Principal(actualEncoded); in testIA5StringEncoding() local
149 assertEquals(original, decoded); in testIA5StringEncoding()
/libcore/ojluni/src/main/java/java/util/zip/
DZipCoder.java120 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/
DOldInputStreamReaderTest.java282 char decoded = decodedSuffix[at - prefixLength]; in test_readWhenCharacterSpansBuffer() local
283 if (c != decoded) { in test_readWhenCharacterSpansBuffer()
DOldOutputStreamWriterTest.java316 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/
DLibcoreIoDerivedBase64Test.java78 byte[] decoded = decode(new byte[0]); in testDecode_empty()
79 assertEquals(0, decoded.length); in testDecode_empty()
DBase64Test.java1067 String decoded = decodeToAscii(decoder, encoded); in encodeFromAscii() local
1068 assertEquals(plain, decoded); in encodeFromAscii()
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset-X-Coder.java.template897 * have yet been decoded. Some auto-detecting decoders are capable of