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

1 2

  /frameworks/support/v7/mediarouter/jellybean-mr2/android/support/v7/media/
MediaRouterJellybeanMr2.java 21 return ((android.media.MediaRouter)routerObj).getDefaultRoute();
25 ((android.media.MediaRouter)routerObj).addCallback(types,
26 (android.media.MediaRouter.Callback)callbackObj, flags);
31 return ((android.media.MediaRouter.RouteInfo)routeObj).getDescription();
35 return ((android.media.MediaRouter.RouteInfo)routeObj).isConnecting();
41 ((android.media.MediaRouter.UserRouteInfo)routeObj).setDescription(description);
  /frameworks/support/v7/mediarouter/jellybean/android/support/v7/media/
MediaRouterJellybean.java 47 final android.media.MediaRouter router = (android.media.MediaRouter)routerObj;
58 final android.media.MediaRouter router = (android.media.MediaRouter)routerObj;
68 return ((android.media.MediaRouter)routerObj).getSelectedRoute(type);
72 ((android.media.MediaRouter)routerObj).selectRoute(types,
73 (android.media.MediaRouter.RouteInfo)routeObj);
77 ((android.media.MediaRouter)routerObj).addCallback(types,
78 (android.media.MediaRouter.Callback)callbackObj);
82 ((android.media.MediaRouter)routerObj).removeCallback
    [all...]
  /frameworks/support/v7/mediarouter/src/android/support/v7/app/
MediaRouteActionProvider.java 21 import android.support.v7.media.MediaRouter;
71 * private MediaRouter mRouter;
72 * private MediaRouter.Callback mCallback;
78 * mRouter = Mediarouter.getInstance(this);
91 * mediaRouter.addCallback(mSelector, mCallback,
92 * MediaRouter.CALLBACK_FLAG_REQUEST_DISCOVERY);
94 * MediaRouter.RouteInfo route = mediaRouter.updateSelectedRoute(mSelector);
103 * mediaRouter.removeCallback(mCallback);
118 * private final class MyCallback extends MediaRouter.Callback
    [all...]
MediaRouteDiscoveryFragment.java 21 import android.support.v7.media.MediaRouter;
33 * provide the {@link MediaRouter} callback to register.
39 private MediaRouter mRouter;
41 private MediaRouter.Callback mCallback;
49 public MediaRouter getMediaRouter() {
56 mRouter = MediaRouter.getInstance(getActivity());
95 MediaRouter.CALLBACK_FLAG_REQUEST_DISCOVERY);
113 * Called to create the {@link android.support.v7.media.MediaRouter.Callback callback}
122 public MediaRouter.Callback onCreateCallback() {
123 return new MediaRouter.Callback() { }
    [all...]
MediaRouteChooserDialog.java 22 import android.support.v7.media.MediaRouter;
24 import android.support.v7.mediarouter.R;
39 * This class implements the route chooser dialog for {@link MediaRouter}.
48 private final MediaRouter mRouter;
64 mRouter = MediaRouter.getInstance(context);
93 MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN);
111 public boolean onFilterRoute(MediaRouter.RouteInfo route) {
141 mRouter.addCallback(mSelector, mCallback, MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN);
162 private final class RouteAdapter extends ArrayAdapter<MediaRouter.RouteInfo>
173 final List<MediaRouter.RouteInfo> routes = mRouter.getRoutes()
    [all...]
MediaRouteControllerDialog.java 24 import android.support.v7.media.MediaRouter;
25 import android.support.v7.mediarouter.R;
35 * This class implements the route controller dialog for {@link MediaRouter}.
51 private final MediaRouter mRouter;
53 private final MediaRouter.RouteInfo mRoute;
77 mRouter = MediaRouter.getInstance(context);
85 public MediaRouter.RouteInfo getRoute() {
211 MediaRouter.CALLBACK_FLAG_UNFILTERED_EVENTS);
294 MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE;
297 private final class MediaRouterCallback extends MediaRouter.Callback
    [all...]
MediaRouteButton.java 30 import android.support.v7.media.MediaRouter;
32 import android.support.v7.mediarouter.R;
82 "android.support.v7.mediarouter:MediaRouteChooserDialogFragment";
84 "android.support.v7.mediarouter:MediaRouteControllerDialogFragment";
86 private final MediaRouter mRouter;
124 mRouter = MediaRouter.getInstance(context);
228 MediaRouter.RouteInfo route = mRouter.getSelectedRoute();
486 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute();
505 MediaRouter.AVAILABILITY_FLAG_IGNORE_DEFAULT_ROUTE));
509 private final class MediaRouterCallback extends MediaRouter.Callback
    [all...]
  /frameworks/base/core/java/android/app/
