Searched refs:getBytes (Results 1 - 25 of 156) sorted by last modified time

1234567

/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DDefaultHostnameVerifierTest.java338 InputStream in = new ByteArrayInputStream(encoded.getBytes(Charsets.US_ASCII));
H A DSSLSocketTest.java113 byte[] clientToServer = clientToServerString.getBytes();
114 byte[] serverToClient = serverToClientString.getBytes();
/libcore/luni/src/test/java/libcore/net/http/
H A DHttpResponseCacheTest.java882 .setBody(gzip("ABCABCABC".getBytes("UTF-8")))
1846 setBody(response, content.getBytes("UTF-8"), chunkSize);
/libcore/luni/src/test/java/libcore/sqlite/
H A DOldDatabaseTest.java724 byte[] encInputBytes = input.getBytes(charsetNames[i]);
741 assertEquals(new String(input.getBytes(),"US-ASCII"),encOutput2[0]);
H A DOldFunctionContextTest.java274 fc.set_result(args[0].getBytes());
H A DOldStmtTest.java338 byte[] b = name.getBytes();
362 st.bind(1,name.getBytes());
/libcore/luni/src/test/java/libcore/xml/
H A DDeclarationTest.java64 out.write(contents.getBytes("UTF-8"));
H A DExpatSaxParserTest.java117 parse(new ByteArrayInputStream(SNIPPET.getBytes()),
539 new ByteArrayInputStream("bob".getBytes("utf-8")));
H A DNodeTest.java41 ByteArrayInputStream bis = new ByteArrayInputStream("<root/>".getBytes());
H A DPullParserTest.java558 parser.setInput(new ByteArrayInputStream(snippet.getBytes()), "UTF-8");
698 byte[] xml = "\ufeff<?xml version='1.0'?><input/>".getBytes("UTF-8");
709 byte[] xml = "\ufeff<?xml version='1.0'?><input/>".getBytes("UTF-8");
H A DSimpleParserTest.java215 new ByteArrayInputStream("test".getBytes())));
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherPBEThread.java38 byte[] input = getData().getBytes();
58 checkEncodedData(getData().getBytes(), decrypted);
H A DCipherRSAThread.java35 byte[] input = getData().substring(0, dataBlock).getBytes();
H A DCipherSymmetricKeyThread.java37 byte[] input = getData().getBytes();
71 checkEncodedData(getData().getBytes(), decrypted);
H A DCipherWrapThread.java44 checkEncodedData(key.getFormat().getBytes(), decrypted.getFormat().getBytes());
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
H A DHttpURLConnectionTest.java100 .getBytes());
113 "HTTP/1.1 200 OK\n\n").getBytes());
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
H A DHttpsURLConnectionTest.java975 os.write(respAuthenticationRequired.getBytes());
1000 os.write(proxyResponse.getBytes());
1038 + " Message\r\n" + httpsResponseTail).getBytes());
1085 connection.getOutputStream().write(clientsData.getBytes());
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
H A DObjectInputStreamTest.java440 byte[] cName = C.class.getName().getBytes("UTF-8");
441 byte[] aName = A.class.getName().getBytes("UTF-8");
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DURLConnectionTest.java346 byte[] ba = new byte[testString.getBytes().length];
356 BufferedReader r = new BufferedReader(new InputStreamReader(i),testString.getBytes().length);
394 BufferedReader r = new BufferedReader(new InputStreamReader(helloWorld2),testString.getBytes().length);
471 assertEquals(testString.getBytes().length, fileURLCon.getContentLength());
861 .getOutputStream()), posted.getBytes().length);
1072 String encodedString = new String(header.getBytes(), encoding);
1073 InputStream is = new ByteArrayInputStream(encodedString.getBytes());
1262 fileURLCon.getInputStream()), testString.getBytes().length);
1324 BufferedWriter out = new BufferedWriter(fstream, testString.getBytes().length);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DDigestInputStream2Test.java227 "This is a test string for digesting".getBytes());
229 "This is a test string for digesting".getBytes());
H A DIdentity2Test.java101 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate.getBytes());
119 ByteArrayInputStream certArray2 = new ByteArrayInputStream(certificate2.getBytes());
H A DKeyStore2Test.java93 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate.getBytes());
111 ByteArrayInputStream certArray2 = new ByteArrayInputStream(certificate2.getBytes());
134 ByteArrayInputStream certArray3 = new ByteArrayInputStream(certificate3.getBytes());
H A DKeyStore3Test.java72 certificateData.getBytes());
H A DKeyStore4Test.java450 InputStream is = new ByteArrayInputStream("DATA".getBytes());
466 keyStore.load(new ByteArrayInputStream("".getBytes()), password);
H A DKeyStorePrivateKeyEntryTest.java56 certificateData.getBytes("UTF-8"));

Completed in 1297 milliseconds

1234567