Home
last modified time | relevance | path

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

/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/widget/src/android/widget/cts/
DVideoViewTest.java88 private VideoView mVideoView; field in VideoViewTest
104 mVideoView = (VideoView) mActivity.findViewById(R.id.videoview); in setup()
129 mVideoView.setMediaController(mediaController); in makeVideoView()
154 mVideoView.setOnPreparedListener(mockPreparedListener); in testPlayVideo()
158 mVideoView.setOnCompletionListener(mockCompletionListener); in testPlayVideo()
160 mActivityRule.runOnUiThread(() -> mVideoView.setVideoPath(mVideoPath)); in testPlayVideo()
165 mActivityRule.runOnUiThread(mVideoView::start); in testPlayVideo()
198 mVideoView.setOnCompletionListener(mockCompletionListener); in testAudioAttributes()
200 mVideoView.setAudioAttributes(AUDIO_ATTR); in testAudioAttributes()
201 mVideoView.setAudioFocusRequest(AudioManager.AUDIOFOCUS_GAIN_TRANSIENT); in testAudioAttributes()
[all …]
/cts/tests/tests/media/player/src/android/media/player/cts/
DMediaPlayerSurfaceStubActivity.java43 private VideoSurfaceView mVideoView = null; field in MediaPlayerSurfaceStubActivity
75 mVideoView = new VideoSurfaceView(this, mMediaPlayer); in onCreate()
76 setContentView(mVideoView); in onCreate()
82 if (mVideoView != null) { in onResume()
83 mVideoView.onResume(); in onResume()
90 if (mVideoView != null) { in playVideo()
91 mVideoView.startTest(); in playVideo()