MediaRouteActionProvider.java 20 import android.media.MediaRouter;
21 import android.media.MediaRouter.RouteInfo;
49 private final MediaRouter mRouter;
60 mRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE);
66 setRouteTypes(MediaRouter.ROUTE_TYPE_LIVE_AUDIO);
90 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY);
147 MediaRouter.AVAILABILITY_FLAG_IGNORE_DEFAULT_ROUTE);
154 private static class MediaRouterCallback extends MediaRouter.SimpleCallback {
162 public void onRouteAdded(MediaRouter router, RouteInfo info) {
167 public void onRouteRemoved(MediaRouter router, RouteInfo info)
    [all...]
MediaRouteButton.java 28 import android.media.MediaRouter;
29 import android.media.MediaRouter.RouteGroup;
30 import android.media.MediaRouter.RouteInfo;
40 private final MediaRouter mRouter;
78 mRouter = (MediaRouter)context.getSystemService(Context.MEDIA_ROUTER_SERVICE);
91 MediaRouter.ROUTE_TYPE_LIVE_AUDIO);
126 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY);
306 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY);
387 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute();
406 MediaRouter.AVAILABILITY_FLAG_IGNORE_DEFAULT_ROUTE))
    [all...]
  /frameworks/base/core/java/com/android/internal/app/
