Home
last modified time | relevance | path

Searched refs:outStream (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapObexServer.java989 OutputStream outStream = null; in sendMessageListingRsp() local
1032 outStream = op.openOutputStream(); in sendMessageListingRsp()
1086 if(outStream != null) { try { outStream.close(); } catch (IOException ex) {} } in sendMessageListingRsp()
1096 if(outStream != null) { try { outStream.close(); } catch (IOException ex) {} } in sendMessageListingRsp()
1105 outStream.write(outBytes, bytesWritten, bytesToWrite); in sendMessageListingRsp()
1112 if(outStream != null) { try { outStream.close(); } catch (IOException e) {} } in sendMessageListingRsp()
1120 if(outStream != null) { try { outStream.close(); } catch (IOException e) {} } in sendMessageListingRsp()
1180 OutputStream outStream = null; in sendConvoListingRsp() local
1199 outStream = op.openOutputStream(); in sendConvoListingRsp()
1244 if(outStream != null) { try { outStream.close(); } catch (IOException ex) {} } in sendConvoListingRsp()
[all …]
DBluetoothMapbMessage.java497 FileOutputStream outStream = null; in parse() local
503 outStream = new FileOutputStream(file, false); in parse()
508 outStream.write(buffer, 0, len); in parse()
519 if(outStream != null) in parse()
521 outStream.close(); in parse()
531 if (outStream == null) { in parse()
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_hook.cpp26 dst->mgr.next_output_byte = reinterpret_cast<JOCTET*>(dst->outStream->getBufferPtr()); in Mgr_init_destination_fcn()
27 dst->mgr.free_in_buffer = dst->outStream->getBufferSize(); in Mgr_init_destination_fcn()
32 int32_t len = dst->outStream->getBufferSize(); in Mgr_empty_output_buffer_fcn()
33 if (dst->outStream->write(len, 0) != J_SUCCESS) { in Mgr_empty_output_buffer_fcn()
36 dst->mgr.next_output_byte = reinterpret_cast<JOCTET*>(dst->outStream->getBufferPtr()); in Mgr_empty_output_buffer_fcn()
43 int32_t remaining = dst->outStream->getBufferSize() - dst->mgr.free_in_buffer; in Mgr_term_destination_fcn()
44 if (dst->outStream->write(remaining, 0) != J_SUCCESS) { in Mgr_term_destination_fcn()
49 int32_t MakeDst(j_compress_ptr cinfo, JNIEnv *env, jobject outStream) { in MakeDst() argument
67 d->outStream = new OutputStreamWrapper(); in MakeDst()
68 if(d->outStream->init(env, outStream)) { in MakeDst()
[all …]
Djpeg_hook.h37 OutputStreamWrapper *outStream; member
41 int32_t MakeDst(j_compress_ptr cinfo, JNIEnv *env, jobject outStream);
/packages/apps/Messaging/src/android/support/v7/mms/
DDownloadRequest.java86 ParcelFileDescriptor.AutoCloseOutputStream outStream = null; in writePduToContentUri()
90 outStream = new ParcelFileDescriptor.AutoCloseOutputStream(pduFd); in writePduToContentUri()
91 outStream.write(pdu); in writePduToContentUri()
97 if (outStream != null) { in writePduToContentUri()
99 outStream.close(); in writePduToContentUri()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppLauncherActivity.java256 FileOutputStream outStream = null; in creatFileForSharedContent() local
314 outStream = context.openFileOutput(fileName, Context.MODE_PRIVATE); in creatFileForSharedContent()
315 if (outStream != null) { in creatFileForSharedContent()
316 outStream.write(byteBuff, 0, byteBuff.length); in creatFileForSharedContent()
332 if (outStream != null) { in creatFileForSharedContent()
333 outStream.close(); in creatFileForSharedContent()
/packages/services/Mms/src/com/android/mms/service/
DMmsService.java845 ParcelFileDescriptor.AutoCloseOutputStream outStream = null; in writePduToContentUri()
849 outStream = new ParcelFileDescriptor.AutoCloseOutputStream(pduFd); in writePduToContentUri()
850 outStream.write(pdu); in writePduToContentUri()
856 if (outStream != null) { in writePduToContentUri()
858 outStream.close(); in writePduToContentUri()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapServer.java106 OutputStream outStream) { in SapServer() argument
112 mRfcommOut = new BufferedOutputStream(outStream); in SapServer()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifInterface.java961 public OutputStream getExifWriterStream(OutputStream outStream) { in getExifWriterStream() argument
962 if (outStream == null) { in getExifWriterStream()
965 ExifOutputStream eos = new ExifOutputStream(outStream, this); in getExifWriterStream()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifInterface.java961 public OutputStream getExifWriterStream(OutputStream outStream) { in getExifWriterStream() argument
962 if (outStream == null) { in getExifWriterStream()
965 ExifOutputStream eos = new ExifOutputStream(outStream, this); in getExifWriterStream()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifInterface.java946 public OutputStream getExifWriterStream(OutputStream outStream) { in getExifWriterStream() argument
947 if (outStream == null) { in getExifWriterStream()
950 ExifOutputStream eos = new ExifOutputStream(outStream, this); in getExifWriterStream()