Lines Matching refs:MediaRouter
49 * MediaRouter allows applications to control the routing of media channels
52 * <p>A MediaRouter is retrieved through {@link Context#getSystemService(String)
59 public class MediaRouter {
60 private static final String TAG = "MediaRouter";
625 * The MediaRouter will manage and dispatch events for user routes, but the application
691 static final HashMap<Context, MediaRouter> sRouters = new HashMap<Context, MediaRouter>();
711 public MediaRouter(Context context) {
977 * Add an app-specified route for media to the MediaRouter.
1016 * Remove an app-specified route for media from the MediaRouter.
1026 * Remove all app-specified routes from the MediaRouter.
1073 * Return the number of {@link MediaRouter.RouteCategory categories} currently
1074 * represented by routes known to this MediaRouter.
1076 * @return the number of unique categories represented by this MediaRouter's known routes
1083 * Return the {@link MediaRouter.RouteCategory category} at the given index.
1094 * Return the number of {@link MediaRouter.RouteInfo routes} currently known
1095 * to this MediaRouter.
1163 * This mechanism should be burned to the ground when MediaRouter is redesigned.
1165 * down MediaRouter.Static before we can get there.
1980 * @see MediaRouter.RouteInfo
2428 MediaRouter.removeRouteStatic(this);
2528 * to the MediaRouter.
2537 * @return A list with the routes in this category that have been added to the MediaRouter.
2567 * via calls to {@link #getRouteAt(int)} will be {@link MediaRouter.RouteGroup}s.</p>
2594 public final MediaRouter router;
2596 public CallbackInfo(Callback cb, int type, int flags, MediaRouter router) {
2618 * was registered for unless the {@link MediaRouter#CALLBACK_FLAG_UNFILTERED_EVENTS}
2619 * flag was specified in {@link MediaRouter#addCallback(int, Callback, int)}.
2622 * @see MediaRouter#addCallback(int, Callback, int)
2623 * @see MediaRouter#removeCallback(Callback)
2630 * @param router the MediaRouter reporting the event
2634 public abstract void onRouteSelected(MediaRouter router, int type, RouteInfo info);
2640 * @param router the MediaRouter reporting the event
2644 public abstract void onRouteUnselected(MediaRouter router, int type, RouteInfo info);
2649 * @param router the MediaRouter reporting the event
2652 public abstract void onRouteAdded(MediaRouter router, RouteInfo info);
2657 * @param router the MediaRouter reporting the event
2660 public abstract void onRouteRemoved(MediaRouter router, RouteInfo info);
2668 * @param router the MediaRouter reporting the event
2671 public abstract void onRouteChanged(MediaRouter router, RouteInfo info);
2676 * @param router the MediaRouter reporting the event
2681 public abstract void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group,
2687 * @param router the MediaRouter reporting the event
2691 public abstract void onRouteUngrouped(MediaRouter router, RouteInfo info, RouteGroup group);
2696 * @param router the MediaRouter reporting the event
2699 public abstract void onRouteVolumeChanged(MediaRouter router, RouteInfo info);
2708 * @param router the MediaRouter reporting the event
2713 public void onRoutePresentationDisplayChanged(MediaRouter router, RouteInfo info) {
2718 * Stub implementation of {@link MediaRouter.Callback}.
2725 public void onRouteSelected(MediaRouter router, int type, RouteInfo info) {
2729 public void onRouteUnselected(MediaRouter router, int type, RouteInfo info) {
2733 public void onRouteAdded(MediaRouter router, RouteInfo info) {
2737 public void onRouteRemoved(MediaRouter router, RouteInfo info) {
2741 public void onRouteChanged(MediaRouter router, RouteInfo info) {
2745 public void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group,
2750 public void onRouteUngrouped(MediaRouter router, RouteInfo info, RouteGroup group) {
2754 public void onRouteVolumeChanged(MediaRouter router, RouteInfo info) {