Home
last modified time | relevance | path

Searched refs:outputStream (Results 1 – 25 of 28) 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.java185 FileOutputStream outputStream = null; in cacheAttachmentUri() local
208 outputStream = new FileOutputStream(file); in cacheAttachmentUri()
216 outputStream.write(bytes, 0, len); in cacheAttachmentUri()
221 outputStream.flush(); in cacheAttachmentUri()
248 if (outputStream != null) { in cacheAttachmentUri()
249 outputStream.close(); in cacheAttachmentUri()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMnsObexClient.java284 OutputStream outputStream = null; in sendEventHandler() local
316 outputStream = putOperation.openOutputStream(); in sendEventHandler()
329 outputStream.write(eventBytes, bytesWritten, bytesToWrite); in sendEventHandler()
349 if (outputStream != null) { in sendEventHandler()
350 outputStream.close(); in sendEventHandler()
/packages/apps/Exchange/src/com/android/exchange/adapter/
DParser.java570 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(256); in readInlineString() local
578 outputStream.write(i); in readInlineString()
580 outputStream.flush(); in readInlineString()
581 final String res = outputStream.toString("UTF-8"); in readInlineString()
582 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.java72 public Serializer(final OutputStream outputStream, final boolean startDocument) in Serializer() argument
75 mOutput = outputStream; in Serializer()
/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()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java685 OutputStream outputStream = null; in pushHeader() local
693 outputStream = op.openOutputStream(); in pushHeader()
694 outputStream.flush(); in pushHeader()
699 if (!closeStream(outputStream, op)) { in pushHeader()
713 OutputStream outputStream = null; in pushBytes() local
716 outputStream = op.openOutputStream(); in pushBytes()
717 outputStream.write(vcardString.getBytes()); in pushBytes()
724 if (!closeStream(outputStream, op)) { in pushBytes()
DBluetoothPbapVcardManager.java670 private OutputStream outputStream; field in BluetoothPbapVcardManager.HandlerForStringBuffer
686 outputStream.write(vCard.getBytes()); in write()
697 outputStream = operation.openOutputStream(); in onInit()
713 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/UnifiedEmail/src/com/android/mail/providers/
DEmlAttachmentProvider.java316 OutputStream outputStream = null; in copyAttachment() local
326 outputStream = new FileOutputStream(newFilePath); in copyAttachment()
338 outputStream.write(data, 0, len); in copyAttachment()
387 if (outputStream != null) { in copyAttachment()
388 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/Contacts/src/com/android/contacts/util/
DContactPhotoUtils.java151 FileOutputStream outputStream = null; in savePhotoFromUriToUri() local
154 outputStream = context.getContentResolver() in savePhotoFromUriToUri()
163 outputStream.write(buffer, 0, length); in savePhotoFromUriToUri()
172 Closeables.closeQuietly(outputStream); in savePhotoFromUriToUri()
/packages/apps/Camera2/src/com/android/camera/
DPhotoModule.java1423 OutputStream outputStream = null;
1425 outputStream = mContentResolver.openOutputStream(mSaveUri);
1426 outputStream.write(data);
1427 outputStream.close();
1436 CameraUtil.closeSilently(outputStream);
2421 OutputStream outputStream = null;
2423 outputStream = mContentResolver.openOutputStream(mDebugUri);
2424 outputStream.write(data);
2425 outputStream.close();
2429 CameraUtil.closeSilently(outputStream);
/packages/apps/Camera2/src/com/android/camera/util/
DXmpUtil.java187 public static boolean writeXMPMeta(InputStream inputStream, OutputStream outputStream, in writeXMPMeta() argument
196 writeJpegFile(outputStream, sections); in writeXMPMeta()
201 if (outputStream != null) { in writeXMPMeta()
203 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.java631 FileOutputStream outputStream = null; in handleWordList() local
633 outputStream = context.openFileOutput(destinationFile, Context.MODE_PRIVATE); in handleWordList()
634 copyFile(inputStream, outputStream); in handleWordList()
637 if (outputStream != null) { in handleWordList()
638 outputStream.close(); in handleWordList()
/packages/apps/Camera2/tests_camera/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/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/Email/emailcommon/src/com/android/emailcommon/utility/
DCountingOutputStream.java30 public CountingOutputStream(OutputStream outputStream) { in CountingOutputStream() argument
31 mOutputStream = outputStream; in CountingOutputStream()
/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/Email/tests/src/com/android/email/provider/
DProviderTestUtils.java459 FileOutputStream outputStream = new FileOutputStream(outputFile); in createTempEmlFile() local
460 Rfc822Output.writeTo(context, msg, outputStream, true, false, null); in createTempEmlFile()
461 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