/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/media/ |
VideoConsumptionExampleFragment.java | 38 private MediaPlayerGlue mGlue; 44 mGlue = new VideoMediaPlayerGlue(getActivity(), this) { 52 mGlue.setOnMediaFileFinishedPlayingListener(this); 56 mGlue.setMetaData(metaData); 57 mGlue.setMediaSource(URL); 58 mGlue.prepareMediaForPlaying(); 68 mGlue.setDisplay(holder); 88 mGlue.enableProgressUpdating(mGlue.hasValidMedia() && mGlue.isMediaPlaying()) [all...] |
MusicConsumptionExampleFragment.java | 47 private MediaPlayerGlue mGlue; 56 mGlue = new MediaPlayerGlue(getActivity(), this) { 64 mGlue.setOnMediaFileFinishedPlayingListener(this); 106 mGlue.setMetaData(metaData); 107 mGlue.setMediaSource(uri); 108 mGlue.prepareMediaForPlaying(); 115 mGlue.enableProgressUpdating(mGlue.hasValidMedia() && mGlue.isMediaPlaying()); 120 mGlue.enableProgressUpdating(false) [all...] |
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
PlaybackTransportControlFragment.java | 52 private PlaybackTransportControlGlueSample mGlue; 69 mGlue = new PlaybackTransportControlGlueSample(context, new PlayerAdapter()) { 83 mGlue.setTitle("Title"); 84 mGlue.setSubtitle("Android developer"); 85 mGlue.setHost(new PlaybackFragmentGlueHost(this)); 86 mGlue.setSeekProvider(new PlaybackSeekDataProviderSample( 122 setControlsOverlayAutoHideEnabled(mGlue.isPlaying());
|
PlaybackTransportControlSupportFragment.java | 55 private PlaybackTransportControlGlueSample mGlue; 72 mGlue = new PlaybackTransportControlGlueSample(context, new PlayerAdapter()) { 86 mGlue.setTitle("Title"); 87 mGlue.setSubtitle("Android developer"); 88 mGlue.setHost(new PlaybackSupportFragmentGlueHost(this)); 89 mGlue.setSeekProvider(new PlaybackSeekDataProviderSample( 125 setControlsOverlayAutoHideEnabled(mGlue.isPlaying());
|
PlaybackFragment.java | 57 private PlaybackControlGlue mGlue; 75 mGlue = new PlaybackControlGlue(context) { 103 mGlue.setHost(new PlaybackFragmentGlueHost(this)); 138 setFadingEnabled(mGlue.isPlaying());
|
PlaybackSupportFragment.java | 60 private PlaybackControlGlue mGlue; 78 mGlue = new PlaybackControlGlue(context) { 106 mGlue.setHost(new PlaybackSupportFragmentGlueHost(this)); 141 setFadingEnabled(mGlue.isPlaying());
|
MusicPlayerFragment.java | 57 mGlue.pause(); 171 private PlaybackBannerMusicPlayerControlGlue<MediaControllerAdapter> mGlue; 208 mGlue = new PlaybackBannerMusicPlayerControlGlue<>(getActivity(), fastForwardSpeed, 214 mGlue.setHost(new PlaybackFragmentGlueHost(MusicPlayerFragment.this));
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/media/ |
PlaybackGlueHost.java | 47 PlaybackGlue mGlue; 214 if (mGlue != null) { 215 mGlue.onDetachedFromHost(); 217 mGlue = glue; 218 if (mGlue != null) { 219 mGlue.onAttachedToHost(this);
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/media/ |
PlaybackBannerControlGlueTest.java | 68 PlaybackBannerControlGlueImpl mGlue; 77 mGlue = new PlaybackBannerControlGlueImpl(mContext); 82 mGlue.setHost(host); 83 assertSame(mGlue, host.mGlue); 84 assertSame(host, mGlue.getHost()); 95 mGlue = new PlaybackBannerControlGlueImpl(mContext); 104 mGlue.setPlaybackRowPresenter(presenter); 107 mGlue.setHost(host); 108 assertSame(mGlue, host.mGlue) [all...] |
PlaybackTransportControlGlueTest.java | 70 PlaybackTransportControlGlueImpl mGlue; 87 mGlue = new PlaybackTransportControlGlueImpl(mContext, mAdapter); 89 mGlue.setHost(host); 92 mGlue.getPlaybackRowPresenter(); 96 presenter.onBindViewHolder(mViewHolder, mGlue.getControlsRow()); 102 mGlue.play(); 114 mGlue = new PlaybackTransportControlGlueImpl(mContext); 119 mGlue.setHost(host); 120 assertSame(mGlue, host.mGlue); [all...] |
PlaybackControlGlueTest.java | 92 PlaybackControlGlue mGlue; 100 mGlue = Mockito.spy(new PlaybackControlGlueImpl(mContext)); 105 mGlue.setHost(host); 106 Mockito.verify(mGlue, times(1)).onAttachedToHost(host); 107 assertSame(mGlue, host.mGlue); 108 assertSame(host, mGlue.getHost()); 119 mGlue = Mockito.spy(new PlaybackControlGlueImpl(mContext)); 128 mGlue.setPlaybackRowPresenter(presenter); 131 mGlue.setHost(host) [all...] |
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/ |
VideoFragmentTest.java | 131 MediaPlayerGlue mGlue; 148 mGlue = new MediaPlayerGlue(getActivity()) { 161 mGlue.setMode(MediaPlayerGlue.REPEAT_ALL); 162 mGlue.setArtist("Leanback"); 163 mGlue.setTitle("Leanback team at work"); 164 mGlue.setMediaSource( 166 mGlue.addPlayerCallback(new PlaybackGlue.PlayerCallback() { 171 mGlue.play(); 175 mGlue.setHost(new VideoFragmentGlueHost(this)); 208 return fragment.mGlue.isMediaPlaying() [all...] |
VideoSupportFragmentTest.java | 134 MediaPlayerGlue mGlue; 151 mGlue = new MediaPlayerGlue(getActivity()) { 164 mGlue.setMode(MediaPlayerGlue.REPEAT_ALL); 165 mGlue.setArtist("Leanback"); 166 mGlue.setTitle("Leanback team at work"); 167 mGlue.setMediaSource( 169 mGlue.addPlayerCallback(new PlaybackGlue.PlayerCallback() { 174 mGlue.play(); 178 mGlue.setHost(new VideoSupportFragmentGlueHost(this)); 211 return fragment.mGlue.isMediaPlaying() [all...] |
PlaybackTestFragment.java | 60 private android.support.v17.leanback.media.PlaybackControlGlue mGlue; 94 mGlue = new PlaybackControlHelper(context) { 120 mGlue.setHost(new PlaybackFragmentGlueHost(this)); 137 return mGlue;
|
PlaybackTestSupportFragment.java | 63 private android.support.v17.leanback.media.PlaybackControlGlue mGlue; 97 mGlue = new PlaybackControlHelper(context) { 123 mGlue.setHost(new PlaybackSupportFragmentGlueHost(this)); 140 return mGlue;
|
DetailsFragmentTest.java | 219 MediaPlayerGlue mGlue; 229 mGlue = new MediaPlayerGlue(getActivity()); 230 mDetailsBackground.setupVideoPlayback(mGlue); 232 mGlue.setMode(MediaPlayerGlue.REPEAT_ALL); 233 mGlue.setArtist("A Googleer"); 234 mGlue.setTitle("Diving with Sharks"); 235 mGlue.setMediaSource( 287 && detailsFragment.mGlue.isMediaPlaying(); 351 && detailsFragment.mGlue.isMediaPlaying(); 422 && detailsFragment.mGlue.isMediaPlaying() [all...] |
DetailsSupportFragmentTest.java | 222 MediaPlayerGlue mGlue; 232 mGlue = new MediaPlayerGlue(getActivity()); 233 mDetailsBackground.setupVideoPlayback(mGlue); 235 mGlue.setMode(MediaPlayerGlue.REPEAT_ALL); 236 mGlue.setArtist("A Googleer"); 237 mGlue.setTitle("Diving with Sharks"); 238 mGlue.setMediaSource( 290 && detailsFragment.mGlue.isMediaPlaying(); 354 && detailsFragment.mGlue.isMediaPlaying(); 425 && detailsFragment.mGlue.isMediaPlaying() [all...] |
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ |
PlaybackTransportRowPresenterTest.java | 53 PlaybackTransportControlGlue mGlue; 70 mGlue = new PlaybackTransportControlGlue(mContext, mImpl) { 88 mGlue.setHost(mHost); 130 assertEquals(position, mGlue.getControlsRow().getCurrentPosition()); 139 assertEquals(positions[heroIndex], mGlue.getControlsRow().getCurrentPosition()); 171 mGlue.play(); 173 mGlue.pause(); 175 mGlue.seekTo(1231); 180 assertEquals(123L, mGlue.getCurrentPosition()); 181 assertEquals(20000L, mGlue.getDuration()) [all...] |
/prebuilts/sdk/current/support/v17/leanback/libs/ |
android-support-v17-leanback.jar | |