Lines Matching refs:mCurrentState

64     mCurrentState = MEDIA_PLAYER_IDLE;
131 if ( !( (mCurrentState & MEDIA_PLAYER_IDLE) ||
132 (mCurrentState == MEDIA_PLAYER_STATE_ERROR ) ) ) {
133 ALOGE("attachNewPlayer called in state %d", mCurrentState);
141 mCurrentState = MEDIA_PLAYER_INITIALIZED;
211 (mCurrentState != MEDIA_PLAYER_STATE_ERROR) &&
212 ((mCurrentState & MEDIA_PLAYER_IDLE) != MEDIA_PLAYER_IDLE);
217 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get());
275 if ( (mPlayer != 0) && ( mCurrentState & (MEDIA_PLAYER_INITIALIZED | MEDIA_PLAYER_STOPPED) ) ) {
281 mCurrentState = MEDIA_PLAYER_PREPARING;
284 ALOGE("prepareAsync called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get());
333 if (mCurrentState & MEDIA_PLAYER_STARTED) {
335 } else if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_PREPARED |
340 mCurrentState = MEDIA_PLAYER_STARTED;
343 mCurrentState = MEDIA_PLAYER_STATE_ERROR;
345 if (mCurrentState == MEDIA_PLAYER_PLAYBACK_COMPLETE) {
350 ALOGE("start called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get());
363 if (mCurrentState & MEDIA_PLAYER_STOPPED) return NO_ERROR;
364 if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED |
368 mCurrentState = MEDIA_PLAYER_STATE_ERROR;
370 mCurrentState = MEDIA_PLAYER_STOPPED;
374 ALOGE("stop called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get());
382 if (mCurrentState & (MEDIA_PLAYER_PAUSED|MEDIA_PLAYER_PLAYBACK_COMPLETE))
384 if ((mPlayer != 0) && (mCurrentState & MEDIA_PLAYER_STARTED)) {
387 mCurrentState = MEDIA_PLAYER_STATE_ERROR;
389 mCurrentState = MEDIA_PLAYER_PAUSED;
393 ALOGE("pause called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get());
404 if ((mCurrentState & MEDIA_PLAYER_STARTED) && ! temp) {
406 mCurrentState = MEDIA_PLAYER_PAUSED;
407 } else if ((mCurrentState & MEDIA_PLAYER_PAUSED) && temp) {
409 mCurrentState = MEDIA_PLAYER_STARTED;
427 if (mPlayer == 0 || (mCurrentState & MEDIA_PLAYER_STOPPED)) {
431 if (rate.mSpeed != 0.f && !(mCurrentState & MEDIA_PLAYER_STARTED)
432 && (mCurrentState & (MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_PAUSED
441 if (rate.mSpeed == 0.f && mCurrentState == MEDIA_PLAYER_STARTED) {
442 mCurrentState = MEDIA_PLAYER_PAUSED;
444 && (mCurrentState & (MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_PAUSED
446 mCurrentState = MEDIA_PLAYER_STARTED;
512 bool isValidState = (mCurrentState & (MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_STARTED |
529 ALOGE("Attempt to call getDuration in wrong state: mPlayer=%p, mCurrentState=%u",
530 mPlayer.get(), mCurrentState);
543 if ((mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER_STARTED | MEDIA_PLAYER_PREPARED |
580 ALOGE("Attempt to perform seekTo in wrong state: mPlayer=%p, mCurrentState=%u", mPlayer.get(),
581 mCurrentState);
607 if (mCurrentState == MEDIA_PLAYER_IDLE) return NO_ERROR;
613 mCurrentState = MEDIA_PLAYER_STATE_ERROR;
616 mCurrentState = MEDIA_PLAYER_IDLE;
657 if (mCurrentState & ( MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_STARTED |
660 ALOGE("setAudioStream called in state %d", mCurrentState);
713 if (!(mCurrentState & MEDIA_PLAYER_IDLE)) {
714 ALOGE("setAudioSessionId called in state %d", mCurrentState);
750 (mCurrentState & MEDIA_PLAYER_IDLE) ||
751 (mCurrentState == MEDIA_PLAYER_STATE_ERROR )) {
752 ALOGE("attachAuxEffect called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get());
764 if (mCurrentState & ( MEDIA_PLAYER_PREPARED | MEDIA_PLAYER_STARTED |
767 ALOGE("trying to set audio attributes called in state %d", mCurrentState);
826 if ((mPlayer != NULL) || (mCurrentState != MEDIA_PLAYER_IDLE))
868 if (!(msg == MEDIA_ERROR && mCurrentState == MEDIA_PLAYER_IDLE) && mPlayer == 0) {
879 mCurrentState = MEDIA_PLAYER_PREPARED;
892 if (mCurrentState == MEDIA_PLAYER_IDLE) {
896 mCurrentState = MEDIA_PLAYER_PLAYBACK_COMPLETE;
904 mCurrentState = MEDIA_PLAYER_STATE_ERROR;
984 if (next != NULL && !(next->mCurrentState &
1029 if (!(mCurrentState & (MEDIA_PLAYER_PREPARING | MEDIA_PLAYER_PREPARED))) {
1030 ALOGE("prepareDrm is called in the wrong state (%d).", mCurrentState);
1057 if (mCurrentState & (MEDIA_PLAYER_STARTED |
1061 ALOGE("releaseDrm Unexpected state %d. Can only be called in stopped/idle.", mCurrentState);