Lines Matching refs:mPlayer
90 p = mPlayer; in disconnect()
91 mPlayer.clear(); in disconnect()
131 p = mPlayer; in attachNewPlayer()
132 mPlayer = player; in attachNewPlayer()
206 if ((mPlayer != NULL) && hasBeenInitialized) { in invoke()
208 return mPlayer->invoke(request, reply); in invoke()
210 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke()
218 if (mPlayer == NULL) { in setMetadataFilter()
221 return mPlayer->setMetadataFilter(filter); in setMetadataFilter()
228 if (mPlayer == NULL) { in getMetadata()
231 return mPlayer->getMetadata(update_only, apply_filter, metadata); in getMetadata()
239 if (mPlayer == 0) return NO_INIT; in setVideoSurfaceTexture()
240 return mPlayer->setVideoSurfaceTexture(bufferProducer); in setVideoSurfaceTexture()
246 if ( (mPlayer != 0) && ( mCurrentState & (MEDIA_PLAYER_INITIALIZED | MEDIA_PLAYER_STOPPED) ) ) { in prepareAsync_l()
248 mPlayer->setParameter(KEY_PARAMETER_AUDIO_ATTRIBUTES, *mAudioAttributesParcel); in prepareAsync_l()
250 mPlayer->setAudioStreamType(mStreamType); in prepareAsync_l()
253 return mPlayer->prepareAsync(); in prepareAsync_l()
255 ALOGE("prepareAsync called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in prepareAsync_l()
306 } else if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_PREPARED | in start()
308 mPlayer->setLooping(mLoop); in start()
309 mPlayer->setVolume(mLeftVolume, mRightVolume); in start()
310 mPlayer->setAuxEffectSendLevel(mSendLevel); in start()
312 ret = mPlayer->start(); in start()
321 ALOGE("start called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in start()
335 if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED | in stop()
337 status_t ret = mPlayer->stop(); in stop()
345 ALOGE("stop called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in stop()
355 if ((mPlayer != 0) && (mCurrentState & MEDIA_PLAYER_STARTED)) { in pause()
356 status_t ret = mPlayer->pause(); in pause()
364 ALOGE("pause called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in pause()
371 if (mPlayer != 0) { in isPlaying()
373 mPlayer->isPlaying(&temp); in isPlaying()
398 if (mPlayer == 0) return INVALID_OPERATION; in setPlaybackSettings()
403 mPlayer->setLooping(mLoop); in setPlaybackSettings()
404 mPlayer->setVolume(mLeftVolume, mRightVolume); in setPlaybackSettings()
405 mPlayer->setAuxEffectSendLevel(mSendLevel); in setPlaybackSettings()
408 status_t err = mPlayer->setPlaybackSettings(rate); in setPlaybackSettings()
424 if (mPlayer == 0) return INVALID_OPERATION; in getPlaybackSettings()
425 return mPlayer->getPlaybackSettings(rate); in getPlaybackSettings()
433 if (mPlayer == 0) return INVALID_OPERATION; in setSyncSettings()
434 return mPlayer->setSyncSettings(sync, videoFpsHint); in setSyncSettings()
441 if (mPlayer == 0) return INVALID_OPERATION; in getSyncSettings()
442 return mPlayer->getSyncSettings(sync, videoFps); in getSyncSettings()
449 if (mPlayer == 0) return INVALID_OPERATION; in getVideoWidth()
458 if (mPlayer == 0) return INVALID_OPERATION; in getVideoHeight()
467 if (mPlayer != 0) { in getCurrentPosition()
473 return mPlayer->getCurrentPosition(msec); in getCurrentPosition()
483 if (mPlayer != 0 && isValidState) { in getDuration_l()
485 status_t ret = mPlayer->getDuration(&durationMs); in getDuration_l()
499 mPlayer.get(), mCurrentState); in getDuration_l()
512 if ((mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED | in seekTo_l()
520 status_t err = mPlayer->getDuration(&durationMs); in seekTo_l()
540 return mPlayer->seekTo(msec); in seekTo_l()
547 ALOGE("Attempt to perform seekTo in wrong state: mPlayer=%p, mCurrentState=%u", mPlayer.get(), in seekTo_l()
567 if (mPlayer != 0) { in reset_l()
568 status_t ret = mPlayer->reset(); in reset_l()
573 mPlayer->disconnect(); in reset_l()
578 mPlayer = 0; in reset_l()
635 if (mPlayer != 0) { in setLooping()
636 return mPlayer->setLooping(loop); in setLooping()
644 if (mPlayer != 0) { in isLooping()
657 if (mPlayer != 0) { in setVolume()
658 return mPlayer->setVolume(leftVolume, rightVolume); in setVolume()
693 if (mPlayer != 0) { in setAuxEffectSendLevel()
694 return mPlayer->setAuxEffectSendLevel(level); in setAuxEffectSendLevel()
703 if (mPlayer == 0 || in attachAuxEffect()
706 ALOGE("attachAuxEffect called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in attachAuxEffect()
710 return mPlayer->attachAuxEffect(effectId); in attachAuxEffect()
749 ALOGV_IF(mPlayer == NULL, "setParameter: no active player"); in setParameter()
753 if (mPlayer != NULL) { in setParameter()
754 status = mPlayer->setParameter(key, request); in setParameter()
763 if (mPlayer != NULL) { in getParameter()
764 return mPlayer->getParameter(key, reply); in getParameter()
776 if ((mPlayer != NULL) || (mCurrentState != MEDIA_PLAYER_IDLE)) in setRetransmitEndpoint()
818 if (!(msg == MEDIA_ERROR && mCurrentState == MEDIA_PLAYER_IDLE) && mPlayer == 0) { in notify()
922 if (mPlayer == NULL) { in setNextMediaPlayer()
932 return mPlayer->setNextPlayer(next == NULL ? NULL : next->mPlayer); in setNextMediaPlayer()