/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
H A D | CertificatesToPlayWith.java | 76 "-----END CERTIFICATE-----\n").getBytes(); 106 "-----END CERTIFICATE-----\n").getBytes(); 137 "-----END CERTIFICATE-----\n").getBytes(); 169 "-----END CERTIFICATE-----\n").getBytes(); 199 "-----END CERTIFICATE-----\n").getBytes(); 229 "-----END CERTIFICATE-----\n").getBytes(); 261 "-----END CERTIFICATE-----\n").getBytes(); 292 "-----END CERTIFICATE-----\n").getBytes(); 322 "-----END CERTIFICATE-----\n").getBytes(); 354 "-----END CERTIFICATE-----\n").getBytes(); [all...] |
/libcore/luni/src/main/java/java/sql/ |
H A D | RowId.java | 31 byte[] getBytes(); method in interface:RowId
|
H A D | Blob.java | 69 public byte[] getBytes(long pos, int length) throws SQLException; method in interface:Blob
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
H A D | CertificateFactoryTestX509.java | 23 super("X509", encodedCertificate.getBytes());
|
H A D | CertificateTest.java | 599 .getBytes())); 613 .getBytes())); 706 selfSignedCertMD2.getBytes())); 709 signedCert1Chain1.getBytes())); 712 signedCert2Chain1.getBytes())); 716 selfSignedCertMD5.getBytes())); 719 signedCert1Chain2.getBytes())); 722 signedCert2Chain2.getBytes()));
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldDatagramPacketTest.java | 28 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5, InetAddress.getLocalHost(), 1000); 63 new DatagramPacket("Hello".getBytes(), 6); 69 new DatagramPacket("Hello".getBytes(), -1); 76 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5); 85 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | StringTest.java | 87 s.getBytes(EVIL_CHARSET); 95 byte[] bytes = "xa\u0666bx".getBytes("UTF-8"); 100 byte[] bytes = "xa\u0666bx".getBytes("UTF-8"); 105 byte[] bytes = "xa\u0666bx".getBytes("UTF-8"); 110 byte[] bytes = "a\u0666b".getBytes("UTF-8"); 127 assertEquals("[97, 63, 98]", Arrays.toString("a\u0666b".getBytes("US-ASCII"))); 128 assertEquals("[97, 63, 98]", Arrays.toString("a\u0666b".getBytes(Charset.forName("US-ASCII")))); 132 // We have a fast path implementation of String.getBytes for UTF-8. 136 assertEquals("[]", Arrays.toString("".getBytes(cs))); 139 assertEquals("[0]", Arrays.toString("\u0000".getBytes(c [all...] |
/libcore/support/src/test/java/tests/http/ |
H A D | MockResponse.java | 106 return setBody(body.getBytes(ASCII)); 120 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII)); 121 bytesOut.write("\r\n".getBytes(ASCII)); 123 bytesOut.write("\r\n".getBytes(ASCII)); 126 bytesOut.write("0\r\n\r\n".getBytes(ASCII)); // last chunk + empty trailer + crlf 132 return setChunkedBody(body.getBytes(ASCII), maxChunkSize);
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
H A D | CertificateFactoryTest.java | 92 byte[] valid = VALID_CERTIFICATE_PEM.getBytes(); 97 byte[] invalid = INVALID_CERTIFICATE_PEM.getBytes();
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldAndroidByteArrayInputStreamTest.java | 33 ByteArrayInputStream a = new ByteArrayInputStream(str.getBytes()); 34 ByteArrayInputStream b = new ByteArrayInputStream(str.getBytes()); 35 ByteArrayInputStream c = new ByteArrayInputStream(str.getBytes()); 36 ByteArrayInputStream d = new ByteArrayInputStream(str.getBytes());
|
H A D | OldAndroidByteArrayOutputStreamTest.java | 32 a.write(str.getBytes(), 0, 26);
|
H A D | OldAndroidBufferedInputStreamTest.java | 33 ByteArrayInputStream aa = new ByteArrayInputStream(str.getBytes()); 34 ByteArrayInputStream ba = new ByteArrayInputStream(str.getBytes()); 35 ByteArrayInputStream ca = new ByteArrayInputStream(str.getBytes()); 36 ByteArrayInputStream da = new ByteArrayInputStream(str.getBytes()); 37 ByteArrayInputStream ea = new ByteArrayInputStream(str.getBytes());
|
H A D | OldPushbackInputStreamTest.java | 37 .getBytes())); 38 pis.unread("He".getBytes()); 49 ByteArrayInputStream bas = new ByteArrayInputStream("Hello".getBytes()); 65 pis.unread("Hello world".getBytes()); 121 fileString.getBytes()[0], pis.read()); 126 byte[] buf = ("01234567890123456789").getBytes(); 168 byte[] buf = ("01234567890123456789").getBytes(); 204 byte[] buf2 = str2.getBytes(); 244 byte[] buf2 = (str2 + str2 + str2).getBytes(); 327 .getBytes()[ [all...] |
H A D | OldPipedOutputStreamTest.java | 161 out.write(testString.getBytes(), 0, 10); 172 out.write(testString.getBytes(), 0, 5); 181 out.write(testString.getBytes(), -1, 10); 188 out.write(testString.getBytes(), 0, -1); 195 out.write(testString.getBytes(), 5, testString.length()); 206 out.write(testString.getBytes(), 0, testString.length()); 216 out.write(testString.getBytes(), 0, 5);
|
H A D | OldBufferedOutputStreamTest.java | 42 os.write(fileString.getBytes(), 0, 500); 60 os.write(fileString.getBytes(), 0, 500); 69 os.write(fileString.getBytes(), 0, 500); 90 os.write(fileString.getBytes(), 0, 500); 98 os.write(fileString.getBytes(), 500, 513); 112 os.write(fileString.getBytes(), 0, 500);
|
H A D | OldAndroidInputStreamReaderTest.java | 33 ByteArrayInputStream aa = new ByteArrayInputStream(str.getBytes("ISO8859_1")); 56 new ByteArrayInputStream(str.getBytes()); 92 byte[] ba = src.getBytes(enc[i]);
|
H A D | InputStreamReaderTest.java | 34 pos.write("hello".getBytes("UTF-8"));
|
H A D | OldAndroidBufferedOutputStreamTest.java | 33 a.write(str.getBytes(), 0, 26);
|
H A D | OldAndroidDataOutputStreamTest.java | 34 a.write(str.getBytes(), 0, 26);
|
H A D | OldAndroidPushbackInputStreamTest.java | 30 ByteArrayInputStream aa = new ByteArrayInputStream(str.getBytes()); 31 ByteArrayInputStream ba = new ByteArrayInputStream(str.getBytes()); 32 ByteArrayInputStream ca = new ByteArrayInputStream(str.getBytes()); 36 a.unread("push".getBytes());
|
H A D | OldByteArrayOutputStreamTest.java | 53 bos.write(fileString.getBytes(), 0, fileString.length()); 99 bos.write(fileString.getBytes(), 0, 10);
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | ChannelsTest.java | 30 Pipe.SourceChannel sourceChannel = createNonBlockingChannel("abc".getBytes("UTF-8")); 43 Pipe.SourceChannel sourceChannel = createNonBlockingChannel("abc".getBytes("UTF-8"));
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
H A D | CipherPBEThread.java | 38 byte[] input = getData().getBytes(); 58 checkEncodedData(getData().getBytes(), decrypted);
|
H A D | CipherWrapThread.java | 44 checkEncodedData(key.getFormat().getBytes(), decrypted.getFormat().getBytes());
|
/libcore/luni/src/test/java/tests/security/cert/ |
H A D | PKIXBuilderParametersTest.java | 240 .getBytes()); 243 .getBytes()); 271 .getBytes()); 274 .getBytes()); 299 .getBytes()); 302 .getBytes()); 342 .getBytes()); 345 .getBytes());
|