HomeSort by relevance Sort by last modified time
    Searched refs:getBytes (Results 1 - 25 of 557) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/luni/src/test/java/tests/api/javax/net/ssl/
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/
RowId.java 31 byte[] getBytes();
  /external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/provider/cert/
CertFactoryTestData.java 298 return Base64.decode(certPathPKCS7Base64.getBytes("UTF-8"));
302 return Base64.decode(certPathPkiPathBase64.getBytes("UTF-8"));
306 return Base64.decode(certEncodingBase64.getBytes("UTF-8"));
310 return base64certEncoding.getBytes("UTF-8");
314 return crlEncodingPEM.getBytes("UTF-8");
318 return Base64.decode(crlEncodingBase64.getBytes("UTF-8"));
  /libcore/luni/src/test/java/tests/targets/security/cert/
CertificateFactoryTestX509.java 23 super("X509", encodedCertificate.getBytes());
  /external/bouncycastle/src/main/java/org/bouncycastle/asn1/misc/
NetscapeCertType.java 41 super(getBytes(usage), getPadBits(usage));
47 super(usage.getBytes(), usage.getPadBits());
  /external/bouncycastle/src/main/java/org/bouncycastle/asn1/x509/
ReasonFlags.java 77 super(getBytes(reasons), getPadBits(reasons));
83 super(reasons.getBytes(), reasons.getPadBits());
KeyUsage.java 60 super(getBytes(usage), getPadBits(usage));
66 super(usage.getBytes(), usage.getPadBits());
  /external/protobuf/java/src/main/java/com/google/protobuf/
Internal.java 74 return new String(bytes.getBytes("ISO-8859-1"), "UTF-8");
93 return ByteString.copyFrom(bytes.getBytes("ISO-8859-1"));
  /external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/jgss/
GSSUtilsTest.java 28 byte[] bytes = GSSUtils.getBytes(i, 1);
33 bytes = GSSUtils.getBytes(i, 1);
38 bytes = GSSUtils.getBytes(i, 2);
43 bytes = GSSUtils.getBytes(i, 2);
48 bytes = GSSUtils.getBytes(i, 3);
53 bytes = GSSUtils.getBytes(i, 4);
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
StreamCorruptedExceptionTest.java 36 .getBytes()));
55 .getBytes()));
ByteArrayOutputStreamTest.java 81 * java.io.ByteArrayOutputStream(); bos.write (fileString.getBytes(), 0,
84 * (fileString.getBytes(), 0, 100); bos.toByteArray(); fail("Wrote to
94 bos.write(fileString.getBytes(), 0, 100);
104 bos.write(fileString.getBytes(), 0, 100);
115 byte[] sbytes = fileString.getBytes();
117 bos.write(fileString.getBytes(), 0, fileString.length());
130 bos.write(fileString.getBytes("UTF-8"), 0, fileString.length());
135 bos.write(fileString.getBytes("UTF-8"), 0, fileString.length());
145 bos.write(fileString.getBytes(), 0, fileString.length());
156 bos.write(fileString.getBytes(), 0, fileString.length())
    [all...]
PushbackInputStreamTest.java 66 .getBytes()));
67 pis.unread("He".getBytes());
82 .getBytes()), 5);
83 pis.unread("Hellos".getBytes());
113 .available() == fileString.getBytes().length);
134 .getBytes("UTF-8")[0]);
227 .getBytes("UTF-8")[0]);
242 .getBytes("UTF-8")), 65535);
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DatagramPacketTest.java 37 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5);
57 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 2, 3);
69 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 2, 3,
82 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5,
94 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5,
104 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5);
113 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5);
121 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 3, 2);
129 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5,
152 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5
    [all...]
  /external/apache-http/src/org/apache/http/util/
