Home
last modified time | relevance | path

Searched refs:baos (Results 1 – 20 of 20) sorted by relevance

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
DDecoderUtil.java49 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in decodeBaseQuotedPrintable() local
59 baos.write(b); in decodeBaseQuotedPrintable()
68 return baos.toByteArray(); in decodeBaseQuotedPrintable()
78 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in decodeBase64() local
88 baos.write(b); in decodeBase64()
97 return baos.toByteArray(); in decodeBase64()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java246 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getCompressedBytes() local
247 final boolean compressed = b.compress(Bitmap.CompressFormat.JPEG, quality, baos); in getCompressedBytes()
248 baos.flush(); in getCompressedBytes()
249 baos.close(); in getCompressedBytes()
250 byte[] result = baos.toByteArray(); in getCompressedBytes()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java161 ByteArrayOutputStream baos = new ByteArrayOutputStream(cursor.getCount() * 10); in getDictionary() local
164 gzip = new GZIPOutputStream(baos); in getDictionary()
189 return baos.toByteArray(); in getDictionary()
199 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in restoreDictionary() local
203 baos.write(tempData, 0, got); in restoreDictionary()
206 dictionary = baos.toByteArray(); in restoreDictionary()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DRequestGetMessage.java64 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in readResponse() local
70 baos.write(buf, 0, len); in readResponse()
81 bmsg = baos.toString(StandardCharsets.UTF_8.name()); in readResponse()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DUtil.java36 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in toBytes() local
38 ObjectOutputStream os = new ObjectOutputStream(baos); in toBytes()
44 return baos.toByteArray(); in toBytes()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DEvenMoreAsserts.java69 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in assertImageRawData() local
74 baos.write(buffer, 0, count); in assertImageRawData()
78 assertImageRawData(context, expected, baos.toByteArray()); in assertImageRawData()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DHttpFetcher.java83 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); in sendRequestAsByteArray() local
88 baos.write(buffer, 0, bytesRead); in sendRequestAsByteArray()
92 handleBadResponse(url.toString(), baos.toByteArray()); in sendRequestAsByteArray()
99 byte[] response = baos.toByteArray(); in sendRequestAsByteArray()
/packages/providers/CallLogProvider/src/com/android/calllogbackup/
DCallLogBackupAgent.java426 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in addCallToBackup() local
427 DataOutputStream data = new DataOutputStream(baos); in addCallToBackup()
469 output.writeEntityHeader(Integer.toString(call.id), baos.size()); in addCallToBackup()
470 output.writeEntityData(baos.toByteArray(), baos.size()); in addCallToBackup()
473 Log.d(TAG, "Wrote call to backup: " + call + " with byte array: " + baos); in addCallToBackup()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java242 ByteArrayOutputStream baos = new ByteArrayOutputStream(65536); in compressToBytes() local
243 bitmap.compress(CompressFormat.JPEG, quality, baos); in compressToBytes()
244 return baos.toByteArray(); in compressToBytes()
/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DAssistantTest.java411 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testRoundTripXml() local
412 serializer.setOutput(new BufferedOutputStream(baos), "utf-8"); in testRoundTripXml()
418 assistant.readXml(new BufferedInputStream(new ByteArrayInputStream(baos.toByteArray()))); in testRoundTripXml()
/packages/apps/Messaging/src/com/android/messaging/sms/
DDatabaseMessages.java656 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadText() local
662 baos.write(buffer, 0, len); in loadText()
677 data = baos.toByteArray(); in loadText()
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DContactPhotoManagerImpl.java1256 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadUriBasedPhotos() local
1260 baos.write(buffer, 0, size); in loadUriBasedPhotos()
1265 cacheBitmap(originalUri, baos.toByteArray(), false, uriRequest.getRequestedExtent()); in loadUriBasedPhotos()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContactLoader.java343 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadPhotoBinaryData() local
347 baos.write(buffer, 0, size); in loadPhotoBinaryData()
349 contactData.setPhotoBinaryData(baos.toByteArray()); in loadPhotoBinaryData()
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java531 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadPhotoBinaryData() local
535 baos.write(buffer, 0, size); in loadPhotoBinaryData()
537 contactData.setPhotoBinaryData(baos.toByteArray()); in loadPhotoBinaryData()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPersister.java447 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadParts() local
460 baos.write(blob, 0, blob.length); in loadParts()
469 baos.write(buffer, 0, len); in loadParts()
486 part.setData(baos.toByteArray()); in loadParts()
/packages/apps/Contacts/src/com/android/contacts/
DContactPhotoManager.java1601 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadUriBasedPhotos() local
1605 baos.write(mBuffer, 0, size); in loadUriBasedPhotos()
1610 cacheBitmap(originalUri, baos.toByteArray(), false, in loadUriBasedPhotos()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java1002 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in roundTripXml() local
1003 serializer.setOutput(new BufferedOutputStream(baos), "utf-8"); in roundTripXml()
1006 data = baos.toByteArray(); in roundTripXml()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java2186 ByteArrayOutputStream baos = null; in doInBackground() local
2203 baos = new ByteArrayOutputStream(); in doInBackground()
2204 bitmap.compress(Bitmap.CompressFormat.PNG, 100, baos); in doInBackground()
2205 byte[] bytes = baos.toByteArray(); in doInBackground()
2225 IoUtils.closeQuietly(baos); in doInBackground()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DFakeTvProvider.java2426 ByteArrayOutputStream baos = new ByteArrayOutputStream()) { in doInBackground()
2446 bitmap.compress(Bitmap.CompressFormat.PNG, 100, baos); in doInBackground()
2447 byte[] bytes = baos.toByteArray(); in doInBackground()
/packages/inputmethods/LatinIME/dictionaries/
Des_wordlist.combined.gz1dictionary=main:es,locale=es,description=Español,date=1414726268, ...