Home
last modified time | relevance | path

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

/packages/apps/Contacts/tests/src/com/android/contacts/util/
DBitmapUtilTests.java115 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in createRawData() local
116 b.compress(format, 50, outputStream); in createRawData()
117 final byte[] data = outputStream.toByteArray(); in createRawData()
118 outputStream.close(); in createRawData()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionaryFileDumper.java158 FileOutputStream outputStream = null; in cacheWordList() local
169 outputStream = new FileOutputStream(outputFile); in cacheWordList()
196 checkMagicAndCopyFileTo(new BufferedInputStream(inputStream), outputStream); in cacheWordList()
225 if (null != outputStream) outputStream.close(); in cacheWordList()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DInterruptableOutputStream.java32 public InterruptableOutputStream(OutputStream outputStream) { in InterruptableOutputStream() argument
33 mOutputStream = Utils.checkNotNull(outputStream); in InterruptableOutputStream()
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DParser.java591 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(256); in readInlineString() local
599 outputStream.write(i); in readInlineString()
601 outputStream.flush(); in readInlineString()
602 String res = outputStream.toString("UTF-8"); in readInlineString()
603 outputStream.close(); in readInlineString()
DSerializer.java70 public Serializer(OutputStream outputStream, boolean startDocument) throws IOException { in Serializer() argument
72 mOutput = outputStream; in Serializer()
DAttachmentLoader.java110 public void readChunked(InputStream inputStream, OutputStream outputStream, int len) in readChunked() argument
131 outputStream.write(bytes, 0, read); in readChunked()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java352 OutputStream outputStream = null; in sendFile() local
375 outputStream = putOperation.openOutputStream(); in sendFile()
411 outputStream.write(buffer, 0, readLength); in sendFile()
423 outputStream.close(); in sendFile()
450 outputStream.write(buffer, 0, readLength); in sendFile()
485 outputStream.close(); in sendFile()
DBluetoothOppReceiveFileInfo.java77 public BluetoothOppReceiveFileInfo(String filename, long length, FileOutputStream outputStream, in BluetoothOppReceiveFileInfo() argument
80 mOutputStream = outputStream; in BluetoothOppReceiveFileInfo()
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java208 OutputStream outputStream = null; in addImage() local
214 outputStream = new FileOutputStream(file); in addImage()
216 source.compress(CompressFormat.JPEG, 75, outputStream); in addImage()
219 outputStream.write(jpegData); in addImage()
229 Util.closeSilently(outputStream); in addImage()
DCropImage.java324 OutputStream outputStream = null; in saveOutput() local
326 outputStream = mContentResolver.openOutputStream(mSaveUri); in saveOutput()
327 if (outputStream != null) { in saveOutput()
328 croppedImage.compress(mOutputFormat, 75, outputStream); in saveOutput()
334 Util.closeSilently(outputStream); in saveOutput()
/packages/apps/Contacts/tests/src/com/android/contacts/
DCallDetailActivityTest.java264 OutputStream outputStream = null; in setActivityIntentForRealFileVoicemailEntry() local
268 outputStream = getContentResolver().openOutputStream(mVoicemailUri); in setActivityIntentForRealFileVoicemailEntry()
269 copyBetweenStreams(inputStream, outputStream); in setActivityIntentForRealFileVoicemailEntry()
271 Closeables.closeQuietly(outputStream); in setActivityIntentForRealFileVoicemailEntry()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DExportProcessor.java107 final OutputStream outputStream; in runInternal() local
109 outputStream = mResolver.openOutputStream(uri); in runInternal()
137 writer = new BufferedWriter(new OutputStreamWriter(outputStream)); in runInternal()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java645 OutputStream outputStream = null; in pushHeader() local
653 outputStream = op.openOutputStream(); in pushHeader()
654 outputStream.flush(); in pushHeader()
659 if (!closeStream(outputStream, op)) { in pushHeader()
673 OutputStream outputStream = null; in pushBytes() local
676 outputStream = op.openOutputStream(); in pushBytes()
677 outputStream.write(vcardString.getBytes()); in pushBytes()
684 if (!closeStream(outputStream, op)) { in pushBytes()
DBluetoothPbapVcardManager.java544 private OutputStream outputStream; field in BluetoothPbapVcardManager.HandlerForStringBuffer
560 outputStream.write(vCard.getBytes()); in write()
571 outputStream = operation.openOutputStream(); in onInit()
587 if (!BluetoothPbapObexServer.closeStream(outputStream, operation)) { in onTerminate()
/packages/apps/Camera/tests/src/com/android/camera/activity/
DCameraTestCase.java152 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in readBlankJpeg() local
159 outputStream.write(buffer, 0, size); in readBlankJpeg()
166 mBlankJpeg = outputStream.toByteArray(); in readBlankJpeg()
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTestUtils.java461 FileOutputStream outputStream = new FileOutputStream(outputFile); in createTempEmlFile() local
462 Rfc822Output.writeTo(context, msg.mId, outputStream, true, false); in createTempEmlFile()
463 outputStream.close(); in createTempEmlFile()
/packages/apps/LegacyCamera/src/com/android/camera/
DCamera.java1383 OutputStream outputStream = null; in doAttach() local
1385 outputStream = mContentResolver.openOutputStream(mSaveUri); in doAttach()
1386 outputStream.write(data); in doAttach()
1387 outputStream.close(); in doAttach()
1394 Util.closeSilently(outputStream); in doAttach()
/packages/apps/Camera/src/com/android/camera/
DCamera.java1431 OutputStream outputStream = null; in doAttach() local
1433 outputStream = mContentResolver.openOutputStream(mSaveUri); in doAttach()
1434 outputStream.write(data); in doAttach()
1435 outputStream.close(); in doAttach()
1442 Util.closeSilently(outputStream); in doAttach()
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java491 final FileOutputStream outputStream = getContentResolver() in saveUpdatedPhoto() local
500 outputStream.write(buffer, 0, length); in saveUpdatedPhoto()
508 outputStream.close(); in saveUpdatedPhoto()
/packages/apps/Browser/src/com/android/browser/
DController.java2189 FileOutputStream outputStream = null; in saveDataUri() local
2193 outputStream = new FileOutputStream(target); in saveDataUri()
2194 outputStream.write(uri.getData()); in saveDataUri()
2204 if (outputStream != null) { in saveDataUri()
2206 outputStream.close(); in saveDataUri()