Searched refs:getBytes (Results 26 - 50 of 156) sorted by relevance

1234567

/libcore/support/src/test/java/tests/security/
H A DSignatureHelper.java58 signature.update(plainData.getBytes());
77 signature.update(plainData.getBytes());
H A DMessageDigestTest.java171 digest.update(source1.getBytes(), 0, source1.length());
187 digest.update(source2.getBytes(), 0, source2.length());
203 digest.update(source3.getBytes(), 0, source3.length());
H A DAlgorithmParameterAsymmetricHelper.java75 bs = cipher.doFinal(plainData.getBytes());
99 Assert.assertTrue(Arrays.equals(plainData.getBytes(), decrypted));
H A DAlgorithmParameterSignatureHelper.java83 signature.update(plainData.getBytes());
102 signature.update(plainData.getBytes());
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DFileChannelTest.java68 fc.write(ByteBuffer.wrap("abcdABCD".getBytes("US-ASCII")));
90 buffers[0].put("abcd".getBytes("US-ASCII")).flip();
91 buffers[1].put("ABCD".getBytes("US-ASCII")).flip();
103 fc.write(ByteBuffer.wrap("hello".getBytes("US-ASCII")));
108 fc.write(ByteBuffer.wrap(" world".getBytes("US-ASCII")));
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DASN1UTCTime.java99 out.content = sdf.format(out.content).getBytes(Charsets.UTF_8);
H A DASN1StringType.java67 byte[] bytes = ((String) out.content).getBytes(Charsets.UTF_8);
116 byte[] bytes = ((String) out.content).getBytes(Charsets.UTF_8);
/libcore/luni/src/test/java/libcore/io/
H A DStrictLineReaderTest.java81 ).getBytes());
/libcore/luni/src/test/java/libcore/java/io/
H A DOldAndroidDataInputStreamTest.java32 ByteArrayInputStream aa = new ByteArrayInputStream(str.getBytes());
33 ByteArrayInputStream ba = new ByteArrayInputStream(str.getBytes());
34 ByteArrayInputStream ca = new ByteArrayInputStream(str.getBytes());
35 ByteArrayInputStream da = new ByteArrayInputStream(str.getBytes());
H A DOldFilterOutputStreamTest.java83 os.write(fileString.getBytes(), 0, 500);
101 os.write(fileString.getBytes());
124 os.write(fileString.getBytes(), 10, testLength - 10);
137 os.write(fileString.getBytes());
H A DOldInputStreamTest.java38 input = testString.getBytes();
88 byte[] ref = testString.getBytes();
168 byte[] ref = testString.getBytes();
224 byte[] ref = testString.getBytes();
H A DOldOutputStreamTest.java50 private final byte[] shortByteArray = "Lorem ipsum...".getBytes();
51 private final byte[] longByteArray = "Lorem ipsum dolor sit amet...".getBytes();
H A DOldDataInputStreamTest.java63 os.write(fileString.getBytes());
94 os.write(fileString.getBytes());
124 os.write(fileString.getBytes());
153 os.write(fileString.getBytes());
182 os.write(fileString.getBytes());
H A DOldByteArrayInputStreamTest.java33 .getBytes());
46 byte[] zz = fileString.getBytes();
210 is = new ByteArrayInputStream(fileString.getBytes());
H A DOldLineNumberInputStreamTest.java174 new ByteArrayInputStream(text.getBytes()), 4);
177 .getBytes()));
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DGZIPOutputStreamTest.java32 byte[] data = gzip(("Hello World").getBytes("UTF-8"));
H A DInflaterTest.java31 assertRoundTrip("dictionary".getBytes("UTF-8"));
37 byte[] expectedBytes = expected.getBytes("UTF-8");
/libcore/luni/src/test/java/tests/api/java/util/
H A DPropertyResourceBundleTest.java83 "p1=one\np2=two".getBytes());
/libcore/support/src/test/java/tests/support/
H A DSupport_ASimpleInputStream.java35 buf = input.getBytes();
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherSymmetricKeyThread.java37 byte[] input = getData().getBytes();
71 checkEncodedData(getData().getBytes(), decrypted);
/libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/
H A DClientSessionContextTest.java37 assertSame(a, context.getSession("a".getBytes()));
38 assertSame(b, context.getSession("b".getBytes()));
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DSignature2Test.java332 sig.update(MESSAGE.getBytes());
351 byte[] bytes = MESSAGE.getBytes();
356 sig2.update(MESSAGE.getBytes());
367 byte[] bytes = MESSAGE.getBytes();
402 sig.update(MESSAGE.getBytes()[0]);
437 sig.update(MESSAGE.getBytes());
441 sig.update(MESSAGE.getBytes());
451 sig.update(MESSAGE.getBytes());
455 sig.update(MESSAGE.getBytes());
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DX509KeyManagerImpl.java42 .getBytes());
61 .getBytes());
85 .getBytes());
/libcore/luni/src/main/java/java/net/
H A DSocks4Message.java177 public byte[] getBytes() { method in class:Socks4Message
205 byte[] stringBytes = theString.getBytes(Charsets.ISO_8859_1);
/libcore/luni/src/test/java/tests/api/javax/xml/parsers/
H A DDocumentBuilderTest.java527 InputStream source = new ByteArrayInputStream("<a>&foo;</a>".getBytes());
528 InputStream entity = new ByteArrayInputStream("bar".getBytes());
548 source = new ByteArrayInputStream("</a>".getBytes());
569 InputStream source = new ByteArrayInputStream("</a>".getBytes());
588 source = new ByteArrayInputStream("</a>".getBytes());
603 InputStream source = new ByteArrayInputStream("<a>&foo;</a>".getBytes());
604 InputStream entity = new ByteArrayInputStream("bar".getBytes());
623 source = new ByteArrayInputStream("<a>&foo;</a>".getBytes());

Completed in 534 milliseconds

1234567