Home
last modified time | relevance | path

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

/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DSmsHeader.java226 ByteArrayOutputStream outStream = in toByteArray() local
231 outStream.write(ELT_ID_CONCATENATED_8_BIT_REFERENCE); in toByteArray()
232 outStream.write(3); in toByteArray()
233 outStream.write(concatRef.refNumber); in toByteArray()
235 outStream.write(ELT_ID_CONCATENATED_16_BIT_REFERENCE); in toByteArray()
236 outStream.write(4); in toByteArray()
237 outStream.write(concatRef.refNumber >>> 8); in toByteArray()
238 outStream.write(concatRef.refNumber & 0x00FF); in toByteArray()
240 outStream.write(concatRef.msgCount); in toByteArray()
241 outStream.write(concatRef.seqNumber); in toByteArray()
[all …]
/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/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapObexServer.java1140 OutputStream outStream = null; in sendMessageListingRsp() local
1235 outStream = op.openOutputStream(); in sendMessageListingRsp()
1238 if (outStream != null) { in sendMessageListingRsp()
1240 outStream.close(); in sendMessageListingRsp()
1255 if (outStream != null) { in sendMessageListingRsp()
1257 outStream.close(); in sendMessageListingRsp()
1269 outStream.write(outBytes, bytesWritten, bytesToWrite); in sendMessageListingRsp()
1278 if (outStream != null) { in sendMessageListingRsp()
1280 outStream.close(); in sendMessageListingRsp()
1291 if (outStream != null) { in sendMessageListingRsp()
[all …]
DBluetoothMapbMessage.java507 FileOutputStream outStream = null; in parse() local
513 outStream = new FileOutputStream(file, false); in parse()
518 outStream.write(buffer, 0, len); in parse()
530 if (outStream != null) { in parse()
532 outStream.close(); in parse()
543 if (outStream == null) { in parse()
/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.java281 FileOutputStream outStream = null; in creatFileForSharedContent() local
338 outStream = context.openFileOutput(fileName, Context.MODE_PRIVATE); in creatFileForSharedContent()
339 if (outStream != null) { in creatFileForSharedContent()
340 outStream.write(byteBuff, 0, byteBuff.length); in creatFileForSharedContent()
357 if (outStream != null) { in creatFileForSharedContent()
358 outStream.close(); in creatFileForSharedContent()
/packages/services/Mms/src/com/android/mms/service/
DMmsService.java948 ParcelFileDescriptor.AutoCloseOutputStream outStream = null; in writePduToContentUri()
952 outStream = new ParcelFileDescriptor.AutoCloseOutputStream(pduFd); in writePduToContentUri()
953 outStream.write(pdu); in writePduToContentUri()
959 if (outStream != null) { in writePduToContentUri()
961 outStream.close(); in writePduToContentUri()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportService.java574 private void zipDirectoryToOutputStream(File dirToZip, OutputStream outStream) in zipDirectoryToOutputStream() argument
582 try (ZipOutputStream zipStream = new ZipOutputStream(new BufferedOutputStream(outStream))) { in zipDirectoryToOutputStream()
596 outStream.close(); in zipDirectoryToOutputStream()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DVer2DictEncoder.java64 public Ver2DictEncoder(final OutputStream outStream) { in Ver2DictEncoder() argument
66 mOutStream = outStream; in Ver2DictEncoder()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapServer.java108 OutputStream outStream) { in SapServer() argument
114 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()