Searched refs:route (Results 1 - 16 of 16) sorted by path

/frameworks/base/cmds/ip-up-vpn/
H A Dip-up-vpn.c29 #include <linux/route.h>
62 * and maybe add a host route to protect the tunnel. PPP-based VPN already
94 /* Remove the old host route. There could be more than one. */
100 ALOGE("Cannot remove host route: %s", strerror(errno));
104 /* Create a new host route. */
108 ALOGE("Cannot create host route: %s", strerror(errno));
/frameworks/base/core/java/android/app/
H A DMediaRouteButton.java130 final RouteInfo route = mRouter.getRouteAt(i);
131 if ((route.getSupportedTypes() & mRouteTypes) != 0 &&
132 route != mRouter.getSystemAudioRoute()) {
133 mRouter.selectRouteInt(mRouteTypes, route);
242 final RouteInfo route = mRouter.getRouteAt(i);
243 final int routeTypes = route.getSupportedTypes();
245 if (route instanceof RouteGroup) {
246 count += ((RouteGroup) route).getRouteCount();
400 * Asynchronously show the route chooser dialog.
/frameworks/base/core/java/android/net/
H A DDhcpInfoInternal.java78 for (RouteInfo route : mRoutes) {
79 if (route.isDefaultRoute()) {
80 info.gateway = convertToInt(route.getGateway().getHostAddress());
106 for (RouteInfo route : mRoutes) {
107 p.addRoute(route);
139 for (RouteInfo route : orig.getRoutes()) {
140 addRoute(route);
159 for (RouteInfo route : mRoutes) routeString += route.toString() + " | ";
H A DLinkProperties.java123 public void addRoute(RouteInfo route) { argument
124 if (route != null) mRoutes.add(route);
166 for (RouteInfo route : mRoutes) routes += route.toString() + ",";
334 * leaving the routes that are different. And route address which
383 for(RouteInfo route : mRoutes) {
384 dest.writeParcelable(route, flags);
H A DRouteInfo.java30 * A simple container for route information.
36 * The IP destination address for this route.
41 * The gateway address for this route.
222 // if the destination is present and the route is default.
226 // match the route destination and destination with prefix length
234 * Find the route from a Collection of routes that best matches a given address.
245 for (RouteInfo route : routes) {
246 if (NetworkUtils.addressTypeMatches(route.mDestination.getAddress(), dest)) {
249 route.mDestination.getNetworkPrefixLength())) {
252 if (route
[all...]
/frameworks/base/core/java/android/net/arp/
H A DArpPeer.java145 for (RouteInfo route : linkProperties.getRoutes()) {
146 gateway = route.getGateway();
/frameworks/base/core/java/android/nfc/
H A DINfcAdapterExtras.aidl30 void setCardEmulationRoute(in String pkg, int route);
/frameworks/base/core/java/android/os/
H A DINetworkManagementService.aidl98 * Add the specified route to the interface.
100 void addRoute(String iface, in RouteInfo route);
103 * Remove the specified route from the interface.
105 void removeRoute(String iface, in RouteInfo route);
108 * Add the specified route to a secondary interface
109 * This will go into a special route table to be accessed
112 void addSecondaryRoute(String iface, in RouteInfo route);
115 * Remove the specified secondary route.
117 void removeSecondaryRoute(String iface, in RouteInfo route);
/frameworks/base/core/java/com/android/internal/app/
H A DMediaRouteChooserDialogFragment.java55 * This class implements the route chooser dialog for {@link MediaRouter}.
331 final RouteInfo route = from.get(i);
332 final RouteGroup group = route.getGroup();
333 if (group == route) {
341 mSortRouteList.add(route);
344 // Sort by name. This will keep the route positions relatively stable even though they
519 final RouteInfo route = (RouteInfo) item;
521 mRouter.selectRouteInt(mRouteTypes, route);
528 RouteGroup oldGroup = route.getGroup();
533 // we're manipulating since that's where the last route wen
[all...]
/frameworks/base/media/java/android/media/
H A DMediaRouter.java111 // This will select the active wifi display route if there is one.
127 // This will select the active BT route if there is one and the current
128 // selected route is the default system route, or if there is no selected
129 // route yet.
133 // Select the default route if the above didn't sync us up
266 * <p>Unlike other media route types, user routes are managed by the application.
316 * Return the currently selected route for the given types
318 * @param type route types
319 * @return the selected route
368 selectRoute(int types, RouteInfo route) argument
377 selectRouteInt(int types, RouteInfo route) argument
381 selectRouteStatic(int types, RouteInfo route) argument
811 updateWifiDisplayRoute(RouteInfo route, WifiDisplay display, boolean available, WifiDisplayStatus wifiDisplayStatus) argument
883 choosePresentationDisplayForRoute(RouteInfo route, Display[] displays) argument
1517 addRoute(RouteInfo route) argument
1542 addRoute(RouteInfo route, int insertAt) argument
1565 removeRoute(RouteInfo route) argument
2025 public final RouteInfo route; field in class:MediaRouter.VolumeCallbackInfo
2027 VolumeCallbackInfo(VolumeCallback vcb, RouteInfo route) argument
[all...]
/frameworks/base/nfc-extras/java/com/android/nfc_extras/
H A DNfcAdapterExtras.java122 * Immutable data class that describes a card emulation route.
138 * A route such as {@link #ROUTE_OFF} or {@link #ROUTE_ON_WHEN_SCREEN_ON}.
140 public final int route; field in class:NfcAdapterExtras.CardEmulationRoute
144 * <p>null if {@link #route} is {@link #ROUTE_OFF}, otherwise not null.
148 public CardEmulationRoute(int route, NfcExecutionEnvironment nfcEe) { argument
149 if (route == ROUTE_OFF && nfcEe != null) {
151 } else if (route != ROUTE_OFF && nfcEe == null) {
152 throw new IllegalArgumentException("must specifiy a NFC-EE for this route");
154 this.route = route;
200 setCardEmulationRoute(CardEmulationRoute route) argument
[all...]
/frameworks/base/nfc-extras/tests/src/com/android/nfc_extras/tests/
H A DBasicNfcEeTest.java99 assertEquals(CardEmulationRoute.ROUTE_ON_WHEN_SCREEN_ON, newRoute.route);
107 assertEquals(CardEmulationRoute.ROUTE_OFF, newRoute.route);
/frameworks/base/services/java/com/android/server/
H A DNetworkManagementService.java609 public void addRoute(String interfaceName, RouteInfo route) { argument
611 modifyRoute(interfaceName, ADD, route, DEFAULT);
615 public void removeRoute(String interfaceName, RouteInfo route) { argument
617 modifyRoute(interfaceName, REMOVE, route, DEFAULT);
621 public void addSecondaryRoute(String interfaceName, RouteInfo route) { argument
623 modifyRoute(interfaceName, ADD, route, SECONDARY);
627 public void removeSecondaryRoute(String interfaceName, RouteInfo route) { argument
629 modifyRoute(interfaceName, REMOVE, route, SECONDARY);
632 private void modifyRoute(String interfaceName, String action, RouteInfo route, String type) { argument
633 final Command cmd = new Command("interface", "route", actio
[all...]
/frameworks/base/services/java/com/android/server/connectivity/
H A DVpn.java450 for (RouteInfo route : prop.getRoutes()) {
452 if (route.isDefaultRoute() && route.getGateway() instanceof Inet4Address) {
453 return route.getGateway().getHostAddress();
/frameworks/base/services/jni/
H A Dcom_android_server_connectivity_Vpn.cpp35 #include <linux/route.h>
218 // Add an IPv6 route.
232 // Split the route instead of replacing the default route.
240 // Add an IPv4 route.
255 // Split the route instead of replacing the default route.
268 ALOGE("Invalid route: %s/%d", address, prefix);
270 ALOGE("Cannot add route: %s/%d: %s",
273 ALOGE("Invalid route
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiConfigStore.java521 for (RouteInfo route : linkProperties.getRoutes()) {
522 dhcpInfoInternal.addRoute(route);
738 for (RouteInfo route : linkProperties.getRoutes()) {
740 LinkAddress dest = route.getDestination();
748 if (route.getGateway() != null) {
750 out.writeUTF(route.getGateway().getHostAddress());
1292 for (RouteInfo route : config.linkProperties.getRoutes()) {
1293 linkProperties.addRoute(route);

Completed in 221 milliseconds