Lines Matching refs:route

172         for (RouteInfo route : mRoutes) {
173 newRoutes.add(routeWithInterface(route));
442 private RouteInfo routeWithInterface(RouteInfo route) {
444 route.getDestination(),
445 route.getGateway(),
447 route.getType());
456 * @param route A {@link RouteInfo} to add to this object.
457 * @return {@code false} if the route was already present, {@code true} if it was added.
461 public boolean addRoute(RouteInfo route) {
462 if (route != null) {
463 String routeIface = route.getInterface();
469 route = routeWithInterface(route);
470 if (!mRoutes.contains(route)) {
471 mRoutes.add(route);
479 * Removes a {@link RouteInfo} from this {@code LinkProperties}, if present. The route must
483 * @return {@code true} if the route was removed, {@code false} if it was not present.
487 public boolean removeRoute(RouteInfo route) {
488 return route != null &&
489 Objects.equals(mIfaceName, route.getInterface()) &&
490 mRoutes.remove(route);
633 for (RouteInfo route : mRoutes) routes += route.toString() + ",";
691 * Returns true if this link has an IPv4 default route.
693 * @return {@code true} if there is an IPv4 default route, {@code false} otherwise.
706 * Returns true if this link has an IPv6 default route.
708 * @return {@code true} if there is an IPv6 default route, {@code false} otherwise.
752 * This requires an IP address, default route, and DNS server.
765 * This requires an IP address, default route, and DNS server.
796 // If we don't have a route to this IP address, it's not reachable.
814 // For non-link-local destinations check that either the best route
1043 * leaving the routes that are different. And route address which
1126 for(RouteInfo route : mRoutes) {
1127 dest.writeParcelable(route, flags);