Home | History | Annotate | Download | only in app

Lines Matching defs:route

41  * This class implements the route chooser dialog for {@link MediaRouter}.
43 * This dialog allows the user to choose a route that matches a given selector.
70 * Gets the media route types for filtering the routes that the user can
71 * select using the media route chooser dialog.
73 * @return The route types.
80 * Sets the types of routes that will be shown in the media route chooser dialog
83 * @param types The route types to match.
107 * Returns true if the route should be included in the list.
110 * match the route types. Subclasses can override this method to filter routes
114 * @param route The route to consider, never null.
115 * @return True if the route should be included in the chooser dialog.
117 public boolean onFilterRoute(MediaRouter.RouteInfo route) {
118 return !route.isDefault() && route.isEnabled() && route.matchesTypes(mRouteTypes);
200 MediaRouter.RouteInfo route = mRouter.getRouteAt(i);
201 if (onFilterRoute(route)) {
202 add(route);
225 MediaRouter.RouteInfo route = getItem(position);
228 text1.setText(route.getName());
229 CharSequence description = route.getDescription();
237 view.setEnabled(route.isEnabled());
243 MediaRouter.RouteInfo route = getItem(position);
244 if (route.isEnabled()) {
245 route.select();