Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java215 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getCompressedBytes() local
216 final boolean compressed = b.compress(Bitmap.CompressFormat.JPEG, quality, baos); in getCompressedBytes()
217 baos.flush(); in getCompressedBytes()
218 baos.close(); in getCompressedBytes()
219 byte[] result = baos.toByteArray(); in getCompressedBytes()
/packages/apps/VoiceDialer/src/com/android/voicedialer/
DRecognizerLogger.java215 final ByteArrayOutputStream baos = new ByteArrayOutputStream(sampleRate * 2 * 20); in logInputStream() local
225 if (rtn > 0) baos.write(b, offset, rtn); in logInputStream()
231 if (rtn > 0) baos.write(b, 0, rtn); in logInputStream()
237 if (rtn > 0) baos.write(rtn); in logInputStream()
249 byte[] pcm = baos.toByteArray(); in logInputStream()
261 baos.close(); in logInputStream()
/packages/apps/Email/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/apps/CertInstaller/src/com/android/certinstaller/
DUtil.java34 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in toBytes() local
36 ObjectOutputStream os = new ObjectOutputStream(baos); in toBytes()
42 return baos.toByteArray(); in toBytes()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java158 ByteArrayOutputStream baos = new ByteArrayOutputStream(cursor.getCount() * 10); in getDictionary() local
160 GZIPOutputStream gzip = new GZIPOutputStream(baos); in getDictionary()
184 return baos.toByteArray(); in getDictionary()
194 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in restoreDictionary() local
198 baos.write(tempData, 0, got); in restoreDictionary()
201 dictionary = baos.toByteArray(); in restoreDictionary()
/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/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java243 ByteArrayOutputStream baos = new ByteArrayOutputStream(65536); in compressToBytes() local
244 bitmap.compress(CompressFormat.JPEG, quality, baos); in compressToBytes()
245 return baos.toByteArray(); in compressToBytes()
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DEasOutboxService.java117 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getContentLength() local
120 writeTo(baos, false); in getContentLength()
122 return baos.size() + mFileLength; in getContentLength()
127 baos.close(); in getContentLength()
/packages/apps/Contacts/src/com/android/contacts/
DContactPhotoManager.java1119 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadUriBasedPhotos() local
1123 baos.write(mBuffer, 0, size); in loadUriBasedPhotos()
1128 cacheBitmap(uri, baos.toByteArray(), false, in loadUriBasedPhotos()
DContactLoader.java842 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadPhotoBinaryData() local
846 baos.write(buffer, 0, size); in loadPhotoBinaryData()
848 contactData.setPhotoBinaryData(baos.toByteArray()); in loadPhotoBinaryData()