Home
last modified time | relevance | path

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

/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsHeader.java197 ByteArrayOutputStream outStream = new ByteArrayOutputStream(SmsMessage.MAX_USER_DATA_BYTES); in toByteArray() local
201 outStream.write(ELT_ID_CONCATENATED_8_BIT_REFERENCE); in toByteArray()
202 outStream.write(3); in toByteArray()
203 outStream.write(concatRef.refNumber); in toByteArray()
205 outStream.write(ELT_ID_CONCATENATED_16_BIT_REFERENCE); in toByteArray()
206 outStream.write(4); in toByteArray()
207 outStream.write(concatRef.refNumber >>> 8); in toByteArray()
208 outStream.write(concatRef.refNumber & 0x00FF); in toByteArray()
210 outStream.write(concatRef.msgCount); in toByteArray()
211 outStream.write(concatRef.seqNumber); in toByteArray()
[all …]
/frameworks/base/core/tests/coretests/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/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java384 private static void encodeMessageId(BearerData bData, BitwiseOutputStream outStream) in encodeMessageId() argument
387 outStream.write(8, 3); in encodeMessageId()
388 outStream.write(4, bData.messageType); in encodeMessageId()
389 outStream.write(8, bData.messageId >> 8); in encodeMessageId()
390 outStream.write(8, bData.messageId); in encodeMessageId()
391 outStream.write(1, bData.hasUserDataHeader ? 1 : 0); in encodeMessageId()
392 outStream.skip(3); in encodeMessageId()
450 BitwiseOutputStream outStream = new BitwiseOutputStream(msg.length()); in encode7bitAscii() local
456 outStream.write(7, UserData.UNENCODABLE_7_BIT_CHAR); in encode7bitAscii()
461 outStream.write(7, charCode); in encode7bitAscii()
[all …]
/frameworks/base/core/java/android/os/
DDebug.java363 PrintWriter outStream = null; in startNativeTracing() local
366 outStream = new PrintWriter(new OutputStreamWriter(fos)); in startNativeTracing()
367 outStream.println("1"); in startNativeTracing()
370 if (outStream != null) in startNativeTracing()
371 outStream.close(); in startNativeTracing()
391 PrintWriter outStream = null; in stopNativeTracing() local
394 outStream = new PrintWriter(new OutputStreamWriter(fos)); in stopNativeTracing()
395 outStream.println("0"); in stopNativeTracing()
400 if (outStream != null) in stopNativeTracing()
401 outStream.close(); in stopNativeTracing()
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
DDefaultContainerService.java97 public int copyResource(final Uri packageURI, ParcelFileDescriptor outStream) {
98 if (packageURI == null || outStream == null) {
103 = new ParcelFileDescriptor.AutoCloseOutputStream(outStream);
350 private void copyFile(Uri pPackageURI, OutputStream outStream) throws FileNotFoundException, in copyFile() argument
358 copyToFile(srcPackageFile, outStream); in copyFile()
383 copyToFile(dlStream, outStream); in copyFile()
/frameworks/base/core/java/android/webkit/
DCacheManager.java114 OutputStream outStream; field in CacheManager.CacheResult
167 return outStream; in getOutputStream()
508 ret.outStream = new FileOutputStream(ret.outFile); in createCacheFile()
514 ret.outStream = new FileOutputStream(ret.outFile); in createCacheFile()
545 cacheRet.outStream.close(); in saveCacheFile()
593 cacheRet.outStream.close(); in cleanupCacheFile()
DWebViewWorker.java162 cache.outStream.write(data.mChunk.mArray, 0, in handleMessage()
/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/core/java/com/android/internal/app/
DIMediaContainerService.aidl29 in ParcelFileDescriptor outStream); in copyResource() argument
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
DAsmGenerator.java236 void createJar(FileOutputStream outStream, Map<String,byte[]> all) throws IOException {
237 JarOutputStream jar = new JarOutputStream(outStream);
/frameworks/base/docs/html/guide/topics/providers/
Dcontent-providers.jd609 OutputStream outStream = getContentResolver().openOutputStream(uri);
610 sourceBitmap.compress(Bitmap.CompressFormat.JPEG, 50, outStream);
611 outStream.close();
/frameworks/base/services/audioflinger/
DAudioFlinger.cpp4848 audio_stream_out_t *outStream; in openOutput() local
4869 &channels, &samplingRate, &outStream); in openOutput()
4871 outStream, in openOutput()
4878 if (outStream != NULL) { in openOutput()
4879 AudioStreamOut *output = new AudioStreamOut(outHwDev, outStream); in openOutput()