/libcore/luni/src/test/java/libcore/java/util/zip/ |
GZIPOutputStreamTest.java | 33 byte[] data = gzip(("Hello World").getBytes("UTF-8"));
|
ZipInputStreamTest.java | 33 byte[] data = "Hello World".getBytes("UTF-8");
|
ZipOutputStreamTest.java | 33 byte[] data = "Hello World".getBytes("UTF-8");
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
CipherRSAThread.java | 35 byte[] input = getData().substring(0, dataBlock).getBytes();
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyStorePrivateKeyEntryTest.java | 56 certificateData.getBytes("UTF-8"));
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
FakeSSLSession.java | 44 return host.getBytes();
|
/libcore/support/src/test/java/tests/support/ |
Support_Xml.java | 35 ByteArrayInputStream stream = new ByteArrayInputStream(xml.getBytes());
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapAuthenticator.java | 77 PasswordAuthentication pa = new PasswordAuthentication(null, mSessionKey.getBytes());
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
BluetoothPbapAuthenticator.java | 95 PasswordAuthentication pa = new PasswordAuthentication(null, mSessionKey.getBytes());
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
ProvisionParserTests.java | 35 new ByteArrayInputStream("ABCDEFG".getBytes());
|
/packages/providers/DownloadProvider/tests/permission/src/com/android/providers/downloads/permission/tests/ |
DownloadProviderPermissionsTest.java | 56 strm.write("Oops!".getBytes());
|
/frameworks/base/core/tests/coretests/src/android/util/ |
Base64Test.java | 42 String b64 = Base64.encodeToString(in.getBytes(), flags); 249 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op); 253 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op); 265 assertEquals("YWFh".getBytes(), 4, encoder.output, encoder.op); 273 assertEquals("YWJh".getBytes(), 4, encoder.output, encoder.op); 277 assertEquals("YmFi".getBytes(), 4, encoder.output, encoder.op); 281 assertEquals("YQ".getBytes(), 2, encoder.output, encoder.op); 319 byte[] plain = (lipsum + lipsum + lipsum + lipsum + lipsum).getBytes(); 413 new ByteArrayInputStream("/v8=".getBytes()), Base64.DEFAULT); 434 byte[] plain = (lipsum + lipsum).getBytes(); [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
FileOutputStreamTest.java | 87 fos.write("HI".getBytes(), 0, 2); 90 fos.write(fileString.getBytes()); 134 fos.write(fileString.getBytes()); 159 fos.write(fileString.getBytes()); 173 fos.write(fileString.getBytes(), 0, fileString.length());
|
/libcore/luni/src/test/java/libcore/java/net/ |
OldSocketTest.java | 604 theOutput.write(sendString.getBytes()); 640 theOutput.write(sendString.getBytes()); [all...] |
/frameworks/opt/mms/src/java/com/google/android/mms/pdu/ |
PduComposer.java | 312 appendTextString(str.getBytes()); 452 appendQuotedString(str.getBytes()); 463 temp.appendTextString(STRING_PHONE_NUMBER_ADDRESS_TYPE.getBytes()); 466 temp.appendTextString(STRING_IPV4_ADDRESS_TYPE.getBytes()); 469 temp.appendTextString(STRING_IPV6_ADDRESS_TYPE.getBytes()); 605 PduHeaders.MESSAGE_CLASS_ADVERTISEMENT_STR.getBytes())) { 608 PduHeaders.MESSAGE_CLASS_AUTO_STR.getBytes())) { 611 PduHeaders.MESSAGE_CLASS_PERSONAL_STR.getBytes())) { 614 PduHeaders.MESSAGE_CLASS_INFORMATIONAL_STR.getBytes())) { [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldRandomAccessFileTest.java | 173 raf.write("Test".getBytes(), 0, 4); 190 raf.write(testString.getBytes()); 218 raf.write(testString.getBytes(), 0, testLength); 236 raf.write(testString.getBytes()); 253 byte[] testBuf = testString.getBytes(); 293 fos.write(testString.getBytes(), 0, testLength); 326 fos.write(testString.getBytes(), 0, testLength); 920 raf.write(s.getBytes(), 0, s.length()); 952 raf.write(testString.getBytes(), 0, testLength); [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/internet/ |
MimeMessageTest.java | 423 byte[] expected = expectedString.getBytes(); 460 entireMessage.getBytes("us-ascii"))); 485 entireMessage.getBytes("us-ascii"))); 506 entireMessage.getBytes("us-ascii"))); 524 mm = new MimeMessage(new ByteArrayInputStream(entireMessage.getBytes("us-ascii"))); 542 mm = new MimeMessage(new ByteArrayInputStream(entireMessage.getBytes("us-ascii")));
|
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/ |
SpdyConnectionTest.java | 71 peer.sendFrame().data(SpdyConnection.FLAG_FIN, 1, "robot".getBytes("UTF-8")); 91 assertTrue(Arrays.equals("c3po".getBytes("UTF-8"), requestData.data)); 310 peer.sendFrame().data(SpdyConnection.FLAG_FIN, 42, "bogus".getBytes("UTF-8")); 366 out.write("square".getBytes(UTF_8)); 371 out.write("round".getBytes(UTF_8)); 386 assertTrue(Arrays.equals("square".getBytes("UTF-8"), data.data)); 412 out.write("square".getBytes(UTF_8)); 500 out.write("square".getBytes(UTF_8)); 511 assertTrue(Arrays.equals("square".getBytes("UTF-8"), data.data)); 524 peer.sendFrame().data(FLAG_FIN, 1, "square".getBytes(UTF_8)) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
NdefTagTester.java | 100 byte[] mimeBytes = MIME_TYPE.getBytes(Charset.forName("US-ASCII")); 103 byte[] payload = PAYLOAD.getBytes(Charset.forName("US-ASCII"));
|
/cts/tests/tests/content/src/android/content/res/cts/ |
AssetManager_AssetInputStreamTest.java | 52 final byte[] bytes = CONTENT_STRING.getBytes(); 65 final byte[] bytes = CONTENT_STRING.getBytes();
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
MemberListParser.java | 118 ByteArray bytes = cf.getBytes(); 177 ByteArray bytes = cf.getBytes();
|
/dalvik/dx/src/com/android/dx/command/dump/ |
BaseDumper.java | 125 offset = bytes.underlyingOffset(offset, getBytes()); 180 protected final byte[] getBytes() {
|
/development/apps/Development/src/com/android/development/ |
LogViewer.java | 96 logger.write("Reading message.\n".getBytes()); 117 logger.write("Updating UI.\n".getBytes()); 163 // logger.write(builder.toString().getBytes());
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/ |
ManifestTest.java | 89 MANIFEST_CONTENTS.getBytes("ISO-8859-1"))); 137 MANIFEST_CONTENTS.getBytes("ISO-8859-1"))); 145 .getBytes("ISO-8859-1")); 161 MANIFEST_CONTENTS_2.getBytes("ISO-8859-1"))); 188 MANIFEST_CONTENTS.getBytes("ISO-8859-1"))); 190 MANIFEST_CONTENTS.getBytes("ISO-8859-1"))); 195 MANIFEST_CONTENTS_1.getBytes("ISO-8859-1"))); 270 byte[] bytes = manifestContent.getBytes("ISO-8859-1");
|
/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/kerberos/ |
KerberosPrincipalTest.java | 232 out.write("[libdefaults]\n".getBytes()); 233 out.write(" default_realm = MY.TEST_REALM".getBytes());
|