Home
last modified time | relevance | path

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

/frameworks/support/leanback/src/androidTest/java/androidx/leanback/media/
DPlaybackGlueTest.java52 PlaybackGlue glue = Mockito.spy(new PlaybackGlueImpl(context)); in glueAndHostInteraction() local
55 glue.setHost(host); in glueAndHostInteraction()
56 Mockito.verify(glue, times(1)).onAttachedToHost(host); in glueAndHostInteraction()
57 assertSame(glue, host.mGlue); in glueAndHostInteraction()
58 assertSame(host, glue.getHost()); in glueAndHostInteraction()
61 Mockito.verify(glue, times(1)).onHostStart(); in glueAndHostInteraction()
64 Mockito.verify(glue, times(1)).onHostResume(); in glueAndHostInteraction()
67 Mockito.verify(glue, times(1)).onHostPause(); in glueAndHostInteraction()
70 Mockito.verify(glue, times(1)).onHostStop(); in glueAndHostInteraction()
74 Mockito.verify(glue, times(1)).onDetachedFromHost(); in glueAndHostInteraction()
[all …]
DMediaPlayerGlueTest.java58 final MediaPlayerGlue glue = Mockito.spy(result[0]); in mediaPlayer() local
59 Mockito.when(glue.getUpdatePeriod()).thenReturn(100); in mediaPlayer()
63 glue.setHost(host); in mediaPlayer()
64 glue.setMode(MediaPlayerGlue.REPEAT_ALL); in mediaPlayer()
66 glue.addPlayerCallback(new PlaybackGlue.PlayerCallback() { in mediaPlayer()
68 public void onPreparedStateChanged(PlaybackGlue glue) { in mediaPlayer()
69 if (glue.isPrepared()) { in mediaPlayer()
70 glue.play(); in mediaPlayer()
78 glue.setMediaSource(Uri.parse( in mediaPlayer()
93 glue.enableProgressUpdating(true); in mediaPlayer()
[all …]
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
DSampleVideoSupportFragment.java62 static void playWhenReady(PlaybackGlue glue) { in playWhenReady() argument
63 if (glue.isPrepared()) { in playWhenReady()
64 glue.play(); in playWhenReady()
66 glue.addPlayerCallback(new PlaybackGlue.PlayerCallback() { in playWhenReady()
68 public void onPreparedStateChanged(PlaybackGlue glue) { in playWhenReady()
69 if (glue.isPrepared()) { in playWhenReady()
70 glue.removePlayerCallback(this); in playWhenReady()
71 glue.play(); in playWhenReady()
78 static void loadSeekData(final PlaybackTransportControlGlue glue) { in loadSeekData() argument
79 if (glue.isPrepared()) { in loadSeekData()
[all …]
DSampleVideoFragment.java59 static void playWhenReady(PlaybackGlue glue) { in playWhenReady() argument
60 if (glue.isPrepared()) { in playWhenReady()
61 glue.play(); in playWhenReady()
63 glue.addPlayerCallback(new PlaybackGlue.PlayerCallback() { in playWhenReady()
65 public void onPreparedStateChanged(PlaybackGlue glue) { in playWhenReady()
66 if (glue.isPrepared()) { in playWhenReady()
67 glue.removePlayerCallback(this); in playWhenReady()
68 glue.play(); in playWhenReady()
75 static void loadSeekData(final PlaybackTransportControlGlue glue) { in loadSeekData() argument
76 if (glue.isPrepared()) { in loadSeekData()
[all …]
DVideoConsumptionWithDetailCardFragment.java49 private static void playWhenReady(PlaybackGlue glue) { in playWhenReady() argument
50 if (glue.isPrepared()) { in playWhenReady()
51 glue.play(); in playWhenReady()
53 glue.addPlayerCallback(new PlaybackGlue.PlayerCallback() { in playWhenReady()
55 public void onPreparedStateChanged(PlaybackGlue glue) { in playWhenReady()
56 if (glue.isPrepared()) { in playWhenReady()
57 glue.removePlayerCallback(this); in playWhenReady()
58 glue.play(); in playWhenReady()
DNewDetailsSupportFragment.java108 public void onPreparedStateChanged(PlaybackGlue glue) { in setupMainVideo()
109 super.onPreparedStateChanged(glue); in setupMainVideo()
110 PlaybackTransportControlGlue controlGlue = (PlaybackTransportControlGlue) glue; in setupMainVideo()
DNewDetailsFragment.java105 public void onPreparedStateChanged(PlaybackGlue glue) { in setupMainVideo()
106 super.onPreparedStateChanged(glue); in setupMainVideo()
107 PlaybackTransportControlGlue controlGlue = (PlaybackTransportControlGlue) glue; in setupMainVideo()
/frameworks/support/leanback/src/main/java/androidx/leanback/media/
DPlaybackGlue.java56 public void onPreparedStateChanged(PlaybackGlue glue) { in onPreparedStateChanged() argument
63 public void onPlayStateChanged(PlaybackGlue glue) { in onPlayStateChanged() argument
70 public void onPlayCompleted(PlaybackGlue glue) { in onPlayCompleted() argument
153 public void onPreparedStateChanged(PlaybackGlue glue) { in playWhenPrepared()
154 if (glue.isPrepared()) { in playWhenPrepared()
DPlaybackTransportControlGlue.java102 PlaybackTransportControlGlue glue = in handleMessage() local
104 if (glue != null) { in handleMessage()
105 glue.onUpdatePlaybackState(); in handleMessage()
145 PlaybackBaseControlGlue glue = (PlaybackBaseControlGlue) obj; in onCreateRowPresenter()
146 viewHolder.getTitle().setText(glue.getTitle()); in onCreateRowPresenter()
147 viewHolder.getSubtitle().setText(glue.getSubtitle()); in onCreateRowPresenter()
DPlaybackGlueHost.java214 final void attachToGlue(PlaybackGlue glue) { in attachToGlue() argument
218 mGlue = glue; in attachToGlue()
DPlaybackControlGlue.java198 PlaybackControlGlue glue = ((WeakReference<PlaybackControlGlue>) msg.obj).get(); in handleMessage() local
199 if (glue != null) { in handleMessage()
200 glue.updatePlaybackState(); in handleMessage()
284 PlaybackControlGlue glue = (PlaybackControlGlue) object; in onCreateControlsRowAndPresenter()
285 if (glue.hasValidMedia()) { in onCreateControlsRowAndPresenter()
286 viewHolder.getTitle().setText(glue.getMediaTitle()); in onCreateControlsRowAndPresenter()
287 viewHolder.getSubtitle().setText(glue.getMediaSubtitle()); in onCreateControlsRowAndPresenter()
DPlaybackBannerControlGlue.java330 PlaybackBannerControlGlue glue = (PlaybackBannerControlGlue) object; in onCreateRowPresenter()
331 viewHolder.getTitle().setText(glue.getTitle()); in onCreateRowPresenter()
332 viewHolder.getSubtitle().setText(glue.getSubtitle()); in onCreateRowPresenter()
/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/leanback/src/androidTest/java/androidx/leanback/app/
DDetailsSupportFragmentTest.java587 final MediaPlayerGlue glue = new MediaPlayerGlue(activity);
588 detailsFragment.mDetailsBackgroundController.setupVideoPlayback(glue);
589 glue.setMode(MediaPlayerGlue.REPEAT_ALL);
590 glue.setArtist("A Googleer");
591 glue.setTitle("Diving with Sharks");
592 glue.setMediaSource(Uri.parse(
762 final MediaPlayerGlue glue = new MediaPlayerGlue(activity);
763 detailsFragment.mDetailsBackgroundController.setupVideoPlayback(glue);
764 glue.setMode(MediaPlayerGlue.REPEAT_ALL);
765 glue.setArtist("A Googleer");
[all …]
DDetailsFragmentTest.java590 final MediaPlayerGlue glue = new MediaPlayerGlue(activity);
591 detailsFragment.mDetailsBackgroundController.setupVideoPlayback(glue);
592 glue.setMode(MediaPlayerGlue.REPEAT_ALL);
593 glue.setArtist("A Googleer");
594 glue.setTitle("Diving with Sharks");
595 glue.setMediaSource(Uri.parse(
765 final MediaPlayerGlue glue = new MediaPlayerGlue(activity);
766 detailsFragment.mDetailsBackgroundController.setupVideoPlayback(glue);
767 glue.setMode(MediaPlayerGlue.REPEAT_ALL);
768 glue.setArtist("A Googleer");
[all …]
DPlaybackFragmentTest.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 PlaybackFragmentGlueHost(this)); in onCreate()
DPlaybackSupportFragmentTest.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 PlaybackSupportFragmentGlueHost(this)); in onCreate()
DVideoFragmentTest.java170 public void onPreparedStateChanged(PlaybackGlue glue) { in onCreate()
171 if (glue.isPrepared()) { in onCreate()
DVideoSupportFragmentTest.java167 public void onPreparedStateChanged(PlaybackGlue glue) { in onCreate()
168 if (glue.isPrepared()) { in onCreate()
/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/leanback/src/main/java/androidx/leanback/app/
DDetailsBackgroundVideoHelper.java238 public void onPreparedStateChanged(PlaybackGlue glue) { in onPreparedStateChanged() argument
239 if (glue.isPrepared()) { in onPreparedStateChanged()
/frameworks/wilhelm/src/
DREADME.txt7 * Common glue code
/frameworks/support/work/integration-tests/testapp/src/main/assets/
Dcase.txt8555 "It is glue, Watson," said he. "Unquestionably it is glue. Have a
8562 in the centre are undoubtedly glue."
8570 maker who habitually handles glue."
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...