Searched refs:getBytes (Results 126 - 150 of 216) sorted by relevance

123456789

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/
H A DX509CertificateTest.java135 .getBytes());
143 .generateCertificate(new ByteArrayInputStream(selfSignedCert.getBytes()));
150 selfSignedCert.getBytes()));
/libcore/luni/src/test/java/libcore/java/sql/
H A DOldResultSetGetterTests.java247 assertNull(res.getBytes(i));
253 res.getBytes(24);
274 stPrep.setBytes(1, testString.getBytes());
280 byte[] output = res.getBytes(1);
306 stPrep.setBytes(1, testString.getBytes());
312 byte[] output = res.getBytes(1);
330 assertNull(res.getBytes(t));
335 res.getBytes(colNames.get(24));
356 stPrep.setBytes(1, testString.getBytes());
362 byte[] output = res.getBytes("valu
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
H A DTestUtils.java319 return ENCODED_X509_CERTIFICATE.getBytes();
781 ByteArrayInputStream bi = new ByteArrayInputStream(rootCert.getBytes());
783 bi = new ByteArrayInputStream(endCert.getBytes());
/libcore/support/src/test/java/tests/http/
H A DMockWebServer.java422 out.write((response.getStatus() + "\r\n").getBytes(ASCII));
424 out.write((header + "\r\n").getBytes(ASCII));
426 out.write(("\r\n").getBytes(ASCII));
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatParser.java358 .getBytes(entityParser.encoding));
361 .getBytes(entityParser.encoding));
379 .getBytes(entityParser.encoding));
382 .getBytes(entityParser.encoding));
/libcore/luni/src/test/java/libcore/java/io/
H A DOldDataOutputStreamTest.java74 os.write(testString.getBytes(), 5, testLength - 7);
/libcore/luni/src/test/java/libcore/java/net/
H A DOldAndroidDatagramTest.java110 byte[] bytes = s.getBytes();
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DOldAndroidDeflateTest.java44 byte[] input = inputString.getBytes("UTF-8");
H A DOldZipInputStreamTest.java34 private byte[] dataBytes = "Some data in my file".getBytes();
H A DZipFileTest.java115 replaceBytes(buffer, name2.getBytes(), name1.getBytes());
/libcore/luni/src/test/java/org/apache/harmony/security/tests/x509/
H A DSubjectPublicKeyInfoTest.java45 private static final byte[] ENCODED_BROKEN = "BROKEN!".getBytes(Charset.forName("ASCII"));
/libcore/luni/src/test/java/tests/security/cert/
H A DX509CRLTest.java76 .getBytes());
/libcore/luni/src/test/java/tests/targets/security/
H A DKeyStoreTest.java107 encodedCertificate.getBytes()));
/libcore/support/src/test/java/org/apache/harmony/testframework/
H A DWrapperTester.java91 public byte[] getBytes() throws Exception { method in class:WrapperTester.WrapperSinkTester
/libcore/luni/src/main/java/java/sql/
H A DCallableStatement.java228 public byte[] getBytes(int parameterIndex) throws SQLException; method in interface:CallableStatement
241 public byte[] getBytes(String parameterName) throws SQLException; method in interface:CallableStatement
H A DResultSet.java462 public byte[] getBytes(int columnIndex) throws SQLException; method in interface:ResultSet
474 public byte[] getBytes(String columnName) throws SQLException; method in interface:ResultSet
/libcore/luni/src/main/java/java/util/jar/
H A DJarVerifier.java214 byte[] hashBytes = hash.getBytes(StandardCharsets.ISO_8859_1);
390 byte[] hashBytes = hash.getBytes(StandardCharsets.ISO_8859_1);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DIdentity2Test.java101 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate.getBytes());
119 ByteArrayInputStream certArray2 = new ByteArrayInputStream(certificate2.getBytes());
/libcore/libart/src/main/java/java/lang/
H A DString.java704 * each {@code char}. Use {@link #getBytes()} or {@link #getBytes(String)} instead.
719 * @deprecated Use {@link #getBytes()} or {@link #getBytes(String)}
722 public void getBytes(int start, int end, byte[] data, int index) { method in class:String
745 public byte[] getBytes() { method in class:String
746 return getBytes(Charset.defaultCharset());
758 public byte[] getBytes(String charsetName) throws UnsupportedEncodingException { method in class:String
759 return getBytes(Charset.forNameUEE(charsetName));
772 public byte[] getBytes(Charse method in class:String
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DInputStreamReaderTest.java108 in = new ByteArrayInputStream(source.getBytes("UTF-8"));
455 bis = new ByteArrayInputStream(source.getBytes("UTF-8"));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSourceChannelTest.java51 buffer = ByteBuffer.wrap("bytes".getBytes(ISO8859_1));
52 positionedBuffer = ByteBuffer.wrap("12345bytes".getBytes(ISO8859_1));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DHandshakeCompletedEventTest.java122 ByteArrayInputStream bis = new ByteArrayInputStream(certificate.getBytes());
540 byte[] bytes = Base64.decode(keys.getBytes());
/libcore/luni/src/main/java/java/net/
H A DPlainSocketImpl.java430 getOutputStream().write(request.getBytes(), 0, request.getLength());
440 int count = getInputStream().read(reply.getBytes(), bytesRead,
/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DBinaryHprofWriter.java167 byte[] bytes = string.getBytes("UTF-8");
/libcore/dex/src/main/java/com/android/dex/
H A DTableOfContents.java167 out.write(DexFormat.apiToMagic(DexFormat.API_NO_EXTENDED_OPCODES).getBytes("UTF-8"));

Completed in 1268 milliseconds

123456789