/libcore/support/src/test/java/tests/security/ |
H A D | SignatureHelper.java | 58 signature.update(plainData.getBytes()); 77 signature.update(plainData.getBytes());
|
H A D | MessageDigestTest.java | 171 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 D | AlgorithmParameterAsymmetricHelper.java | 75 bs = cipher.doFinal(plainData.getBytes()); 99 Assert.assertTrue(Arrays.equals(plainData.getBytes(), decrypted));
|
H A D | AlgorithmParameterSignatureHelper.java | 83 signature.update(plainData.getBytes()); 102 signature.update(plainData.getBytes());
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | FileChannelTest.java | 68 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 D | ASN1UTCTime.java | 99 out.content = sdf.format(out.content).getBytes(Charsets.UTF_8);
|
H A D | ASN1StringType.java | 67 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 D | StrictLineReaderTest.java | 81 ).getBytes());
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldAndroidDataInputStreamTest.java | 32 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 D | OldFilterOutputStreamTest.java | 83 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 D | OldInputStreamTest.java | 38 input = testString.getBytes(); 88 byte[] ref = testString.getBytes(); 168 byte[] ref = testString.getBytes(); 224 byte[] ref = testString.getBytes();
|
H A D | OldOutputStreamTest.java | 50 private final byte[] shortByteArray = "Lorem ipsum...".getBytes(); 51 private final byte[] longByteArray = "Lorem ipsum dolor sit amet...".getBytes();
|
H A D | OldDataInputStreamTest.java | 63 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 D | OldByteArrayInputStreamTest.java | 33 .getBytes()); 46 byte[] zz = fileString.getBytes(); 210 is = new ByteArrayInputStream(fileString.getBytes());
|
H A D | OldLineNumberInputStreamTest.java | 174 new ByteArrayInputStream(text.getBytes()), 4); 177 .getBytes()));
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | GZIPOutputStreamTest.java | 32 byte[] data = gzip(("Hello World").getBytes("UTF-8"));
|
H A D | InflaterTest.java | 31 assertRoundTrip("dictionary".getBytes("UTF-8")); 37 byte[] expectedBytes = expected.getBytes("UTF-8");
|
/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | PropertyResourceBundleTest.java | 83 "p1=one\np2=two".getBytes());
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_ASimpleInputStream.java | 35 buf = input.getBytes();
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
H A D | CipherSymmetricKeyThread.java | 37 byte[] input = getData().getBytes(); 71 checkEncodedData(getData().getBytes(), decrypted);
|
/libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | ClientSessionContextTest.java | 37 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 D | Signature2Test.java | 332 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 D | X509KeyManagerImpl.java | 42 .getBytes()); 61 .getBytes()); 85 .getBytes());
|
/libcore/luni/src/main/java/java/net/ |
H A D | Socks4Message.java | 177 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 D | DocumentBuilderTest.java | 527 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());
|