Lines Matching refs:mCurrentState

57     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()
225 (mCurrentState != MEDIA_PLAYER_STATE_ERROR) && in invoke()
226 ((mCurrentState & MEDIA_PLAYER_IDLE) != MEDIA_PLAYER_IDLE); in invoke()
231 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke()
289 if ( (mPlayer != 0) && ( mCurrentState & (MEDIA_PLAYER_INITIALIZED | MEDIA_PLAYER_STOPPED) ) ) { in prepareAsync_l()
295 mCurrentState = MEDIA_PLAYER_PREPARING; in prepareAsync_l()
298 ALOGE("prepareAsync called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in prepareAsync_l()
347 if (mCurrentState & MEDIA_PLAYER_STARTED) { in start()
349 } else if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_PREPARED | in start()
354 mCurrentState = MEDIA_PLAYER_STARTED; in start()
357 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in start()
359 if (mCurrentState == MEDIA_PLAYER_PLAYBACK_COMPLETE) { in start()
364 ALOGE("start called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in start()
377 if (mCurrentState & MEDIA_PLAYER_STOPPED) return NO_ERROR; in stop()
378 if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED | in stop()
382 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in stop()
384 mCurrentState = MEDIA_PLAYER_STOPPED; in stop()
388 ALOGE("stop called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in stop()
396 if (mCurrentState & (MEDIA_PLAYER_PAUSED|MEDIA_PLAYER_PLAYBACK_COMPLETE)) in pause()
398 if ((mPlayer != 0) && (mCurrentState & MEDIA_PLAYER_STARTED)) { in pause()
401 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in pause()
403 mCurrentState = MEDIA_PLAYER_PAUSED; in pause()
407 ALOGE("pause called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in pause()
418 if ((mCurrentState & MEDIA_PLAYER_STARTED) && ! temp) { in isPlaying()
420 mCurrentState = MEDIA_PLAYER_PAUSED; in isPlaying()
421 } else if ((mCurrentState & MEDIA_PLAYER_PAUSED) && temp) { in isPlaying()
423 mCurrentState = MEDIA_PLAYER_STARTED; in isPlaying()
441 if (mPlayer == 0 || (mCurrentState & MEDIA_PLAYER_STOPPED)) { in setPlaybackSettings()
445 if (rate.mSpeed != 0.f && !(mCurrentState & MEDIA_PLAYER_STARTED) in setPlaybackSettings()
446 && (mCurrentState & (MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_PAUSED in setPlaybackSettings()
455 if (rate.mSpeed == 0.f && mCurrentState == MEDIA_PLAYER_STARTED) { in setPlaybackSettings()
456 mCurrentState = MEDIA_PLAYER_PAUSED; in setPlaybackSettings()
458 && (mCurrentState & (MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_PAUSED in setPlaybackSettings()
460 mCurrentState = MEDIA_PLAYER_STARTED; in setPlaybackSettings()
526 bool isValidState = (mCurrentState & (MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_STARTED | in getDuration_l()
544 mPlayer.get(), mCurrentState); in getDuration_l()
557 if ((mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED | in seekTo_l()
595 mCurrentState); in seekTo_l()
621 if (mCurrentState == MEDIA_PLAYER_IDLE) return NO_ERROR; in reset_l()
627 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in reset_l()
630 mCurrentState = MEDIA_PLAYER_IDLE; in reset_l()
671 if (mCurrentState & ( MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_STARTED | in setAudioStreamType()
674 ALOGE("setAudioStream called in state %d", mCurrentState); in setAudioStreamType()
727 if (!(mCurrentState & MEDIA_PLAYER_IDLE)) { in setAudioSessionId()
728 ALOGE("setAudioSessionId called in state %d", mCurrentState); in setAudioSessionId()
764 (mCurrentState & MEDIA_PLAYER_IDLE) || in attachAuxEffect()
765 (mCurrentState == MEDIA_PLAYER_STATE_ERROR )) { in attachAuxEffect()
766 ALOGE("attachAuxEffect called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get()); in attachAuxEffect()
778 if (mCurrentState & ( MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_STARTED | in checkStateForKeySet_l()
781 ALOGE("trying to set audio attributes called in state %d", mCurrentState); in checkStateForKeySet_l()
840 if ((mPlayer != NULL) || (mCurrentState != MEDIA_PLAYER_IDLE)) in setRetransmitEndpoint()
882 if (!(msg == MEDIA_ERROR && mCurrentState == MEDIA_PLAYER_IDLE) && mPlayer == 0) { in notify()
893 mCurrentState = MEDIA_PLAYER_PREPARED; in notify()
906 if (mCurrentState == MEDIA_PLAYER_IDLE) { in notify()
910 mCurrentState = MEDIA_PLAYER_PLAYBACK_COMPLETE; in notify()
918 mCurrentState = MEDIA_PLAYER_STATE_ERROR; in notify()
1004 if (next != NULL && !(next->mCurrentState & in setNextMediaPlayer()
1049 if (!(mCurrentState & (MEDIA_PLAYER_PREPARING | MEDIA_PLAYER_PREPARED))) { in prepareDrm()
1050 ALOGE("prepareDrm is called in the wrong state (%d).", mCurrentState); in prepareDrm()
1077 if (mCurrentState & (MEDIA_PLAYER_STARTED | in releaseDrm()
1081 ALOGE("releaseDrm Unexpected state %d. Can only be called in stopped/idle.", mCurrentState); in releaseDrm()