Lines Matching refs:AudioTrack
116 status_t AudioTrack::getMinFrameCount( in getMinFrameCount()
172 bool AudioTrack::isDirectOutputSupported(const audio_config_base_t& config, in isDirectOutputSupported()
193 void AudioTrack::MediaMetrics::gather(const AudioTrack *track) in gather()
225 status_t AudioTrack::getMetrics(mediametrics::Item * &item) in getMetrics()
236 AudioTrack::AudioTrack(const AttributionSourceState& attributionSource) in AudioTrack() function in android::AudioTrack
241 AudioTrack::AudioTrack( in AudioTrack() function in android::AudioTrack
267 class LegacyCallbackWrapper : public AudioTrack::IAudioTrackCallback {
268 const AudioTrack::legacy_callback_t mCallback;
271 LegacyCallbackWrapper(AudioTrack::legacy_callback_t callback, void* user) in LegacyCallbackWrapper()
273 size_t onMoreData(const AudioTrack::Buffer & buffer) override { in onMoreData()
274 AudioTrack::Buffer copy = buffer; in onMoreData()
275 mCallback(AudioTrack::EVENT_MORE_DATA, mData, static_cast<void*>(©)); in onMoreData()
279 mCallback(AudioTrack::EVENT_UNDERRUN, mData, nullptr); in onUnderrun()
282 mCallback(AudioTrack::EVENT_LOOP_END, mData, &loopsRemaining); in onLoopEnd()
285 mCallback(AudioTrack::EVENT_MARKER, mData, &markerPosition); in onMarker()
288 mCallback(AudioTrack::EVENT_NEW_POS, mData, &newPos); in onNewPos()
291 mCallback(AudioTrack::EVENT_BUFFER_END, mData, nullptr); in onBufferEnd()
294 mCallback(AudioTrack::EVENT_NEW_IAUDIOTRACK, mData, nullptr); in onNewIAudioTrack()
297 mCallback(AudioTrack::EVENT_STREAM_END, mData, nullptr); in onStreamEnd()
299 size_t onCanWriteMoreData(const AudioTrack::Buffer & buffer) override { in onCanWriteMoreData()
300 AudioTrack::Buffer copy = buffer; in onCanWriteMoreData()
301 mCallback(AudioTrack::EVENT_CAN_WRITE_MORE_DATA, mData, static_cast<void*>(©)); in onCanWriteMoreData()
306 AudioTrack::AudioTrack( in AudioTrack() function in android::AudioTrack
339 void AudioTrack::onFirstRef() { in onFirstRef()
346 AudioTrack::~AudioTrack() in ~AudioTrack()
377 void AudioTrack::stopAndJoinCallbacks() { in stopAndJoinCallbacks()
397 status_t AudioTrack::set( in set()
710 status_t AudioTrack::set( in set()
749 status_t AudioTrack::start() in start()
889 void AudioTrack::stop() in stop()
948 bool AudioTrack::stopped() const in stopped()
954 void AudioTrack::flush() in flush()
976 void AudioTrack::flush_l() in flush_l()
995 bool AudioTrack::pauseAndWait(const std::chrono::milliseconds& timeout) in pauseAndWait()
1050 void AudioTrack::pause() in pause()
1094 status_t AudioTrack::setVolume(float left, float right) in setVolume()
1120 status_t AudioTrack::setVolume(float volume) in setVolume()
1125 status_t AudioTrack::setAuxEffectSendLevel(float level) in setAuxEffectSendLevel()
1139 void AudioTrack::getAuxEffectSendLevel(float* level) const in getAuxEffectSendLevel()
1146 status_t AudioTrack::setSampleRate(uint32_t rate) in setSampleRate()
1187 uint32_t AudioTrack::getSampleRate() const in getSampleRate()
1206 uint32_t AudioTrack::getOriginalSampleRate() const in getOriginalSampleRate()
1211 uint32_t AudioTrack::getHalSampleRate() const in getHalSampleRate()
1216 uint32_t AudioTrack::getHalChannelCount() const in getHalChannelCount()
1221 audio_format_t AudioTrack::getHalFormat() const in getHalFormat()
1226 status_t AudioTrack::setDualMonoMode(audio_dual_mono_mode_t mode) in setDualMonoMode()
1232 status_t AudioTrack::setDualMonoMode_l(audio_dual_mono_mode_t mode) in setDualMonoMode_l()
1241 status_t AudioTrack::getDualMonoMode(audio_dual_mono_mode_t* mode) const in getDualMonoMode()
1253 status_t AudioTrack::setAudioDescriptionMixLevel(float leveldB) in setAudioDescriptionMixLevel()
1259 status_t AudioTrack::setAudioDescriptionMixLevel_l(float leveldB) in setAudioDescriptionMixLevel_l()
1267 status_t AudioTrack::getAudioDescriptionMixLevel(float* leveldB) const in getAudioDescriptionMixLevel()
1273 status_t AudioTrack::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate()
1355 const AudioPlaybackRate& AudioTrack::getPlaybackRate() in getPlaybackRate()
1370 ssize_t AudioTrack::getBufferSizeInFrames() in getBufferSizeInFrames()
1380 status_t AudioTrack::getBufferDurationInUs(int64_t *duration) in getBufferDurationInUs()
1398 ssize_t AudioTrack::setBufferSizeInFrames(size_t bufferSizeInFrames) in setBufferSizeInFrames()
1417 ssize_t AudioTrack::getStartThresholdInFrames() const in getStartThresholdInFrames()
1426 ssize_t AudioTrack::setStartThresholdInFrames(size_t startThresholdInFrames) in setStartThresholdInFrames()
1457 status_t AudioTrack::setLoop(uint32_t loopStart, uint32_t loopEnd, int loopCount) in setLoop()
1481 void AudioTrack::setLoop_l(uint32_t loopStart, uint32_t loopEnd, int loopCount) in setLoop_l()
1494 status_t AudioTrack::setMarkerPosition(uint32_t marker) in setMarkerPosition()
1512 status_t AudioTrack::getMarkerPosition(uint32_t *marker) const in getMarkerPosition()
1527 status_t AudioTrack::setPositionUpdatePeriod(uint32_t updatePeriod) in setPositionUpdatePeriod()
1545 status_t AudioTrack::getPositionUpdatePeriod(uint32_t *updatePeriod) const in getPositionUpdatePeriod()
1560 status_t AudioTrack::setPosition(uint32_t position) in setPosition()
1587 status_t AudioTrack::getPosition(uint32_t *position) in getPosition()
1633 status_t AudioTrack::getBufferPosition(uint32_t *position) in getBufferPosition()
1647 status_t AudioTrack::reload() in reload()
1675 audio_io_handle_t AudioTrack::getOutput() const in getOutput()
1681 status_t AudioTrack::setOutputDevice(audio_port_handle_t deviceId) { in setOutputDevice()
1720 audio_port_handle_t AudioTrack::getOutputDevice() { in getOutputDevice()
1726 void AudioTrack::updateRoutedDeviceId_l() in updateRoutedDeviceId_l()
1741 audio_port_handle_t AudioTrack::getRoutedDeviceId() { in getRoutedDeviceId()
1747 status_t AudioTrack::attachAuxEffect(int effectId) in attachAuxEffect()
1758 audio_stream_type_t AudioTrack::streamType() const in streamType()
1763 uint32_t AudioTrack::latency() in latency()
1773 void AudioTrack::updateLatency_l() in updateLatency_l()
1786 const char * AudioTrack::convertTransferToText(transfer_type transferType) { in convertTransferToText()
1799 status_t AudioTrack::createTrack_l() in createTrack_l()
2113 void AudioTrack::reportError(status_t status, const char *event, const char *message) const in reportError()
2140 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, int32_t waitCount, size_t *nonContig) in obtainBuffer()
2176 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer()
2251 void AudioTrack::releaseBuffer(const Buffer* audioBuffer) in releaseBuffer()
2289 void AudioTrack::restartIfDisabled() in restartIfDisabled()
2303 ssize_t AudioTrack::write(const void* buffer, size_t userSize, bool blocking) in write()
2372 nsecs_t AudioTrack::processAudioBuffer() in processAudioBuffer()
2832 status_t AudioTrack::restoreTrack_l(const char *from, bool forceRestore) in restoreTrack_l()
2975 Modulo<uint32_t> AudioTrack::updateAndGetPosition_l() in updateAndGetPosition_l()
2998 bool AudioTrack::isSampleRateSpeedAllowed_l(uint32_t sampleRate, float speed) in isSampleRateSpeedAllowed_l()
3019 status_t AudioTrack::setParameters(const String8& keyValuePairs) in setParameters()
3027 status_t AudioTrack::selectPresentation(int presentationId, int programId) in selectPresentation()
3041 VolumeShaper::Status AudioTrack::applyVolumeShaper( in applyVolumeShaper()
3086 sp<VolumeShaper::State> AudioTrack::getVolumeShaperState(int id) in getVolumeShaperState()
3108 status_t AudioTrack::getTimestamp(ExtendedTimestamp *timestamp) in getTimestamp()
3117 status_t AudioTrack::getTimestamp_l(ExtendedTimestamp *timestamp) in getTimestamp_l()
3150 status_t AudioTrack::getTimestamp(AudioTimestamp& timestamp) in getTimestamp()
3156 status_t AudioTrack::getTimestamp_l(AudioTimestamp& timestamp) in getTimestamp_l()
3484 String8 AudioTrack::getParameters(const String8& keys) in getParameters()
3494 bool AudioTrack::isOffloaded() const in isOffloaded()
3500 bool AudioTrack::isDirect() const in isDirect()
3506 bool AudioTrack::isOffloadedOrDirect() const in isOffloadedOrDirect()
3513 status_t AudioTrack::dump(int fd, const Vector<String16>& args __unused) const in dump()
3540 uint32_t AudioTrack::getUnderrunCount() const in getUnderrunCount()
3546 uint32_t AudioTrack::getUnderrunCount_l() const in getUnderrunCount_l()
3551 uint32_t AudioTrack::getUnderrunFrames() const in getUnderrunFrames()
3557 void AudioTrack::setLogSessionId(const char *logSessionId) in setLogSessionId()
3570 void AudioTrack::setPlayerIId(int playerIId) in setPlayerIId()
3583 void AudioTrack::triggerPortIdUpdate_l() { in triggerPortIdUpdate_l()
3604 status_t AudioTrack::addAudioDeviceCallback(const sp<AudioSystem::AudioDeviceCallback>& callback) in addAudioDeviceCallback()
3628 status_t AudioTrack::removeAudioDeviceCallback( in removeAudioDeviceCallback()
3648 void AudioTrack::onAudioDeviceUpdate(audio_io_handle_t audioIo, in onAudioDeviceUpdate()
3670 status_t AudioTrack::pendingDuration(int32_t *msec, ExtendedTimestamp::Location location) in pendingDuration()
3720 bool AudioTrack::hasStarted() in hasStarted()
3793 void AudioTrack::DeathNotifier::binderDied(const wp<IBinder>& who __unused) in binderDied()
3795 sp<AudioTrack> audioTrack = mAudioTrack.promote(); in binderDied()
3804 AudioTrack::AudioTrackThread::AudioTrackThread(AudioTrack& receiver) in AudioTrackThread()
3811 AudioTrack::AudioTrackThread::~AudioTrackThread() in ~AudioTrackThread()
3815 bool AudioTrack::AudioTrackThread::threadLoop() in threadLoop()
3866 void AudioTrack::AudioTrackThread::requestExit() in requestExit()
3873 void AudioTrack::AudioTrackThread::pause() in pause()
3879 void AudioTrack::AudioTrackThread::resume() in resume()
3890 void AudioTrack::AudioTrackThread::wake() in wake()
3905 void AudioTrack::AudioTrackThread::pauseInternal(nsecs_t ns) in pauseInternal()
3912 binder::Status AudioTrack::AudioTrackCallback::onCodecFormatChanged( in onCodecFormatChanged()
3925 void AudioTrack::AudioTrackCallback::setAudioTrackCallback( in setAudioTrackCallback()