Home
last modified time | relevance | path

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

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/debug/
DExternalDictionaryGetterForDebug.java147 BufferedOutputStream outputStream = null; in installFile() local
158 outputStream = new BufferedOutputStream(new FileOutputStream(tempFile)); in installFile()
161 BinaryDictionaryFileDumper.checkMagicAndCopyFileTo(bufferedStream, outputStream); in installFile()
162 outputStream.flush(); in installFile()
182 if (null != outputStream) outputStream.close(); in installFile()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DAttachmentUtils.java186 FileOutputStream outputStream = null; in cacheAttachmentUri() local
209 outputStream = new FileOutputStream(file); in cacheAttachmentUri()
217 outputStream.write(bytes, 0, len); in cacheAttachmentUri()
222 outputStream.flush(); in cacheAttachmentUri()
249 if (outputStream != null) { in cacheAttachmentUri()
250 outputStream.close(); in cacheAttachmentUri()
/packages/apps/Exchange/src/com/android/exchange/adapter/
DParser.java585 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(256); in readInlineString() local
593 outputStream.write(i); in readInlineString()
595 outputStream.flush(); in readInlineString()
596 String res = outputStream.toString("UTF-8"); in readInlineString()
597 outputStream.close(); in readInlineString()
DItemOperationsParser.java107 public static void readChunked(final InputStream inputStream, final OutputStream outputStream, in readChunked() argument
125 outputStream.write(bytes, 0, read); in readChunked()
DSerializer.java70 public Serializer(OutputStream outputStream, boolean startDocument) throws IOException { in Serializer() argument
72 mOutput = outputStream; in Serializer()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMnsObexClient.java281 OutputStream outputStream = null; in sendEvent() local
313 outputStream = putOperation.openOutputStream(); in sendEvent()
326 outputStream.write(eventBytes, bytesWritten, bytesToWrite); in sendEvent()
346 if (outputStream != null) { in sendEvent()
347 outputStream.close(); in sendEvent()
/packages/apps/Camera2/src/com/android/camera/
DPhotoModule.java1017 OutputStream outputStream = null; in onCaptureDone() local
1019 outputStream = mContentResolver.openOutputStream(mSaveUri); in onCaptureDone()
1020 outputStream.write(data); in onCaptureDone()
1021 outputStream.close(); in onCaptureDone()
1028 CameraUtil.closeSilently(outputStream); in onCaptureDone()
2010 OutputStream outputStream = null; in saveToDebugUri() local
2012 outputStream = mContentResolver.openOutputStream(mDebugUri); in saveToDebugUri()
2013 outputStream.write(data); in saveToDebugUri()
2014 outputStream.close(); in saveToDebugUri()
2018 CameraUtil.closeSilently(outputStream); in saveToDebugUri()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java354 OutputStream outputStream = null; in sendFile() local
377 outputStream = putOperation.openOutputStream(); in sendFile()
413 outputStream.write(buffer, 0, readLength); in sendFile()
425 outputStream.close(); in sendFile()
452 outputStream.write(buffer, 0, readLength); in sendFile()
487 outputStream.close(); in sendFile()
DBluetoothOppReceiveFileInfo.java77 public BluetoothOppReceiveFileInfo(String filename, long length, FileOutputStream outputStream, in BluetoothOppReceiveFileInfo() argument
80 mOutputStream = outputStream; in BluetoothOppReceiveFileInfo()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java646 OutputStream outputStream = null; in pushHeader() local
654 outputStream = op.openOutputStream(); in pushHeader()
655 outputStream.flush(); in pushHeader()
660 if (!closeStream(outputStream, op)) { in pushHeader()
674 OutputStream outputStream = null; in pushBytes() local
677 outputStream = op.openOutputStream(); in pushBytes()
678 outputStream.write(vcardString.getBytes()); in pushBytes()
685 if (!closeStream(outputStream, op)) { in pushBytes()
DBluetoothPbapVcardManager.java603 private OutputStream outputStream; field in BluetoothPbapVcardManager.HandlerForStringBuffer
619 outputStream.write(vCard.getBytes()); in write()
630 outputStream = operation.openOutputStream(); in onInit()
646 if (!BluetoothPbapObexServer.closeStream(outputStream, operation)) { in onTerminate()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
DBitmapUtilTests.java117 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in createRawData() local
118 b.compress(format, 50, outputStream); in createRawData()
119 final byte[] data = outputStream.toByteArray(); in createRawData()
120 outputStream.close(); in createRawData()
/packages/apps/Contacts/src/com/android/contacts/util/
DContactPhotoUtils.java148 FileOutputStream outputStream = null; in savePhotoFromUriToUri() local
151 outputStream = context.getContentResolver() in savePhotoFromUriToUri()
160 outputStream.write(buffer, 0, length); in savePhotoFromUriToUri()
169 Closeables.closeQuietly(outputStream); in savePhotoFromUriToUri()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DEmlAttachmentProvider.java286 OutputStream outputStream = null; in copyAttachment() local
296 outputStream = new FileOutputStream(newFilePath); in copyAttachment()
308 outputStream.write(data, 0, len); in copyAttachment()
357 if (outputStream != null) { in copyAttachment()
358 outputStream.close(); in copyAttachment()
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java205 OutputStream outputStream = null; in addImage() local
211 outputStream = new FileOutputStream(file); in addImage()
213 source.compress(CompressFormat.JPEG, 75, outputStream); in addImage()
216 outputStream.write(jpegData); in addImage()
226 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/Camera2/src/com/android/camera/util/
DXmpUtil.java188 public static boolean writeXMPMeta(InputStream inputStream, OutputStream outputStream, in writeXMPMeta() argument
197 writeJpegFile(outputStream, sections); in writeXMPMeta()
202 if (outputStream != null) { in writeXMPMeta()
204 outputStream.close(); in writeXMPMeta()
/packages/apps/Dialer/tests/src/com/android/dialer/
DCallDetailActivityTest.java265 OutputStream outputStream = null; in setActivityIntentForRealFileVoicemailEntry() local
269 outputStream = getContentResolver().openOutputStream(mVoicemailUri); in setActivityIntentForRealFileVoicemailEntry()
270 copyBetweenStreams(inputStream, outputStream); in setActivityIntentForRealFileVoicemailEntry()
272 Closeables.closeQuietly(outputStream); in setActivityIntentForRealFileVoicemailEntry()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DUpdateHandler.java637 FileOutputStream outputStream = null; in handleWordList() local
639 outputStream = context.openFileOutput(destinationFile, Context.MODE_PRIVATE); in handleWordList()
640 copyFile(inputStream, outputStream); in handleWordList()
643 if (outputStream != null) { in handleWordList()
644 outputStream.close(); in handleWordList()
/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/ContactsCommon/src/com/android/contacts/common/vcard/
DExportProcessor.java110 final OutputStream outputStream; in runInternal() local
112 outputStream = mResolver.openOutputStream(uri); in runInternal()
140 writer = new BufferedWriter(new OutputStreamWriter(outputStream)); in runInternal()
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
DUploader.java128 final OutputStream outputStream = connection.getOutputStream(); in uploadFile() local
129 uploadContents(fileInputStream, outputStream); in uploadFile()
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTestUtils.java471 FileOutputStream outputStream = new FileOutputStream(outputFile); in createTempEmlFile() local
472 Rfc822Output.writeTo(context, msg, outputStream, true, false, null); in createTempEmlFile()
473 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()

12