• Home
  • Raw
  • Download

Lines Matching refs:mCurrentState

57     mCurrentState = MEDIA_PLAYER_IDLE;  in MediaPlayer()
124 if ( !( (mCurrentState & MEDIA_PLAYER_IDLE) || in attachNewPlayer()
125 (mCurrentState == MEDIA_PLAYER_STATE_ERROR ) ) ) { in attachNewPlayer()
126 ALOGE("attachNewPlayer called in state %d", mCurrentState); in attachNewPlayer()
134 mCurrentState = MEDIA_PLAYER_INITIALIZED; in attachNewPlayer()
220 (mCurrentState != MEDIA_PLAYER_STATE_ERROR) && in invoke()
221 ((mCurrentState & MEDIA_PLAYER_IDLE) != MEDIA_PLAYER_IDLE); in invoke()
226 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke()
284 if ( (mPlayer != 0) && ( mCurrentState & (MEDIA_PLAYER_INITIALIZED | MEDIA_PLAYER_STOPPED) ) ) { in prepareAsync_l()
290 mCurrentState = MEDIA_PLAYER_PREPARING; in prepareAsync_l()
293 ALOGE("prepareAsync called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in prepareAsync_l()
342 if (mCurrentState & MEDIA_PLAYER_STARTED) { in start()
344 } else if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_PREPARED | in start()
349 mCurrentState = MEDIA_PLAYER_STARTED; in start()
352 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in start()
354 if (mCurrentState == MEDIA_PLAYER_PLAYBACK_COMPLETE) { in start()
359 ALOGE("start called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in start()
372 if (mCurrentState & MEDIA_PLAYER_STOPPED) return NO_ERROR; in stop()
373 if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED | in stop()
377 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in stop()
379 mCurrentState = MEDIA_PLAYER_STOPPED; in stop()
383 ALOGE("stop called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in stop()
391 if (mCurrentState & (MEDIA_PLAYER_PAUSED|MEDIA_PLAYER_PLAYBACK_COMPLETE)) in pause()
393 if ((mPlayer != 0) && (mCurrentState & MEDIA_PLAYER_STARTED)) { in pause()
396 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in pause()
398 mCurrentState = MEDIA_PLAYER_PAUSED; in pause()
402 ALOGE("pause called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in pause()
413 if ((mCurrentState & MEDIA_PLAYER_STARTED) && ! temp) { in isPlaying()
415 mCurrentState = MEDIA_PLAYER_PAUSED; in isPlaying()
416 } else if ((mCurrentState & MEDIA_PLAYER_PAUSED) && temp) { in isPlaying()
418 mCurrentState = MEDIA_PLAYER_STARTED; in isPlaying()
436 if (mPlayer == 0 || (mCurrentState & MEDIA_PLAYER_STOPPED)) { in setPlaybackSettings()
440 if (rate.mSpeed != 0.f && !(mCurrentState & MEDIA_PLAYER_STARTED) in setPlaybackSettings()
441 && (mCurrentState & (MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_PAUSED in setPlaybackSettings()
450 if (rate.mSpeed == 0.f && mCurrentState == MEDIA_PLAYER_STARTED) { in setPlaybackSettings()
451 mCurrentState = MEDIA_PLAYER_PAUSED; in setPlaybackSettings()
453 && (mCurrentState & (MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_PAUSED in setPlaybackSettings()
455 mCurrentState = MEDIA_PLAYER_STARTED; in setPlaybackSettings()
521 bool isValidState = (mCurrentState & (MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_STARTED | in getDuration_l()
539 mPlayer.get(), mCurrentState); in getDuration_l()
552 if ((mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED | in seekTo_l()
590 mCurrentState); in seekTo_l()
616 if (mCurrentState == MEDIA_PLAYER_IDLE) return NO_ERROR; in reset_l()
622 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in reset_l()
625 mCurrentState = MEDIA_PLAYER_IDLE; in reset_l()
666 if (mCurrentState & ( MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_STARTED | in setAudioStreamType()
669 ALOGE("setAudioStream called in state %d", mCurrentState); in setAudioStreamType()
722 if (!(mCurrentState & MEDIA_PLAYER_IDLE)) { in setAudioSessionId()
723 ALOGE("setAudioSessionId called in state %d", mCurrentState); in setAudioSessionId()
759 (mCurrentState & MEDIA_PLAYER_IDLE) || in attachAuxEffect()
760 (mCurrentState == MEDIA_PLAYER_STATE_ERROR )) { in attachAuxEffect()
761 ALOGE("attachAuxEffect called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in attachAuxEffect()
773 if (mCurrentState & ( MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_STARTED | in checkStateForKeySet_l()
776 ALOGE("trying to set audio attributes called in state %d", mCurrentState); in checkStateForKeySet_l()
835 if ((mPlayer != NULL) || (mCurrentState != MEDIA_PLAYER_IDLE)) in setRetransmitEndpoint()
877 if (!(msg == MEDIA_ERROR && mCurrentState == MEDIA_PLAYER_IDLE) && mPlayer == 0) { in notify()
888 mCurrentState = MEDIA_PLAYER_PREPARED; in notify()
901 if (mCurrentState == MEDIA_PLAYER_IDLE) { in notify()
905 mCurrentState = MEDIA_PLAYER_PLAYBACK_COMPLETE; in notify()
913 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in notify()
996 if (next != NULL && !(next->mCurrentState & in setNextMediaPlayer()
1041 if (!(mCurrentState & (MEDIA_PLAYER_PREPARING | MEDIA_PLAYER_PREPARED))) { in prepareDrm()
1042 ALOGE("prepareDrm is called in the wrong state (%d).", mCurrentState); in prepareDrm()
1069 if (mCurrentState & (MEDIA_PLAYER_STARTED | in releaseDrm()
1073 ALOGE("releaseDrm Unexpected state %d. Can only be called in stopped/idle.", mCurrentState); in releaseDrm()