Home | History | Annotate | Download | only in app

Lines Matching defs:route

56  * This class implements the route chooser dialog for {@link MediaRouter}.
58 * This dialog allows the user to choose a route that matches a given selector.
67 // Do not update the route list immediately to avoid unnatural dialog change.
106 * Gets the media route selector for filtering the routes that the user can select.
116 * Sets the media route selector for filtering the routes that the user can select.
156 * Returns true if the route should be included in the list.
163 * @param route The route to consider, never null.
164 * @return True if the route should be included in the chooser dialog.
166 public boolean onFilterRoute(@NonNull MediaRouter.RouteInfo route) {
167 return !route.isDefaultOrBluetooth() && route.isEnabled()
168 && route.matchesSelector(mSelector);
289 MediaRouter.RouteInfo route = getItem(position);
292 text1.setText(route.getName());
293 String description = route.getDescription();
295 route.getConnectionState() == CONNECTION_STATE_CONNECTED
296 || route.getConnectionState() == CONNECTION_STATE_CONNECTING;
306 view.setEnabled(route.isEnabled());
310 iconView.setImageDrawable(getIconDrawable(route));
317 MediaRouter.RouteInfo route = getItem(position);
318 if (route.isEnabled()) {
319 route.select();
324 private Drawable getIconDrawable(MediaRouter.RouteInfo route) {
325 Uri iconUri = route.getIconUri();
338 return getDefaultIconDrawable(route);
341 private Drawable getDefaultIconDrawable(MediaRouter.RouteInfo route) {
343 switch (route.getDeviceType()) {
350 // Otherwise, make the best guess based on other route information.
351 if (route instanceof MediaRouter.RouteGroup) {
379 public void onRouteSelected(MediaRouter router, MediaRouter.RouteInfo route) {