Searched refs:baos (Results 1 – 20 of 20) sorted by relevance
49 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in decodeBaseQuotedPrintable() local59 baos.write(b); in decodeBaseQuotedPrintable()68 return baos.toByteArray(); in decodeBaseQuotedPrintable()78 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in decodeBase64() local88 baos.write(b); in decodeBase64()97 return baos.toByteArray(); in decodeBase64()
246 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getCompressedBytes() local247 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()
161 ByteArrayOutputStream baos = new ByteArrayOutputStream(cursor.getCount() * 10); in getDictionary() local164 gzip = new GZIPOutputStream(baos); in getDictionary()189 return baos.toByteArray(); in getDictionary()199 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in restoreDictionary() local203 baos.write(tempData, 0, got); in restoreDictionary()206 dictionary = baos.toByteArray(); in restoreDictionary()
64 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in readResponse() local70 baos.write(buf, 0, len); in readResponse()81 bmsg = baos.toString(StandardCharsets.UTF_8.name()); in readResponse()
36 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in toBytes() local38 ObjectOutputStream os = new ObjectOutputStream(baos); in toBytes()44 return baos.toByteArray(); in toBytes()
69 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in assertImageRawData() local74 baos.write(buffer, 0, count); in assertImageRawData()78 assertImageRawData(context, expected, baos.toByteArray()); in assertImageRawData()
83 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); in sendRequestAsByteArray() local88 baos.write(buffer, 0, bytesRead); in sendRequestAsByteArray()92 handleBadResponse(url.toString(), baos.toByteArray()); in sendRequestAsByteArray()99 byte[] response = baos.toByteArray(); in sendRequestAsByteArray()
426 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in addCallToBackup() local427 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()
242 ByteArrayOutputStream baos = new ByteArrayOutputStream(65536); in compressToBytes() local243 bitmap.compress(CompressFormat.JPEG, quality, baos); in compressToBytes()244 return baos.toByteArray(); in compressToBytes()
411 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testRoundTripXml() local412 serializer.setOutput(new BufferedOutputStream(baos), "utf-8"); in testRoundTripXml()418 assistant.readXml(new BufferedInputStream(new ByteArrayInputStream(baos.toByteArray()))); in testRoundTripXml()
656 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadText() local662 baos.write(buffer, 0, len); in loadText()677 data = baos.toByteArray(); in loadText()
1256 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadUriBasedPhotos() local1260 baos.write(buffer, 0, size); in loadUriBasedPhotos()1265 cacheBitmap(originalUri, baos.toByteArray(), false, uriRequest.getRequestedExtent()); in loadUriBasedPhotos()
343 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadPhotoBinaryData() local347 baos.write(buffer, 0, size); in loadPhotoBinaryData()349 contactData.setPhotoBinaryData(baos.toByteArray()); in loadPhotoBinaryData()
531 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadPhotoBinaryData() local535 baos.write(buffer, 0, size); in loadPhotoBinaryData()537 contactData.setPhotoBinaryData(baos.toByteArray()); in loadPhotoBinaryData()
447 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadParts() local460 baos.write(blob, 0, blob.length); in loadParts()469 baos.write(buffer, 0, len); in loadParts()486 part.setData(baos.toByteArray()); in loadParts()
1601 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadUriBasedPhotos() local1605 baos.write(mBuffer, 0, size); in loadUriBasedPhotos()1610 cacheBitmap(originalUri, baos.toByteArray(), false, in loadUriBasedPhotos()
1002 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in roundTripXml() local1003 serializer.setOutput(new BufferedOutputStream(baos), "utf-8"); in roundTripXml()1006 data = baos.toByteArray(); in roundTripXml()
2186 ByteArrayOutputStream baos = null; in doInBackground() local2203 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()
2426 ByteArrayOutputStream baos = new ByteArrayOutputStream()) { in doInBackground()2446 bitmap.compress(Bitmap.CompressFormat.PNG, 100, baos); in doInBackground()2447 byte[] bytes = baos.toByteArray(); in doInBackground()
1dictionary=main:es,locale=es,description=Español,date=1414726268, ...