Searched refs:mMediaPlayerState (Results 1 – 2 of 2) sorted by relevance
48 State mMediaPlayerState = State.NONE; field in VideoPlayer75 if (mMediaPlayerState == State.STARTED) { in pause()76 mMediaPlayerState = State.PAUSED; in pause()84 if (mMediaPlayerState == State.PAUSED) { in resume()86 mMediaPlayerState = State.STARTED; in resume()94 if (mMediaPlayerState != State.NONE && mMediaPlayerState != State.END) { in release()95 mMediaPlayerState = State.END; in release()111 mMediaPlayerState = State.PREPARED; in onSurfaceTextureAvailable()115 mMediaPlayerState = State.STARTED; in onSurfaceTextureAvailable()
75 mVideoPlayer.mMediaPlayerState = State.STARTED; in onPlayerPaused_startedState_pause()79 assertThat(mVideoPlayer.mMediaPlayerState).isEqualTo(State.PAUSED); in onPlayerPaused_startedState_pause()85 mVideoPlayer.mMediaPlayerState = State.PAUSED; in onPlayerResumed_pausedState_start()89 assertThat(mVideoPlayer.mMediaPlayerState).isEqualTo(State.STARTED); in onPlayerResumed_pausedState_start()95 mVideoPlayer.mMediaPlayerState = State.STOPPED; in onPlayerReleased_stoppedState_release()99 assertThat(mVideoPlayer.mMediaPlayerState).isEqualTo(State.END); in onPlayerReleased_stoppedState_release()106 mVideoPlayer.mMediaPlayerState = State.PREPARED; in onSurfaceTextureDestroyed_preparedState_release()110 assertThat(mVideoPlayer.mMediaPlayerState).isEqualTo(State.END); in onSurfaceTextureDestroyed_preparedState_release()