Home
last modified time | relevance | path

Searched refs:glue (Results 1 – 24 of 24) sorted by relevance

/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DPlaybackControlGlueTest.java148 PlaybackControlGlue glue; field in PlaybackControlGlueTest
157 glue = new PlayControlGlueImpl(context, new int[]{ in setUp()
172 glue.setControlsRow(row); in testFastForwardToMaxThenReset()
182 assertFalse(glue.isMediaPlaying()); in testFastForwardToMaxThenReset()
183 glue.onActionClicked(playPause); in testFastForwardToMaxThenReset()
184 assertTrue(glue.isMediaPlaying()); in testFastForwardToMaxThenReset()
185 assertEquals(PlaybackControlGlue.PLAYBACK_SPEED_NORMAL, glue.getCurrentSpeedId()); in testFastForwardToMaxThenReset()
190 glue.onActionClicked(fastForward); in testFastForwardToMaxThenReset()
191 assertEquals(PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0, glue.getCurrentSpeedId()); in testFastForwardToMaxThenReset()
194 glue.onActionClicked(fastForward); in testFastForwardToMaxThenReset()
[all …]
DPlaybackControlSupportGlueTest.java151 PlaybackControlSupportGlue glue; field in PlaybackControlSupportGlueTest
160 glue = new PlayControlGlueImpl(context, new int[]{ in setUp()
175 glue.setControlsRow(row); in testFastForwardToMaxThenReset()
185 assertFalse(glue.isMediaPlaying()); in testFastForwardToMaxThenReset()
186 glue.onActionClicked(playPause); in testFastForwardToMaxThenReset()
187 assertTrue(glue.isMediaPlaying()); in testFastForwardToMaxThenReset()
188 assertEquals(PlaybackControlSupportGlue.PLAYBACK_SPEED_NORMAL, glue.getCurrentSpeedId()); in testFastForwardToMaxThenReset()
193 glue.onActionClicked(fastForward); in testFastForwardToMaxThenReset()
194 assertEquals(PlaybackControlSupportGlue.PLAYBACK_SPEED_FAST_L0, glue.getCurrentSpeedId()); in testFastForwardToMaxThenReset()
197 glue.onActionClicked(fastForward); in testFastForwardToMaxThenReset()
[all …]
DDetailsFragmentTest.java585 final MediaPlayerGlue glue = new MediaPlayerGlue(activity);
586 detailsFragment.mDetailsBackgroundController.setupVideoPlayback(glue);
587 glue.setMode(MediaPlayerGlue.REPEAT_ALL);
588 glue.setArtist("A Googleer");
589 glue.setTitle("Diving with Sharks");
590 glue.setMediaSource(Uri.parse(
760 final MediaPlayerGlue glue = new MediaPlayerGlue(activity);
761 detailsFragment.mDetailsBackgroundController.setupVideoPlayback(glue);
762 glue.setMode(MediaPlayerGlue.REPEAT_ALL);
763 glue.setArtist("A Googleer");
[all …]
DDetailsSupportFragmentTest.java588 final MediaPlayerGlue glue = new MediaPlayerGlue(activity);
589 detailsFragment.mDetailsBackgroundController.setupVideoPlayback(glue);
590 glue.setMode(MediaPlayerGlue.REPEAT_ALL);
591 glue.setArtist("A Googleer");
592 glue.setTitle("Diving with Sharks");
593 glue.setMediaSource(Uri.parse(
763 final MediaPlayerGlue glue = new MediaPlayerGlue(activity);
764 detailsFragment.mDetailsBackgroundController.setupVideoPlayback(glue);
765 glue.setMode(MediaPlayerGlue.REPEAT_ALL);
766 glue.setArtist("A Googleer");
[all …]
DPlaybackSupportFragmentTest.java69 PlaybackGlue glue = fragment.getGlue(); in testDetachCalledWhenDestroyFragment() local
82 assertNull(glue.getHost()); in testDetachCalledWhenDestroyFragment()
308 PlaybackGlue glue = new PlaybackControlGlue( in onCreate() local
355 glue.setHost(new PlaybackSupportFragmentGlueHost(this)); in onCreate()
DPlaybackFragmentTest.java66 PlaybackGlue glue = fragment.getGlue(); in testDetachCalledWhenDestroyFragment() local
79 assertNull(glue.getHost()); in testDetachCalledWhenDestroyFragment()
305 PlaybackGlue glue = new PlaybackControlGlue( in onCreate() local
352 glue.setHost(new PlaybackFragmentGlueHost(this)); in onCreate()
DVideoSupportFragmentTest.java171 public void onPreparedStateChanged(PlaybackGlue glue) { in onCreate()
172 if (glue.isPrepared()) { in onCreate()
DVideoFragmentTest.java168 public void onPreparedStateChanged(PlaybackGlue glue) { in onCreate()
169 if (glue.isPrepared()) { in onCreate()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/media/
DPlaybackGlueTest.java49 PlaybackGlue glue = Mockito.spy(new PlaybackGlueImpl(context)); in glueAndHostInteraction() local
52 glue.setHost(host); in glueAndHostInteraction()
53 Mockito.verify(glue, times(1)).onAttachedToHost(host); in glueAndHostInteraction()
54 assertSame(glue, host.mGlue); in glueAndHostInteraction()
55 assertSame(host, glue.getHost()); in glueAndHostInteraction()
58 Mockito.verify(glue, times(1)).onHostStart(); in glueAndHostInteraction()
61 Mockito.verify(glue, times(1)).onHostResume(); in glueAndHostInteraction()
64 Mockito.verify(glue, times(1)).onHostPause(); in glueAndHostInteraction()
67 Mockito.verify(glue, times(1)).onHostStop(); in glueAndHostInteraction()
71 Mockito.verify(glue, times(1)).onDetachedFromHost(); in glueAndHostInteraction()
[all …]
DMediaPlayerGlueTest.java57 final MediaPlayerGlue glue = Mockito.spy(result[0]); in mediaPlayer() local
58 Mockito.when(glue.getUpdatePeriod()).thenReturn(100); in mediaPlayer()
62 glue.setHost(host); in mediaPlayer()
63 glue.setMode(MediaPlayerGlue.REPEAT_ALL); in mediaPlayer()
65 glue.setPlayerCallback(new PlaybackGlue.PlayerCallback() { in mediaPlayer()
68 glue.play(); in mediaPlayer()
76 glue.setMediaSource(Uri.parse( in mediaPlayer()
91 glue.enableProgressUpdating(true); in mediaPlayer()
94 Mockito.reset(glue); in mediaPlayer()
96 Mockito.verify(glue, atLeastOnce()).updateProgress(); in mediaPlayer()
[all …]
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DSampleVideoSupportFragment.java54 static void playWhenReady(PlaybackGlue glue) { in playWhenReady() argument
55 if (glue.isPrepared()) { in playWhenReady()
56 glue.play(); in playWhenReady()
58 glue.addPlayerCallback(new PlaybackGlue.PlayerCallback() { in playWhenReady()
60 public void onPreparedStateChanged(PlaybackGlue glue) { in playWhenReady()
61 if (glue.isPrepared()) { in playWhenReady()
62 glue.removePlayerCallback(this); in playWhenReady()
63 glue.play(); in playWhenReady()
70 static void loadSeekData(final PlaybackTransportControlGlue glue) { in loadSeekData() argument
71 if (glue.isPrepared()) { in loadSeekData()
[all …]
DSampleVideoFragment.java51 static void playWhenReady(PlaybackGlue glue) { in playWhenReady() argument
52 if (glue.isPrepared()) { in playWhenReady()
53 glue.play(); in playWhenReady()
55 glue.addPlayerCallback(new PlaybackGlue.PlayerCallback() { in playWhenReady()
57 public void onPreparedStateChanged(PlaybackGlue glue) { in playWhenReady()
58 if (glue.isPrepared()) { in playWhenReady()
59 glue.removePlayerCallback(this); in playWhenReady()
60 glue.play(); in playWhenReady()
67 static void loadSeekData(final PlaybackTransportControlGlue glue) { in loadSeekData() argument
68 if (glue.isPrepared()) { in loadSeekData()
[all …]
DNewDetailsSupportFragment.java106 public void onPreparedStateChanged(PlaybackGlue glue) { in setupMainVideo()
107 super.onPreparedStateChanged(glue); in setupMainVideo()
108 PlaybackTransportControlGlue controlGlue = (PlaybackTransportControlGlue) glue; in setupMainVideo()
DNewDetailsFragment.java103 public void onPreparedStateChanged(PlaybackGlue glue) { in setupMainVideo()
104 super.onPreparedStateChanged(glue); in setupMainVideo()
105 PlaybackTransportControlGlue controlGlue = (PlaybackTransportControlGlue) glue; in setupMainVideo()
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
DKCode.kt25 class Appendix(val glue : String, val code : KCode) in <lambda>() constant in android.databinding.tool.writer.KCode.Appendix
103 fun app(glue : String = "", c : KCode?) : KCode { in <lambda>()
107 nodes.add(Appendix(glue, c!!)) in <lambda>()
116 fun app(glue : String = "", s : String?, init : (KCode.() -> Unit)? = null) : KCode { in <lambda>()
121 return app(glue, c) in <lambda>()
133 sb.append(it.glue) in <lambda>()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/media/
DPlaybackGlue.java63 public void onPreparedStateChanged(PlaybackGlue glue) { in onPreparedStateChanged() argument
64 if (glue.isPrepared()) { in onPreparedStateChanged()
73 public void onPlayStateChanged(PlaybackGlue glue) { in onPlayStateChanged() argument
80 public void onPlayCompleted(PlaybackGlue glue) { in onPlayCompleted() argument
DPlaybackTransportControlGlue.java109 PlaybackTransportControlGlue glue = in handleMessage() local
111 if (glue != null) { in handleMessage()
112 glue.onUpdatePlaybackState(); in handleMessage()
152 PlaybackBaseControlGlue glue = (PlaybackBaseControlGlue) obj; in onCreateRowPresenter()
153 viewHolder.getTitle().setText(glue.getTitle()); in onCreateRowPresenter()
154 viewHolder.getSubtitle().setText(glue.getSubtitle()); in onCreateRowPresenter()
DPlaybackGlueHost.java213 final void attachToGlue(PlaybackGlue glue) { in attachToGlue() argument
217 mGlue = glue; in attachToGlue()
DPlaybackControlGlue.java196 PlaybackControlGlue glue = ((WeakReference<PlaybackControlGlue>) msg.obj).get(); in handleMessage() local
197 if (glue != null) { in handleMessage()
198 glue.updatePlaybackState(); in handleMessage()
282 PlaybackControlGlue glue = (PlaybackControlGlue) object; in onCreateControlsRowAndPresenter()
283 if (glue.hasValidMedia()) { in onCreateControlsRowAndPresenter()
284 viewHolder.getTitle().setText(glue.getMediaTitle()); in onCreateControlsRowAndPresenter()
285 viewHolder.getSubtitle().setText(glue.getMediaSubtitle()); in onCreateControlsRowAndPresenter()
DPlaybackBannerControlGlue.java297 PlaybackBannerControlGlue glue = (PlaybackBannerControlGlue) object; in onCreateRowPresenter()
298 viewHolder.getTitle().setText(glue.getTitle()); in onCreateRowPresenter()
299 viewHolder.getSubtitle().setText(glue.getSubtitle()); in onCreateRowPresenter()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/
DLocation.java199 int glue = str.indexOf('-'); in fromUserReadableString() local
200 if (glue == -1) { in fromUserReadableString()
203 String start = str.substring(0, glue); in fromUserReadableString()
204 String end = str.substring(glue + 1); in fromUserReadableString()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DDetailsBackgroundVideoHelper.java237 public void onPreparedStateChanged(PlaybackGlue glue) { in onPreparedStateChanged() argument
238 if (glue.isPrepared()) { in onPreparedStateChanged()
/frameworks/wilhelm/src/
DREADME.txt7 * Common glue code
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...