/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoProcessor.java | 215 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/ |
D | RecognizerLogger.java | 215 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/ |
D | DecoderUtil.java | 49 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/ |
D | Util.java | 34 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/ |
D | DictionaryBackupAgent.java | 158 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/ |
D | EvenMoreAsserts.java | 69 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/ |
D | BitmapUtils.java | 243 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/ |
D | EasOutboxService.java | 117 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/ |
D | ContactPhotoManager.java | 1119 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadUriBasedPhotos() local 1123 baos.write(mBuffer, 0, size); in loadUriBasedPhotos() 1128 cacheBitmap(uri, baos.toByteArray(), false, in loadUriBasedPhotos()
|
D | ContactLoader.java | 842 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadPhotoBinaryData() local 846 baos.write(buffer, 0, size); in loadPhotoBinaryData() 848 contactData.setPhotoBinaryData(baos.toByteArray()); in loadPhotoBinaryData()
|