Lines Matching refs:mCurrentState

412     mCurrentState = MEDIA_PLAYER2_IDLE;
502 if (!((mCurrentState & MEDIA_PLAYER2_IDLE)
503 || mCurrentState == MEDIA_PLAYER2_STATE_ERROR)) {
504 ALOGE("setDataSource called in wrong state %d", mCurrentState);
531 mCurrentState = MEDIA_PLAYER2_INITIALIZED;
550 ALOGE("prepareNextDataSource failed: state %X, mPlayer(%p)", mCurrentState, mPlayer.get());
561 ALOGE("playNextDataSource failed: state %X, mPlayer(%p)", mCurrentState, mPlayer.get());
571 (mCurrentState != MEDIA_PLAYER2_STATE_ERROR) &&
572 ((mCurrentState & MEDIA_PLAYER2_IDLE) != MEDIA_PLAYER2_IDLE);
574 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get());
753 if ((mPlayer != 0) && (mCurrentState & (MEDIA_PLAYER2_INITIALIZED | MEDIA_PLAYER2_STOPPED))) {
762 mCurrentState = MEDIA_PLAYER2_PREPARING;
765 ALOGE("prepareAsync called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get());
777 if (mCurrentState & MEDIA_PLAYER2_STARTED) {
779 } else if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER2_PREPARED |
790 mCurrentState = MEDIA_PLAYER2_STARTED;
793 mCurrentState = MEDIA_PLAYER2_STATE_ERROR;
795 if (mCurrentState == MEDIA_PLAYER2_PLAYBACK_COMPLETE) {
800 ALOGE("start called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get());
812 if (mCurrentState & MEDIA_PLAYER2_STOPPED) return NO_ERROR;
813 if ( (mPlayer != 0) && ( mCurrentState & ( MEDIA_PLAYER2_STARTED | MEDIA_PLAYER2_PREPARED |
817 mCurrentState = MEDIA_PLAYER2_STATE_ERROR;
819 mCurrentState = MEDIA_PLAYER2_STOPPED;
823 ALOGE("stop called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get());
830 if (mCurrentState & (MEDIA_PLAYER2_PAUSED|MEDIA_PLAYER2_PLAYBACK_COMPLETE))
832 if ((mPlayer != 0) && (mCurrentState & MEDIA_PLAYER2_STARTED)) {
835 mCurrentState = MEDIA_PLAYER2_STATE_ERROR;
837 mCurrentState = MEDIA_PLAYER2_PAUSED;
841 ALOGE("pause called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get());
850 if ((mCurrentState & MEDIA_PLAYER2_STARTED) && ! temp) {
852 mCurrentState = MEDIA_PLAYER2_PAUSED;
853 } else if ((mCurrentState & MEDIA_PLAYER2_PAUSED) && temp) {
855 mCurrentState = MEDIA_PLAYER2_STARTED;
865 if (mCurrentState & MEDIA_PLAYER2_STATE_ERROR) {
869 || (mCurrentState &
873 if (mCurrentState & MEDIA_PLAYER2_STARTED) {
876 if (mCurrentState
880 // now only mCurrentState & MEDIA_PLAYER2_PREPARED is true
893 if (mPlayer == 0 || (mCurrentState & MEDIA_PLAYER2_STOPPED)) {
984 bool isValidState = (mCurrentState & (MEDIA_PLAYER2_PREPARED | MEDIA_PLAYER2_STARTED |
987 ALOGE("Attempt to call getDuration in wrong state: mPlayer=%p, mCurrentState=%u",
988 mPlayer.get(), mCurrentState);
1010 if ((mPlayer == 0) || !(mCurrentState & (MEDIA_PLAYER2_STARTED | MEDIA_PLAYER2_PREPARED |
1012 ALOGE("Attempt to perform seekTo in wrong state: mPlayer=%p, mCurrentState=%u",
1013 mPlayer.get(), mCurrentState);
1068 if (mCurrentState == MEDIA_PLAYER2_IDLE) {
1075 mCurrentState = MEDIA_PLAYER2_STATE_ERROR;
1078 mCurrentState = MEDIA_PLAYER2_IDLE;
1103 if (mCurrentState & ( MEDIA_PLAYER2_PREPARED | MEDIA_PLAYER2_STARTED |
1106 ALOGE("setAudioStream called in state %d", mCurrentState);
1155 if (!(mCurrentState & MEDIA_PLAYER2_IDLE)) {
1156 ALOGE("setAudioSessionId called in state %d", mCurrentState);
1189 (mCurrentState & MEDIA_PLAYER2_IDLE) ||
1190 (mCurrentState == MEDIA_PLAYER2_STATE_ERROR )) {
1191 ALOGE("attachAuxEffect called in state %d, mPlayer(%p)", mCurrentState, mPlayer.get());
1202 if (mCurrentState & ( MEDIA_PLAYER2_PREPARED | MEDIA_PLAYER2_STARTED |
1205 ALOGE("trying to set audio attributes called in state %d", mCurrentState);
1327 if (!(msg == MEDIA2_ERROR && mCurrentState == MEDIA_PLAYER2_IDLE) && mPlayer == 0) {
1339 mCurrentState = MEDIA_PLAYER2_PREPARED;
1347 if (mCurrentState == MEDIA_PLAYER2_IDLE) {
1351 mCurrentState = MEDIA_PLAYER2_PLAYBACK_COMPLETE;
1359 mCurrentState = MEDIA_PLAYER2_STATE_ERROR;
1434 if (!(mCurrentState & (MEDIA_PLAYER2_PREPARING | MEDIA_PLAYER2_PREPARED))) {
1435 ALOGE("prepareDrm is called in the wrong state (%d).", mCurrentState);
1461 if (mCurrentState & (MEDIA_PLAYER2_STARTED |
1465 ALOGE("releaseDrm Unexpected state %d. Can only be called in stopped/idle.", mCurrentState);