• Home
  • Raw
  • Download

Lines Matching refs:mPlayer

93         p = mPlayer;  in disconnect()
94 mPlayer.clear(); in disconnect()
136 p = mPlayer; in attachNewPlayer()
137 mPlayer = player; in attachNewPlayer()
227 if ((mPlayer != NULL) && hasBeenInitialized) { in invoke()
229 return mPlayer->invoke(request, reply); in invoke()
231 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke()
239 if (mPlayer == NULL) { in setMetadataFilter()
242 return mPlayer->setMetadataFilter(filter); in setMetadataFilter()
249 if (mPlayer == NULL) { in getMetadata()
252 return mPlayer->getMetadata(update_only, apply_filter, metadata); in getMetadata()
260 if (mPlayer == 0) return NO_INIT; in setVideoSurfaceTexture()
261 return mPlayer->setVideoSurfaceTexture(bufferProducer); in setVideoSurfaceTexture()
269 if (mPlayer == 0) { in getBufferingSettings()
272 return mPlayer->getBufferingSettings(buffering); in getBufferingSettings()
280 if (mPlayer == 0) { in setBufferingSettings()
283 return mPlayer->setBufferingSettings(buffering); in setBufferingSettings()
289 if ( (mPlayer != 0) && ( mCurrentState & (MEDIA_PLAYER_INITIALIZED | MEDIA_PLAYER_STOPPED) ) ) { in prepareAsync_l()
291 mPlayer->setParameter(KEY_PARAMETER_AUDIO_ATTRIBUTES, *mAudioAttributesParcel); in prepareAsync_l()
293 mPlayer->setAudioStreamType(mStreamType); in prepareAsync_l()
296 return mPlayer->prepareAsync(); in prepareAsync_l()
298 ALOGE("prepareAsync called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in prepareAsync_l()
349 } else if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_PREPARED | in start()
351 mPlayer->setLooping(mLoop); in start()
352 mPlayer->setVolume(mLeftVolume, mRightVolume); in start()
353 mPlayer->setAuxEffectSendLevel(mSendLevel); in start()
355 ret = mPlayer->start(); in start()
364 ALOGE("start called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in start()
378 if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED | in stop()
380 status_t ret = mPlayer->stop(); in stop()
388 ALOGE("stop called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in stop()
398 if ((mPlayer != 0) && (mCurrentState & MEDIA_PLAYER_STARTED)) { in pause()
399 status_t ret = mPlayer->pause(); in pause()
407 ALOGE("pause called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in pause()
414 if (mPlayer != 0) { in isPlaying()
416 mPlayer->isPlaying(&temp); in isPlaying()
441 if (mPlayer == 0 || (mCurrentState & MEDIA_PLAYER_STOPPED)) { in setPlaybackSettings()
448 mPlayer->setLooping(mLoop); in setPlaybackSettings()
449 mPlayer->setVolume(mLeftVolume, mRightVolume); in setPlaybackSettings()
450 mPlayer->setAuxEffectSendLevel(mSendLevel); in setPlaybackSettings()
453 status_t err = mPlayer->setPlaybackSettings(rate); in setPlaybackSettings()
469 if (mPlayer == 0) return INVALID_OPERATION; in getPlaybackSettings()
470 return mPlayer->getPlaybackSettings(rate); in getPlaybackSettings()
478 if (mPlayer == 0) return INVALID_OPERATION; in setSyncSettings()
479 return mPlayer->setSyncSettings(sync, videoFpsHint); in setSyncSettings()
486 if (mPlayer == 0) return INVALID_OPERATION; in getSyncSettings()
487 return mPlayer->getSyncSettings(sync, videoFps); in getSyncSettings()
494 if (mPlayer == 0) return INVALID_OPERATION; in getVideoWidth()
503 if (mPlayer == 0) return INVALID_OPERATION; in getVideoHeight()
512 if (mPlayer != 0) { in getCurrentPosition()
518 return mPlayer->getCurrentPosition(msec); in getCurrentPosition()
528 if (mPlayer != 0 && isValidState) { in getDuration_l()
530 status_t ret = mPlayer->getDuration(&durationMs); in getDuration_l()
544 mPlayer.get(), mCurrentState); in getDuration_l()
557 if ((mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED | in seekTo_l()
565 status_t err = mPlayer->getDuration(&durationMs); in seekTo_l()
587 return mPlayer->seekTo(msec, mode); in seekTo_l()
594 ALOGE("Attempt to perform seekTo in wrong state: mPlayer=%p, mCurrentState=%u", mPlayer.get(), in seekTo_l()
612 if (mPlayer != 0) { in notifyAt()
613 return mPlayer->notifyAt(mediaTimeUs); in notifyAt()
623 if (mPlayer != 0) { in reset_l()
624 status_t ret = mPlayer->reset(); in reset_l()
629 mPlayer->disconnect(); in reset_l()
634 mPlayer = 0; in reset_l()
695 if (mPlayer != 0) { in setLooping()
696 return mPlayer->setLooping(loop); in setLooping()
704 if (mPlayer != 0) { in isLooping()
717 if (mPlayer != 0) { in setVolume()
718 return mPlayer->setVolume(leftVolume, rightVolume); in setVolume()
753 if (mPlayer != 0) { in setAuxEffectSendLevel()
754 return mPlayer->setAuxEffectSendLevel(level); in setAuxEffectSendLevel()
763 if (mPlayer == 0 || in attachAuxEffect()
766 ALOGE("attachAuxEffect called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in attachAuxEffect()
770 return mPlayer->attachAuxEffect(effectId); in attachAuxEffect()
809 ALOGV_IF(mPlayer == NULL, "setParameter: no active player"); in setParameter()
813 if (mPlayer != NULL) { in setParameter()
814 status = mPlayer->setParameter(key, request); in setParameter()
823 if (mPlayer != NULL) { in getParameter()
824 status_t status = mPlayer->getParameter(key, reply); in getParameter()
840 if ((mPlayer != NULL) || (mCurrentState != MEDIA_PLAYER_IDLE)) in setRetransmitEndpoint()
882 if (!(msg == MEDIA_ERROR && mCurrentState == MEDIA_PLAYER_IDLE) && mPlayer == 0) { in notify()
1000 if (mPlayer == NULL) { in setNextMediaPlayer()
1010 return mPlayer->setNextPlayer(next == NULL ? NULL : next->mPlayer); in setNextMediaPlayer()
1018 if (mPlayer == nullptr) { in applyVolumeShaper()
1021 VolumeShaper::Status status = mPlayer->applyVolumeShaper(configuration, operation); in applyVolumeShaper()
1028 if (mPlayer == nullptr) { in getVolumeShaperState()
1031 return mPlayer->getVolumeShaperState(id); in getVolumeShaperState()
1041 if (mPlayer == NULL) { in prepareDrm()
1060 status_t status = mPlayer->prepareDrm(uuid, drmSessionId); in prepareDrm()
1072 if (mPlayer == NULL) { in releaseDrm()
1085 status_t status = mPlayer->releaseDrm(); in releaseDrm()
1101 if (mPlayer == NULL) { in setOutputDevice()
1105 return mPlayer->setOutputDevice(deviceId); in setOutputDevice()
1111 if (mPlayer == NULL) { in getRoutedDeviceId()
1116 status_t status = mPlayer->getRoutedDeviceId(&deviceId); in getRoutedDeviceId()
1126 if (mPlayer == NULL) { in enableAudioDeviceCallback()
1130 return mPlayer->enableAudioDeviceCallback(enabled); in enableAudioDeviceCallback()