Home
last modified time | relevance | path

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

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsHeader.java211 ByteArrayOutputStream outStream = in toByteArray() local
216 outStream.write(ELT_ID_CONCATENATED_8_BIT_REFERENCE); in toByteArray()
217 outStream.write(3); in toByteArray()
218 outStream.write(concatRef.refNumber); in toByteArray()
220 outStream.write(ELT_ID_CONCATENATED_16_BIT_REFERENCE); in toByteArray()
221 outStream.write(4); in toByteArray()
222 outStream.write(concatRef.refNumber >>> 8); in toByteArray()
223 outStream.write(concatRef.refNumber & 0x00FF); in toByteArray()
225 outStream.write(concatRef.msgCount); in toByteArray()
226 outStream.write(concatRef.seqNumber); in toByteArray()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DBitwiseStreamsTest.java37 BitwiseOutputStream outStream = new BitwiseOutputStream(30); in testOne() local
38 outStream.skip(offset); in testOne()
39 for (int i = 0; i < inBuf.length; i++) outStream.write(8, inBuf[i]); in testOne()
40 byte[] outBuf = outStream.toByteArray(); in testOne()
52 BitwiseOutputStream outStream = new BitwiseOutputStream(30); in testTwo() local
53 outStream.skip(offset); in testTwo()
54 for (int i = 0; i < inBuf.length; i++) outStream.write(8, inBuf[i]); in testTwo()
55 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testTwo()
66 BitwiseOutputStream outStream = new BitwiseOutputStream(30); in testThree() local
67 outStream.skip(offset); in testThree()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
DBearerData.java446 private static void encodeMessageId(BearerData bData, BitwiseOutputStream outStream) in encodeMessageId() argument
449 outStream.write(8, 3); in encodeMessageId()
450 outStream.write(4, bData.messageType); in encodeMessageId()
451 outStream.write(8, bData.messageId >> 8); in encodeMessageId()
452 outStream.write(8, bData.messageId); in encodeMessageId()
453 outStream.write(1, bData.hasUserDataHeader ? 1 : 0); in encodeMessageId()
454 outStream.skip(3); in encodeMessageId()
503 BitwiseOutputStream outStream = new BitwiseOutputStream(msg.length()); in encode7bitAscii() local
509 outStream.write(7, UserData.UNENCODABLE_7_BIT_CHAR); in encode7bitAscii()
514 outStream.write(7, charCode); in encode7bitAscii()
[all …]
/frameworks/av/services/audioflinger/
DAudioStreamOut.cpp118 audio_stream_out_t *outStream; in open() local
130 &outStream, in open()
135 outStream, in open()
153 &outStream, in open()
159 stream = outStream; in open()
/frameworks/base/core/java/android/webkit/
DCacheManager.java67 OutputStream outStream; field in CacheManager.CacheResult
197 return outStream; in getOutputStream()
311 cacheRet.outStream.close(); in saveCacheFile()
/frameworks/base/core/java/android/os/
DDebug.java886 PrintWriter outStream = null; in startNativeTracing() local
889 outStream = new FastPrintWriter(fos); in startNativeTracing()
890 outStream.println("1"); in startNativeTracing()
893 if (outStream != null) in startNativeTracing()
894 outStream.close(); in startNativeTracing()
914 PrintWriter outStream = null; in stopNativeTracing() local
917 outStream = new FastPrintWriter(fos); in stopNativeTracing()
918 outStream.println("0"); in stopNativeTracing()
923 if (outStream != null) in stopNativeTracing()
924 outStream.close(); in stopNativeTracing()
/frameworks/base/tools/aapt2/proto/
DTableProtoSerializer_test.cpp128 google::protobuf::io::StringOutputStream outStream(&outputStr); in TEST() local
129 CompiledFileOutputStream outFileStream(&outStream, pbFile.get()); in TEST()
159 google::protobuf::io::StringOutputStream outStream(&outputStr); in TEST() local
160 CompiledFileOutputStream outFileStream(&outStream, pbFile.get()); in TEST()
/frameworks/base/core/java/android/gesture/
DGesture.java317 final DataOutputStream outStream = new DataOutputStream(byteStream); in writeToParcel() local
320 serialize(outStream); in writeToParcel()
325 GestureUtils.closeStream(outStream); in writeToParcel()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java916 FileOutputStream outStream; in dumpFile() local
919 outStream = new FileOutputStream(fileName); in dumpFile()
925 data.compress(Bitmap.CompressFormat.JPEG, /*quality*/90, outStream); in dumpFile()
926 outStream.close(); in dumpFile()
933 FileOutputStream outStream; in dumpFile() local
936 outStream = new FileOutputStream(fileName); in dumpFile()
942 outStream.write(data); in dumpFile()
943 outStream.close(); in dumpFile()
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
DAsmGenerator.java299 void createJar(FileOutputStream outStream, Map<String,byte[]> all) throws IOException {
300 JarOutputStream jar = new JarOutputStream(outStream);
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp311 JniOutputStream(JNIEnv* env, jobject outStream);
329 JniOutputStream::JniOutputStream(JNIEnv* env, jobject outStream) : mOutputStream(outStream), in JniOutputStream() argument
2121 static void DngCreator_nativeWriteImage(JNIEnv* env, jobject thiz, jobject outStream, jint width, in DngCreator_nativeWriteImage() argument
2134 sp<JniOutputStream> out = new JniOutputStream(env, outStream); in DngCreator_nativeWriteImage()
2228 static void DngCreator_nativeWriteInputStream(JNIEnv* env, jobject thiz, jobject outStream, in DngCreator_nativeWriteInputStream() argument
2242 sp<JniOutputStream> out = new JniOutputStream(env, outStream); in DngCreator_nativeWriteInputStream()
/frameworks/base/packages/WallpaperCropper/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()