EncodingUtils.java 105 public static byte[] getBytes(final String data, final String charset) {
116 return data.getBytes(charset);
118 return data.getBytes();
135 return data.getBytes(HTTP.US_ASCII);
  /libcore/luni/src/test/java/libcore/java/lang/
StringTest.java 87 s.getBytes(EVIL_CHARSET);
113 assertEquals("[97, 63, 98]", Arrays.toString("a\u0666b".getBytes("US-ASCII")));
114 assertEquals("[97, 63, 98]", Arrays.toString("a\u0666b".getBytes(Charset.forName("US-ASCII"))));
118 // We have a fast path implementation of String.getBytes for UTF-8.
122 assertEquals("[]", Arrays.toString("".getBytes(cs)));
125 assertEquals("[0]", Arrays.toString("\u0000".getBytes(cs)));
126 assertEquals("[127]", Arrays.toString("\u007f".getBytes(cs)));
127 assertEquals("[104, 105]", Arrays.toString("hi".getBytes(cs)));
130 assertEquals("[-62, -128]", Arrays.toString("\u0080".getBytes(cs)));
131 assertEquals("[-39, -90]", Arrays.toString("\u0666".getBytes(cs)))
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
OldDatagramPacketTest.java 33 dp = new DatagramPacket("Hello".getBytes(), 5, InetAddress.getLocalHost(), 1000);
94 new DatagramPacket("Hello".getBytes(), 6);
100 new DatagramPacket("Hello".getBytes(), -1);
107 dp = new DatagramPacket("Hello".getBytes(), 5);
116 dp = new DatagramPacket("Hello".getBytes(), 5);
  /frameworks/base/keystore/java/android/security/
KeyStore.java 78 return get(getBytes(key));
87 return put(getBytes(key), value);
96 return delete(getBytes(key));
105 return contains(getBytes(key));
114 byte[][] values = saw(getBytes(prefix));
136 return password(getBytes(password));
150 return unlock(getBytes(password));
222 private static byte[] getBytes(String string) {
223 return string.getBytes(Charsets.UTF_8);
  /external/mockwebserver/src/main/java/com/google/mockwebserver/
MockResponse.java 105 return setBody(body.getBytes(ASCII));
119 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII));
120 bytesOut.write("\r\n".getBytes(ASCII));
122 bytesOut.write("\r\n".getBytes(ASCII));
125 bytesOut.write("0\r\n\r\n".getBytes(ASCII)); // last chunk + empty trailer + crlf
131 return setChunkedBody(body.getBytes(ASCII), maxChunkSize);
  /libcore/support/src/test/java/tests/http/
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);
  /packages/providers/DownloadProvider/tests/src/tests/http/
MockResponse.java 97 return setBody(body.getBytes(ASCII));
110 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII));
111 bytesOut.write("\r\n".getBytes(ASCII));
113 bytesOut.write("\r\n".getBytes(ASCII));
116 bytesOut.write("0\r\n".getBytes(ASCII));
122 return setChunkedBody(body.getBytes(ASCII), maxChunkSize);
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
CertificateFactory_ImplTest.java 216 Base64.decode(b64PublicKeySpec.getBytes("UTF-8")));
262 Base64.decode(pkcs7so.getBytes("UTF-8")));
286 Base64.decode(pkcs7so.getBytes("UTF-8")));
291 bais = new ByteArrayInputStream(Base64.decode(pkcs7so.getBytes("UTF-8")));
307 (good[i][0] + x509crl + good[i][1]).getBytes("UTF-8"));
320 (good[0][0] + bad_content[i] + good[0][1]).getBytes("UTF-8"));
331 (bad[i][0] + x509crl + bad[i][1]).getBytes("UTF-8"));
401 data[pem_x509] = (good[0][0] + x509crl + good[0][1] + "\n").getBytes("UTF-8");
402 data[asn_x509] = Base64.decode(x509crl.getBytes("UTF-8"));
403 data[pem_pkcs] = (good[0][0] + pkcs7so + good[0][1] + "\n").getBytes("UTF-8")
    [all...]
  /external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/
SinkTester.java 49 public abstract byte[] getBytes() throws Exception;
98 assertArrayEquals(expected, getBytes());
111 assertArrayEquals(expected, getBytes());
123 assertArrayEquals(expected, getBytes());
145 assertArrayEquals(expected, getBytes());
176 assertArrayEquals(expected, getBytes());
187 assertArrayEquals(expected, getBytes());
203 assertArrayEquals(expectedBytes, getBytes());
  /libcore/luni/src/test/java/libcore/java/security/cert/
CertificateFactoryTest.java 92 byte[] valid = VALID_CERTIFICATE_PEM.getBytes();
97 byte[] invalid = INVALID_CERTIFICATE_PEM.getBytes();
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
TextBody.java 38 byte[] bytes = mBody.getBytes("UTF-8");
55 byte[] b = mBody.getBytes("UTF-8");
  /cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/
TestPackageDefTest.java 37 return new ByteArrayInputStream("test data for digest".getBytes());

Completed in 608 milliseconds

1 2 3 4 5 6 7 8 91011>>