/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/ |
BackupUtilsTest.java | 37 sigs[i] = new Signature(signatures[i].getBytes()); 53 "abc".getBytes())); 55 "abc".getBytes(), "def".getBytes())); 86 final byte[] sig1 = "abc".getBytes(); 87 final byte[] sig2 = "def".getBytes(); 104 "abc".getBytes(), "def".getBytes())); 107 new Signature("abc".getBytes()), new Signature("def".getBytes())}); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
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/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/ |
FileEntryTest.groovy | 47 byte[] contents = CONTENTS.getBytes()
73 out.write(CONTENTS.getBytes())
78 out.write(CONTENTS.getBytes())
83 out.write(CONTENTS.getBytes())
93 out.write(CONTENTS.getBytes())
98 out2.write(CONTENTS.getBytes())
103 out.write(NEW_CONTENTS.getBytes())
|
/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);
|
/external/jetty/src/java/org/eclipse/jetty/client/security/ |
DigestAuthentication.java | 72 new String(buffer.toString().getBytes(StringUtil.__ISO_8859_1))); 81 md.update(securityRealm.getPrincipal().getBytes(StringUtil.__ISO_8859_1)); 83 md.update(String.valueOf(details.get("realm")).getBytes(StringUtil.__ISO_8859_1)); 85 md.update(securityRealm.getCredentials().getBytes(StringUtil.__ISO_8859_1)); 89 md.update(exchange.getMethod().getBytes(StringUtil.__ISO_8859_1)); 91 md.update(exchange.getURI().getBytes(StringUtil.__ISO_8859_1)); 94 md.update(TypeUtil.toString(ha1,16).getBytes(StringUtil.__ISO_8859_1)); 96 md.update(String.valueOf(details.get("nonce")).getBytes(StringUtil.__ISO_8859_1)); 98 md.update(NC.getBytes(StringUtil.__ISO_8859_1)); 100 md.update(cnonce.getBytes(StringUtil.__ISO_8859_1)) [all...] |
/external/smali/util/src/test/java/org/jf/util/ |
ClassFileNameHandlerTest.java | 53 Assert.assertEquals(95, result.getBytes(UTF8).length); 66 Assert.assertEquals(200, sb.toString().getBytes(UTF8).length); 67 Assert.assertEquals(195, result.getBytes(UTF8).length); 72 Assert.assertEquals(200, sb.toString().getBytes(UTF8).length); 73 Assert.assertEquals(195, result.getBytes(UTF8).length); 86 Assert.assertEquals(300, sb.toString().getBytes(UTF8).length); 87 Assert.assertEquals(292, result.getBytes(UTF8).length); 92 Assert.assertEquals(300, sb.toString().getBytes(UTF8).length); 93 Assert.assertEquals(292, result.getBytes(UTF8).length); 106 Assert.assertEquals(400, sb.toString().getBytes(UTF8).length) [all...] |
/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"))); 292 bais = new ByteArrayInputStream(Base64.decode(pkcs7so.getBytes("UTF-8"))); 309 (good[i][0] + x509crl + good[i][1]).getBytes("UTF-8")); 322 (good[0][0] + bad_content[i] + good[0][1]).getBytes("UTF-8")); 333 (bad[i][0] + x509crl + bad[i][1]).getBytes("UTF-8")); 408 data[pem_x509] = (good[0][0] + x509crl + good[0][1] + "\n").getBytes("UTF-8"); 409 data[asn_x509] = Base64.decode(x509crl.getBytes("UTF-8")); 410 data[pem_pkcs] = (good[0][0] + pkcs7so + good[0][1] + "\n").getBytes("UTF-8") [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
StringTest.java | 86 s.getBytes(EVIL_CHARSET); 94 byte[] bytes = "xa\u0666bx".getBytes("UTF-8"); 99 byte[] bytes = "xa\u0666bx".getBytes("UTF-8"); 104 byte[] bytes = "xa\u0666bx".getBytes("UTF-8"); 109 byte[] bytes = "a\u0666b".getBytes("UTF-8"); 126 assertEquals("[97, 63, 98]", Arrays.toString("a\u0666b".getBytes("US-ASCII"))); 127 assertEquals("[97, 63, 98]", Arrays.toString("a\u0666b".getBytes(Charset.forName("US-ASCII")))); 131 // We have a fast path implementation of String.getBytes for UTF-8. 135 assertEquals("[]", Arrays.toString("".getBytes(cs))); 138 assertEquals("[0]", Arrays.toString("\u0000".getBytes(cs))) [all...] |
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/ |
SinkTester.java | 49 public abstract byte[] getBytes() throws Exception; 99 assertArrayEquals(expected, getBytes()); 112 assertArrayEquals(expected, getBytes()); 124 assertArrayEquals(expected, getBytes()); 146 assertArrayEquals(expected, getBytes()); 177 assertArrayEquals(expected, getBytes()); 188 assertArrayEquals(expected, getBytes()); 204 assertArrayEquals(expectedBytes, getBytes());
|
/external/conscrypt/src/test/java/org/conscrypt/ |
OpenSSLKeyTest.java | 51 ByteArrayInputStream is = new ByteArrayInputStream(RSA_PUBLIC_KEY.getBytes()); 59 ByteArrayInputStream is = new ByteArrayInputStream(RSA_PRIVATE_KEY.getBytes());
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/data/ |
CRC64Test.java | 38 final long sum = CRC64.checksum("IHATEMATH".getBytes("ASCII")); 63 .getBytes("ASCII"));
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
Base64Test.java | 21 String result = Base64.encodeToString(base64Decoded.getBytes(), Base64.DEFAULT); 30 assertArrayEquals(result, base64Decoded.getBytes());
|
NdefRecordTest.java | 15 byte[] bytes = "mumble".getBytes();
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
KernelWakelockReaderTest.java | 49 public byte[] getBytes() throws Exception { 51 byte[] data = mStringBuilder.toString().getBytes(Charset.forName("UTF-8")); 77 byte[] buffer = new ProcFileBuilder().getBytes(); 87 .getBytes(); 103 .getBytes(); 116 .getBytes(); 131 .getBytes(); 140 .getBytes();
|
/libcore/support/src/test/java/org/apache/harmony/testframework/ |
SinkTester.java | 49 public abstract byte[] getBytes() throws Exception; 99 assertArrayEquals(expected, getBytes()); 112 assertArrayEquals(expected, getBytes()); 124 assertArrayEquals(expected, getBytes()); 146 assertArrayEquals(expected, getBytes()); 177 assertArrayEquals(expected, getBytes()); 188 assertArrayEquals(expected, getBytes()); 204 assertArrayEquals(expectedBytes, getBytes());
|
/libcore/support/src/test/java/tests/security/ |
SignatureHelper.java | 45 signature.update(plainData.getBytes()); 49 signature.update(plainData.getBytes());
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
TextBody.java | 39 byte[] bytes = mBody.getBytes("UTF-8"); 57 byte[] b = mBody.getBytes("UTF-8");
|
/packages/services/Telephony/src/com/android/phone/common/mail/internet/ |
TextBody.java | 38 byte[] bytes = mBody.getBytes("UTF-8"); 56 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());
|
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/ |
InputStreamSourceFileLocatorTest.java | 60 sources.put("org/jacoco/example/Test.java", "ÜÄö".getBytes("UTF-8")); 68 sources.put("Test.java", "ÜÄö".getBytes("UTF-8")); 75 sources.put("Test.java", "ÜÄö".getBytes("UTF-16")); 82 sources.put("Test.java", "Hello World!".getBytes());
|
/external/jetty/src/java/org/eclipse/jetty/util/ |
MultiPartOutputStream.java | 56 boundaryBytes=boundary.getBytes(StringUtil.__ISO_8859_1); 102 out.write(("Content-Type: "+contentType).getBytes(StringUtil.__ISO_8859_1)); 120 out.write(("Content-Type: "+contentType).getBytes(StringUtil.__ISO_8859_1)); 124 out.write(headers[i].getBytes(StringUtil.__ISO_8859_1));
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
Credentials.java | 30 byte[] bytes = usernameAndPassword.getBytes("ISO-8859-1");
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldAndroidByteArrayInputStreamTest.java | 33 ByteArrayInputStream a = new ByteArrayInputStream(str.getBytes()); 34 ByteArrayInputStream b = new ByteArrayInputStream(str.getBytes()); 35 ByteArrayInputStream c = new ByteArrayInputStream(str.getBytes()); 36 ByteArrayInputStream d = new ByteArrayInputStream(str.getBytes());
|
OldAndroidByteArrayOutputStreamTest.java | 32 a.write(str.getBytes(), 0, 26);
|