/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | BitwiseStreamsTest.java | 40 BitwiseOutputStream outStream = new BitwiseOutputStream(30); in testOne() local 41 outStream.skip(offset); in testOne() 42 for (int i = 0; i < inBuf.length; i++) outStream.write(8, inBuf[i]); in testOne() 43 byte[] outBuf = outStream.toByteArray(); in testOne() 56 BitwiseOutputStream outStream = new BitwiseOutputStream(30); in testTwo() local 57 outStream.skip(offset); in testTwo() 58 for (int i = 0; i < inBuf.length; i++) outStream.write(8, inBuf[i]); in testTwo() 59 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testTwo() 71 BitwiseOutputStream outStream = new BitwiseOutputStream(30); in testThree() local 72 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/datapath/ |
D | AudioStreamOut.cpp | 98 sp<StreamOutHalInterface> outStream; in open() local 110 &outStream); in open() 112 " channelMask %#x, status %d", outStream.get(), config->sample_rate, config->format, in open() 127 &outStream); in open() 132 stream = outStream; in open()
|
/frameworks/native/services/surfaceflinger/Tracing/tools/ |
D | main.cpp | 53 auto outStream = std::ofstream{outputLayersTracePath, std::ios::binary | std::ios::out}; in main() 55 auto layerTracing = LayerTracing{outStream}; in main() 72 outStream.close(); in main()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | FastDataTest.java | 162 final ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in testTranscode() local 163 final DataOutputStream out = new DataOutputStream(outStream); in testTranscode() 168 new ByteArrayInputStream(outStream.toByteArray()), BOUNCE_SIZE); in testTranscode() 174 final ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in testTranscode() local 175 final FastDataOutput out = createFastDataOutput(outStream, BOUNCE_SIZE); in testTranscode() 180 new ByteArrayInputStream(outStream.toByteArray())); in testTranscode() 448 final ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in doBounce() local 449 final FastDataOutput outData = createFastDataOutput(outStream, BOUNCE_SIZE); in doBounce() 455 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 | 1169 PrintWriter outStream = null; in startNativeTracing() local 1172 outStream = new FastPrintWriter(fos); in startNativeTracing() 1173 outStream.println("1"); in startNativeTracing() 1176 if (outStream != null) in startNativeTracing() 1177 outStream.close(); in startNativeTracing() 1193 PrintWriter outStream = null; in stopNativeTracing() local 1196 outStream = new FastPrintWriter(fos); in stopNativeTracing() 1197 outStream.println("0"); in stopNativeTracing() 1202 if (outStream != null) in stopNativeTracing() 1203 outStream.close(); in stopNativeTracing()
|
/frameworks/base/tools/app_metadata_bundles/src/test/java/com/android/asllib/testutils/ |
D | TestUtils.java | 94 ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in docToStr() local 95 StreamResult streamResult = new StreamResult(outStream); // out in docToStr() 99 return outStream.toString(StandardCharsets.UTF_8); in docToStr()
|
/frameworks/native/services/surfaceflinger/Tracing/ |
D | LayerTracing.cpp | 39 LayerTracing::LayerTracing(std::ostream& outStream) : LayerTracing() { in LayerTracing() argument 40 mOutStream = std::ref(outStream); in LayerTracing()
|
/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/ |
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()
|
/frameworks/native/libs/gui/include/gui/ |
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/av/media/libaudiohal/include/media/audiohal/ |
D | DeviceHalInterface.h | 93 sp<StreamOutHalInterface> *outStream) = 0;
|
/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/native/services/surfaceflinger/tests/tracing/ |
D | TransactionTraceTestSuite.cpp | 65 std::ofstream outStream{actualLayersTracePath, std::ios::binary | std::ios::app}; in SetUp() local 66 auto layerTracing = LayerTracing{outStream}; in SetUp()
|
/frameworks/av/media/libaudiohal/impl/ |
D | DeviceHalHidl.h | 76 const char* address, sp<StreamOutHalInterface>* outStream) override;
|
D | DeviceHalHidl.cpp | 262 sp<StreamOutHalInterface> *outStream) { in openOutputStream() argument 303 *outStream = new StreamOutHalHidl(result); in openOutputStream() 310 mStreams.insert({handle, *outStream}); in openOutputStream()
|
D | DeviceHalAidl.cpp | 430 sp<StreamOutHalInterface>* outStream) { in openOutputStream() argument 434 if (outStream == nullptr || config == nullptr) { in openOutputStream() 488 *outStream = stream; in openOutputStream() 489 /* StreamOutHalInterface* */ void* cbCookie = (*outStream).get(); in openOutputStream() 493 mMapper.addStream(*outStream, mixPortConfig.id, aidlPatch.id); in openOutputStream()
|
/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 2455 static void DngCreator_nativeWriteImage(JNIEnv* env, jobject thiz, jobject outStream, jint width, in DngCreator_nativeWriteImage() argument 2468 sp<JniOutputStream> out = new JniOutputStream(env, outStream); in DngCreator_nativeWriteImage() 2565 static void DngCreator_nativeWriteInputStream(JNIEnv* env, jobject thiz, jobject outStream, in DngCreator_nativeWriteInputStream() argument 2579 sp<JniOutputStream> out = new JniOutputStream(env, outStream); in DngCreator_nativeWriteInputStream()
|