HomeSort by relevance Sort by last modified time
    Searched refs:MediaController (Results 1 - 25 of 78) sorted by null

1 2 3 4

  /frameworks/support/v4/api23/android/support/v4/media/session/
MediaControllerCompatApi23.java 19 import android.media.session.MediaController;
27 ((MediaController.TransportControls) controlsObj).playFromUri(uri, extras);
  /frameworks/support/v4/api24/android/support/v4/media/session/
MediaControllerCompatApi24.java 19 import android.media.session.MediaController;
27 ((MediaController.TransportControls) controlsObj).prepare();
31 ((MediaController.TransportControls) controlsObj).prepareFromMediaId(mediaId, extras);
35 ((MediaController.TransportControls) controlsObj).prepareFromSearch(query, extras);
39 ((MediaController.TransportControls) controlsObj).prepareFromUri(uri, extras);
  /frameworks/support/v4/api21/android/support/v4/media/session/
MediaControllerCompatApi21.java 25 import android.media.session.MediaController;
38 return new MediaController(context, (MediaSession.Token) sessionToken);
46 ((MediaController) controllerObj).registerCallback(
47 (MediaController.Callback)callbackObj, handler);
51 ((MediaController) controllerObj)
52 .unregisterCallback((MediaController.Callback) callbackObj);
56 return ((MediaController)controllerObj).getTransportControls();
60 return ((MediaController)controllerObj).getPlaybackState();
64 return ((MediaController)controllerObj).getMetadata();
68 List<MediaSession.QueueItem> queue = ((MediaController) controllerObj).getQueue()
    [all...]
  /external/webrtc/talk/app/webrtc/
