Lines Matching refs:mState

75     : mState(STATE_IDLE),  in NuPlayerDriver()
148 if (mState != STATE_IDLE) { in setDataSource()
152 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
156 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
167 if (mState != STATE_IDLE) { in setDataSource()
171 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
175 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
186 if (mState != STATE_IDLE) { in setDataSource()
190 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
194 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
205 if (mState != STATE_IDLE) { in setDataSource()
209 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
213 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
229 switch (mState) { in setVideoSurfaceTexture()
253 if (mState == STATE_IDLE) { in getBufferingSettings()
265 if (mState == STATE_IDLE) { in setBufferingSettings()
280 switch (mState) { in prepare_l()
282 mState = STATE_PREPARING; in prepare_l()
289 while (mState == STATE_PREPARING) { in prepare_l()
292 return (mState == STATE_PREPARED) ? OK : UNKNOWN_ERROR; in prepare_l()
296 mState = STATE_STOPPED_AND_PREPARING; in prepare_l()
300 while (mState == STATE_STOPPED_AND_PREPARING) { in prepare_l()
303 return (mState == STATE_STOPPED_AND_PREPARED) ? OK : UNKNOWN_ERROR; in prepare_l()
313 switch (mState) { in prepareAsync()
315 mState = STATE_PREPARING; in prepareAsync()
322 mState = STATE_STOPPED_AND_PREPARING; in prepareAsync()
333 ALOGV("start(%p), state is %d, eos is %d", this, mState, mAtEOS); in start()
339 switch (mState) { in start_l()
348 CHECK_EQ(mState, STATE_PREPARED); in start_l()
376 mState = STATE_RUNNING; in start_l()
385 switch (mState) { in stop()
391 mState = STATE_STOPPED; in stop()
399 mState = STATE_STOPPED; in stop()
420 switch (mState) { in pause()
426 mState = STATE_PAUSED; in pause()
439 return mState == STATE_RUNNING && !mAtEOS; in isPlaying()
449 if (rate.mSpeed == 0.f && mState == STATE_RUNNING) { in setPlaybackSettings()
450 mState = STATE_PAUSED; in setPlaybackSettings()
453 && (mState == STATE_PAUSED in setPlaybackSettings()
454 || mState == STATE_STOPPED_AND_PREPARED in setPlaybackSettings()
455 || mState == STATE_PREPARED)) { in setPlaybackSettings()
475 ALOGV("seekTo(%p) (%d ms, %d) at state %d", this, msec, mode, mState); in seekTo()
480 switch (mState) { in seekTo()
506 if (mSeekInProgress || (mState == STATE_PAUSED && !mAtEOS)) { in getCurrentPosition()
545 ALOGV("updateMetrics(%p) from %s at state %d", this, where, mState); in updateMetrics()
622 ALOGV("logMetrics(%p) from %s at state %d", this, where, mState); in logMetrics()
649 ALOGD("reset(%p) at state %d", this, mState); in reset()
656 switch (mState) { in reset()
676 if (mState != STATE_STOPPED) { in reset()
685 mState = STATE_RESET_IN_PROGRESS; in reset()
688 while (mState == STATE_RESET_IN_PROGRESS) { in reset()
824 CHECK_EQ(mState, STATE_RESET_IN_PROGRESS); in notifyResetComplete()
825 mState = STATE_IDLE; in notifyResetComplete()
869 if (mState == STATE_STOPPED_AND_PREPARING) { in notifySeekComplete_l()
871 mState = STATE_STOPPED_AND_PREPARED; in notifySeekComplete_l()
877 } else if (mState == STATE_STOPPED) { in notifySeekComplete_l()
904 mState, mAtEOS, mLooping, mAutoLoop); in dump()
974 if (mState != STATE_RESET_IN_PROGRESS) { in notifyListener_l()
1000 mState = STATE_PAUSED; in notifyListener_l()
1015 mAnalyticsItem->setCString(kPlayerErrorState, stateString(mState).c_str()); in notifyListener_l()
1033 CHECK_EQ(mState, STATE_SET_DATASOURCE_PENDING); in notifySetDataSourceCompleted()
1036 mState = (err == OK) ? STATE_UNPREPARED : STATE_IDLE; in notifySetDataSourceCompleted()
1045 if (mState != STATE_PREPARING) { in notifyPrepareCompleted()
1049 CHECK(mState == STATE_RESET_IN_PROGRESS || mState == STATE_IDLE); in notifyPrepareCompleted()
1053 CHECK_EQ(mState, STATE_PREPARING); in notifyPrepareCompleted()
1060 mState = STATE_PREPARED; in notifyPrepareCompleted()
1065 mState = STATE_UNPREPARED; in notifyPrepareCompleted()
1090 ALOGV("prepareDrm(%p) state: %d", this, mState); in prepareDrm()
1102 ALOGV("releaseDrm(%p) state: %d", this, mState); in releaseDrm()