Lines Matching refs:mPlayer
88 p = mPlayer; in disconnect()
89 mPlayer.clear(); in disconnect()
131 p = mPlayer; in attachNewPlayer()
132 mPlayer = player; in attachNewPlayer()
222 if ((mPlayer != NULL) && hasBeenInitialized) { in invoke()
224 return mPlayer->invoke(request, reply); in invoke()
226 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke()
234 if (mPlayer == NULL) { in setMetadataFilter()
237 return mPlayer->setMetadataFilter(filter); in setMetadataFilter()
244 if (mPlayer == NULL) { in getMetadata()
247 return mPlayer->getMetadata(update_only, apply_filter, metadata); in getMetadata()
255 if (mPlayer == 0) return NO_INIT; in setVideoSurfaceTexture()
256 return mPlayer->setVideoSurfaceTexture(bufferProducer); in setVideoSurfaceTexture()
264 if (mPlayer == 0) { in getBufferingSettings()
267 return mPlayer->getBufferingSettings(buffering); in getBufferingSettings()
275 if (mPlayer == 0) { in setBufferingSettings()
278 return mPlayer->setBufferingSettings(buffering); in setBufferingSettings()
284 if ( (mPlayer != 0) && ( mCurrentState & (MEDIA_PLAYER_INITIALIZED | MEDIA_PLAYER_STOPPED) ) ) { in prepareAsync_l()
286 mPlayer->setParameter(KEY_PARAMETER_AUDIO_ATTRIBUTES, *mAudioAttributesParcel); in prepareAsync_l()
288 mPlayer->setAudioStreamType(mStreamType); in prepareAsync_l()
291 return mPlayer->prepareAsync(); in prepareAsync_l()
293 ALOGE("prepareAsync called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in prepareAsync_l()
344 } else if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_PREPARED | in start()
346 mPlayer->setLooping(mLoop); in start()
347 mPlayer->setVolume(mLeftVolume, mRightVolume); in start()
348 mPlayer->setAuxEffectSendLevel(mSendLevel); in start()
350 ret = mPlayer->start(); in start()
359 ALOGE("start called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in start()
373 if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED | in stop()
375 status_t ret = mPlayer->stop(); in stop()
383 ALOGE("stop called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in stop()
393 if ((mPlayer != 0) && (mCurrentState & MEDIA_PLAYER_STARTED)) { in pause()
394 status_t ret = mPlayer->pause(); in pause()
402 ALOGE("pause called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in pause()
409 if (mPlayer != 0) { in isPlaying()
411 mPlayer->isPlaying(&temp); in isPlaying()
436 if (mPlayer == 0 || (mCurrentState & MEDIA_PLAYER_STOPPED)) { in setPlaybackSettings()
443 mPlayer->setLooping(mLoop); in setPlaybackSettings()
444 mPlayer->setVolume(mLeftVolume, mRightVolume); in setPlaybackSettings()
445 mPlayer->setAuxEffectSendLevel(mSendLevel); in setPlaybackSettings()
448 status_t err = mPlayer->setPlaybackSettings(rate); in setPlaybackSettings()
464 if (mPlayer == 0) return INVALID_OPERATION; in getPlaybackSettings()
465 return mPlayer->getPlaybackSettings(rate); in getPlaybackSettings()
473 if (mPlayer == 0) return INVALID_OPERATION; in setSyncSettings()
474 return mPlayer->setSyncSettings(sync, videoFpsHint); in setSyncSettings()
481 if (mPlayer == 0) return INVALID_OPERATION; in getSyncSettings()
482 return mPlayer->getSyncSettings(sync, videoFps); in getSyncSettings()
489 if (mPlayer == 0) return INVALID_OPERATION; in getVideoWidth()
498 if (mPlayer == 0) return INVALID_OPERATION; in getVideoHeight()
507 if (mPlayer != 0) { in getCurrentPosition()
513 return mPlayer->getCurrentPosition(msec); in getCurrentPosition()
523 if (mPlayer != 0 && isValidState) { in getDuration_l()
525 status_t ret = mPlayer->getDuration(&durationMs); in getDuration_l()
539 mPlayer.get(), mCurrentState); in getDuration_l()
552 if ((mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED | in seekTo_l()
560 status_t err = mPlayer->getDuration(&durationMs); in seekTo_l()
582 return mPlayer->seekTo(msec, mode); in seekTo_l()
589 ALOGE("Attempt to perform seekTo in wrong state: mPlayer=%p, mCurrentState=%u", mPlayer.get(), in seekTo_l()
607 if (mPlayer != 0) { in notifyAt()
608 return mPlayer->notifyAt(mediaTimeUs); in notifyAt()
618 if (mPlayer != 0) { in reset_l()
619 status_t ret = mPlayer->reset(); in reset_l()
624 mPlayer->disconnect(); in reset_l()
629 mPlayer = 0; in reset_l()
690 if (mPlayer != 0) { in setLooping()
691 return mPlayer->setLooping(loop); in setLooping()
699 if (mPlayer != 0) { in isLooping()
712 if (mPlayer != 0) { in setVolume()
713 return mPlayer->setVolume(leftVolume, rightVolume); in setVolume()
748 if (mPlayer != 0) { in setAuxEffectSendLevel()
749 return mPlayer->setAuxEffectSendLevel(level); in setAuxEffectSendLevel()
758 if (mPlayer == 0 || in attachAuxEffect()
761 ALOGE("attachAuxEffect called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in attachAuxEffect()
765 return mPlayer->attachAuxEffect(effectId); in attachAuxEffect()
804 ALOGV_IF(mPlayer == NULL, "setParameter: no active player"); in setParameter()
808 if (mPlayer != NULL) { in setParameter()
809 status = mPlayer->setParameter(key, request); in setParameter()
818 if (mPlayer != NULL) { in getParameter()
819 status_t status = mPlayer->getParameter(key, reply); in getParameter()
835 if ((mPlayer != NULL) || (mCurrentState != MEDIA_PLAYER_IDLE)) in setRetransmitEndpoint()
877 if (!(msg == MEDIA_ERROR && mCurrentState == MEDIA_PLAYER_IDLE) && mPlayer == 0) { in notify()
995 if (mPlayer == NULL) { in setNextMediaPlayer()
1005 return mPlayer->setNextPlayer(next == NULL ? NULL : next->mPlayer); in setNextMediaPlayer()
1013 if (mPlayer == nullptr) { in applyVolumeShaper()
1016 VolumeShaper::Status status = mPlayer->applyVolumeShaper(configuration, operation); in applyVolumeShaper()
1023 if (mPlayer == nullptr) { in getVolumeShaperState()
1026 return mPlayer->getVolumeShaperState(id); in getVolumeShaperState()
1036 if (mPlayer == NULL) { in prepareDrm()
1055 status_t status = mPlayer->prepareDrm(uuid, drmSessionId); in prepareDrm()
1067 if (mPlayer == NULL) { in releaseDrm()
1080 status_t status = mPlayer->releaseDrm(); in releaseDrm()
1096 if (mPlayer == NULL) { in setOutputDevice()
1100 return mPlayer->setOutputDevice(deviceId); in setOutputDevice()
1106 if (mPlayer == NULL) { in getRoutedDeviceId()
1111 status_t status = mPlayer->getRoutedDeviceId(&deviceId); in getRoutedDeviceId()
1121 if (mPlayer == NULL) { in enableAudioDeviceCallback()
1125 return mPlayer->enableAudioDeviceCallback(enabled); in enableAudioDeviceCallback()