Home
last modified time | relevance | path

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

/frameworks/support/samples/SupportMediaDemos/src/main/java/com/example/androidx/media/
DVideoViewTest.java57 private MyVideoView mVideoView = null; field in VideoViewTest
75 mVideoView = findViewById(R.id.video_view); in onCreate()
76 mVideoView.setActivity(this); in onCreate()
86 mVideoView.setViewType(VideoView2.VIEW_TYPE_TEXTUREVIEW); in onCreate()
88 mVideoView.setVideoUri(contentUri); in onCreate()
91 mVideoView.setMediaControlView2(mMediaControlView, 2000); in onCreate()
103 if (mVideoView.isAttachedToWindow()) { in onResume()
104 mVideoView.getMediaController().getTransportControls().play(); in onResume()
105 mVideoView.getMediaController().registerCallback(mMediaControllerCallback); in onResume()
107 mVideoView.addOnAttachStateChangeListener(new View.OnAttachStateChangeListener() { in onResume()
[all …]
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
DVideoDumpActivity.java43 private VideoDumpView mVideoView; field in VideoDumpActivity
58 mVideoView.onPause(); in onPause()
64 mVideoView.onResume(); in onResume()
68 mVideoView = new VideoDumpView(this); in createView()
69 mVideoView.setMediaController(new MediaController(context)); in createView()
72 mainLayout.addView(mVideoView, new LinearLayout.LayoutParams( in createView()
80 if (mVideoView != null) { in onStop()
81 if (mVideoView.isPlaying()) { in onStop()
82 mVideoView.stopPlayback(); in onStop()
/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/ui/
DVideoActivity.java32 private VideoView mVideoView; field in VideoActivity
42 mVideoView = new VideoView(this); in onCreate()
43 mVideoView.setOnPreparedListener(new OnPreparedListener() { in onCreate()
49 setContentView(mVideoView); in onCreate()
59 mVideoView.setVideoURI(uri); in playVideo()
60 mVideoView.start(); in playVideo()
82 if (mVideoView != null) { in onStop()
83 mVideoView.stopPlayback(); in onStop()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DVideoViewCaptureActivity.java35 private VideoView mVideoView; field in VideoViewCaptureActivity
41 mVideoView = new VideoView(this); in onCreate()
42 mVideoView.setOnPreparedListener(mp -> { in onCreate()
46 mVideoView.start(); in onCreate()
50 mVideoView.setVideoURI(uri); in onCreate()
58 PixelCopy.request(mVideoView, b, in onCreate()
73 }, mVideoView.getHandler()); in onCreate()
81 layout.addView(mVideoView, LinearLayout.LayoutParams.MATCH_PARENT, in onCreate()
/frameworks/support/media-widget/src/androidTest/java/androidx/media/widget/
DVideoView2Test.java89 private VideoView2 mVideoView; field in VideoView2Test
103 mVideoView = (VideoView2) mActivity.findViewById(R.id.videoview); in setup()
127 if (!mVideoView.isAttachedToWindow()) { in setup()
128 mVideoView.addOnAttachStateChangeListener(mockAttachListener); in setup()
129 verify(mockAttachListener, timeout(TIME_OUT)).onViewAttachedToWindow(same(mVideoView)); in setup()
131 mController = mVideoView.getMediaController(); in setup()
184 mVideoView.setVideoPath(mVideoPath); in testPlayVideo()
218 mVideoView.setOnViewTypeChangedListener(mockViewTypeListener); in testPlayVideoOnTextureView()
219 mVideoView.setViewType(mVideoView.VIEW_TYPE_TEXTUREVIEW); in testPlayVideoOnTextureView()
221 mVideoView.setVideoPath(mVideoPath); in testPlayVideoOnTextureView()
[all …]