Lines Matching refs:RouteInfo
80 final ArrayList<RouteInfo> mRoutes = new ArrayList<RouteInfo>();
87 RouteInfo mDefaultAudioVideo;
88 RouteInfo mBluetoothA2dpRoute;
90 RouteInfo mSelectedRoute;
142 mDefaultAudioVideo = new RouteInfo(mSystemCategory);
148 mDefaultAudioVideo.mVolumeHandling = RouteInfo.PLAYBACK_VOLUME_FIXED;
211 final RouteInfo info = new RouteInfo(sStatic.mSystemCategory);
216 info.mDeviceType = RouteInfo.DEVICE_TYPE_BLUETOOTH;
344 final RouteInfo route = mRoutes.get(i);
352 void setSelectedRoute(RouteInfo info, boolean explicit) {
418 final ArrayList<MediaRouterClientState.RouteInfo> globalRoutes =
426 final MediaRouterClientState.RouteInfo globalRoute = globalRoutes.get(i);
427 RouteInfo route = findGlobalRoute(globalRoute.id);
438 final RouteInfo route = findGlobalRoute(globallySelectedRouteId);
457 final RouteInfo route = mRoutes.get(i);
461 MediaRouterClientState.RouteInfo globalRoute = globalRoutes.get(j);
472 void requestSetVolume(RouteInfo route, int volume) {
483 void requestUpdateVolume(RouteInfo route, int direction) {
494 RouteInfo makeGlobalRoute(MediaRouterClientState.RouteInfo globalRoute) {
495 RouteInfo route = new RouteInfo(sStatic.mSystemCategory);
513 void updateGlobalRoute(RouteInfo route, MediaRouterClientState.RouteInfo globalRoute) {
580 RouteInfo findGlobalRoute(String globalRouteId) {
583 final RouteInfo route = mRoutes.get(i);
632 * @see RouteInfo#getPresentationDisplay()
751 public RouteInfo getDefaultRoute() {
763 public RouteInfo getSelectedRoute() {
773 public RouteInfo getSelectedRoute(int type) {
808 RouteInfo route = sStatic.mRoutes.get(i);
906 public void selectRoute(int types, @NonNull RouteInfo route) {
916 public void selectRouteInt(int types, RouteInfo route, boolean explicit) {
920 static void selectRouteStatic(int types, @NonNull RouteInfo route, boolean explicit) {
923 final RouteInfo oldRoute = sStatic.mSelectedRoute;
932 final RouteInfo btRoute = sStatic.mBluetoothA2dpRoute;
992 static boolean matchesDeviceAddress(WifiDisplay display, RouteInfo info) {
1019 public void addRouteInt(RouteInfo info) {
1023 static void addRouteStatic(RouteInfo info) {
1061 final RouteInfo info = sStatic.mRoutes.get(i);
1074 public void removeRouteInt(RouteInfo info) {
1078 static void removeRouteStatic(RouteInfo info) {
1124 * Return the number of {@link MediaRouter.RouteInfo routes} currently known
1139 public RouteInfo getRouteAt(int index) {
1147 static RouteInfo getRouteAtStatic(int index) {
1204 static void updateRoute(final RouteInfo info) {
1208 static void dispatchRouteSelected(int type, RouteInfo info) {
1216 static void dispatchRouteUnselected(int type, RouteInfo info) {
1224 static void dispatchRouteChanged(RouteInfo
1228 static void dispatchRouteChanged(RouteInfo info, int oldSupportedTypes) {
1257 static void dispatchRouteAdded(RouteInfo info) {
1265 static void dispatchRouteRemoved(RouteInfo info) {
1273 static void dispatchRouteGrouped(RouteInfo info, RouteGroup group, int index) {
1281 static void dispatchRouteUngrouped(RouteInfo info, RouteGroup group) {
1289 static void dispatchRouteVolumeChanged(RouteInfo info) {
1297 static void dispatchRoutePresentationDisplayChanged(RouteInfo info) {
1306 final RouteInfo selectedRoute = sStatic.mSelectedRoute;
1353 RouteInfo route = findWifiDisplayRoute(d);
1371 RouteInfo route = sStatic.mRoutes.get(i);
1392 newStatus = RouteInfo.STATUS_SCANNING;
1395 RouteInfo.STATUS_AVAILABLE: RouteInfo.STATUS_IN_USE;
1397 newStatus = RouteInfo.STATUS_NOT_AVAILABLE;
1404 newStatus = RouteInfo.STATUS_CONNECTED;
1407 newStatus = RouteInfo.STATUS_CONNECTING;
1422 static RouteInfo makeWifiDisplayRoute(WifiDisplay display, WifiDisplayStatus wfdStatus) {
1423 final RouteInfo newRoute = new RouteInfo(sStatic.mSystemCategory);
1427 newRoute.mVolumeHandling = RouteInfo.PLAYBACK_VOLUME_FIXED;
1428 newRoute.mPlaybackType = RouteInfo.PLAYBACK_TYPE_REMOTE;
1436 newRoute.mDeviceType = RouteInfo.DEVICE_TYPE_TV;
1441 RouteInfo route, WifiDisplay display, WifiDisplayStatus wfdStatus,
1476 private static RouteInfo findWifiDisplayRoute(WifiDisplay d) {
1479 final RouteInfo info = sStatic.mRoutes.get(i);
1490 public static class RouteInfo {
1606 RouteInfo(RouteCategory category) {
2073 * A user route defaults to {@link RouteInfo#PLAYBACK_TYPE_REMOTE} and
2074 * {@link RouteInfo#PLAYBACK_VOLUME_FIXED}.
2076 * @see MediaRouter.RouteInfo
2078 public static class UserRouteInfo extends RouteInfo {
2195 * ({@link RouteInfo#PLAYBACK_TYPE_LOCAL}) or "remote"
2196 * ({@link RouteInfo#PLAYBACK_TYPE_REMOTE}).
2199 public void setPlaybackType(@RouteInfo.PlaybackType int type) {
2208 * ({@link RouteInfo#PLAYBACK_VOLUME_FIXED}) or can modified
2209 * ({@link RouteInfo#PLAYBACK_VOLUME_VARIABLE}).
2212 public void setVolumeHandling(@RouteInfo.PlaybackVolume int volumeHandling) {
2364 public static class RouteGroup extends RouteInfo {
2365 final ArrayList<RouteInfo> mRoutes = new ArrayList<RouteInfo>();
2385 public void addRoute(RouteInfo route) {
2410 public void addRoute(RouteInfo route, int insertAt) {
2433 public void removeRoute(RouteInfo route) {
2452 RouteInfo route = mRoutes.remove(index);
2473 public RouteInfo getRouteAt(int index) {
2507 final RouteInfo route = getRouteAt(i);
2527 final RouteInfo route = getRouteAt(i);
2540 void memberNameChanged(RouteInfo info, CharSequence name) {
2545 void memberStatusChanged(RouteInfo info, CharSequence status) {
2549 void memberVolumeChanged(RouteInfo info) {
2583 final RouteInfo route = mRoutes.get(i);
2604 final RouteInfo info = mRoutes.get(i);
2688 public List<RouteInfo> getRoutes(List<RouteInfo> out) {
2690 out = new ArrayList<RouteInfo>();
2697 final RouteInfo route = getRouteAtStatic(i);
2752 public boolean filterRouteEvent(RouteInfo route) {
2783 public abstract void onRouteSelected(MediaRouter router, int type, RouteInfo info);
2793 public abstract void onRouteUnselected(MediaRouter router, int type, RouteInfo info);
2801 public abstract void onRouteAdded(MediaRouter router, RouteInfo info);
2809 public abstract void onRouteRemoved(MediaRouter router, RouteInfo info);
2820 public abstract void onRouteChanged(MediaRouter router, RouteInfo info);
2830 public abstract void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group,
2840 public abstract void onRouteUngrouped(MediaRouter router, RouteInfo info, RouteGroup group);
2848 public abstract void onRouteVolumeChanged(MediaRouter router, RouteInfo info);
2860 * @see RouteInfo#getPresentationDisplay()
2862 public void onRoutePresentationDisplayChanged(MediaRouter router, RouteInfo info) {
2874 public void onRouteSelected(MediaRouter router, int type, RouteInfo info) {
2878 public void onRouteUnselected(MediaRouter router, int type, RouteInfo info) {
2882 public void onRouteAdded(MediaRouter router, RouteInfo info) {
2886 public void onRouteRemoved(MediaRouter router, RouteInfo info) {
2890 public void onRouteChanged(MediaRouter router, RouteInfo info) {
2894 public void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group,
2899 public void onRouteUngrouped(MediaRouter router, RouteInfo info, RouteGroup group) {
2903 public void onRouteVolumeChanged(MediaRouter router, RouteInfo info) {
2909 public final RouteInfo route;
2911 public VolumeCallbackInfo(VolumeCallback vcb, RouteInfo route) {
2935 public abstract void onVolumeUpdateRequest(RouteInfo info, int direction);
2942 public abstract void onVolumeSetRequest(RouteInfo info, int volume);