/frameworks/libs/net/common/tests/unit/src/android/net/util/ |
D | NetUtilsTest.java | 60 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/ |
D | MediaRouterClientState.java | 35 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()
|
D | MediaRouter.java | 454 mClientState != null ? mClientState.routes : null; in updateClientState()
|
D | AudioManager.java | 2055 public void setRouting(int mode, int routes, int mask) { in setRouting() argument
|
/frameworks/libs/net/common/framework/android/net/util/ |
D | NetUtils.java | 52 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/ |
D | VpnConfig.java | 96 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()
|
D | VpnProfile.java | 94 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/ |
D | ip-up-vpn.c | 87 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/ |
D | StaticIpConfiguration.java | 204 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()
|
D | RouteInfo.java | 512 public static RouteInfo selectBestRoute(Collection<RouteInfo> routes, InetAddress dest) { in selectBestRoute() argument 513 return NetUtils.selectBestRoute(routes, dest); in selectBestRoute()
|
D | LinkProperties.java | 779 List<RouteInfo> routes = new ArrayList<>(mRoutes); in getAllRoutes() local 781 routes.addAll(stacked.getAllRoutes()); in getAllRoutes() 783 return routes; in getAllRoutes()
|
D | VpnService.java | 894 mConfig.routes = mRoutes; in establish()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | PhoneAccount.java | 640 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/ |
D | INetworkManagementService.aidl | 385 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/ |
D | VpnProfileTest.java | 61 assertEquals("", p.routes); in testDefaults() 88 p.routes = "0.0.0.0/0"; in getSampleIkev2Profile()
|
/frameworks/base/tests/RemoteDisplayProvider/ |
D | README | 8 remote display routes. Behavior can be controlled by modifying the
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 1022 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 …]
|
D | VpnIkev2Utils.java | 403 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/ |
D | AudioDeviceInventory.java | 334 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/ |
D | HwModule.h | 79 void setRoutes(const AudioRouteVector &routes);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | HwModule.cpp | 174 void HwModule::setRoutes(const AudioRouteVector &routes) in setRoutes() argument 176 mRoutes = routes; in setRoutes()
|
D | Serializer.cpp | 632 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/ |
D | NetworkManagementService.java | 2088 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/ |
D | ConnectivityServiceTest.java | 7075 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/ |
D | MediaRouterService.java | 1428 state.routes.add(mRoutes.get(i).getInfo()); in appendClientState()
|