Home
last modified time | relevance | path

Searched refs:MediaControllerCompat (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
DMediaBrowserSupport.java21 import android.support.v4.media.session.MediaControllerCompat;
47 MediaControllerCompat mediaController = MediaControllerCompat.getMediaController(this); in onMediaItemSelected()
64 public void setMediaController(MediaControllerCompat mediaController) { in setMediaController()
65 MediaControllerCompat.setMediaController(this, mediaController); in setMediaController()
DQueueFragment.java23 import android.support.v4.media.session.MediaControllerCompat;
53 private MediaControllerCompat.TransportControls mTransportControls;
54 private MediaControllerCompat mMediaController;
70 mMediaController = new MediaControllerCompat(getActivity(),
102 ((MediaBrowserSupport) getActivity()).setMediaController((MediaControllerCompat) null);
108 private MediaControllerCompat.Callback mSessionCallback = new MediaControllerCompat.Callback() {
DMediaNotificationManager.java31 import android.support.v4.media.session.MediaControllerCompat;
60 private MediaControllerCompat mController;
61 private MediaControllerCompat.TransportControls mTransportControls;
181 mController = new MediaControllerCompat(mService, mSessionToken); in updateSessionToken()
199 private final MediaControllerCompat.Callback mCb = new MediaControllerCompat.Callback() {
DBrowseFragment.java23 import android.support.v4.media.session.MediaControllerCompat;
142 MediaControllerCompat mediaController = null;
144 mediaController = new MediaControllerCompat(getActivity(),
168 ((MediaBrowserSupport) getActivity()).setMediaController((MediaControllerCompat) null);
/frameworks/support/media-widget/src/androidTest/java/androidx/media/widget/
DVideoView2Test.java40 import android.support.v4.media.session.MediaControllerCompat;
90 private MediaControllerCompat mController;
171 final MediaControllerCompat.Callback mockControllerCallback = in testPlayVideo()
172 mock(MediaControllerCompat.Callback.class); in testPlayVideo()
173 final MediaControllerCompat.Callback callbackHelper = new MediaControllerCompat.Callback() { in testPlayVideo()
207 final MediaControllerCompat.Callback mockControllerCallback = in testPlayVideoOnTextureView()
208 mock(MediaControllerCompat.Callback.class); in testPlayVideoOnTextureView()
209 final MediaControllerCompat.Callback callbackHelper = new MediaControllerCompat.Callback() { in testPlayVideoOnTextureView()
/frameworks/support/leanback/src/main/java/androidx/leanback/media/
DMediaControllerGlue.java25 import android.support.v4.media.session.MediaControllerCompat;
39 MediaControllerCompat mMediaController;
41 private final MediaControllerCompat.Callback mCallback = new MediaControllerCompat.Callback() {
79 public void attachToMediaController(MediaControllerCompat mediaController) { in attachToMediaController()
106 public final MediaControllerCompat getMediaController() { in getMediaController()
DMediaControllerAdapter.java33 import android.support.v4.media.session.MediaControllerCompat;
47 private MediaControllerCompat mController;
66 MediaControllerCompat.Callback mMediaControllerCallback =
67 new MediaControllerCompat.Callback() {
125 public MediaControllerAdapter(MediaControllerCompat controller) { in MediaControllerAdapter()
137 public MediaControllerCompat getMediaController() { in getMediaController()
/frameworks/support/media/src/main/java/android/support/v4/media/session/
DMediaControllerCompat.java87 public final class MediaControllerCompat { class
135 private final MediaControllerCompat mMediaController;
137 MediaControllerExtraData(MediaControllerCompat mediaController) { in MediaControllerExtraData()
141 MediaControllerCompat getMediaController() { in getMediaController()
163 MediaControllerCompat mediaController) { in setMediaController()
189 public static MediaControllerCompat getMediaController(@NonNull Activity activity) { in getMediaController()
201 return new MediaControllerCompat(activity, in getMediaController()
238 public MediaControllerCompat(Context context, @NonNull MediaSessionCompat session) { in MediaControllerCompat() method in MediaControllerCompat
262 public MediaControllerCompat(Context context, @NonNull MediaSessionCompat.Token sessionToken) in MediaControllerCompat() method in MediaControllerCompat
830 private final WeakReference<MediaControllerCompat.Callback> mCallback;
[all …]
DMediaSessionCompat.java112 private final MediaControllerCompat mController;
479 mController = new MediaControllerCompat(context, this); in MediaSessionCompat()
494 mController = new MediaControllerCompat(context, this); in MediaSessionCompat()
671 public MediaControllerCompat getController() { in getController()
1291 if (command.equals(MediaControllerCompat.COMMAND_GET_EXTRA_BINDER)) { in onCommand()
1300 } else if (command.equals(MediaControllerCompat.COMMAND_ADD_QUEUE_ITEM)) { in onCommand()
1304 MediaControllerCompat.COMMAND_ARGUMENT_MEDIA_DESCRIPTION)); in onCommand()
1305 } else if (command.equals(MediaControllerCompat.COMMAND_ADD_QUEUE_ITEM_AT)) { in onCommand()
1309 MediaControllerCompat.COMMAND_ARGUMENT_MEDIA_DESCRIPTION), in onCommand()
1310 extras.getInt(MediaControllerCompat.COMMAND_ARGUMENT_INDEX)); in onCommand()
[all …]
/frameworks/support/mediarouter/src/androidTest/java/androidx/mediarouter/media/
DMediaRouterTest.java29 import android.support.v4.media.session.MediaControllerCompat;
83 MediaControllerCompat controller = mSession.getController(); in testSessionCallbackAfterSetMediaSessionCompat()
84 MediaControllerCompat.TransportControls controls = controller.getTransportControls(); in testSessionCallbackAfterSetMediaSessionCompat()
/frameworks/support/media/version-compat-tests/previous/client/src/androidTest/java/android/support/mediacompat/client/
DMediaControllerCompatCallbackTest.java83 import android.support.v4.media.session.MediaControllerCompat;
124 private MediaControllerCompat mController;
149 mController = new MediaControllerCompat(getTargetContext(), mSessionToken); in setUp()
489 MediaControllerCompat.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in testPlaybackToLocalAndRemote()
496 MediaControllerCompat.PlaybackInfo info = null; in testPlaybackToLocalAndRemote()
506 == MediaControllerCompat.PlaybackInfo.PLAYBACK_TYPE_REMOTE) { in testPlaybackToLocalAndRemote()
511 assertEquals(MediaControllerCompat.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in testPlaybackToLocalAndRemote()
520 assertEquals(MediaControllerCompat.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in testPlaybackToLocalAndRemote()
540 assertEquals(MediaControllerCompat.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in testPlaybackToLocalAndRemote()
576 MediaControllerCompat controller = new MediaControllerCompat( in testSessionReady()
[all …]
DClientBroadcastReceiver.java66 import android.support.v4.media.session.MediaControllerCompat;
67 import android.support.v4.media.session.MediaControllerCompat.TransportControls;
76 MediaControllerCompat controller; in onReceive()
78 controller = new MediaControllerCompat(context, in onReceive()
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/android/support/mediacompat/client/
DMediaControllerCompatCallbackTest.java82 import android.support.v4.media.session.MediaControllerCompat;
125 private MediaControllerCompat mController;
150 mController = new MediaControllerCompat(getTargetContext(), mSessionToken); in setUp()
490 MediaControllerCompat.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in testPlaybackToLocalAndRemote()
497 MediaControllerCompat.PlaybackInfo info = null; in testPlaybackToLocalAndRemote()
507 == MediaControllerCompat.PlaybackInfo.PLAYBACK_TYPE_REMOTE) { in testPlaybackToLocalAndRemote()
512 assertEquals(MediaControllerCompat.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in testPlaybackToLocalAndRemote()
521 assertEquals(MediaControllerCompat.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in testPlaybackToLocalAndRemote()
541 assertEquals(MediaControllerCompat.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in testPlaybackToLocalAndRemote()
577 MediaControllerCompat controller = new MediaControllerCompat( in testSessionReady()
[all …]
DClientBroadcastReceiver.java66 import android.support.v4.media.session.MediaControllerCompat;
67 import android.support.v4.media.session.MediaControllerCompat.TransportControls;
76 MediaControllerCompat controller; in onReceive()
78 controller = new MediaControllerCompat(context, in onReceive()
/frameworks/support/media/src/main/java/androidx/media/session/
DMediaButtonReceiver.java32 import android.support.v4.media.session.MediaControllerCompat;
156 MediaControllerCompat mediaController = new MediaControllerCompat(mContext, in onConnected()
200 MediaControllerCompat mediaController = mediaSessionCompat.getController(); in handleIntent()
/frameworks/support/media-widget/src/main/java/androidx/media/widget/
DVideoView2Impl.java22 import android.support.v4.media.session.MediaControllerCompat;
86 MediaControllerCompat getMediaController(); in getMediaController()
DVideoView2.java27 import android.support.v4.media.session.MediaControllerCompat;
211 public MediaControllerCompat getMediaController() { in getMediaController()
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
DMusicPlayerFragment.java25 import android.support.v4.media.session.MediaControllerCompat;
173 private MediaControllerCompat mController;
206 mController = new MediaControllerCompat(MusicPlayerFragment.this.getActivity(),
/frameworks/support/samples/SupportMediaDemos/src/main/java/com/example/androidx/media/
DVideoViewTest.java28 import android.support.v4.media.session.MediaControllerCompat;
170 MediaControllerCompat.Callback mMediaControllerCallback = new MediaControllerCompat.Callback() {
/frameworks/support/media/api_legacy/
D26.0.0.txt335 public final class MediaControllerCompat {
336 …ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaS…
337 …ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaS…
344 …method public static android.support.v4.media.session.MediaControllerCompat getMediaController(and…
348 …method public android.support.v4.media.session.MediaControllerCompat.PlaybackInfo getPlaybackInfo(…
357 …method public android.support.v4.media.session.MediaControllerCompat.TransportControls getTranspor…
360 …method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callbac…
361 …method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callbac…
365 …d setMediaController(android.app.Activity, android.support.v4.media.session.MediaControllerCompat);
367 …method public void unregisterCallback(android.support.v4.media.session.MediaControllerCompat.Callb…
[all …]
D26.1.0.txt335 public final class MediaControllerCompat {
336 …ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaS…
337 …ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaS…
344 …method public static android.support.v4.media.session.MediaControllerCompat getMediaController(and…
348 …method public android.support.v4.media.session.MediaControllerCompat.PlaybackInfo getPlaybackInfo(…
357 …method public android.support.v4.media.session.MediaControllerCompat.TransportControls getTranspor…
360 …method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callbac…
361 …method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callbac…
365 …d setMediaController(android.app.Activity, android.support.v4.media.session.MediaControllerCompat);
367 …method public void unregisterCallback(android.support.v4.media.session.MediaControllerCompat.Callb…
[all …]
D28.0.0-alpha1.txt335 public final class MediaControllerCompat {
336 …ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaS…
337 …ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaS…
344 …method public static android.support.v4.media.session.MediaControllerCompat getMediaController(and…
348 …method public android.support.v4.media.session.MediaControllerCompat.PlaybackInfo getPlaybackInfo(…
357 …method public android.support.v4.media.session.MediaControllerCompat.TransportControls getTranspor…
360 …method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callbac…
361 …method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callbac…
365 …d setMediaController(android.app.Activity, android.support.v4.media.session.MediaControllerCompat);
367 …method public void unregisterCallback(android.support.v4.media.session.MediaControllerCompat.Callb…
[all …]
Dcurrent.txt335 public final class MediaControllerCompat {
336 …ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaS…
337 …ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaS…
344 …method public static android.support.v4.media.session.MediaControllerCompat getMediaController(and…
348 …method public android.support.v4.media.session.MediaControllerCompat.PlaybackInfo getPlaybackInfo(…
357 …method public android.support.v4.media.session.MediaControllerCompat.TransportControls getTranspor…
360 …method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callbac…
361 …method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callbac…
365 …d setMediaController(android.app.Activity, android.support.v4.media.session.MediaControllerCompat);
367 …method public void unregisterCallback(android.support.v4.media.session.MediaControllerCompat.Callb…
[all …]
D27.1.0.txt335 public final class MediaControllerCompat {
336 …ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaS…
337 …ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaS…
344 …method public static android.support.v4.media.session.MediaControllerCompat getMediaController(and…
348 …method public android.support.v4.media.session.MediaControllerCompat.PlaybackInfo getPlaybackInfo(…
357 …method public android.support.v4.media.session.MediaControllerCompat.TransportControls getTranspor…
360 …method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callbac…
361 …method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callbac…
365 …d setMediaController(android.app.Activity, android.support.v4.media.session.MediaControllerCompat);
367 …method public void unregisterCallback(android.support.v4.media.session.MediaControllerCompat.Callb…
[all …]
D27.0.0.txt335 public final class MediaControllerCompat {
336 …ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaS…
337 …ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaS…
344 …method public static android.support.v4.media.session.MediaControllerCompat getMediaController(and…
348 …method public android.support.v4.media.session.MediaControllerCompat.PlaybackInfo getPlaybackInfo(…
357 …method public android.support.v4.media.session.MediaControllerCompat.TransportControls getTranspor…
360 …method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callbac…
361 …method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callbac…
365 …d setMediaController(android.app.Activity, android.support.v4.media.session.MediaControllerCompat);
367 …method public void unregisterCallback(android.support.v4.media.session.MediaControllerCompat.Callb…
[all …]

123