/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | BitwiseStreamsTest.java | 37 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/ |
D | SmsHeader.java | 313 ByteArrayOutputStream outStream = in toByteArray() local 318 outStream.write(ELT_ID_CONCATENATED_8_BIT_REFERENCE); in toByteArray() 319 outStream.write(3); in toByteArray() 320 outStream.write(concatRef.refNumber); in toByteArray() 322 outStream.write(ELT_ID_CONCATENATED_16_BIT_REFERENCE); in toByteArray() 323 outStream.write(4); in toByteArray() 324 outStream.write(concatRef.refNumber >>> 8); in toByteArray() 325 outStream.write(concatRef.refNumber & 0x00FF); in toByteArray() 327 outStream.write(concatRef.msgCount); in toByteArray() 328 outStream.write(concatRef.seqNumber); in toByteArray() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/ |
D | BearerData.java | 309 ByteArrayOutputStream outStream = new ByteArrayOutputStream(6); in toByteArray() local 310 outStream.write((((year / 10) & 0x0F) << 4) | ((year % 10) & 0x0F)); in toByteArray() 311 outStream.write((((monthOrdinal / 10) << 4) & 0xF0) | ((monthOrdinal % 10) & 0x0F)); in toByteArray() 312 outStream.write((((monthDay / 10) << 4) & 0xF0) | ((monthDay % 10) & 0x0F)); in toByteArray() 313 outStream.write((((hour / 10) << 4) & 0xF0) | ((hour % 10) & 0x0F)); in toByteArray() 314 outStream.write((((minute / 10) << 4) & 0xF0) | ((minute % 10) & 0x0F)); in toByteArray() 315 outStream.write((((second / 10) << 4) & 0xF0) | ((second % 10) & 0x0F)); in toByteArray() 316 return outStream.toByteArray(); in toByteArray() 520 private static void encodeMessageId(BearerData bData, BitwiseOutputStream outStream) in encodeMessageId() argument 523 outStream.write(8, 3); in encodeMessageId() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | FactoryResetProtectionPolicyTest.java | 101 ByteArrayOutputStream outStream = serialize(policy); in testSerializationAndDeserialization() local 102 ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); in testSerializationAndDeserialization() 112 ByteArrayOutputStream outStream = serialize(policy); in testInvalidXmlSerializationAndDeserialization() local 113 ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); in testInvalidXmlSerializationAndDeserialization() 124 ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in serialize() local 126 outXml.setOutput(outStream, StandardCharsets.UTF_8.name()); in serialize() 133 return outStream; in serialize()
|
D | SystemUpdatePolicyTest.java | 475 ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in testSerialization() local 477 outXml.setOutput(outStream, StandardCharsets.UTF_8.name()); in testSerialization() 485 ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); in testSerialization()
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/ |
D | JarUtil.java | 42 public static void createJar(@NotNull FileOutputStream outStream, in createJar() argument 45 JarOutputStream jar = new JarOutputStream(outStream); in createJar() 70 public static void createJar(@NotNull FileOutputStream outStream, in createJar() argument 72 createJar(outStream, all, Function.identity()); in createJar()
|
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/ |
D | LogParserTest.kt | 39 private var outStream: OutputStream = ByteArrayOutputStream() variable in com.android.protolog.tool.LogParserTest 40 private var printStream: PrintStream = PrintStream(outStream) 82 outStream.toString()) in parse() 105 outStream.toString()) in parse_formatting() 127 "[0.1, 1.0E-5, 1000.1] [true]\n", outStream.toString()) in parse_invalidParamsTooMany() 147 outStream.toString()) in parse_invalidParamsNotEnough() 185 outStream.toString()) in parse_noConfig()
|
/frameworks/av/services/audioflinger/ |
D | AudioStreamOut.cpp | 130 sp<StreamOutHalInterface> outStream; in open() local 142 &outStream); in open() 146 outStream.get(), in open() 164 &outStream); in open() 169 stream = outStream; in open()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | FastDataTest.java | 110 final ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in testTranscode() local 111 final DataOutputStream out = new DataOutputStream(outStream); in testTranscode() 116 new ByteArrayInputStream(outStream.toByteArray()), BOUNCE_SIZE); in testTranscode() 122 final ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in testTranscode() local 123 final FastDataOutput out = new FastDataOutput(outStream, BOUNCE_SIZE); in testTranscode() 128 new ByteArrayInputStream(outStream.toByteArray())); in testTranscode() 365 final ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in doBounce() local 366 final FastDataOutput outData = new FastDataOutput(outStream, BOUNCE_SIZE); in doBounce() 372 final ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); in doBounce()
|
/frameworks/base/core/java/android/webkit/ |
D | CacheManager.java | 88 OutputStream outStream; field in CacheManager.CacheResult 232 return outStream; in getOutputStream() 357 cacheRet.outStream.close(); in saveCacheFile()
|
/frameworks/base/core/java/android/os/ |
D | Debug.java | 1109 PrintWriter outStream = null; in startNativeTracing() local 1112 outStream = new FastPrintWriter(fos); in startNativeTracing() 1113 outStream.println("1"); in startNativeTracing() 1116 if (outStream != null) in startNativeTracing() 1117 outStream.close(); in startNativeTracing() 1133 PrintWriter outStream = null; in stopNativeTracing() local 1136 outStream = new FastPrintWriter(fos); in stopNativeTracing() 1137 outStream.println("0"); in stopNativeTracing() 1142 if (outStream != null) in stopNativeTracing() 1143 outStream.close(); in stopNativeTracing()
|
/frameworks/base/core/java/android/gesture/ |
D | Gesture.java | 317 final DataOutputStream outStream = new DataOutputStream(byteStream); in writeToParcel() local 320 serialize(outStream); in writeToParcel() 325 GestureUtils.closeStream(outStream); in writeToParcel()
|
/frameworks/native/libs/gui/include/gui/ |
D | BufferHubConsumer.h | 87 status_t getSidebandStream(sp<NativeHandle>* outStream) const override;
|
D | BufferQueueConsumer.h | 143 status_t getSidebandStream(sp<NativeHandle>* outStream) const override;
|
D | IGraphicBufferConsumer.h | 264 virtual status_t getSidebandStream(sp<NativeHandle>* outStream) const = 0;
|
/frameworks/native/libs/gui/ |
D | IGraphicBufferConsumer.cpp | 150 status_t getSidebandStream(sp<NativeHandle>* outStream) const override { in getSidebandStream() 152 return callRemote<Signature>(Tag::GET_SIDEBAND_STREAM, outStream); in getSidebandStream()
|
D | BufferQueueConsumer.cpp | 768 status_t BufferQueueConsumer::getSidebandStream(sp<NativeHandle>* outStream) const { in getSidebandStream() 770 *outStream = mCore->mSidebandStream; in getSidebandStream()
|
/frameworks/av/media/libaudiohal/include/media/audiohal/ |
D | DeviceHalInterface.h | 80 sp<StreamOutHalInterface> *outStream) = 0;
|
/frameworks/av/media/libaudiohal/impl/ |
D | DeviceHalHidl.h | 74 sp<StreamOutHalInterface> *outStream);
|
D | DeviceHalHidl.cpp | 225 sp<StreamOutHalInterface> *outStream) { in openOutputStream() argument 266 *outStream = new StreamOutHalHidl(result); in openOutputStream()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestUtils.java | 954 FileOutputStream outStream; in dumpFile() local 957 outStream = new FileOutputStream(fileName); in dumpFile() 963 data.compress(Bitmap.CompressFormat.JPEG, /*quality*/90, outStream); in dumpFile() 964 outStream.close(); in dumpFile() 971 FileOutputStream outStream; in dumpFile() local 974 outStream = new FileOutputStream(fileName); in dumpFile() 980 outStream.write(data); in dumpFile() 981 outStream.close(); in dumpFile()
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_DngCreator.cpp | 331 JniOutputStream(JNIEnv* env, jobject outStream); 349 JniOutputStream::JniOutputStream(JNIEnv* env, jobject outStream) : mOutputStream(outStream), in JniOutputStream() argument 2450 static void DngCreator_nativeWriteImage(JNIEnv* env, jobject thiz, jobject outStream, jint width, in DngCreator_nativeWriteImage() argument 2463 sp<JniOutputStream> out = new JniOutputStream(env, outStream); in DngCreator_nativeWriteImage() 2560 static void DngCreator_nativeWriteInputStream(JNIEnv* env, jobject thiz, jobject outStream, in DngCreator_nativeWriteInputStream() argument 2574 sp<JniOutputStream> out = new JniOutputStream(env, outStream); in DngCreator_nativeWriteInputStream()
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | ATSParser.cpp | 1715 std::ostringstream outStream(std::ios::out); in addAudioPresentations() local 1716 serializeAudioPresentations(mAudioPresentations, &outStream); in addAudioPresentations() 1717 sp<ABuffer> ap = ABuffer::CreateAsCopy(outStream.str().data(), outStream.str().size()); in addAudioPresentations()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
D | ExifInterface.java | 961 public OutputStream getExifWriterStream(OutputStream outStream) { in getExifWriterStream() argument 962 if (outStream == null) { in getExifWriterStream() 965 ExifOutputStream eos = new ExifOutputStream(outStream, this); in getExifWriterStream()
|
/frameworks/av/services/camera/libcameraservice/device3/aidl/ |
D | AidlCamera3Device.cpp | 537 auto outStream = mOutputStreams.get(outStreamId); in switchToOffline() local 538 if (outStream->hasOutstandingBuffers()) { in switchToOffline() 540 outStreamId, outStream->getOutstandingBuffersCount()); in switchToOffline()
|