Searched defs:routes (Results 1 - 10 of 10) sorted by relevance

/frameworks/native/cmds/ip-up-vpn/
H A Dip-up-vpn.c49 * are interface, addresses, routes, DNS servers, and search domains. Each
85 const char *routes = env("SPLIT_INCLUDE_CIDR"); local
139 fprintf(state, "%s\n", routes[0] ? routes : "0.0.0.0/0");
/frameworks/base/media/java/android/media/
H A DMediaRouterClientState.java26 * a particular client and the routes that are available to it.
33 * A list of all known routes.
35 public final ArrayList<RouteInfo> routes; field in class:MediaRouterClientState
39 * Globally selected routes override any other route selections that applications
45 routes = new ArrayList<RouteInfo>();
49 routes = src.createTypedArrayList(RouteInfo.CREATOR);
54 final int count = routes.size();
56 final RouteInfo route = routes.get(i);
71 dest.writeTypedList(routes);
78 + globallySelectedRouteId + ", routes
[all...]
H A DAudioManager.java1528 * @param routes bit vector of routes requested, created from one or
1530 * @param mask bit vector of routes to change, created from one or more of
1537 public void setRouting(int mode, int routes, int mask) { argument
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DMediaRouteProviderDescriptor.java28 * Describes the state of a media route provider and the routes that it publishes.
34 private static final String KEY_ROUTES = "routes";
40 List<MediaRouteDescriptor> routes) {
42 mRoutes = routes;
46 * Gets the list of all routes that this provider has published.
69 * Returns true if the route provider descriptor and all of the routes that
73 * valid then it is not necessary to call {@link #isValid} on each of its routes.
92 result.append("routes=").append(
167 * Adds a list of routes.
169 public Builder addRoutes(Collection<MediaRouteDescriptor> routes) { argument
39 MediaRouteProviderDescriptor(Bundle bundle, List<MediaRouteDescriptor> routes) argument
[all...]
/frameworks/base/core/java/android/net/
H A DRouteInfo.java34 * - A gateway address (next-hop, for gatewayed routes), or
35 * - An interface (for directly-connected routes), or
39 * uses RouteInfo objects to store directly-connected routes without interfaces.
294 * Find the route from a Collection of routes that best matches a given address.
295 * May return null if no routes are applicable.
296 * @param routes a Collection of RouteInfos to chose from
300 public static RouteInfo selectBestRoute(Collection<RouteInfo> routes, InetAddress dest) { argument
301 if ((routes == null) || (dest == null)) return null;
305 for (RouteInfo route : routes) {
/frameworks/base/core/java/com/android/internal/net/
H A DVpnConfig.java67 public List<RouteInfo> routes = new ArrayList<RouteInfo>(); field in class:VpnConfig
78 String[] routes = routesStr.trim().split(" ");
79 for (String route : routes) {
84 this.routes.add(info);
114 out.writeTypedList(routes);
132 in.readTypedList(config.routes, RouteInfo.CREATOR);
H A DVpnProfile.java57 public String routes = ""; // 7 field in class:VpnProfile
82 routes = in.readString();
103 out.writeString(routes);
137 profile.routes = values[7];
162 builder.append('\0').append(routes);
/frameworks/base/services/jni/
H A Dcom_android_server_connectivity_Vpn.cpp190 static int set_routes(const char *name, const char *routes) argument
214 while (sscanf(routes, " %64[^/]/%d %n", address, &prefix, &chars) == 2) {
215 routes += chars;
272 } else if (*routes) {
273 ALOGE("Invalid route: %s", routes);
382 const char *routes = NULL; local
390 routes = jRoutes ? env->GetStringUTFChars(jRoutes, NULL) : NULL;
391 if (!routes) {
392 jniThrowNullPointerException(env, "routes");
395 count = set_routes(name, routes);
[all...]
/frameworks/base/services/java/com/android/server/connectivity/
H A DVpn.java394 mCallback.setRoutes(interfaze, config.routes);
670 private native int jniSetRoutes(String interfaze, String routes); argument
786 config.addLegacyRoutes(profile.routes);
1077 // Set the routes if they are not set in the config.
1078 if (mConfig.routes == null || mConfig.routes.isEmpty()) {
1098 // Set the routes.
1102 mCallback.setRoutes(mConfig.interfaze, mConfig.routes);
/frameworks/base/services/java/com/android/server/
H A DConnectivityService.java389 // this collection is used to refcount the added routes - if there are none left
2430 * If a non-default network is enabled, add the host routes that
2563 * Add and remove routes using the old properties (null if not previously connected),
2566 * Uses isLinkDefault to determine if default routes should be set or conversely if
2567 * host routes should be set to the dns servers
2568 * returns a boolean indicating the routes changed
2598 // handle DNS routes
2600 // routes changed - remove all old dns entries and add new
2612 // no change in routes, check for change in dns themselves
2991 * take the additional step of clearing any default routes
3788 setRoutes(String interfaze, List<RouteInfo> routes) argument
[all...]

Completed in 243 milliseconds