Home
last modified time | relevance | path

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

123456

/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DIOUtils.java278 return input.getBytes(); in toByteArray()
597 byte[] bytes = input.getBytes(); in toInputStream()
615 byte[] bytes = encoding != null ? input.getBytes(encoding) : input.getBytes(); in toInputStream()
721 output.write(new String(data).getBytes()); in write()
749 output.write(new String(data).getBytes(encoding)); in write()
787 output.write(data.getBytes()); in write()
813 output.write(data.getBytes(encoding)); in write()
852 output.write(data.toString().getBytes()); in write()
878 output.write(data.toString().getBytes(encoding)); in write()
908 output.write(line.toString().getBytes()); in writeLines()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAppParams.java575 length += getFilterRecipient().getBytes("UTF-8").length; in getParamMaxLength()
577 length += getFilterOriginator().getBytes("UTF-8").length; in getParamMaxLength()
580 length += getPresenceStatus().getBytes("UTF-8").length; in getParamMaxLength()
614 appParamBuf.put((byte) getFilterPeriodBeginString().getBytes("UTF-8").length); in EncodeParams()
615 appParamBuf.put(getFilterPeriodBeginString().getBytes("UTF-8")); in EncodeParams()
619 appParamBuf.put((byte) getFilterPeriodEndString().getBytes("UTF-8").length); in EncodeParams()
620 appParamBuf.put(getFilterPeriodEndString().getBytes("UTF-8")); in EncodeParams()
629 appParamBuf.put((byte) getFilterRecipient().getBytes("UTF-8").length); in EncodeParams()
630 appParamBuf.put(getFilterRecipient().getBytes("UTF-8")); in EncodeParams()
634 appParamBuf.put((byte) getFilterOriginator().getBytes("UTF-8").length); in EncodeParams()
[all …]
DBluetoothMapbMessageMime.java100 if(text.getBytes().length == text.getBytes("UTF-8").length){ in encode()
124 if(text.getBytes().length != text.getBytes("UTF-8").length){ in encodePlainText()
336 lineLength += headerName.getBytes().length; in encodeHeaderAddresses()
339 partLength = address.toString().getBytes().length+1; in encodeHeaderAddresses()
475 bodyFragments.add(tmpBody.getBytes("UTF-8")); in encodeMime()
665 return body.getBytes("UTF-8"); in decodeBody()
DBluetoothMapUtils.java180 nibbles = valueStr.getBytes("US-ASCII"); in getLongFromString()
399 System.arraycopy(utf8String.getBytes("UTF-8"), 0, in truncateUtf8StringToBytearray()
459 str = new String(Base64.decode(encodedText.getBytes(charset), in stripEncoding()
488 input = text.getBytes("US-ASCII"); in quotedPrintableToUtf8()
493 return "".getBytes(); in quotedPrintableToUtf8()
572 return result.getBytes(); /* return the result as "UTF-8" bytes */ in quotedPrintableToUtf8()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduComposer.java319 appendTextString(str.getBytes()); in appendTextString()
459 appendQuotedString(str.getBytes()); in appendQuotedString()
470 temp.appendTextString(STRING_PHONE_NUMBER_ADDRESS_TYPE.getBytes()); in appendAddressType()
473 temp.appendTextString(STRING_IPV4_ADDRESS_TYPE.getBytes()); in appendAddressType()
476 temp.appendTextString(STRING_IPV6_ADDRESS_TYPE.getBytes()); in appendAddressType()
613 PduHeaders.MESSAGE_CLASS_ADVERTISEMENT_STR.getBytes())) { in appendHeader()
616 PduHeaders.MESSAGE_CLASS_AUTO_STR.getBytes())) { in appendHeader()
619 PduHeaders.MESSAGE_CLASS_PERSONAL_STR.getBytes())) { in appendHeader()
622 PduHeaders.MESSAGE_CLASS_INFORMATIONAL_STR.getBytes())) { in appendHeader()
1007 name = "smil.xml".getBytes(); in makeMessageBody()
DPduParser.java491 value.setTextString(str.getBytes()); in parseHeaders()
573 from.setTextString(str.getBytes()); in parseHeaders()
583 PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes()); in parseHeaders()
621 PduHeaders.MESSAGE_CLASS_PERSONAL_STR.getBytes(), in parseHeaders()
625 PduHeaders.MESSAGE_CLASS_ADVERTISEMENT_STR.getBytes(), in parseHeaders()
629 PduHeaders.MESSAGE_CLASS_INFORMATIONAL_STR.getBytes(), in parseHeaders()
633 PduHeaders.MESSAGE_CLASS_AUTO_STR.getBytes(), in parseHeaders()
890 part.setContentType((PduContentTypes.contentTypes[0]).getBytes()); //"*/*" in parseParts()
926 System.currentTimeMillis()).getBytes()); in parseParts()
1429 byte[] type = (PduContentTypes.contentTypes[index]).getBytes(); in parseContentTypeParams()
[all …]
DSendReq.java35 setContentType("application/vnd.wap.multipart.related".getBytes()); in SendReq()
36 setFrom(new EncodedStringValue(PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes())); in SendReq()
47 return transactionId.getBytes(); in generateTransactionId()
DPduPart.java94 static final byte[] DISPOSITION_FROM_DATA = "from-data".getBytes();
95 static final byte[] DISPOSITION_ATTACHMENT = "attachment".getBytes();
96 static final byte[] DISPOSITION_INLINE = "inline".getBytes();
DEncodedStringValue.java90 mData = data.getBytes(CharacterSets.getMimeName(charset)); in EncodedStringValue()
93 mData = data.getBytes(); in EncodedStringValue()
233 temp[i].getBytes()); in split()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduParser.java465 value.setTextString(str.getBytes()); in parseHeaders()
547 from.setTextString(str.getBytes()); in parseHeaders()
557 PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes()); in parseHeaders()
593 PduHeaders.MESSAGE_CLASS_PERSONAL_STR.getBytes(), in parseHeaders()
597 PduHeaders.MESSAGE_CLASS_ADVERTISEMENT_STR.getBytes(), in parseHeaders()
601 PduHeaders.MESSAGE_CLASS_INFORMATIONAL_STR.getBytes(), in parseHeaders()
605 PduHeaders.MESSAGE_CLASS_AUTO_STR.getBytes(), in parseHeaders()
856 part.setContentType((PduContentTypes.contentTypes[0]).getBytes()); //"*/*" in parseParts()
892 System.currentTimeMillis()).getBytes()); in parseParts()
1392 byte[] type = (PduContentTypes.contentTypes[index]).getBytes(); in parseContentTypeParams()
[all …]
DSendReq.java33 setContentType("application/vnd.wap.multipart.related".getBytes()); in SendReq()
34 setFrom(new EncodedStringValue(PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes())); in SendReq()
45 return transactionId.getBytes(); in generateTransactionId()
DPduPart.java96 static final byte[] DISPOSITION_FROM_DATA = "from-data".getBytes();
97 static final byte[] DISPOSITION_ATTACHMENT = "attachment".getBytes();
98 static final byte[] DISPOSITION_INLINE = "inline".getBytes();
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DCarrierProviderTest.java153 contentValues.put(CarrierDatabaseHelper.PUBLIC_KEY, dummy_key1.getBytes()); in testInsertCertificates()
189 contentValues.put(CarrierDatabaseHelper.PUBLIC_KEY, dummy_key1.getBytes()); in testUpdateCertificates()
235 contentValues.put(CarrierDatabaseHelper.PUBLIC_KEY, dummy_key1.getBytes()); in testMultipleCertificates()
244 contentValuesNew.put(CarrierDatabaseHelper.PUBLIC_KEY, dummy_key2.getBytes()); in testMultipleCertificates()
278 contentValues.put(CarrierDatabaseHelper.PUBLIC_KEY, dummy_key1.getBytes()); in testDuplicateFailure()
306 contentValues.put(CarrierDatabaseHelper.PUBLIC_KEY, dummy_key1.getBytes()); in testDelete()
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DMimeMessageTest.java423 byte[] expected = expectedString.getBytes(); in testWriteToHeader()
460 entireMessage.getBytes("us-ascii"))); in brokentestWhiteSpace()
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/Nfc/src/com/android/nfc/snep/
DSnepMessage.java105 byte[] textBytes = snepTestData2.getBytes(); in getLargeNdef()
106 byte[] langBytes = lang.getBytes("US-ASCII"); in getLargeNdef()
123 byte[] textBytes = snepTestData1.getBytes(); in getSmallNdef()
124 byte[] langBytes = lang.getBytes("US-ASCII"); in getSmallNdef()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java421 part.setContentLocation(srcName.getBytes()); in setPartContentLocationAndId()
426 part.setContentId(contentId.getBytes()); in setPartContentLocationAndId()
437 part.setContentType(ContentType.TEXT_PLAIN.getBytes()); in addTextPart()
442 part.setData(text.getBytes()); in addTextPart()
494 part.setContentType(contentType.getBytes()); in addPicturePart()
521 part.setContentType(contentType.getBytes()); in addPartForUri()
587 smilPart.setContentId("smil".getBytes()); in addSmilPart()
588 smilPart.setContentLocation("smil.xml".getBytes()); in addSmilPart()
589 smilPart.setContentType(ContentType.APP_SMIL.getBytes()); in addSmilPart()
591 smilPart.setData(smil.getBytes()); in addSmilPart()
[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()
/packages/apps/Email/src/com/android/email/mail/transport/
DSmtpSender.java297 Base64.encodeToString(username.getBytes(), Base64.NO_WRAP), in saslAuthLogin()
300 Base64.encodeToString(password.getBytes(), Base64.NO_WRAP), in saslAuthLogin()
313 byte[] data = ("\000" + username + "\000" + password).getBytes(); in saslAuthPlain()
342 byte[] data = Base64.encode(authPhrase.getBytes(), Base64.NO_WRAP); in saslAuthOAuth()
/packages/apps/Tag/canon/src/com/android/apps/tagcanon/
DTagCanon.java56 byte[] langBytes = locale.getLanguage().getBytes(StandardCharsets.US_ASCII); in newTextRecord()
59 byte[] textBytes = text.getBytes(utfEncoding); in newTextRecord()
77 byte[] typeBytes = type.getBytes(StandardCharsets.US_ASCII); in newMimeRecord()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifTag.java332 byte[] buf = value.getBytes(US_ASCII); in setValue()
836 protected void getBytes(byte[] buf) { in getBytes() method in ExifTag
837 getBytes(buf, 0, buf.length); in getBytes()
850 protected void getBytes(byte[] buf, int offset, int length) { in getBytes() method in ExifTag
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifTag.java332 byte[] buf = value.getBytes(US_ASCII); in setValue()
836 protected void getBytes(byte[] buf) { in getBytes() method in ExifTag
837 getBytes(buf, 0, buf.length); in getBytes()
850 protected void getBytes(byte[] buf, int offset, int length) { in getBytes() method in ExifTag
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifTag.java332 byte[] buf = value.getBytes(US_ASCII); in setValue()
836 protected void getBytes(byte[] buf) { in getBytes() method in ExifTag
837 getBytes(buf, 0, buf.length); in getBytes()
850 protected void getBytes(byte[] buf, int offset, int length) { in getBytes() method in ExifTag

123456