• Home
  • Raw
  • Download

Lines Matching refs:mCurrentState

62     mCurrentState = MEDIA_PLAYER_IDLE;  in MediaPlayer()
129 if ( !( (mCurrentState & MEDIA_PLAYER_IDLE) || in attachNewPlayer()
130 (mCurrentState == MEDIA_PLAYER_STATE_ERROR ) ) ) { in attachNewPlayer()
131 ALOGE("attachNewPlayer called in state %d", mCurrentState); in attachNewPlayer()
139 mCurrentState = MEDIA_PLAYER_INITIALIZED; in attachNewPlayer()
211 (mCurrentState != MEDIA_PLAYER_STATE_ERROR) && in invoke()
212 ((mCurrentState & MEDIA_PLAYER_IDLE) != MEDIA_PLAYER_IDLE); in invoke()
217 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke()
291 if ( (mPlayer != 0) && ( mCurrentState & (MEDIA_PLAYER_INITIALIZED | MEDIA_PLAYER_STOPPED) ) ) { in prepareAsync_l()
297 mCurrentState = MEDIA_PLAYER_PREPARING; in prepareAsync_l()
300 ALOGE("prepareAsync called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in prepareAsync_l()
349 if (mCurrentState & MEDIA_PLAYER_STARTED) { in start()
351 } else if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_PREPARED | in start()
356 mCurrentState = MEDIA_PLAYER_STARTED; in start()
359 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in start()
361 if (mCurrentState == MEDIA_PLAYER_PLAYBACK_COMPLETE) { in start()
366 ALOGE("start called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in start()
379 if (mCurrentState & MEDIA_PLAYER_STOPPED) return NO_ERROR; in stop()
380 if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED | in stop()
384 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in stop()
386 mCurrentState = MEDIA_PLAYER_STOPPED; in stop()
390 ALOGE("stop called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in stop()
398 if (mCurrentState & (MEDIA_PLAYER_PAUSED|MEDIA_PLAYER_PLAYBACK_COMPLETE)) in pause()
400 if ((mPlayer != 0) && (mCurrentState & MEDIA_PLAYER_STARTED)) { in pause()
403 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in pause()
405 mCurrentState = MEDIA_PLAYER_PAUSED; in pause()
409 ALOGE("pause called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in pause()
420 if ((mCurrentState & MEDIA_PLAYER_STARTED) && ! temp) { in isPlaying()
422 mCurrentState = MEDIA_PLAYER_PAUSED; in isPlaying()
423 } else if ((mCurrentState & MEDIA_PLAYER_PAUSED) && temp) { in isPlaying()
425 mCurrentState = MEDIA_PLAYER_STARTED; in isPlaying()
443 if (mPlayer == 0 || (mCurrentState & MEDIA_PLAYER_STOPPED)) { in setPlaybackSettings()
447 if (rate.mSpeed != 0.f && !(mCurrentState & MEDIA_PLAYER_STARTED) in setPlaybackSettings()
448 && (mCurrentState & (MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_PAUSED in setPlaybackSettings()
457 if (rate.mSpeed == 0.f && mCurrentState == MEDIA_PLAYER_STARTED) { in setPlaybackSettings()
458 mCurrentState = MEDIA_PLAYER_PAUSED; in setPlaybackSettings()
460 && (mCurrentState & (MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_PAUSED in setPlaybackSettings()
462 mCurrentState = MEDIA_PLAYER_STARTED; in setPlaybackSettings()
528 bool isValidState = (mCurrentState & (MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_STARTED | in getDuration_l()
546 mPlayer.get(), mCurrentState); in getDuration_l()
559 if ((mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED | in seekTo_l()
597 mCurrentState); in seekTo_l()
614 if (mCurrentState == MEDIA_PLAYER_IDLE) return NO_ERROR; in reset_l()
620 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in reset_l()
623 mCurrentState = MEDIA_PLAYER_IDLE; in reset_l()
661 if (mCurrentState & ( MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_STARTED | in setAudioStreamType()
664 ALOGE("setAudioStream called in state %d", mCurrentState); in setAudioStreamType()
717 if (!(mCurrentState & MEDIA_PLAYER_IDLE)) { in setAudioSessionId()
718 ALOGE("setAudioSessionId called in state %d", mCurrentState); in setAudioSessionId()
754 (mCurrentState & MEDIA_PLAYER_IDLE) || in attachAuxEffect()
755 (mCurrentState == MEDIA_PLAYER_STATE_ERROR )) { in attachAuxEffect()
756 ALOGE("attachAuxEffect called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in attachAuxEffect()
768 if (mCurrentState & ( MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_STARTED | in checkStateForKeySet_l()
771 ALOGE("trying to set audio attributes called in state %d", mCurrentState); in checkStateForKeySet_l()
830 if ((mPlayer != NULL) || (mCurrentState != MEDIA_PLAYER_IDLE)) in setRetransmitEndpoint()
872 if (!(msg == MEDIA_ERROR && mCurrentState == MEDIA_PLAYER_IDLE) && mPlayer == 0) { in notify()
883 mCurrentState = MEDIA_PLAYER_PREPARED; in notify()
896 if (mCurrentState == MEDIA_PLAYER_IDLE) { in notify()
900 mCurrentState = MEDIA_PLAYER_PLAYBACK_COMPLETE; in notify()
908 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in notify()
985 if (next != NULL && !(next->mCurrentState & in setNextMediaPlayer()
1030 if (!(mCurrentState & (MEDIA_PLAYER_PREPARING | MEDIA_PLAYER_PREPARED))) { in prepareDrm()
1031 ALOGE("prepareDrm is called in the wrong state (%d).", mCurrentState); in prepareDrm()
1058 if (mCurrentState & (MEDIA_PLAYER_STARTED | in releaseDrm()
1062 ALOGE("releaseDrm Unexpected state %d. Can only be called in stopped/idle.", mCurrentState); in releaseDrm()