Lines Matching refs:mStream

49           mStream(stream),  in StreamHalHidl()
54 mStream = nullptr; in ~StreamHalHidl()
58 if (!mStream) return NO_INIT; in getSampleRate()
59 return processReturn("getSampleRate", mStream->getSampleRate(), rate); in getSampleRate()
63 if (!mStream) return NO_INIT; in getBufferSize()
64 return processReturn("getBufferSize", mStream->getBufferSize(), size); in getBufferSize()
68 if (!mStream) return NO_INIT; in getChannelMask()
69 return processReturn("getChannelMask", mStream->getChannelMask(), mask); in getChannelMask()
73 if (!mStream) return NO_INIT; in getFormat()
74 return processReturn("getFormat", mStream->getFormat(), format); in getFormat()
79 if (!mStream) return NO_INIT; in getAudioProperties()
80 Return<void> ret = mStream->getAudioProperties( in getAudioProperties()
90 if (!mStream) return NO_INIT; in setParameters()
94 return processReturn("setParameters", mStream->setParameters(hidlParams)); in setParameters()
99 if (!mStream) return NO_INIT; in getParameters()
104 Return<void> ret = mStream->getParameters( in getParameters()
116 if (!mStream) return NO_INIT; in addEffect()
117 return processReturn("addEffect", mStream->addEffect( in addEffect()
122 if (!mStream) return NO_INIT; in removeEffect()
123 return processReturn("removeEffect", mStream->removeEffect( in removeEffect()
128 if (!mStream) return NO_INIT; in standby()
129 return processReturn("standby", mStream->standby()); in standby()
133 if (!mStream) return NO_INIT; in dump()
136 Return<void> ret = mStream->debugDump(hidlHandle); in dump()
142 if (!mStream) return NO_INIT; in start()
143 return processReturn("start", mStream->start()); in start()
147 if (!mStream) return NO_INIT; in stop()
148 return processReturn("stop", mStream->stop()); in stop()
154 Return<void> ret = mStream->createMmapBuffer( in createMmapBuffer()
176 Return<void> ret = mStream->getMmapPosition( in getMmapPosition()
224 StreamOutCallback(const wp<StreamOutHalHidl>& stream) : mStream(stream) {} in StreamOutCallback()
228 sp<StreamOutHalHidl> stream = mStream.promote(); in onWriteReady()
236 sp<StreamOutHalHidl> stream = mStream.promote(); in onDrainReady()
244 sp<StreamOutHalHidl> stream = mStream.promote(); in onError()
252 wp<StreamOutHalHidl> mStream; member
258 : StreamHalHidl(stream.get()), mStream(stream), mWriterClient(0), mEfGroup(nullptr) { in StreamOutHalHidl()
262 if (mStream != 0) { in ~StreamOutHalHidl()
264 processReturn("clearCallback", mStream->clearCallback()); in ~StreamOutHalHidl()
266 processReturn("close", mStream->close()); in ~StreamOutHalHidl()
267 mStream.clear(); in ~StreamOutHalHidl()
277 if (mStream == 0) return NO_INIT; in getFrameSize()
278 return processReturn("getFrameSize", mStream->getFrameSize(), size); in getFrameSize()
282 if (mStream == 0) return NO_INIT; in getLatency()
290 return processReturn("getLatency", mStream->getLatency(), latency); in getLatency()
295 if (mStream == 0) return NO_INIT; in setVolume()
296 return processReturn("setVolume", mStream->setVolume(left, right)); in setVolume()
300 if (mStream == 0) return NO_INIT; in write()
376 Return<void> ret = mStream->prepareForWriting( in prepareForWriting()
423 if (mStream == 0) return NO_INIT; in getRenderPosition()
425 Return<void> ret = mStream->getRenderPosition( in getRenderPosition()
436 if (mStream == 0) return NO_INIT; in getNextWriteTimestamp()
438 Return<void> ret = mStream->getNextWriteTimestamp( in getNextWriteTimestamp()
449 if (mStream == 0) return NO_INIT; in setCallback()
451 "setCallback", mStream->setCallback(new StreamOutCallback(this))); in setCallback()
459 if (mStream == 0) return NO_INIT; in supportsPauseAndResume()
460 Return<void> ret = mStream->supportsPauseAndResume( in supportsPauseAndResume()
469 if (mStream == 0) return NO_INIT; in pause()
470 return processReturn("pause", mStream->pause()); in pause()
474 if (mStream == 0) return NO_INIT; in resume()
475 return processReturn("pause", mStream->resume()); in resume()
479 if (mStream == 0) return NO_INIT; in supportsDrain()
480 return processReturn("supportsDrain", mStream->supportsDrain(), supportsDrain); in supportsDrain()
484 if (mStream == 0) return NO_INIT; in drain()
486 "drain", mStream->drain(earlyNotify ? AudioDrain::EARLY_NOTIFY : AudioDrain::ALL)); in drain()
490 if (mStream == 0) return NO_INIT; in flush()
491 return processReturn("pause", mStream->flush()); in flush()
495 if (mStream == 0) return NO_INIT; in getPresentationPosition()
506 Return<void> ret = mStream->getPresentationPosition( in getPresentationPosition()
542 : StreamHalHidl(stream.get()), mStream(stream), mReaderClient(0), mEfGroup(nullptr) { in StreamInHalHidl()
546 if (mStream != 0) { in ~StreamInHalHidl()
547 processReturn("close", mStream->close()); in ~StreamInHalHidl()
548 mStream.clear(); in ~StreamInHalHidl()
557 if (mStream == 0) return NO_INIT; in getFrameSize()
558 return processReturn("getFrameSize", mStream->getFrameSize(), size); in getFrameSize()
562 if (mStream == 0) return NO_INIT; in setGain()
563 return processReturn("setGain", mStream->setGain(gain)); in setGain()
567 if (mStream == 0) return NO_INIT; in read()
636 Return<void> ret = mStream->prepareForReading( in prepareForReading()
683 if (mStream == 0) return NO_INIT; in getInputFramesLost()
684 return processReturn("getInputFramesLost", mStream->getInputFramesLost(), framesLost); in getInputFramesLost()
688 if (mStream == 0) return NO_INIT; in getCapturePosition()
699 Return<void> ret = mStream->getCapturePosition( in getCapturePosition()