Home
last modified time | relevance | path

Searched refs:mVideoView (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DVideoViewTest.java86 private VideoView mVideoView; field in VideoViewTest
96 mVideoView = (VideoView) mActivity.findViewById(R.id.videoview); in setup()
121 mVideoView.setMediaController(mediaController); in makeVideoView()
146 mVideoView.setOnPreparedListener(mockPreparedListener); in testPlayVideo()
150 mVideoView.setOnCompletionListener(mockCompletionListener); in testPlayVideo()
152 mActivityRule.runOnUiThread(() -> mVideoView.setVideoPath(mVideoPath)); in testPlayVideo()
157 mActivityRule.runOnUiThread(mVideoView::start); in testPlayVideo()
190 mVideoView.setOnCompletionListener(mockCompletionListener); in testAudioAttributes()
192 mVideoView.setAudioAttributes(AUDIO_ATTR); in testAudioAttributes()
193 mVideoView.setAudioFocusRequest(AudioManager.AUDIOFOCUS_GAIN_TRANSIENT); in testAudioAttributes()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyVideoSourceActivity.java31 private VideoView mVideoView; field in PixelCopyVideoSourceActivity
38 mVideoView = new VideoView(this); in onCreate()
39 mVideoView.setOnPreparedListener(mp -> { in onCreate()
41 mVideoView.start(); in onCreate()
44 mVideoView.setOnErrorListener((mp, what, extra) -> { in onCreate()
53 mVideoView.setVideoURI(uri); in onCreate()
55 setContentView(mVideoView); in onCreate()
67 return mVideoView; in getVideoView()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerSurfaceStubActivity.java33 private VideoSurfaceView mVideoView = null; field in MediaPlayerSurfaceStubActivity
52 mVideoView = new VideoSurfaceView(this, mMediaPlayer); in onCreate()
53 setContentView(mVideoView); in onCreate()
59 mVideoView.onResume(); in onResume()
63 mVideoView.startTest(); in playVideo()