Home
last modified time | relevance | path

Searched refs:mMediaPlayerState (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/src/com/android/settings/accessibility/
DVideoPlayer.java48 State mMediaPlayerState = State.NONE; field in VideoPlayer
75 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DVideoPlayerTest.java75 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()