Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowVideoViewTest.java28 ShadowVideoView shadowVideoView = shadowOf(view); in shouldSetOnPreparedListener()
36 ShadowVideoView shadowVideoView = shadowOf(view); in shouldSetOnErrorListener()
44 ShadowVideoView shadowVideoView = shadowOf(view); in shouldSetOnCompletionListener()
51 ShadowVideoView shadowVideoView = shadowOf(view); in shouldSetVideoPath()
60 ShadowVideoView shadowVideoView = shadowOf(view); in shouldSetVideoURI()
69 ShadowVideoView shadowVideoView = shadowOf(view); in shouldSetVideoDuration()
86 ShadowVideoView shadowVideoView = shadowOf(view); in shouldStartPlaying()
87 assertThat(shadowVideoView.getCurrentVideoState()).isEqualTo(ShadowVideoView.START); in shouldStartPlaying()
93 ShadowVideoView shadowVideoView = shadowOf(view); in shouldStopPlayback()
94 assertThat(shadowVideoView.getCurrentVideoState()).isEqualTo(ShadowVideoView.STOP); in shouldStopPlayback()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowVideoView.java11 public class ShadowVideoView extends ShadowSurfaceView { class
58 currentState = ShadowVideoView.START; in start()
64 currentState = ShadowVideoView.STOP; in stopPlayback()
70 currentState = ShadowVideoView.SUSPEND; in suspend()
76 currentState = ShadowVideoView.PAUSE; in pause()
82 currentState = ShadowVideoView.RESUME; in resume()
87 return (currentState == ShadowVideoView.START); in isPlaying()
92 return (currentState != ShadowVideoView.PAUSE && in canPause()
93 currentState != ShadowVideoView.STOP && in canPause()
94 currentState != ShadowVideoView.SUSPEND); in canPause()