Home
last modified time | relevance | path

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

12

/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DImagePersistTask.java74 OutputStream outputStream = null; in doInBackgroundTimed() local
78 outputStream = in doInBackgroundTimed()
127 exifInterface.writeExif(clippedBitmap, outputStream); in doInBackgroundTimed()
129 outputStream.write(mBytes); in doInBackgroundTimed()
144 if (outputStream != null) { in doInBackgroundTimed()
146 outputStream.flush(); in doInBackgroundTimed()
153 outputStream.close(); in doInBackgroundTimed()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DTestUtils.java67 final FileOutputStream outputStream = in getSeekableDescriptor() argument
77 outputStream.write(buffer, 0, bytes); in getSeekableDescriptor()
79 outputStream.flush(); in getSeekableDescriptor()
106 final ParcelFileDescriptor.AutoCloseOutputStream outputStream = in getNonSeekableDescriptor()
115 outputStream.write(buffer, 0, bytes); in getNonSeekableDescriptor()
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateSavingPicture.java82 OutputStream outputStream = null; in onEnter() local
84 outputStream = mResourceConstructed.get().getContext().getContentResolver() in onEnter()
86 outputStream.write(mPictureData); in onEnter()
87 outputStream.close(); in onEnter()
95 CameraUtil.closeSilently(outputStream); in onEnter()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DAttachmentUtils.java187 FileOutputStream outputStream = null; in cacheAttachmentUri() local
218 outputStream = new FileOutputStream(file); in cacheAttachmentUri()
226 outputStream.write(bytes, 0, len); in cacheAttachmentUri()
231 outputStream.flush(); in cacheAttachmentUri()
258 if (outputStream != null) { in cacheAttachmentUri()
259 outputStream.close(); in cacheAttachmentUri()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java355 OutputStream outputStream = null; in sendFile() local
378 outputStream = putOperation.openOutputStream(); in sendFile()
415 outputStream.write(buffer, 0, readLength); in sendFile()
424 outputStream.close(); in sendFile()
425 outputStream = null; in sendFile()
450 outputStream.write(buffer, 0, readLength); in sendFile()
506 if (outputStream != null) { in sendFile()
507 outputStream.close(); in sendFile()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DImagePersistTask.java73 try (OutputStream outputStream = new FileOutputStream(outputFile)) { in doInBackgroundFallible() argument
75 writeClippedBitmap(outputStream); in doInBackgroundFallible()
79 bitmap.compress(Bitmap.CompressFormat.JPEG, 90, outputStream); in doInBackgroundFallible()
96 private void writeClippedBitmap(OutputStream outputStream) throws IOException { in writeClippedBitmap() argument
140 exifInterface.writeExif(clippedBitmap, outputStream); in writeClippedBitmap()
/packages/apps/Messaging/src/com/android/messaging/util/
DUriUtil.java283 OutputStream outputStream = null; in copyContent() local
285 outputStream = context.getContentResolver().openOutputStream(targetUri); in copyContent()
286 ByteStreams.copy(inputStream, outputStream); in copyContent()
291 if (outputStream != null) { in copyContent()
293 outputStream.flush(); in copyContent()
299 outputStream.close(); in copyContent()
/packages/apps/Dialer/java/com/android/voicemail/impl/fetch/
DVoicemailFetchedCallback.java74 OutputStream outputStream = null; in setVoicemailContent() local
77 outputStream = mContentResolver.openOutputStream(mUri); in setVoicemailContent()
80 outputStream.write(inputBytes); in setVoicemailContent()
86 IOUtils.closeQuietly(outputStream); in setVoicemailContent()
/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/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberBackupAgent.java132 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in addToBackup() local
133 DataOutputStream dataOutputStream = new DataOutputStream(outputStream); in addToBackup()
139 output.writeEntityHeader(Integer.toString(blockedNumber.id), outputStream.size()); in addToBackup()
140 output.writeEntityData(outputStream.toByteArray(), outputStream.size()); in addToBackup()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/
DInstallTask.java123 private boolean writeToOutputStreamFromAsset(OutputStream outputStream) { in writeToOutputStreamFromAsset() argument
124 if (outputStream == null) { in writeToOutputStreamFromAsset()
144 outputStream.write(inputBuf, 0, bytesRead); in writeToOutputStreamFromAsset()
148 outputStream.flush(); in writeToOutputStreamFromAsset()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/imagedistributor/
DImageDistributorImpl.java186 for (BufferQueueController<ImageProxy> outputStream : streamsToReceiveImage) { in distributeImage()
191 outputStream.update(singleCloseImage); in distributeImage()
210 BufferQueueController<ImageProxy> outputStream) { in addRoute() argument
212 mDispatchTable.add(new DispatchRecord(inputTimestampBufferQueue, outputStream)); in addRoute()
/packages/apps/Dialer/java/com/android/dialer/persistentlog/
DPersistentLogFileHandler.java106 try (DataOutputStream outputStream = in writeLogs() argument
109 outputStream.writeInt(log.length); in writeLogs()
110 outputStream.write(log); in writeLogs()
112 outputStream.close(); in writeLogs()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DReadWriteDraftMessageActionTest.java345 OutputStream outputStream = null; in testBugleDatabaseDraftOperations() local
347 outputStream = mContext.getContentResolver().openOutputStream(mOutputUri); in testBugleDatabaseDraftOperations()
348 outputStream.write(text.getBytes()); in testBugleDatabaseDraftOperations()
391 outputStream = null; in testBugleDatabaseDraftOperations()
393 outputStream = mContext.getContentResolver().openOutputStream(mAnotherUri); in testBugleDatabaseDraftOperations()
394 outputStream.write(moreText.getBytes()); in testBugleDatabaseDraftOperations()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMnsObexClient.java407 OutputStream outputStream = null; in sendEventHandler() local
439 outputStream = putOperation.openOutputStream(); in sendEventHandler()
452 outputStream.write(eventBytes, bytesWritten, bytesToWrite); in sendEventHandler()
472 if (outputStream != null) { in sendEventHandler()
473 outputStream.close(); in sendEventHandler()
/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/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/Camera2/src/com/android/camera/
DPhotoModule.java1279 OutputStream outputStream = null; in onCaptureDone() local
1281 outputStream = mContentResolver.openOutputStream(mSaveUri); in onCaptureDone()
1282 outputStream.write(data); in onCaptureDone()
1283 outputStream.close(); in onCaptureDone()
1291 CameraUtil.closeSilently(outputStream); in onCaptureDone()
2240 OutputStream outputStream = null; in saveToDebugUri() local
2242 outputStream = mContentResolver.openOutputStream(mDebugUri); in saveToDebugUri()
2243 outputStream.write(data); in saveToDebugUri()
2244 outputStream.close(); in saveToDebugUri()
2248 CameraUtil.closeSilently(outputStream); in saveToDebugUri()
/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewLayoutTest.java164 FileOutputStream outputStream = new FileOutputStream(fileOut); in writeFile() local
166 outputStream.write(contents.getBytes()); in writeFile()
168 outputStream.close(); in writeFile()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java802 OutputStream outputStream = null; in pushHeader() local
810 outputStream = op.openOutputStream(); in pushHeader()
811 outputStream.flush(); in pushHeader()
816 if (!closeStream(outputStream, op)) { in pushHeader()
830 OutputStream outputStream = null; in pushBytes() local
833 outputStream = op.openOutputStream(); in pushBytes()
834 outputStream.write(vcardString.getBytes()); in pushBytes()
841 if (!closeStream(outputStream, op)) { in pushBytes()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java340 FileOutputStream outputStream; in testComputeHashOfFile() local
342 outputStream = getContext().openFileOutput(TEST_FILE_NAME, Context.MODE_PRIVATE); in testComputeHashOfFile()
343 outputStream.write(string.getBytes()); in testComputeHashOfFile()
344 outputStream.close(); in testComputeHashOfFile()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DReadableArchive.java191 final FileOutputStream outputStream = in createForParcelFileDescriptor() argument
201 outputStream.write(buffer, 0, bytes); in createForParcelFileDescriptor()
203 outputStream.flush(); in createForParcelFileDescriptor()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DCountingOutputStream.java30 public CountingOutputStream(OutputStream outputStream) { in CountingOutputStream() argument
31 mOutputStream = outputStream; in CountingOutputStream()

12