Home
last modified time | relevance | path

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

/frameworks/support/leanback/src/androidTest/java/androidx/leanback/media/
DPlaybackControlGlueTest.java94 PlaybackControlGlue mGlue; field in PlaybackControlGlueTest
102 mGlue = Mockito.spy(new PlaybackControlGlueImpl(mContext)); in usingDefaultRowAndPresenter()
107 mGlue.setHost(host); in usingDefaultRowAndPresenter()
108 Mockito.verify(mGlue, times(1)).onAttachedToHost(host); in usingDefaultRowAndPresenter()
109 assertSame(mGlue, host.mGlue); in usingDefaultRowAndPresenter()
110 assertSame(host, mGlue.getHost()); in usingDefaultRowAndPresenter()
121 mGlue = Mockito.spy(new PlaybackControlGlueImpl(mContext)); in customRowPresenter()
130 mGlue.setPlaybackRowPresenter(presenter); in customRowPresenter()
133 mGlue.setHost(host); in customRowPresenter()
134 Mockito.verify(mGlue, times(1)).onAttachedToHost(host); in customRowPresenter()
[all …]
DPlaybackBannerControlGlueTest.java68 PlaybackBannerControlGlueImpl mGlue; field in PlaybackBannerControlGlueTest
77 mGlue = new PlaybackBannerControlGlueImpl(mContext); in usingDefaultRowAndPresenter()
82 mGlue.setHost(host); in usingDefaultRowAndPresenter()
83 assertSame(mGlue, host.mGlue); in usingDefaultRowAndPresenter()
84 assertSame(host, mGlue.getHost()); in usingDefaultRowAndPresenter()
95 mGlue = new PlaybackBannerControlGlueImpl(mContext); in customRowPresenter()
104 mGlue.setPlaybackRowPresenter(presenter); in customRowPresenter()
107 mGlue.setHost(host); in customRowPresenter()
108 assertSame(mGlue, host.mGlue); in customRowPresenter()
109 assertSame(host, mGlue.getHost()); in customRowPresenter()
[all …]
DPlaybackTransportControlGlueTest.java70 PlaybackTransportControlGlueImpl mGlue; field in PlaybackTransportControlGlueTest
87 mGlue = new PlaybackTransportControlGlueImpl(mContext, mAdapter); in setupWithMockAdapterAndViewHolder()
89 mGlue.setHost(host); in setupWithMockAdapterAndViewHolder()
92 mGlue.getPlaybackRowPresenter(); in setupWithMockAdapterAndViewHolder()
96 presenter.onBindViewHolder(mViewHolder, mGlue.getControlsRow()); in setupWithMockAdapterAndViewHolder()
102 mGlue.play(); in playMockAdapter()
114 mGlue = new PlaybackTransportControlGlueImpl(mContext); in usingDefaultRowAndPresenter()
119 mGlue.setHost(host); in usingDefaultRowAndPresenter()
120 assertSame(mGlue, host.mGlue); in usingDefaultRowAndPresenter()
121 assertSame(host, mGlue.getHost()); in usingDefaultRowAndPresenter()
[all …]
DPlaybackGlueTest.java57 assertSame(glue, host.mGlue); in glueAndHostInteraction()
76 assertSame(glue2, host.mGlue); in glueAndHostInteraction()
82 assertNull(host.mGlue); in glueAndHostInteraction()
/frameworks/support/leanback/src/main/java/androidx/leanback/media/
DPlaybackGlueHost.java48 PlaybackGlue mGlue; field in PlaybackGlueHost
215 if (mGlue != null) { in attachToGlue()
216 mGlue.onDetachedFromHost(); in attachToGlue()
218 mGlue = glue; in attachToGlue()
219 if (mGlue != null) { in attachToGlue()
220 mGlue.onAttachedToHost(this); in attachToGlue()
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
DPlaybackTransportControlFragment.java53 private PlaybackTransportControlGlueSample mGlue; field in PlaybackTransportControlFragment
70 mGlue = new PlaybackTransportControlGlueSample(context, new PlayerAdapter()) { in createComponents()
84 mGlue.setTitle("Title"); in createComponents()
85 mGlue.setSubtitle("Android developer"); in createComponents()
86 mGlue.setHost(new PlaybackFragmentGlueHost(this)); in createComponents()
87 mGlue.setSeekProvider(new PlaybackSeekDataProviderSample( in createComponents()
123 setControlsOverlayAutoHideEnabled(mGlue.isPlaying()); in onPictureInPictureModeChanged()
DPlaybackTransportControlSupportFragment.java56 private PlaybackTransportControlGlueSample mGlue; field in PlaybackTransportControlSupportFragment
73 mGlue = new PlaybackTransportControlGlueSample(context, new PlayerAdapter()) { in createComponents()
87 mGlue.setTitle("Title"); in createComponents()
88 mGlue.setSubtitle("Android developer"); in createComponents()
89 mGlue.setHost(new PlaybackSupportFragmentGlueHost(this)); in createComponents()
90 mGlue.setSeekProvider(new PlaybackSeekDataProviderSample( in createComponents()
126 setControlsOverlayAutoHideEnabled(mGlue.isPlaying()); in onPictureInPictureModeChanged()
DPlaybackFragment.java58 private PlaybackControlGlue mGlue; field in PlaybackFragment
76 mGlue = new PlaybackControlGlue(context) { in createComponents()
104 mGlue.setHost(new PlaybackFragmentGlueHost(this)); in createComponents()
139 setFadingEnabled(mGlue.isPlaying()); in onPictureInPictureModeChanged()
DPlaybackSupportFragment.java61 private PlaybackControlGlue mGlue; field in PlaybackSupportFragment
79 mGlue = new PlaybackControlGlue(context) { in createComponents()
107 mGlue.setHost(new PlaybackSupportFragmentGlueHost(this)); in createComponents()
142 setFadingEnabled(mGlue.isPlaying()); in onPictureInPictureModeChanged()
DMusicPlayerFragment.java58 mGlue.pause(); in onPrepared()
172 private PlaybackBannerMusicPlayerControlGlue<MediaControllerAdapter> mGlue; field in MusicPlayerFragment
209 mGlue = new PlaybackBannerMusicPlayerControlGlue<>(getActivity(), fastForwardSpeed,
215 mGlue.setHost(new PlaybackFragmentGlueHost(MusicPlayerFragment.this));
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
DVideoFragmentTest.java133 MediaPlayerGlue mGlue; field in VideoFragmentTest.Fragment_withVideoPlayer
150 mGlue = new MediaPlayerGlue(getActivity()) { in onCreate()
163 mGlue.setMode(MediaPlayerGlue.REPEAT_ALL); in onCreate()
164 mGlue.setArtist("Leanback"); in onCreate()
165 mGlue.setTitle("Leanback team at work"); in onCreate()
166 mGlue.setMediaSource( in onCreate()
168 mGlue.addPlayerCallback(new PlaybackGlue.PlayerCallback() { in onCreate()
173 mGlue.play(); in onCreate()
177 mGlue.setHost(new VideoFragmentGlueHost(this)); in onCreate()
210 return fragment.mGlue.isMediaPlaying(); in mediaPlayerGlueInVideoFragment()
[all …]
DVideoSupportFragmentTest.java130 MediaPlayerGlue mGlue; field in VideoSupportFragmentTest.Fragment_withVideoPlayer
147 mGlue = new MediaPlayerGlue(getActivity()) { in onCreate()
160 mGlue.setMode(MediaPlayerGlue.REPEAT_ALL); in onCreate()
161 mGlue.setArtist("Leanback"); in onCreate()
162 mGlue.setTitle("Leanback team at work"); in onCreate()
163 mGlue.setMediaSource( in onCreate()
165 mGlue.addPlayerCallback(new PlaybackGlue.PlayerCallback() { in onCreate()
170 mGlue.play(); in onCreate()
174 mGlue.setHost(new VideoSupportFragmentGlueHost(this)); in onCreate()
207 return fragment.mGlue.isMediaPlaying(); in mediaPlayerGlueInVideoSupportFragment()
[all …]
DPlaybackTestFragment.java64 private androidx.leanback.media.PlaybackControlGlue mGlue; field in PlaybackTestFragment
98 mGlue = new PlaybackControlHelper(context) { in createComponents()
124 mGlue.setHost(new PlaybackFragmentGlueHost(this)); in createComponents()
141 return mGlue; in getGlue()
DPlaybackTestSupportFragment.java61 private androidx.leanback.media.PlaybackControlGlue mGlue; field in PlaybackTestSupportFragment
95 mGlue = new PlaybackControlHelper(context) { in createComponents()
121 mGlue.setHost(new PlaybackSupportFragmentGlueHost(this)); in createComponents()
138 return mGlue; in getGlue()
DDetailsSupportFragmentTest.java220 MediaPlayerGlue mGlue; field in DetailsSupportFragmentTest.DetailsSupportFragmentWithVideo
230 mGlue = new MediaPlayerGlue(getActivity()); in onCreate()
231 mDetailsBackground.setupVideoPlayback(mGlue); in onCreate()
233 mGlue.setMode(MediaPlayerGlue.REPEAT_ALL); in onCreate()
234 mGlue.setArtist("A Googleer"); in onCreate()
235 mGlue.setTitle("Diving with Sharks"); in onCreate()
236 mGlue.setMediaSource( in onCreate()
288 && detailsFragment.mGlue.isMediaPlaying(); in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
352 && detailsFragment.mGlue.isMediaPlaying();
423 && detailsFragment.mGlue.isMediaPlaying();
DDetailsFragmentTest.java223 MediaPlayerGlue mGlue; field in DetailsFragmentTest.DetailsFragmentWithVideo
233 mGlue = new MediaPlayerGlue(getActivity()); in onCreate()
234 mDetailsBackground.setupVideoPlayback(mGlue); in onCreate()
236 mGlue.setMode(MediaPlayerGlue.REPEAT_ALL); in onCreate()
237 mGlue.setArtist("A Googleer"); in onCreate()
238 mGlue.setTitle("Diving with Sharks"); in onCreate()
239 mGlue.setMediaSource( in onCreate()
291 && detailsFragment.mGlue.isMediaPlaying(); in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
355 && detailsFragment.mGlue.isMediaPlaying();
426 && detailsFragment.mGlue.isMediaPlaying();
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DPlaybackTransportRowPresenterTest.java54 PlaybackTransportControlGlue mGlue; field in PlaybackTransportRowPresenterTest
71 mGlue = new PlaybackTransportControlGlue(mContext, mImpl) { in setUp()
89 mGlue.setHost(mHost); in setUp()
131 assertEquals(position, mGlue.getControlsRow().getCurrentPosition()); in verifyAtHeroIndexWithDifferentPosition()
140 assertEquals(positions[heroIndex], mGlue.getControlsRow().getCurrentPosition()); in verifyAtHeroIndex()
172 mGlue.play(); in progressUpdating()
174 mGlue.pause(); in progressUpdating()
176 mGlue.seekTo(1231); in progressUpdating()
181 assertEquals(123L, mGlue.getCurrentPosition()); in progressUpdating()
182 assertEquals(20000L, mGlue.getDuration()); in progressUpdating()
[all …]