Home
last modified time | relevance | path

Searched refs:routes (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/libs/net/common/tests/unit/src/android/net/util/
DNetUtilsTest.java60 final List<RouteInfo> routes = new ArrayList<>(); in testSelectBestRoute() local
66 route = NetUtils.selectBestRoute(routes, null); in testSelectBestRoute()
69 route = NetUtils.selectBestRoute(routes, v4_dest); in testSelectBestRoute()
74 routes.add(v4_expected); in testSelectBestRoute()
76 routes.add(new RouteInfo(new IpPrefix("75.208.8.10/16"), V4_GATEWAY, "wlan0")); in testSelectBestRoute()
77 routes.add(new RouteInfo(new IpPrefix("75.208.7.32/24"), V4_GATEWAY, "wlan0")); in testSelectBestRoute()
81 routes.add(v6_expected); in testSelectBestRoute()
83 routes.add(new RouteInfo(new IpPrefix("2001:db8:cafe::123/32"), V6_GATEWAY, "wlan0")); in testSelectBestRoute()
84 routes.add(new RouteInfo(new IpPrefix("2001:db8:beef::/64"), V6_GATEWAY, "wlan0")); in testSelectBestRoute()
87 route = NetUtils.selectBestRoute(routes, v4_dest); in testSelectBestRoute()
[all …]
/frameworks/base/media/java/android/media/
DMediaRouterClientState.java35 public final ArrayList<RouteInfo> routes; field in MediaRouterClientState
38 routes = new ArrayList<RouteInfo>(); in MediaRouterClientState()
42 routes = src.createTypedArrayList(RouteInfo.CREATOR); in MediaRouterClientState()
46 final int count = routes.size(); in getRoute()
48 final RouteInfo route = routes.get(i); in getRoute()
63 dest.writeTypedList(routes); in writeToParcel()
68 return "MediaRouterClientState{ routes=" + routes.toString() + " }"; in toString()
DMediaRouter.java454 mClientState != null ? mClientState.routes : null; in updateClientState()
DAudioManager.java2055 public void setRouting(int mode, int routes, int mask) { in setRouting() argument
/frameworks/libs/net/common/framework/android/net/util/
DNetUtils.java52 public static RouteInfo selectBestRoute(@Nullable Collection<RouteInfo> routes, in selectBestRoute() argument
54 if ((routes == null) || (dest == null)) return null; in selectBestRoute()
58 for (RouteInfo route : routes) { in selectBestRoute()
/frameworks/base/core/java/com/android/internal/net/
DVpnConfig.java96 public List<RouteInfo> routes = new ArrayList<RouteInfo>(); field in VpnConfig
128 String[] routes = routesStr.trim().split(" "); in addLegacyRoutes() local
129 for (String route : routes) { in addLegacyRoutes()
132 this.routes.add(info); in addLegacyRoutes()
162 out.writeTypedList(routes); in writeToParcel()
189 in.readTypedList(config.routes, RouteInfo.CREATOR);
222 .append(", routes=").append(toString(routes)) in toString()
DVpnProfile.java94 public String routes = ""; // 7 field in VpnProfile
165 routes = in.readString(); in VpnProfile()
216 out.writeString(routes); in writeToParcel()
274 profile.routes = values[7]; in decode()
327 builder.append(VALUE_DELIMITER).append(routes); in encode()
443 key, type, server, username, password, dnsServers, searchDomains, routes, mppe, in hashCode()
465 && Objects.equals(routes, other.routes) in equals()
/frameworks/native/cmds/ip-up-vpn/
Dip-up-vpn.c87 const char *routes = env("SPLIT_INCLUDE_CIDR"); in main() local
123 fprintf(state, "%s\n", routes[0] ? routes : "0.0.0.0/0"); in main()
/frameworks/base/core/java/android/net/
DStaticIpConfiguration.java204 List<RouteInfo> routes = new ArrayList<RouteInfo>(3); in getRoutes() local
207 routes.add(connectedRoute); in getRoutes()
212 routes.add(RouteInfo.makeHostRoute(gateway, iface)); in getRoutes()
216 routes.add(new RouteInfo((IpPrefix) null, gateway, iface)); in getRoutes()
218 return routes; in getRoutes()
DRouteInfo.java512 public static RouteInfo selectBestRoute(Collection<RouteInfo> routes, InetAddress dest) { in selectBestRoute() argument
513 return NetUtils.selectBestRoute(routes, dest); in selectBestRoute()
DLinkProperties.java779 List<RouteInfo> routes = new ArrayList<>(mRoutes); in getAllRoutes() local
781 routes.addAll(stacked.getAllRoutes()); in getAllRoutes()
783 return routes; in getAllRoutes()
DVpnService.java894 mConfig.routes = mRoutes; in establish()
/frameworks/base/telecomm/java/android/telecom/
DPhoneAccount.java640 public Builder setSupportedAudioRoutes(int routes) { in setSupportedAudioRoutes() argument
641 mSupportedAudioRoutes = routes; in setSupportedAudioRoutes()
777 public boolean hasAudioRoutes(int routes) { in hasAudioRoutes() argument
778 return (mSupportedAudioRoutes & routes) == routes; in hasAudioRoutes()
/frameworks/base/core/java/android/os/
DINetworkManagementService.aidl385 void addInterfaceToLocalNetwork(String iface, in List<RouteInfo> routes); in addInterfaceToLocalNetwork() argument
387 int removeRoutesFromLocalNetwork(in List<RouteInfo> routes); in removeRoutesFromLocalNetwork() argument
/frameworks/base/tests/net/java/com/android/internal/net/
DVpnProfileTest.java61 assertEquals("", p.routes); in testDefaults()
88 p.routes = "0.0.0.0/0"; in getSampleIkev2Profile()
/frameworks/base/tests/RemoteDisplayProvider/
DREADME8 remote display routes. Behavior can be controlled by modifying the
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java1022 if (mConfig.routes != null) {
1023 for (RouteInfo route : mConfig.routes) {
2045 config.addLegacyRoutes(profile.routes);
2302 mConfig.routes.clear();
2303 mConfig.routes.addAll(newRoutes);
2455 if (mConfig != null && mConfig.routes != null) {
2456 final List<RouteInfo> oldRoutes = new ArrayList<>(mConfig.routes);
2458 mConfig.routes.clear();
2460 mConfig.routes.add(new RouteInfo(route.getDestination(), RTN_UNREACHABLE));
2775 if (mConfig.routes == null || mConfig.routes.isEmpty()) {
[all …]
DVpnIkev2Utils.java403 final HashSet<RouteInfo> routes = new HashSet<>(); in getRoutesFromTrafficSelectors() local
408 routes.add(new RouteInfo(prefix, null)); in getRoutesFromTrafficSelectors()
412 return routes; in getRoutesFromTrafficSelectors()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioDeviceInventory.java334 AudioRoutesInfo routes; in onReportNewRoutes() local
336 routes = new AudioRoutesInfo(mCurAudioRoutes); in onReportNewRoutes()
342 obs.dispatchAudioRoutesChanged(routes); in onReportNewRoutes()
529 AudioRoutesInfo routes = new AudioRoutesInfo(mCurAudioRoutes); in startWatchingRoutes() local
531 return routes; in startWatchingRoutes()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DHwModule.h79 void setRoutes(const AudioRouteVector &routes);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DHwModule.cpp174 void HwModule::setRoutes(const AudioRouteVector &routes) in setRoutes() argument
176 mRoutes = routes; in setRoutes()
DSerializer.cpp632 RouteTraits::Collection routes; in deserialize() local
633 status = deserializeCollection<RouteTraits>(cur, &routes, module.get()); in deserialize()
637 module->setRoutes(routes); in deserialize()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java2088 public void addInterfaceToLocalNetwork(String iface, List<RouteInfo> routes) { in addInterfaceToLocalNetwork() argument
2091 RouteUtils.addRoutesToLocalNetwork(mNetdService, iface, routes); in addInterfaceToLocalNetwork()
2100 public int removeRoutesFromLocalNetwork(List<RouteInfo> routes) { in removeRoutesFromLocalNetwork() argument
2102 return RouteUtils.removeRoutesFromLocalNetwork(mNetdService, routes); in removeRoutesFromLocalNetwork()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java7075 private void assertRoutesAdded(int netId, RouteInfo... routes) throws Exception { in assertRoutesAdded() argument
7077 verify(mMockNetd, times(routes.length)).networkAddRouteParcel(eq(netId), captor.capture()); in assertRoutesAdded()
7078 for (int i = 0; i < routes.length; i++) { in assertRoutesAdded()
7079 assertRouteInfoParcelMatches(routes[i], captor.getAllValues().get(i)); in assertRoutesAdded()
7083 private void assertRoutesRemoved(int netId, RouteInfo... routes) throws Exception { in assertRoutesRemoved() argument
7085 verify(mMockNetd, times(routes.length)).networkRemoveRouteParcel(eq(netId), in assertRoutesRemoved()
7087 for (int i = 0; i < routes.length; i++) { in assertRoutesRemoved()
7088 assertRouteInfoParcelMatches(routes[i], captor.getAllValues().get(i)); in assertRoutesRemoved()
/frameworks/base/services/core/java/com/android/server/media/
DMediaRouterService.java1428 state.routes.add(mRoutes.get(i).getInfo()); in appendClientState()

12