/frameworks/native/cmds/ip-up-vpn/ |
H A D | ip-up-vpn.c | 49 * are interface, addresses, routes, DNS servers, and search domains and VPN 87 const char *routes = env("SPLIT_INCLUDE_CIDR"); local 120 fprintf(state, "%s\n", routes[0] ? routes : "0.0.0.0/0");
|
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/media/ |
H A D | MediaRouteProviderDescriptor.java | 27 * Describes the state of a media route provider and the routes that it publishes. 33 private static final String KEY_ROUTES = "routes"; 38 private MediaRouteProviderDescriptor(Bundle bundle, List<MediaRouteDescriptor> routes) { argument 40 mRoutes = routes; 44 * Gets the list of all routes that this provider has published. 67 * Returns true if the route provider descriptor and all of the routes that 71 * valid then it is not necessary to call {@link #isValid} on each of its routes. 90 result.append("routes=").append( 165 * Adds a list of routes. 167 public Builder addRoutes(Collection<MediaRouteDescriptor> routes) { argument 183 setRoutes(Collection<MediaRouteDescriptor> routes) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaRouterClientState.java | 26 * 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 38 routes = new ArrayList<RouteInfo>(); 42 routes = src.createTypedArrayList(RouteInfo.CREATOR); 46 final int count = routes.size(); 48 final RouteInfo route = routes.get(i); 63 dest.writeTypedList(routes); 68 return "MediaRouterClientState{ routes=" + routes [all...] |
H A D | AudioManager.java | 1806 * @param routes bit vector of routes requested, created from one or 1808 * @param mask bit vector of routes to change, created from one or more of 1815 public void setRouting(int mode, int routes, int mask) { argument
|
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/ |
H A D | MediaRouteProviderDescriptor.java | 27 * Describes the state of a media route provider and the routes that it publishes. 33 private static final String KEY_ROUTES = "routes"; 38 private MediaRouteProviderDescriptor(Bundle bundle, List<MediaRouteDescriptor> routes) { argument 40 mRoutes = routes; 44 * Gets the list of all routes that this provider has published. 67 * Returns true if the route provider descriptor and all of the routes that 71 * valid then it is not necessary to call {@link #isValid} on each of its routes. 90 result.append("routes=").append( 165 * Adds a list of routes. 167 public Builder addRoutes(Collection<MediaRouteDescriptor> routes) { argument 183 setRoutes(Collection<MediaRouteDescriptor> routes) argument [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | HwModule.cpp | 165 void HwModule::setRoutes(const AudioRouteVector &routes) argument 167 mRoutes = routes;
|
H A D | Serializer.cpp | 348 const char *const RouteTraits::collectionTag = "routes"; 454 RouteTraits::Collection routes; local 455 deserializeCollection<RouteTraits>(doc, root, routes, module.get()); 456 module->setRoutes(routes);
|
/frameworks/base/core/java/android/net/ |
H A D | RouteInfo.java | 112 // - LinkProperties sets the interface on routes added to it, and modifies the 113 // interfaces of all the routes when its interface name changes. 116 // For now, we just rely on the code that sets routes to do things properly. 374 * Find the route from a Collection of routes that best matches a given address. 375 * May return null if no routes are applicable. 376 * @param routes a Collection of RouteInfos to chose from 382 public static RouteInfo selectBestRoute(Collection<RouteInfo> routes, InetAddress dest) { argument 383 if ((routes == null) || (dest == null)) return null; 387 for (RouteInfo route : routes) {
|
/frameworks/base/core/java/com/android/internal/net/ |
H A D | VpnConfig.java | 92 public List<RouteInfo> routes = new ArrayList<RouteInfo>(); field in class:VpnConfig 118 String[] routes = routesStr.trim().split(" "); 119 for (String route : routes) { 122 this.routes.add(info); 152 out.writeTypedList(routes); 177 in.readTypedList(config.routes, RouteInfo.CREATOR);
|
H A D | VpnProfile.java | 56 public String routes = ""; // 7 field in class:VpnProfile 81 routes = in.readString(); 102 out.writeString(routes); 136 profile.routes = values[7]; 161 builder.append('\0').append(routes);
|
/frameworks/base/services/net/java/android/net/ip/ |
H A D | IpReachabilityMonitor.java | 248 private static boolean isOnLink(List<RouteInfo> routes, InetAddress ip) { argument 249 for (RouteInfo route : routes) { 268 final List<RouteInfo> routes = mLinkProperties.getRoutes(); 269 for (RouteInfo route : routes) { 272 if (isOnLink(routes, gw)) { 279 if (isOnLink(routes, dns)) {
|
H A D | IpClient.java | 521 // The prefix length of routes in directlyConnectedRoutes be within reasonable 535 * @return true if the given list of addressess and routes satisfies provisioning for this 537 * because addresses and routes seen by Netlink will contain additional fields like flags, 541 * If the given list of routes is null, only addresses are taken into considerations. 543 public boolean isProvisionedBy(List<LinkAddress> addresses, List<RouteInfo> routes) { argument 554 if (routes != null) { 556 if (!any(routes, (routeSeen) -> isDirectlyConnectedRoute(routeSeen, prefix))) { 1204 // - IPv6 routes 1245 // Add InitialConfiguration routes and dns server addresses once all addresses 1260 // TODO: also learn via netlink routes specifie [all...] |
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/ |
H A D | MediaRouteChooserDialog.java | 111 * Gets the media route selector for filtering the routes that the user can select. 121 * Sets the media route selector for filtering the routes that the user can select. 144 * Called to filter the set of routes that should be included in the list. 146 * The default implementation iterates over all routes in the provided list and 150 * @param routes The list of routes to filter in-place, never null. 152 public void onFilterRoutes(@NonNull List<MediaRouter.RouteInfo> routes) { argument 153 for (int i = routes.size(); i-- > 0; ) { 154 if (!onFilterRoute(routes.get(i))) { 155 routes 249 updateRoutes(List<MediaRouter.RouteInfo> routes) argument 263 RouteAdapter(Context context, List<MediaRouter.RouteInfo> routes) argument [all...] |
/frameworks/base/tests/net/java/android/net/ip/ |
H A D | IpClientTest.java | 242 LinkProperties want = linkproperties(links(addresses), routes(prefixes)); 256 notProvisionedCase(links(), routes(), dns(), null), 257 notProvisionedCase(links(), routes(), dns(), empty), 260 provisionedCase(links("192.0.2.12/24"), routes(), dns(), empty), 265 routes(), dns(), empty), 268 routes("fe80::/64", "fd2c:4e57:8e3c::/64"), dns("fd00:1234:5678::1000"), empty), 271 routes("::/0"), 277 routes("fe80::/64", "fd2c:4e57:8e3c::/64"), 415 static LinkProperties linkproperties(Set<LinkAddress> addresses, Set<RouteInfo> routes) { argument 418 for (RouteInfo route : routes) { 437 routes(String... routes) argument [all...] |
/frameworks/support/media/src/androidTest/java/androidx/media/ |
H A D | MediaSession2TestBase.java | 350 @Nullable List<Bundle> routes) { 351 mCallbackProxy.onRoutesInfoChanged(controller, routes); 349 onRoutesInfoChanged(@onNull MediaController2 controller, @Nullable List<Bundle> routes) argument
|
/frameworks/support/media/src/main/java/androidx/media/ |
H A D | MediaSession2Stub.java | 768 void onRoutesInfoChanged(List<Bundle> routes) throws RemoteException { argument 770 if (routes != null) { 772 bundle.putParcelableArray(ARGUMENT_ROUTE_BUNDLE, routes.toArray(new Bundle[0]));
|
H A D | MediaSessionLegacyStub.java | 554 void onRoutesInfoChanged(List<Bundle> routes) throws RemoteException { argument 556 if (routes != null) { 558 bundle.putParcelableArray(ARGUMENT_ROUTE_BUNDLE, routes.toArray(new Bundle[0]));
|
H A D | MediaController2.java | 631 * Queries for information about the routes currently known. 638 * Unsubscribes for changes to the routes. 641 * the routes once this method returns. 919 * @param routes The list of Bundle from MediaRouteDescriptor.asBundle(). 921 * MediaRouteDescriptor object from the {@code routes} 924 @Nullable List<Bundle> routes) { } 923 onRoutesInfoChanged(@onNull MediaController2 controller, @Nullable List<Bundle> routes) argument
|
H A D | MediaSession2.java | 408 * Notify routes information to a connected controller 411 * @param routes The routes information. Each bundle should be from 415 @Nullable List<Bundle> routes) { 416 mImpl.notifyRoutesInfoChanged(controller, routes); 1020 * Session app should notify the routes information by calling 1534 abstract void onRoutesInfoChanged(@Nullable List<Bundle> routes) throws RemoteException; argument 1562 @Nullable List<Bundle> routes); 414 notifyRoutesInfoChanged(@onNull ControllerInfo controller, @Nullable List<Bundle> routes) argument 1561 notifyRoutesInfoChanged(@onNull ControllerInfo controller, @Nullable List<Bundle> routes) argument
|
H A D | MediaSession2ImplBase.java | 468 @Nullable final List<Bundle> routes) { 472 callback.onRoutesInfoChanged(routes); 467 notifyRoutesInfoChanged(@onNull ControllerInfo controller, @Nullable final List<Bundle> routes) argument
|
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/androidx/media/test/client/ |
H A D | MediaSession2TestBase.java | 356 @Nullable List<Bundle> routes) { 357 mCallbackProxy.onRoutesInfoChanged(controller, routes); 355 onRoutesInfoChanged(@onNull MediaController2 controller, @Nullable List<Bundle> routes) argument
|
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/ |
H A D | MediaRouteChooserDialog.java | 106 * Gets the media route selector for filtering the routes that the user can select. 116 * Sets the media route selector for filtering the routes that the user can select. 139 * Called to filter the set of routes that should be included in the list. 141 * The default implementation iterates over all routes in the provided list and 145 * @param routes The list of routes to filter in-place, never null. 147 public void onFilterRoutes(@NonNull List<MediaRouter.RouteInfo> routes) { argument 148 for (int i = routes.size(); i-- > 0; ) { 149 if (!onFilterRoute(routes.get(i))) { 150 routes 242 updateRoutes(List<MediaRouter.RouteInfo> routes) argument 257 RouteAdapter(Context context, List<MediaRouter.RouteInfo> routes) argument [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
H A D | PhoneAccount.java | 555 * Sets the audio routes supported by this {@link PhoneAccount}. 557 * @param routes bit mask of available routes. 561 public Builder setSupportedAudioRoutes(int routes) { argument 562 mSupportedAudioRoutes = routes; 692 * Determines if this {@code PhoneAccount} has routes specified by the passed in bit mask. 694 * @param route The routes to check. 695 * @return {@code true} if the phone account has the routes. 698 public boolean hasAudioRoutes(int routes) { argument 699 return (mSupportedAudioRoutes & routes) [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | NetworkManagementService.java | 1304 List<RouteInfo> routes = new ArrayList<>(); 1307 routes.add(new RouteInfo(getInterfaceConfig(iface).getLinkAddress(), null, iface)); 1308 addInterfaceToLocalNetwork(iface, routes); 1403 // Don't touch link-local routes, as link-local addresses aren't routable, 1404 // kernel creates link-local routes on all interfaces automatically 2662 public void addInterfaceToLocalNetwork(String iface, List<RouteInfo> routes) { argument 2665 for (RouteInfo route : routes) { 2678 public int removeRoutesFromLocalNetwork(List<RouteInfo> routes) { argument 2681 for (RouteInfo route : routes) {
|