MediaRouteChooserDialog.java 23 import android.media.MediaRouter;
24 import android.media.MediaRouter.RouteInfo;
40 * This class implements the route chooser dialog for {@link MediaRouter}.
51 private final MediaRouter mRouter;
64 mRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE);
91 MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN);
116 public boolean onFilterRoute(MediaRouter.RouteInfo route) {
127 setTitle(mRouteTypes == MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY
158 mRouter.addCallback(mRouteTypes, mCallback, MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN);
179 private final class RouteAdapter extends ArrayAdapter<MediaRouter.RouteInfo
    [all...]
MediaRouteDialogPresenter.java 25 import android.media.MediaRouter;
34 private static final String TAG = "MediaRouter";
43 final MediaRouter router = (MediaRouter)activity.getSystemService(
47 MediaRouter.RouteInfo route = router.getSelectedRoute();
71 final MediaRouter router = (MediaRouter)context.getSystemService(
74 MediaRouter.RouteInfo route = router.getSelectedRoute();
MediaRouteControllerDialog.java 26 import android.media.MediaRouter;
27 import android.media.MediaRouter.RouteGroup;
28 import android.media.MediaRouter.RouteInfo;
39 * This class implements the route controller dialog for {@link MediaRouter}.
55 private final MediaRouter mRouter;
57 private final MediaRouter.RouteInfo mRoute;
76 mRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE);
84 public MediaRouter.RouteInfo getRoute() {
209 mRouter.addCallback(0, mCallback, MediaRouter.CALLBACK_FLAG_UNFILTERED_EVENTS);
286 MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE
    [all...]
  /frameworks/base/packages/Keyguard/src/com/android/keyguard/
KeyguardDisplayManager.java 23 import android.media.MediaRouter;
24 import android.media.MediaRouter.RouteInfo;
35 private MediaRouter mMediaRouter;
41 mMediaRouter = (MediaRouter) mContext.getSystemService(Context.MEDIA_ROUTER_SERVICE);
47 mMediaRouter.addCallback(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY,
48 mMediaRouterCallback, MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY);
63 private final MediaRouter.SimpleCallback mMediaRouterCallback =
64 new MediaRouter.SimpleCallback() {
66 public void onRouteSelected(MediaRouter router, int type, RouteInfo info) {
72 public void onRouteUnselected(MediaRouter router, int type, RouteInfo info)
    [all...]
  /developers/build/prebuilts/gradle/BasicMediaRouter/BasicMediaRouterSample/src/main/java/com/example/android/basicmediarouter/
MainActivity.java 23 import android.media.MediaRouter;
24 import android.media.MediaRouter.RouteInfo;
36 * This sample demonstrates the use of the MediaRouter API to show content on a
40 * The activity uses the {@link android.media.MediaRouter} API to automatically detect when a
55 * @see android.media.MediaRouter
59 private MediaRouter mMediaRouter;
85 // Get the MediaRouter service
86 mMediaRouter = (MediaRouter) getSystemService(Context.MEDIA_ROUTER_SERVICE);
91 * Implementing a {@link android.media.MediaRouter.Callback} to update the displayed
94 * {@link android.media.MediaRouter.SimpleCallback} is extended and onl
    [all...]
  /developers/samples/android/media/BasicMediaRouter/BasicMediaRouterSample/src/main/java/com/example/android/basicmediarouter/
MainActivity.java 23 import android.media.MediaRouter;
24 import android.media.MediaRouter.RouteInfo;
36 * This sample demonstrates the use of the MediaRouter API to show content on a
40 * The activity uses the {@link android.media.MediaRouter} API to automatically detect when a
55 * @see android.media.MediaRouter
59 private MediaRouter mMediaRouter;
85 // Get the MediaRouter service
86 mMediaRouter = (MediaRouter) getSystemService(Context.MEDIA_ROUTER_SERVICE);
91 * Implementing a {@link android.media.MediaRouter.Callback} to update the displayed
94 * {@link android.media.MediaRouter.SimpleCallback} is extended and onl
    [all...]
  /development/samples/browseable/BasicMediaRouter/src/com.example.android.basicmediarouter/
MainActivity.java 23 import android.media.MediaRouter;
24 import android.media.MediaRouter.RouteInfo;
36 * This sample demonstrates the use of the MediaRouter API to show content on a
40 * The activity uses the {@link android.media.MediaRouter} API to automatically detect when a
55 * @see android.media.MediaRouter
59 private MediaRouter mMediaRouter;
85 // Get the MediaRouter service
86 mMediaRouter = (MediaRouter) getSystemService(Context.MEDIA_ROUTER_SERVICE);
91 * Implementing a {@link android.media.MediaRouter.Callback} to update the displayed
94 * {@link android.media.MediaRouter.SimpleCallback} is extended and onl
    [all...]
  /frameworks/support/v7/mediarouter/jellybean-mr1/android/support/v7/media/
MediaRouterJellybeanMr1.java 39 return ((android.media.MediaRouter.RouteInfo)routeObj).isEnabled();
43 return ((android.media.MediaRouter.RouteInfo)routeObj).getPresentationDisplay();
52 * Workaround the fact that the version of MediaRouter.addCallback() that accepts a
136 android.media.MediaRouter.RouteInfo.class.getField("STATUS_CONNECTING");
139 android.media.MediaRouter.RouteInfo.class.getMethod("getStatusCode");
147 android.media.MediaRouter.RouteInfo route =
148 (android.media.MediaRouter.RouteInfo)routeObj;
171 public void onRoutePresentationDisplayChanged(android.media.MediaRouter router,
172 android.media.MediaRouter.RouteInfo route) {
  /development/samples/ApiDemos/src/com/example/android/apis/app/
PresentationWithMediaRouterActivity.java 28 import android.media.MediaRouter;
29 import android.media.MediaRouter.RouteInfo;
48 * The activity uses the {@link MediaRouter} API to automatically detect when
70 private MediaRouter mMediaRouter;
87 mMediaRouter = (MediaRouter)getSystemService(Context.MEDIA_ROUTER_SERVICE);
108 mMediaRouter.addCallback(MediaRouter.ROUTE_TYPE_LIVE_VIDEO, mMediaRouterCallback);
152 mediaRouteActionProvider.setRouteTypes(MediaRouter.ROUTE_TYPE_LIVE_VIDEO);
160 MediaRouter.RouteInfo route = mMediaRouter.getSelectedRoute(
161 MediaRouter.ROUTE_TYPE_LIVE_VIDEO);
217 private final MediaRouter.SimpleCallback mMediaRouterCallback
    [all...]
  /frameworks/support/v7/mediarouter/src/android/support/v7/media/
MediaRouteProvider.java 24 import android.support.v7.media.MediaRouter.ControlRequestCallback;
45 * application process by calling {@link MediaRouter#addProvider MediaRouter.addProvider}
46 * to add it to the local {@link MediaRouter}. A media route provider may also be made
120 MediaRouter.checkCallingThread();
145 MediaRouter.checkCallingThread();
168 * Whenever an applications calls {@link MediaRouter#addCallback} to register
185 * @see MediaRouter#addCallback
218 MediaRouter.checkCallingThread();
MediaRouter.java 42 * MediaRouter allows applications to control the routing of media channels
45 * A MediaRouter instance is retrieved through {@link #getInstance}. Applications
59 public final class MediaRouter {
60 private static final String TAG = "MediaRouter";
64 // This field is initialized in MediaRouter.getInstance() before any
65 // MediaRouter objects are instantiated so it is guaranteed to be
138 MediaRouter(Context context) {
146 * {@link MediaRouter} instance, such as by storing the instance in a field of
159 public static MediaRouter getInstance(Context context) {
173 * Gets information about the {@link MediaRouter.RouteInfo routes} currently known t
    [all...]
RemoteControlClientCompat.java 75 public int volumeHandling = MediaRouter.RouteInfo.PLAYBACK_VOLUME_FIXED;
77 public int playbackType = MediaRouter.RouteInfo.PLAYBACK_TYPE_REMOTE;
119 * is not attached to the MediaRouter so it is transparent to the user.
  /packages/apps/Settings/src/com/android/settings/wfd/
WifiDisplaySettings.java 32 import android.media.MediaRouter;
33 import android.media.MediaRouter.RouteInfo;
99 private MediaRouter mRouter;
130 mRouter = (MediaRouter)context.getSystemService(Context.MEDIA_ROUTER_SERVICE);
170 mRouter.addCallback(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY, mRouterCallback,
171 MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN);
263 MediaRouter.RouteInfo route = mRouter.getRouteAt(i);
264 if (route.matchesTypes(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY)) {
293 private RoutePreference createRoutePreference(MediaRouter.RouteInfo route) {
551 private void toggleRoute(MediaRouter.RouteInfo route)
    [all...]
  /development/samples/Support7Demos/src/com/example/android/supportv7/media/
SampleMediaRouterActivity.java 45 import android.support.v7.media.MediaRouter;
46 import android.support.v7.media.MediaRouter.Callback;
47 import android.support.v7.media.MediaRouter.RouteInfo;
48 import android.support.v7.media.MediaRouter.ProviderInfo;
75 * This demonstrates how to use the {@link MediaRouter} API to build an
84 private MediaRouter mMediaRouter;
111 private final MediaRouter.Callback mMediaRouterCB = new MediaRouter.Callback() {
115 public void onRouteAdded(MediaRouter router, RouteInfo route) {
120 public void onRouteChanged(MediaRouter router, RouteInfo route)
    [all...]
  /frameworks/base/media/java/android/media/
MediaRouterClientState.java 111 statusCode = MediaRouter.RouteInfo.STATUS_NONE;
112 playbackType = MediaRouter.RouteInfo.PLAYBACK_TYPE_REMOTE;
114 volumeHandling = MediaRouter.RouteInfo.PLAYBACK_VOLUME_FIXED;
RemoteDisplayState.java 99 MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE;
101 MediaRouter.RouteInfo.PLAYBACK_VOLUME_FIXED;
115 volumeHandling = MediaRouter.RouteInfo.PLAYBACK_VOLUME_FIXED;

Completed in 59 milliseconds

1 2