/frameworks/av/media/libaudiohal/impl/ |
D | StreamHalLocal.cpp | 33 mStream(stream) { in StreamHalLocal() 36 if (mStream != nullptr /* && mStreamPowerLog.isUserDebugOrEngBuild() */) { in StreamHalLocal() 37 mStreamPowerLog.init(mStream->get_sample_rate(mStream), in StreamHalLocal() 38 mStream->get_channels(mStream), in StreamHalLocal() 39 mStream->get_format(mStream)); in StreamHalLocal() 44 mStream = 0; in ~StreamHalLocal() 49 *rate = mStream->get_sample_rate(mStream); in getSampleRate() 54 *size = mStream->get_buffer_size(mStream); in getBufferSize() 59 *mask = mStream->get_channels(mStream); in getChannelMask() 64 *format = mStream->get_format(mStream); in getFormat() [all …]
|
D | StreamHalHidl.cpp | 46 mStream(stream), in StreamHalHidl() 52 if (mStream != nullptr /* && mStreamPowerLog.isUserDebugOrEngBuild() */) { in StreamHalHidl() 54 Return<void> ret = mStream->getAudioProperties( in StreamHalHidl() 64 mStream = nullptr; in ~StreamHalHidl() 68 if (!mStream) return NO_INIT; in getSampleRate() 69 return processReturn("getSampleRate", mStream->getSampleRate(), rate); in getSampleRate() 73 if (!mStream) return NO_INIT; in getBufferSize() 74 status_t status = processReturn("getBufferSize", mStream->getBufferSize(), size); in getBufferSize() 82 if (!mStream) return NO_INIT; in getChannelMask() 83 return processReturn("getChannelMask", mStream->getChannelMask(), mask); in getChannelMask() [all …]
|
D | StreamHalLocal.h | 92 audio_stream_t *mStream; 160 audio_stream_out_t *mStream; 217 audio_stream_in_t *mStream;
|
/frameworks/av/media/libaaudio/examples/utils/ |
D | AAudioSimpleRecorder.h | 67 if (mStream == nullptr) { in getSampleRate() 70 return AAudioStream_getSampleRate(mStream); in getSampleRate() 77 if (mStream == nullptr) { in getChannelCount() 80 return AAudioStream_getChannelCount(mStream);; in getChannelCount() 94 if (mStream == nullptr) { in getFramesRead() 97 return AAudioStream_getFramesRead(mStream); in getFramesRead() 123 result = AAudioStreamBuilder_openStream(builder, &mStream); 132 int32_t framesPerBurst = AAudioStream_getFramesPerBurst(mStream); 133 AAudioStream_setBufferSizeInFrames(mStream, sizeInBursts * framesPerBurst); 169 result = AAudioStreamBuilder_openStream(builder, &mStream); in open() [all …]
|
D | AAudioSimplePlayer.h | 75 if (mStream == nullptr) { in getSampleRate() 78 return AAudioStream_getSampleRate(mStream); in getSampleRate() 85 if (mStream == nullptr) { in getChannelCount() 88 return AAudioStream_getChannelCount(mStream); in getChannelCount() 119 result = AAudioStreamBuilder_openStream(builder, &mStream); 123 int32_t framesPerBurst = AAudioStream_getFramesPerBurst(mStream); 125 AAudioStream_setBufferSizeInFrames(mStream, bufferSizeFrames); 161 result = AAudioStreamBuilder_openStream(builder, &mStream); in open() 169 if (mStream != nullptr) { in close() 170 AAudioStream_close(mStream); in close() [all …]
|
/frameworks/base/core/java/android/view/ |
D | ViewHierarchyEncoder.java | 63 private final DataOutputStream mStream; field in ViewHierarchyEncoder 70 mStream = new DataOutputStream(stream); in ViewHierarchyEncoder() 143 mStream.write(SIG_MAP); in startPropertyMap() 155 mStream.write(SIG_BOOLEAN); in writeBoolean() 156 mStream.write(v ? 1 : 0); in writeBoolean() 164 mStream.write(SIG_SHORT); in writeShort() 165 mStream.writeShort(s); in writeShort() 173 mStream.write(SIG_INT); in writeInt() 174 mStream.writeInt(i); in writeInt() 182 mStream.write(SIG_FLOAT); in writeFloat() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | IndentingPrintWriterTest.java | 29 private ByteArrayOutputStream mStream; field in IndentingPrintWriterTest 36 mStream = new ByteArrayOutputStream(); in setUp() 37 mWriter = new PrintWriter(mStream); in setUp() 59 assertEquals("Hello\n World\n And\n Goodbye\nWorld\n", mStream.toString()); in testMultipleIndents() 70 assertEquals("Hello\n World\n", mStream.toString()); in testAdjustIndentAfterNewline() 82 assertEquals("dog cat \ncow meow ", mStream.toString()); in testWrapping() 96 assertEquals(" dog \n meow \n a b \n cow ", mStream.toString()); in testWrappingIndented() 107 + " nsectetu\n r \n adipisci\n ng elit.\n", mStream.toString()); in testWrappingEmbeddedNewlines() 118 + " ectetur \n adipisci\n ng elit.\n", mStream.toString()); in testWrappingSingleGiant() 130 + " ectetur \n adipisci\n ng elit.\n", mStream.toString()); in testWrappingPrefixedGiant()
|
/frameworks/base/tools/aapt/ |
D | IndentPrinter.h | 7 : mStream(stream) in mStream() function 24 vfprintf(mStream, fmt, args); in print() 32 vfprintf(mStream, fmt, args); in println() 34 fputs("\n", mStream); in println() 40 fputs("\n", mStream); in println() 49 fputs(" ", mStream); in doIndent() 56 FILE* mStream; variable
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioServiceEvents.java | 104 final int mStream; field in AudioServiceEvents.VolumeEvent 117 mStream = stream; in VolumeEvent() 131 mStream = -1; in VolumeEvent() 143 mStream = -1; in VolumeEvent() 152 mStream = stream; in VolumeEvent() 164 mStream = stream; in VolumeEvent() 176 mStream = -1; in VolumeEvent() 189 .append(AudioSystem.streamToString(mStream)) in eventToString() 196 .append(AudioSystem.streamToString(mStream)) in eventToString() 203 .append(AudioSystem.streamToString(mStream)) in eventToString() [all …]
|
/frameworks/av/media/libnbaio/ |
D | AudioStreamInSource.cpp | 29 mStream(stream), in AudioStreamInSource() 39 mStream.clear(); in ~AudioStreamInSource() 47 result = mStream->getBufferSize(&mStreamBufferSizeBytes); in negotiate() 52 result = mStream->getAudioProperties(&sampleRate, &channelMask, &streamFormat); in negotiate() 64 status_t result = mStream->getInputFramesLost(&framesOverrun); in framesOverrun() 81 status_t result = mStream->read(buffer, count * mFrameSize, &bytesRead); in read()
|
D | AudioStreamOutSink.cpp | 29 mStream(stream), in AudioStreamOutSink() 37 mStream.clear(); in ~AudioStreamOutSink() 45 result = mStream->getBufferSize(&mStreamBufferSizeBytes); in negotiate() 50 result = mStream->getAudioProperties(&sampleRate, &channelMask, &streamFormat); in negotiate() 66 status_t ret = mStream->write(buffer, count * mFrameSize, &written); in write() 82 if (mStream->getPresentationPosition(&position64, &time) != OK) { in getTimestamp()
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | ProductStrategy.cpp | 48 androidAa.push_back({attr.mVolumeGroup, attr.mStream, attr.mAttributes}); in listAudioAttributes() 82 audio_stream_type_t streamType = iter->mStream; in getStreamTypeForAttributes() 94 return supportedAttr.mStream == streamType; }); in getAttributesForStreamType() 108 if (std::find(begin(streams), end(streams), supportedAttr.mStream) == end(streams) && in getSupportedStreams() 109 supportedAttr.mStream != AUDIO_STREAM_DEFAULT) { in getSupportedStreams() 110 streams.push_back(supportedAttr.mStream); in getSupportedStreams() 120 return supportedAttr.mStream == streamType; }) != end(mAttributesVector); in supportStreamType() 136 if (supportedAttr.mStream == stream) { in getVolumeGroupForStreamType() 163 android::toString(attr.mStream).c_str()); in dump()
|
/frameworks/base/core/java/android/webkit/ |
D | PluginData.java | 42 private InputStream mStream; field in PluginData 80 mStream = stream; in PluginData() 98 return mStream; in getInputStream()
|
/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
D | BatteryStatsReader.java | 47 final InputStream mStream; field in BatteryStatsReader.Parser 55 mStream = stream; in Parser() 64 mBs = RawBatteryStats.parse(mStream); in parse()
|
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/ |
D | InstallationAsyncTask.java | 144 private InputStream mStream; field in InstallationAsyncTask 270 mStream = new URL(mUrl).openStream(); in verifyAndPrepare() 275 mStream = new URL(mUrl).openStream(); in verifyAndPrepare() 278 mStream = mContext.getContentResolver().openInputStream(Uri.parse(mUrl)); in verifyAndPrepare() 341 if (mStream != null) { in installImages() 355 installImage("system", mSystemSize, new GZIPInputStream(mStream), 1); in installStreamingGzUpdate() 362 ZipInputStream zis = new ZipInputStream(mStream); in installStreamingZipUpdate() 518 if (mStream != null) { in close() 519 mStream.close(); in close() 520 mStream = null; in close()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ProcFileReader.java | 35 private final InputStream mStream; field in ProcFileReader 48 mStream = stream; in ProcFileReader() 64 final int read = mStream.read(mBuffer, mTail, length); in fillBuf() 231 mStream.close(); in close()
|
/frameworks/av/media/libheif/ |
D | HeifDecoderImpl.cpp | 53 : mStream(stream), mEOS(false), in HeifDataSource() 84 std::unique_ptr<HeifStream> mStream; member in android::HeifDataSource 114 if (mStream->seek(offset)) { in readAt() 119 } else if (mStream->rewind()) { in readAt() 191 size_t bytesSkipped = mStream->read(nullptr, bytesToSkip); in readAt() 233 size_t bytesRead = mStream->read(mCache.get() + mCachedSize, bytesToRead); in readAt() 259 if (!mStream->hasLength()) { in getSize() 264 *size = mStream->getLength(); in getSize()
|
/frameworks/av/media/libnbaio/include/media/nbaio/ |
D | AudioStreamOutSink.h | 56 sp<StreamOutHalInterface> stream() const { return mStream; } 60 sp<StreamOutHalInterface> mStream;
|
D | AudioStreamInSource.h | 54 sp<StreamInHalInterface> stream() const { return mStream; } 58 sp<StreamInHalInterface> mStream;
|
/frameworks/av/include/media/nbaio/ |
D | AudioStreamOutSink.h | 56 sp<StreamOutHalInterface> stream() const { return mStream; } 60 sp<StreamOutHalInterface> mStream;
|
/frameworks/ml/nn/common/ |
D | GraphDump.cpp | 53 Dumper(std::ostream* outStream) : mStream(outStream) {} in Dumper() 67 if (mStream) { in operator <<() 68 *mStream << mStringStream.str() << std::endl; in operator <<() 89 std::ostream* mStream; member in android::nn::__anonf39133530111::Dumper
|
/frameworks/base/core/java/android/util/proto/ |
D | ProtoInputStream.java | 72 private InputStream mStream; field in ProtoInputStream 151 mStream = stream; in ProtoInputStream() 178 mStream = null; in ProtoInputStream() 746 mEnd = stringHead + mStream.read(mBuffer, stringHead, n - stringHead); in readRawString() 765 if (mOffset >= mEnd && mStream != null) { in fillBuffer() 769 int skipped = (int) mStream.skip((mOffset / mBufferSize) * mBufferSize); in fillBuffer() 773 mEnd = mStream.read(mBuffer); in fillBuffer()
|
/frameworks/base/media/jni/ |
D | android_media_Streams.h | 35 SkStream *mStream; 54 SkStream *mStream;
|
/frameworks/base/services/core/jni/ |
D | com_android_server_tv_TvInputHal.cpp | 108 tv_stream_t mStream; member in android::BufferProducerThread 132 memcpy(&mStream, stream, sizeof(mStream)); in BufferProducerThread() 137 status_t err = native_window_set_usage(anw.get(), mStream.buffer_producer.usage); in readyToRun() 142 anw.get(), mStream.buffer_producer.width, mStream.buffer_producer.height); in readyToRun() 146 err = native_window_set_buffers_format(anw.get(), mStream.buffer_producer.format); in readyToRun() 164 mDevice->cancel_capture(mDevice, mDeviceId, mStream.stream_id, mSeq); in setSurfaceLocked() 243 mDevice->request_capture(mDevice, mDeviceId, mStream.stream_id, in threadLoop()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | ClientDescriptor.cpp | 56 dst->appendFormat("%*s- Stream: %d flags: %08x\n", spaces, "", mStream, mFlags); in dump() 64 ss << ClientDescriptor::toShortString() << " Stream: " << mStream; in toShortString()
|