Lines Matching defs:group

477             // Enforce that any added route in a groupable category must be in a group.
478 final RouteGroup group = new RouteGroup(info.getCategory());
479 group.mSupportedTypes = info.mSupportedTypes;
480 sStatic.mRoutes.add(group);
481 dispatchRouteAdded(group);
482 group.addRoute(info);
484 info = group;
704 static void dispatchRouteGrouped(RouteInfo info, RouteGroup group, int index) {
706 if ((cbi.type & group.mSupportedTypes) != 0) {
707 cbi.cb.onRouteGrouped(cbi.router, info, group, index);
712 static void dispatchRouteUngrouped(RouteInfo info, RouteGroup group) {
714 if ((cbi.type & group.mSupportedTypes) != 0) {
715 cbi.cb.onRouteUngrouped(cbi.router, info, group);
1057 * @return The group that this route belongs to.
1507 * Information about a route that consists of multiple other routes in a group.
1525 * Add a route to this group. The route must not currently belong to another group.
1527 * @param route route to add to this group
1531 throw new IllegalStateException("Route " + route + " is already part of a group.");
1535 "Route cannot be added to a group with a different category. " +
1537 " group category=" + mCategory + ")");
1549 * Add a route to this group before the specified index.
1556 throw new IllegalStateException("Route " + route + " is already part of a group.");
1560 "Route cannot be added to a group with a different category. " +
1562 " group category=" + mCategory + ")");
1573 * Remove a route from this group.
1580 " is not a member of this group.");
1591 * Remove the route at the specified index from this group.
1605 * @return The number of routes in this group
1612 * Return the route in this group at the specified index
1622 * Set an icon that will be used to represent this group.
1625 * @param icon icon drawable to use to represent this group
1632 * Set an icon that will be used to represent this group.
1635 * @param resId Resource ID of an icon drawable to use to represent this group
1698 // A group always represents the highest component volume value.
1951 * Called when a route is added to a group.
1955 * @param group The group the route was added to
1956 * @param index The route index within group that info was added at
1958 public abstract void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group,
1962 * Called when a route is removed from a group.
1966 * @param group The group the route was removed from
1968 public abstract void onRouteUngrouped(MediaRouter router, RouteInfo info, RouteGroup group);
2022 public void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group,
2027 public void onRouteUngrouped(MediaRouter router, RouteInfo info, RouteGroup group) {