/frameworks/base/core/java/com/android/internal/net/ |
H A D | VpnConfig.java | 67 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 D | VpnProfile.java | 57 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/support/v7/mediarouter/src/android/support/v7/media/ |
H A D | MediaRouteProviderDescriptor.java | 28 * 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...] |
H A D | RegisteredMediaRouteProvider.java | 67 List<MediaRouteDescriptor> routes = descriptor.getRoutes(); 68 final int count = routes.size(); 70 final MediaRouteDescriptor route = routes.get(i); 143 // This means that one of this provider's routes is selected.
|
/frameworks/native/cmds/ip-up-vpn/ |
H A D | ip-up-vpn.c | 49 * 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/services/jni/ |
H A D | com_android_server_connectivity_Vpn.cpp | 190 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/core/java/android/net/ |
H A D | LinkProperties.java | 256 * Returns all the routes on this link. 263 * Returns all the routes on this link and all the links stacked above it. 266 Collection<RouteInfo> routes = new ArrayList(); 267 routes.addAll(mRoutes); 269 routes.addAll(stacked.getAllRoutes()); 271 return routes; 362 String routes = " Routes: ["; 363 for (RouteInfo route : mRoutes) routes += route.toString() + ","; 364 routes += "] "; 375 return "{" + ifaceName + linkAddresses + routes [all...] |
H A D | RouteInfo.java | 34 * - 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) {
|
H A D | VpnService.java | 158 * destination is covered by VPN routes. Otherwise its outgoing packets 350 * routes are supported. 468 mConfig.routes = mRoutes;
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouteChooserDialog.java | 69 * Gets the media route selector for filtering the routes that the user can select. 78 * Sets the media route selector for filtering the routes that the user can select. 103 * The default implementation returns true for non-default routes that 104 * match the selector. Subclasses can override this method to filter routes 154 * Refreshes the list of routes that are shown in the chooser dialog. 173 final List<MediaRouter.RouteInfo> routes = mRouter.getRoutes(); 174 final int count = routes.size(); 176 MediaRouter.RouteInfo route = routes.get(i);
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | MediaRouteChooserDialogFragment.java | 247 List<RouteInfo> routes; 251 routes = cat.getRoutes(mCatRouteList); 258 addGroupEditingCategoryRoutes(routes); 260 addSelectableRoutes(selectedRoute, routes); 263 routes.clear();
|
/frameworks/base/services/java/com/android/server/connectivity/ |
H A D | Vpn.java | 394 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 D | NetworkManagementService.java | 770 ArrayList<RouteInfo> routes = new ArrayList<RouteInfo>(); 772 // v4 routes listed as: 799 routes.add(route); 808 // v6 routes listed as: 831 routes.add(route); 839 return routes.toArray(new RouteInfo[routes.size()]);
|
H A D | ConnectivityService.java | 383 // this collection is used to refcount the added routes - if there are none left 2424 * If a non-default network is enabled, add the host routes that 2557 * Add and remove routes using the old properties (null if not previously connected), 2560 * Uses isLinkDefault to determine if default routes should be set or conversely if 2561 * host routes should be set to the dns servers 2562 * returns a boolean indicating the routes changed 2592 // handle DNS routes 2594 // routes changed - remove all old dns entries and add new 2606 // no change in routes, check for change in dns themselves 2985 * take the additional step of clearing any default routes 3768 setRoutes(String interfaze, List<RouteInfo> routes) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | AudioService.java | 418 // Monitoring of audio routes. Protected by mCurAudioRoutes. 3656 AudioRoutesInfo routes; 3658 routes = new AudioRoutesInfo(mCurAudioRoutes); 3664 obs.dispatchAudioRoutesChanged(routes); 4458 AudioRoutesInfo routes = new AudioRoutesInfo(mCurAudioRoutes); 4460 return routes; 4613 pw.println("\nAudio routes:");
|
H A D | AudioManager.java | 1528 * @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
|