mediacontroller.cc 28 #include "talk/app/webrtc/mediacontroller.h"
41 class MediaController : public webrtc::MediaControllerInterface,
44 MediaController(rtc::Thread* worker_thread,
49 rtc::Bind(&MediaController::Construct_w, this,
52 ~MediaController() override {
53 worker_thread_->Invoke<void>(rtc::Bind(&MediaController::Destruct_w, this));
85 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(MediaController);
94 return new MediaController(worker_thread, channel_manager);
  /cts/tests/tests/media/src/android/media/cts/
MediaSessionManagerTest.java 19 import android.media.session.MediaController;
38 List<MediaController> controllers = mSessionManager.getActiveSessions(null);
58 public void onActiveSessionsChanged(List<MediaController> controllers) {
MediaSessionTest.java 27 import android.media.session.MediaController;
84 MediaController controller = mSession.getController();
112 MediaController controller = mSession.getController();
236 MediaController controller = mSession.getController();
253 MediaController.PlaybackInfo info = null;
263 == MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE) {
268 assertEquals(MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, info.getPlaybackType());
275 assertEquals(MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, info.getPlaybackType());
286 assertEquals(MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, info.getPlaybackType());
316 private void verifyNewSession(MediaController controller, String tag)
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
MediaControllerCtsActivity.java 21 import android.widget.MediaController;
26 * A minimal application for {@link MediaController} test.
MediaControllerTest.java 35 import android.widget.MediaController;
43 * Test {@link MediaController}.
47 private MediaController mMediaController;
65 new MediaController(mActivity, null);
67 new MediaController(mActivity, true);
69 new MediaController(mActivity);
74 new MediaController(mActivity, attrs);
79 * 1. Show the MediaController.
84 mMediaController = new MediaController(mActivity);
91 // otherwise MediaController never show
    [all...]
VideoViewTest.java 36 import android.widget.MediaController;
169 MediaController mediaController = new MediaController(mActivity);
170 mVideoView.setMediaController(mediaController);
309 final MediaController ctlr = new MediaController(mActivity);
  /packages/services/Car/car-cluster-demo-renderer/src/android/car/cluster/demorenderer/
MediaStateMonitor.java 20 import android.media.session.MediaController;
38 private MediaController mPrimaryMediaController;
55 private void onActiveSessionsChanged(List<MediaController> controllers) {
57 MediaController newPrimaryController = null;
74 for (MediaController m : controllers) {
118 private static class MediaListener extends MediaController.Callback {
  /frameworks/base/media/java/android/media/session/
MediaSessionManager.java 48 * @see MediaController
98 public @NonNull List<MediaController> getActiveSessions(
116 public @NonNull List<MediaController> getActiveSessionsForUser(
118 ArrayList<MediaController> controllers = new ArrayList<MediaController>();
123 MediaController controller = new MediaController(mContext, ISessionController.Stub
320 public void onActiveSessionsChanged(@Nullable List<MediaController> controllers);
343 ArrayList<MediaController> controllers
344 = new ArrayList<MediaController>();
    [all...]
MediaController.java 49 * A MediaController can be created through {@link MediaSessionManager} if you
54 * MediaController objects are thread-safe.
56 public final class MediaController {
57 private static final String TAG = "MediaController";
83 * Call for creating a MediaController directly from a binder. Should only
88 public MediaController(Context context, ISessionController sessionBinder) {
102 * Create a new MediaController from a session's token.
107 public MediaController(@NonNull Context context, @NonNull MediaSession.Token token) {
440 public boolean controlsSameSession(MediaController other) {
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
MediaSessions.java 29 import android.media.session.MediaController;
30 import android.media.session.MediaController.PlaybackInfo;
117 final MediaController controller = new MediaController(mContext, session);
125 final MediaController controller = session != null ? new MediaController(mContext, session)
133 protected void onActiveSessionsUpdatedH(List<MediaController> controllers) {
136 for (MediaController controller : controllers) {
169 protected String getControllerName(MediaController controller) {
204 private static void dump(int n, PrintWriter writer, MediaController c)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/media/
VideoViewDemo.java 27 import android.widget.MediaController;
48 mVideoView.setMediaController(new MediaController(this));
  /frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
VideoDumpActivity.java 32 import android.widget.MediaController;
69 mVideoView.setMediaController(new MediaController(context));
  /developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
QueueFragment.java 21 import android.media.session.MediaController;
48 private MediaController.TransportControls mTransportControls;
49 private MediaController mMediaController;
64 mMediaController = new MediaController(getActivity(),
97 // Receive callbacks from the MediaController. Here we update our state such as which queue
99 private MediaController.Callback mSessionCallback = new MediaController.Callback() {
240 LogHelper.d(TAG, "Queue From MediaController *** Title " +
MediaNotificationManager.java 31 import android.media.session.MediaController;
56 private MediaController mController;
57 private MediaController.TransportControls mTransportControls;
168 * (see {@link android.media.session.MediaController.Callback#onSessionDestroyed()})
177 mController = new MediaController(mService, mSessionToken);
192 private final MediaController.Callback mCb = new MediaController.Callback() {
  /developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
QueueFragment.java 21 import android.media.session.MediaController;
48 private MediaController.TransportControls mTransportControls;
49 private MediaController mMediaController;
64 mMediaController = new MediaController(getActivity(),
97 // Receive callbacks from the MediaController. Here we update our state such as which queue
99 private MediaController.Callback mSessionCallback = new MediaController.Callback() {
240 LogHelper.d(TAG, "Queue From MediaController *** Title " +
MediaNotificationManager.java 31 import android.media.session.MediaController;
56 private MediaController mController;
57 private MediaController.TransportControls mTransportControls;
168 * (see {@link android.media.session.MediaController.Callback#onSessionDestroyed()})
177 mController = new MediaController(mService, mSessionToken);
192 private final MediaController.Callback mCb = new MediaController.Callback() {
  /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
QueueFragment.java 21 import android.media.session.MediaController;
48 private MediaController.TransportControls mTransportControls;
49 private MediaController mMediaController;
64 mMediaController = new MediaController(getActivity(),
97 // Receive callbacks from the MediaController. Here we update our state such as which queue
99 private MediaController.Callback mSessionCallback = new MediaController.Callback() {
240 LogHelper.d(TAG, "Queue From MediaController *** Title " +
MediaNotificationManager.java 31 import android.media.session.MediaController;
56 private MediaController mController;
57 private MediaController.TransportControls mTransportControls;
168 * (see {@link android.media.session.MediaController.Callback#onSessionDestroyed()})
177 mController = new MediaController(mService, mSessionToken);
192 private final MediaController.Callback mCb = new MediaController.Callback() {
  /external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/
MediaSessionFacade.java 26 import android.media.session.MediaController;
45 * like MediaSession, MediaSessionManager, MediaController.
57 private List<MediaController> mActiveControllers = null;
77 public void onActiveSessionsChanged(List<MediaController> controllers) {
81 MediaController controller = controllers.get(i);
97 for (MediaController mc : mActiveControllers) {
153 private MediaController getMediaController(int idx) {
  /frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/
PipControlsView.java 20 import android.media.session.MediaController;
55 private MediaController mMediaController;
66 private MediaController.Callback mMediaControllerCallback = new MediaController.Callback() {
175 MediaController newController = mPipManager.getMediaController();
  /frameworks/base/tests/OneMedia/src/com/android/onemedia/
PlayerController.java 20 import android.media.session.MediaController;
44 protected MediaController mController;
46 protected MediaController.TransportControls mTransportControls;
186 mController = new MediaController(mContext, token);
204 private class SessionCallback extends MediaController.Callback {
  /development/samples/Support4Demos/src/com/example/android/supportv4/media/
MediaController.java 41 * Use instead of the very useful android.widget.MediaController.
44 public class MediaController extends FrameLayout {
74 public MediaController(Context context, AttributeSet attrs) {
84 public MediaController(Context context, boolean useFastForward) {
90 public MediaController(Context context) {
315 event.setClassName(MediaController.class.getName());
321 info.setClassName(MediaController.class.getName());

Completed in 1000 milliseconds

1 2 3 4