/aosp12/frameworks/libs/net/common/tests/unit/src/android/net/util/ |
H A D | NetUtilsTest.java | 62 final List<RouteInfo> routes = new ArrayList<>(); in testSelectBestRoute() local 68 route = NetUtils.selectBestRoute(routes, null); in testSelectBestRoute() 71 route = NetUtils.selectBestRoute(routes, v4_dest); in testSelectBestRoute() 76 routes.add(v4_expected); in testSelectBestRoute() 83 routes.add(v6_expected); in testSelectBestRoute() 89 route = NetUtils.selectBestRoute(routes, v4_dest); in testSelectBestRoute() 93 route = NetUtils.selectBestRoute(routes, v6_dest); in testSelectBestRoute() 97 routes.remove(v4_expected); in testSelectBestRoute() 98 route = NetUtils.selectBestRoute(routes, v4_dest); in testSelectBestRoute() 102 routes.remove(v6_expected); in testSelectBestRoute() [all …]
|
/aosp12/hardware/libhardware/modules/audio_remote_submix/ |
H A D | audio_hw.cpp | 171 route_config_t routes[MAX_ROUTES]; member 377 rsxadev->routes[route_idx].input = in; in audio_config_compare() 384 if (!rsxadev->routes[route_idx].output) { in audio_config_compare() 392 rsxadev->routes[route_idx].output = out; in audio_config_compare() 402 if (rsxadev->routes[route_idx].rsxSink == NULL || rsxadev->routes[route_idx].rsxSource == NULL) in audio_config_compare() 468 rsxadev->routes[route_idx].address); in audio_config_compare() 505 rsxadev->routes[route_idx].input = NULL; in audio_config_compare() 521 rsxadev->routes[route_idx].input == NULL && rsxadev->routes[route_idx].output == NULL) { in audio_config_compare() 1662 in = rsxadev->routes[route_idx].input; in audio_config_compare() 1786 rsxadev->routes[i].address); in audio_config_compare() [all …]
|
/aosp12/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/ |
H A D | MediaRouter2ManagerTest.java | 184 assertTrue(routes.size() > 0); in testOnRoutesRemovedAndAdded() 185 for (MediaRoute2Info route : routes) { in testOnRoutesRemovedAndAdded() 194 assertTrue(routes.size() > 0); in testOnRoutesRemovedAndAdded() 198 for (MediaRoute2Info route : routes) { in testOnRoutesRemovedAndAdded() 268 for (MediaRoute2Info route : routes.values()) { in testRouteFeatures() 275 assertNotNull(routes.get(ROUTE_ID_SPECIAL_FEATURE)); in testRouteFeatures() 500 MediaRoute2Info route1 = routes.get(ROUTE_ID1); in testTransferTwice() 501 MediaRoute2Info route2 = routes.get(ROUTE_ID2); in testTransferTwice() 737 MediaRoute2Info route = routes.get(ROUTE_ID1); in testRouter2SetOnGetControllerHintsListener() 832 for (MediaRoute2Info route : routes) { in waitAndGetRoutesWithManager() [all …]
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | MediaRouter2Manager.java | 264 routes.add(route); in getAvailableRoutes() 268 return routes; in getAvailableRoutes() 296 routes.add(route); in getTransferableRoutes() 302 routes.add(route); in getTransferableRoutes() 306 return routes; in getTransferableRoutes() 452 return routes; in getAllRoutes() 570 if (routes.size() > 0) { in addRoutesOnHandler() 571 notifyRoutesAdded(routes); in addRoutesOnHandler() 581 if (routes.size() > 0) { in removeRoutesOnHandler() 582 notifyRoutesRemoved(routes); in removeRoutesOnHandler() [all …]
|
H A 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()
|
H A D | MediaRoute2ProviderInfo.java | 63 ArrayMap<String, MediaRoute2Info> routes = src.createTypedArrayMap(MediaRoute2Info.CREATOR); in MediaRoute2ProviderInfo() local 64 mRoutes = (routes == null) ? ArrayMap.EMPTY : routes; in MediaRoute2ProviderInfo() 222 public Builder addRoutes(@NonNull Collection<MediaRoute2Info> routes) { in addRoutes() argument 223 Objects.requireNonNull(routes, "routes must not be null"); in addRoutes() 225 if (!routes.isEmpty()) { in addRoutes() 226 for (MediaRoute2Info route : routes) { in addRoutes()
|
H A D | MediaRouter2.java | 842 void addRoutesOnHandler(List<MediaRoute2Info> routes) { in addRoutesOnHandler() argument 845 for (MediaRoute2Info route : routes) { in addRoutesOnHandler() 858 void removeRoutesOnHandler(List<MediaRoute2Info> routes) { in removeRoutesOnHandler() argument 861 for (MediaRoute2Info route : routes) { in removeRoutesOnHandler() 874 void changeRoutesOnHandler(List<MediaRoute2Info> routes) { in changeRoutesOnHandler() argument 877 for (MediaRoute2Info route : routes) { in changeRoutesOnHandler() 1064 return routes.stream() in filterRoutes() 1082 private void notifyRoutesAdded(List<MediaRoute2Info> routes) { in notifyRoutesAdded() argument 1871 MediaRouter2.this, routes)); in notifyRoutesAdded() 1877 MediaRouter2.this, routes)); in notifyRoutesRemoved() [all …]
|
H A D | IMediaRouter2Manager.aidl | 31 void notifyRoutesAdded(in List<MediaRoute2Info> routes); in notifyRoutesAdded() argument 32 void notifyRoutesRemoved(in List<MediaRoute2Info> routes); in notifyRoutesRemoved() argument 33 void notifyRoutesChanged(in List<MediaRoute2Info> routes); in notifyRoutesChanged() argument
|
H A D | IMediaRouter2.aidl | 29 void notifyRoutesAdded(in List<MediaRoute2Info> routes); in notifyRoutesAdded() argument 30 void notifyRoutesRemoved(in List<MediaRoute2Info> routes); in notifyRoutesRemoved() argument 31 void notifyRoutesChanged(in List<MediaRoute2Info> routes); in notifyRoutesChanged() argument
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
H A D | InfoMediaManagerTest.java | 110 routes.add(info); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice() 132 routes.add(info); in onRouteAdded_buildAllRoutes_shouldAddMediaDevice() 133 mShadowRouter2Manager.setAllRoutes(routes); in onRouteAdded_buildAllRoutes_shouldAddMediaDevice() 161 routes.add(info); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice() 197 routes.add(info); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice() 219 routes.add(info); in onRoutesChanged_buildAllRoutes_shouldAddMediaDevice() 220 mShadowRouter2Manager.setAllRoutes(routes); in onRoutesChanged_buildAllRoutes_shouldAddMediaDevice() 261 routes.add(info); in onRoutesRemoved_getAvailableRoutes_shouldAddMediaDevice() 283 routes.add(info); in onRoutesRemoved_buildAllRoutes_shouldAddMediaDevice() 620 routes.add(info); in onTransferred_getAvailableRoutes_shouldAddMediaDevice() [all …]
|
/aosp12/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/ |
H A D | RouteUtils.java | 64 final List<RouteInfo> routes) { in addRoutesToLocalNetwork() argument 66 for (RouteInfo route : routes) { in addRoutesToLocalNetwork() 78 public static int removeRoutesFromLocalNetwork(final INetd netd, final List<RouteInfo> routes) { in removeRoutesFromLocalNetwork() argument 81 for (RouteInfo route : routes) { in removeRoutesFromLocalNetwork()
|
H A D | NetdUtils.java | 62 List<RouteInfo> routes = new ArrayList<>(); in tetherInterface() local 63 routes.add(new RouteInfo(dest, null, iface, RTN_UNICAST)); in tetherInterface() 64 RouteUtils.addRoutesToLocalNetwork(netd, iface, routes); in tetherInterface()
|
/aosp12/frameworks/base/core/java/com/android/internal/net/ |
H A D | VpnConfig.java | 97 public List<RouteInfo> routes = new ArrayList<RouteInfo>(); field in VpnConfig 129 String[] routes = routesStr.trim().split(" "); in addLegacyRoutes() local 130 for (String route : routes) { in addLegacyRoutes() 133 this.routes.add(info); in addLegacyRoutes() 163 out.writeTypedList(routes); in writeToParcel() 190 in.readTypedList(config.routes, RouteInfo.CREATOR); 223 .append(", routes=").append(toString(routes)) in toString()
|
H A D | VpnProfile.java | 101 public String routes = ""; // 7 field in VpnProfile 169 routes = in.readString(); in VpnProfile() 217 out.writeString(routes); in writeToParcel() 275 profile.routes = values[7]; in decode() 334 builder.append(VALUE_DELIMITER).append(routes); in encode() 451 key, type, server, username, password, dnsServers, searchDomains, routes, mppe, in hashCode() 473 && Objects.equals(routes, other.routes) in equals()
|
/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/ip/ |
H A D | IpClientTest.java | 251 final Set<RouteInfo> routes = routes(TEST_PREFIXES); in makeIPv6ProvisionedLinkProperties() local 252 routes.add(defaultIPV6Route(TEST_IPV6_GATEWAY)); in makeIPv6ProvisionedLinkProperties() 406 routes(TEST_PREFIXES), emptySet() /* dnses */); in testProvisioningWithInitialConfiguration() 428 notProvisionedCase(links(), routes(), dns(), null), in testIsProvisioned() 429 notProvisionedCase(links(), routes(), dns(), empty), in testIsProvisioned() 437 routes(), dns(), empty), in testIsProvisioned() 443 routes("::/0"), in testIsProvisioned() 449 routes("fe80::/64", "fd2c:4e57:8e3c::/64"), in testIsProvisioned() 588 Set<RouteInfo> routes, Set<InetAddress> dnses) { in linkproperties() argument 591 routes.forEach(lp::addRoute); in linkproperties() [all …]
|
/aosp12/frameworks/libs/net/common/framework/com/android/net/module/util/ |
H A D | NetUtils.java | 53 public static RouteInfo selectBestRoute(@Nullable Collection<RouteInfo> routes, in selectBestRoute() argument 55 if ((routes == null) || (dest == null)) return null; in selectBestRoute() 59 for (RouteInfo route : routes) { in selectBestRoute()
|
/aosp12/frameworks/native/cmds/ip-up-vpn/ |
H A 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()
|
/aosp12/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
H A D | MyVpnService.java | 77 String routes = intent.getStringExtra(packageName + ".routes"); in start() local 78 if (routes != null) { in start() 79 String[] routeArray = routes.split(","); in start() 143 + " routes=" + routes in start()
|
/aosp12/packages/modules/Connectivity/framework/src/android/net/ |
H A D | StaticIpConfiguration.java | 202 List<RouteInfo> routes = new ArrayList<RouteInfo>(3); in getRoutes() local 205 routes.add(connectedRoute); in getRoutes() 210 routes.add(RouteInfo.makeHostRoute(gateway, iface)); in getRoutes() 214 routes.add(new RouteInfo((IpPrefix) null, gateway, iface)); in getRoutes() 216 return routes; in getRoutes()
|
/aosp12/frameworks/base/services/core/java/com/android/server/media/ |
H A D | BluetoothRouteProvider.java | 189 List<MediaRoute2Info> routes = getAllBluetoothRoutes(); in getTransferableRoutes() local 191 routes.remove(btRoute.route); in getTransferableRoutes() 193 return routes; in getTransferableRoutes() 198 List<MediaRoute2Info> routes = new ArrayList<>(); in getAllBluetoothRoutes() local 203 routes.add(selectedRoute); in getAllBluetoothRoutes() 212 routes.add(btRoute.route); in getAllBluetoothRoutes() 215 return routes; in getAllBluetoothRoutes() 381 void onBluetoothRoutesUpdated(@NonNull List<MediaRoute2Info> routes); in onBluetoothRoutesUpdated() argument
|
/aosp12/packages/modules/Connectivity/core/java/android/net/ |
H A D | LinkProperties.java | 371 List<RouteInfo> routes = new ArrayList(); in getAllRoutes() local 372 routes.addAll(mRoutes); in getAllRoutes() 374 routes.addAll(stacked.getAllRoutes()); in getAllRoutes() 376 return routes; in getAllRoutes() 488 String routes = " Routes: ["; in toString() local 489 for (RouteInfo route : mRoutes) routes += route.toString() + ","; in toString() 490 routes += "] "; in toString() 501 return "{" + ifaceName + linkAddresses + routes + dns + domainName + mtu in toString()
|
/aosp12/packages/modules/NetworkStack/src/android/net/ip/ |
H A D | IpReachabilityMonitor.java | 290 private static boolean isOnLink(List<RouteInfo> routes, InetAddress ip) { 291 for (RouteInfo route : routes) { 310 final List<RouteInfo> routes = mLinkProperties.getRoutes(); 311 for (RouteInfo route : routes) { 314 if (isOnLink(routes, gw)) { 321 if (isOnLink(routes, dns)) {
|
/aosp12/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/ |
H A D | PolicyConfig.cpp | 188 const auto& routes = module->getFirstRoutes()->getRoute(); in getSourceDevicesForMixPort() local 189 const auto route = std::find_if(routes.begin(), routes.end(), [&mixPortName](auto rte) { in getSourceDevicesForMixPort() 192 if (route != routes.end()) { in getSourceDevicesForMixPort()
|
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
H A D | NetdWrapper.java | 214 public void addInterfaceToLocalNetwork(String iface, List<RouteInfo> routes) { in addInterfaceToLocalNetwork() argument 217 for (RouteInfo route : routes) { in addInterfaceToLocalNetwork() 441 List<RouteInfo> routes = new ArrayList<>(); in tetherInterface() local 448 routes.add(route); in tetherInterface() 449 addInterfaceToLocalNetwork(iface, routes); in tetherInterface()
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/ |
H A D | ShadowRouter2Manager.java | 80 public void setDeselectableRoutes(List<MediaRoute2Info> routes) { in setDeselectableRoutes() argument 81 mDeselectableRoutes = routes; in setDeselectableRoutes()
|