Home
last modified time | relevance | path

Searched refs:mGlue (Results 1 – 4 of 4) sorted by relevance

/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/media/
DVideoConsumptionExampleFragment.java38 private MediaPlayerGlue mGlue; field in VideoConsumptionExampleFragment
44 mGlue = new VideoMediaPlayerGlue(getActivity(), this) { in onCreate()
52 mGlue.setOnMediaFileFinishedPlayingListener(this); in onCreate()
56 mGlue.setMetaData(metaData); in onCreate()
57 mGlue.setMediaSource(URL); in onCreate()
58 mGlue.prepareMediaForPlaying(); in onCreate()
68 mGlue.setDisplay(holder); in onCreate()
88 mGlue.enableProgressUpdating(mGlue.hasValidMedia() && mGlue.isMediaPlaying()); in onStart()
94 mGlue.enableProgressUpdating(false); in onStop()
95 mGlue.reset(); in onStop()
[all …]
DMusicConsumptionExampleFragment.java47 private MediaPlayerGlue mGlue; field in MusicConsumptionExampleFragment
56 mGlue = new MediaPlayerGlue(getActivity(), this) { in onCreate()
64 mGlue.setOnMediaFileFinishedPlayingListener(this); in onCreate()
106 mGlue.setMetaData(metaData); in onCreate()
107 mGlue.setMediaSource(uri); in onCreate()
108 mGlue.prepareMediaForPlaying(); in onCreate()
115 mGlue.enableProgressUpdating(mGlue.hasValidMedia() && mGlue.isMediaPlaying()); in onStart()
120 mGlue.enableProgressUpdating(false); in onStop()
121 mGlue.reset(); in onStop()
217 mGlue.createControlsRowAndPresenter())); in addPlaybackControlsRow()
[all …]
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DPlaybackOverlayFragment.java67 private PlaybackControlHelper mGlue; field in PlaybackOverlayFragment
77 mGlue.onActionClicked((Action) item);
106 mGlue = new PlaybackControlHelper(context, this) { in createComponents()
137 mGlue.setOnItemViewClickedListener(mOnItemViewClickedListener); in createComponents()
139 mPlaybackControlsRowPresenter = mGlue.createControlsRowAndPresenter(); in createComponents()
156 getAdapter().set(ROW_CONTROLS, mGlue.getControlsRow()); in createComponents()
172 mGlue.setFadingEnabled(true); in onStart()
173 mGlue.enableProgressUpdating(mGlue.hasValidMedia() && mGlue.isMediaPlaying()); in onStart()
179 mGlue.enableProgressUpdating(false); in onStop()
191 setFadingEnabled(mGlue.isMediaPlaying()); in onPictureInPictureModeChanged()
DPlaybackOverlaySupportFragment.java69 private PlaybackControlSupportHelper mGlue; field in PlaybackOverlaySupportFragment
79 mGlue.onActionClicked((Action) item);
108 mGlue = new PlaybackControlSupportHelper(context, this) { in createComponents()
139 mGlue.setOnItemViewClickedListener(mOnItemViewClickedListener); in createComponents()
141 mPlaybackControlsRowPresenter = mGlue.createControlsRowAndPresenter(); in createComponents()
158 getAdapter().set(ROW_CONTROLS, mGlue.getControlsRow()); in createComponents()
174 mGlue.setFadingEnabled(true); in onStart()
175 mGlue.enableProgressUpdating(mGlue.hasValidMedia() && mGlue.isMediaPlaying()); in onStart()
181 mGlue.enableProgressUpdating(false); in onStop()
193 setFadingEnabled(mGlue.isMediaPlaying()); in onPictureInPictureModeChanged()