Home
last modified time | relevance | path

Searched refs:getBytes (Results 1 – 25 of 67) sorted by relevance

123

/packages/apps/Browser/src/com/android/browser/homepages/
DRequestHandler.java96 return TextUtils.htmlEncode(s).getBytes(); in htmlEncode()
136 stream.write("data:image/png;base64,".getBytes()); in writeTemplatedIndex()
172 stream.write(f.getName().getBytes()); in writeFolderIndex()
175 stream.write(("file://" + f.getAbsolutePath()).getBytes()); in writeFolderIndex()
178 stream.write((f.isDirectory() ? "dir" : "file").getBytes()); in writeFolderIndex()
182 stream.write(readableFileSize(f.length()).getBytes()); in writeFolderIndex()
189 stream.write(date.getBytes()); in writeFolderIndex()
193 stream.write("alt".getBytes()); in writeFolderIndex()
249 mOutput.write(str.getBytes()); in writeString()
253 mOutput.write(str.getBytes(), offset, count); in writeString()
/packages/apps/Email/src/org/apache/commons/io/
DIOUtils.java277 return input.getBytes(); in toByteArray()
594 byte[] bytes = input.getBytes(); in toInputStream()
612 byte[] bytes = encoding != null ? input.getBytes(encoding) : input.getBytes(); in toInputStream()
718 output.write(new String(data).getBytes()); in write()
746 output.write(new String(data).getBytes(encoding)); in write()
784 output.write(data.getBytes()); in write()
810 output.write(data.getBytes(encoding)); in write()
849 output.write(data.toString().getBytes()); in write()
875 output.write(data.toString().getBytes(encoding)); in write()
905 output.write(line.toString().getBytes()); in writeLines()
[all …]
/packages/apps/Nfc/tests/src/com/android/nfc/snep/
DSnepDefaultClientTests.java77 new byte[0], "http://android.com".getBytes()); in getSmallNdef()
87 NdefRecord rec = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "text/plain".getBytes(), in getLargeNdef()
88 new byte[0], string.toString().getBytes()); in getLargeNdef()
DSnepCustomClientTests.java77 new byte[0], "http://android.com".getBytes()); in getSmallNdef()
87 NdefRecord rec = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "text/plain".getBytes(), in getLargeNdef()
88 new byte[0], string.toString().getBytes()); in getLargeNdef()
DSnepValidationServerTests.java70 new byte[0], "http://android.com".getBytes()); in getSmallNdef()
80 NdefRecord rec = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "text/plain".getBytes(), in getLargeNdef()
81 new byte[0], string.toString().getBytes()); in getLargeNdef()
DSnepValidationClientTests.java183 new byte[] { 'A' }, "http://android.com".getBytes()); in getSmallNdef()
193 NdefRecord rec = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "text/plain".getBytes(), in getLargeNdef()
194 new byte[] { 'B' }, string.toString().getBytes()); in getLargeNdef()
DSnepBasicTests.java263 new byte[0], "http://android.com".getBytes()); in getSmallNdef()
272 NdefRecord rec = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "text/plain".getBytes(), in getNdef()
273 new byte[0], string.toString().getBytes()); in getNdef()
/packages/apps/Mms/src/com/android/mms/util/
DImageCacheService.java96 return getBytes(path + "+" + type); in makeKey()
122 return crc64Long(getBytes(in)); in crc64Long()
146 public static byte[] getBytes(String in) { in getBytes() method in ImageCacheService
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
DTextBody.java38 byte[] bytes = mBody.getBytes("UTF-8"); in writeTo()
55 byte[] b = mBody.getBytes("UTF-8"); in getInputStream()
/packages/apps/Mms/src/com/android/mms/model/
DSlideshowModel.java257 part.setContentType(media.getContentType().getBytes()); in makePduBody()
269 part.setContentLocation(location.getBytes()); in makePduBody()
274 part.setContentId(location.getBytes()); in makePduBody()
280 part.setContentId(contentId.getBytes()); in makePduBody()
284 part.setData(((TextModel) media).getText().getBytes()); in makePduBody()
299 smilPart.setContentId("smil".getBytes()); in makePduBody()
300 smilPart.setContentLocation("smil.xml".getBytes()); in makePduBody()
301 smilPart.setContentType(ContentType.APP_SMIL.getBytes()); in makePduBody()
/packages/apps/Tag/canon/src/com/android/apps/tagcanon/
DTagCanon.java56 byte[] langBytes = locale.getLanguage().getBytes(Charsets.US_ASCII); in newTextRecord()
59 byte[] textBytes = text.getBytes(utfEncoding); in newTextRecord()
77 byte[] typeBytes = type.getBytes(Charsets.US_ASCII); in newMimeRecord()
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
DSimpleIcsWriterTests.java48 final String actual = Utility.fromUtf8(ics.getBytes()); in testWriteTag()
83 final byte[] bytes = ics.getBytes(); in checkWriteLine()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/
DSimpleIcsWriterTests.java48 final String actual = Utility.fromUtf8(ics.getBytes()); in testWriteTag()
83 final byte[] bytes = ics.getBytes(); in checkWriteLine()
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DMimeMessageTest.java423 byte[] expected = expectedString.getBytes(); in testWriteToHeader()
460 entireMessage.getBytes("us-ascii"))); in testWhiteSpace()
485 entireMessage.getBytes("us-ascii"))); in testUndisclosedRecipients()
506 entireMessage.getBytes("us-ascii"))); in testInvalidHeaders()
524 mm = new MimeMessage(new ByteArrayInputStream(entireMessage.getBytes("us-ascii"))); in testParseNoMessageId()
542 mm = new MimeMessage(new ByteArrayInputStream(entireMessage.getBytes("us-ascii"))); in testEbayDate()
/packages/apps/Mms/src/com/android/mms/transaction/
DMmsMessageSender.java89 sendReq.setMessageClass(DEFAULT_MESSAGE_CLASS.getBytes()); in sendMessage()
158 new EncodedStringValue(PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes()), in sendReadRec()
159 messageId.getBytes(), in sendReadRec()
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/
DSimpleIcsWriter.java107 return Utility.fromUtf8(getBytes()); in toString()
113 public byte[] getBytes() { in getBytes() method in SimpleIcsWriter
/packages/apps/Tag/src/com/android/apps/tag/record/
DTextRecord.java137 byte[] langBytes = locale.getLanguage().getBytes(Charset.forName("US-ASCII")); in newTextRecord()
140 byte[] textBytes = text.getBytes(utfEncoding); in newTextRecord()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/
DEasSyncServiceTests.java113 assertEquals("Basic " + Base64.encodeToString((USER+":"+PASSWORD).getBytes(), in testMakeUriString()
123 assertEquals("Basic " + Base64.encodeToString((user+":"+PASSWORD).getBytes(), in testMakeUriString()
/packages/apps/Email/src/com/android/email/mail/transport/
DSmtpSender.java306 Base64.encodeToString(username.getBytes(), Base64.NO_WRAP), in saslAuthLogin()
309 Base64.encodeToString(password.getBytes(), Base64.NO_WRAP), in saslAuthLogin()
322 byte[] data = ("\000" + username + "\000" + password).getBytes(); in saslAuthPlain()
/packages/apps/Exchange/tests/src/com/android/exchange/
DEasSyncServiceTests.java113 assertEquals("Basic " + Base64.encodeToString((USER+":"+PASSWORD).getBytes(), in testMakeUriString()
123 assertEquals("Basic " + Base64.encodeToString((user+":"+PASSWORD).getBytes(), in testMakeUriString()
/packages/apps/Browser/src/com/android/browser/
DDataUri.java47 mData = uri.substring(commaIndex + 1).getBytes(); in DataUri()
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
DDecoderUtil.java52 byte[] bytes = s.getBytes("US-ASCII"); in decodeBaseQuotedPrintable()
81 byte[] bytes = s.getBytes("US-ASCII"); in decodeBase64()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapAuthenticator.java95 PasswordAuthentication pa = new PasswordAuthentication(null, mSessionKey.getBytes()); in onAuthenticationChallenge()
/packages/providers/DownloadProvider/tests/permission/src/com/android/providers/downloads/permission/tests/
DDownloadProviderPermissionsTest.java56 strm.write("Oops!".getBytes()); in testAccessCacheFilesystem()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/
DProvisionParserTests.java33 new ByteArrayInputStream("ABCDEFG".getBytes());

123