Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DNetUtilsTest.java79 final List<RouteInfo> routes = new ArrayList<>(); in testSelectBestRoute() local
83 route = NetUtils.selectBestRoute(routes, null); in testSelectBestRoute()
86 route = NetUtils.selectBestRoute(routes, V4_DEST); in testSelectBestRoute()
89 routes.add(V4_EXPECTED); in testSelectBestRoute()
91 routes.add(new RouteInfo(new IpPrefix("75.208.0.0/16"), V4_GATEWAY, "wlan0")); in testSelectBestRoute()
92 routes.add(new RouteInfo(new IpPrefix("75.208.7.0/24"), V4_GATEWAY, "wlan0")); in testSelectBestRoute()
94 routes.add(V6_EXPECTED); in testSelectBestRoute()
96 routes.add(new RouteInfo(new IpPrefix("2001:db8::/32"), V6_GATEWAY, "wlan0")); in testSelectBestRoute()
97 routes.add(new RouteInfo(new IpPrefix("2001:db8:beef::/64"), V6_GATEWAY, "wlan0")); in testSelectBestRoute()
100 route = NetUtils.selectBestRoute(routes, V4_DEST); in testSelectBestRoute()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java373 final Set<RouteInfo> routes = routes(TEST_PREFIXES); in makeIPv6ProvisionedLinkProperties() local
374 routes.add(defaultIPV6Route(TEST_IPV6_GATEWAY)); in makeIPv6ProvisionedLinkProperties()
376 return linkproperties(addresses, routes, ips(TEST_DNSES)); in makeIPv6ProvisionedLinkProperties()
530 routes(TEST_PREFIXES), emptySet() /* dnses */); in testProvisioningWithInitialConfiguration()
555 notProvisionedCase(links(), routes(), dns(), null), in testIsProvisioned()
556 notProvisionedCase(links(), routes(), dns(), empty), in testIsProvisioned()
559 provisionedCase(links("192.0.2.12/24"), routes(), dns(), empty), in testIsProvisioned()
564 routes(), dns(), empty), in testIsProvisioned()
567 routes("fe80::/64", "fd2c:4e57:8e3c::/64"), dns("fd00:1234:5678::1000"), empty), in testIsProvisioned()
570 routes("::/0"), in testIsProvisioned()
[all …]
DIpReachabilityMonitorTest.kt1083 val routes: List<RouteInfo> = listOf( in testIsOnLink() constant
1093 assertTrue(IpReachabilityMonitor.isOnLink(routes, parseNumericAddress("192.168.0.1"))) in testIsOnLink()
1099 val routes: List<RouteInfo> = listOf( in testIsOnLink_withThrowRoutes() constant
1108 assertFalse(IpReachabilityMonitor.isOnLink(routes, parseNumericAddress("192.168.0.1"))) in testIsOnLink_withThrowRoutes()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetUtils.java55 public static RouteInfo selectBestRoute(@Nullable Collection<RouteInfo> routes, in selectBestRoute() argument
57 if ((routes == null) || (dest == null)) return null; in selectBestRoute()
62 for (RouteInfo route : routes) { in selectBestRoute()
/packages/modules/Connectivity/framework/src/android/net/
DStaticIpConfiguration.java213 List<RouteInfo> routes = new ArrayList<RouteInfo>(3); in getRoutes() local
216 routes.add(connectedRoute); in getRoutes()
221 routes.add(RouteInfo.makeHostRoute(gateway, iface)); in getRoutes()
225 routes.add(new RouteInfo((IpPrefix) null, gateway, iface)); in getRoutes()
227 return routes; in getRoutes()
DRouteInfo.java515 public static RouteInfo selectBestRoute(Collection<RouteInfo> routes, InetAddress dest) { in selectBestRoute() argument
516 return NetUtils.selectBestRoute(routes, dest); in selectBestRoute()
DLinkProperties.java791 final List<RouteInfo> routes = new ArrayList<>(getRoutes()); in getAllRoutes() local
793 routes.addAll(stacked.getAllRoutes()); in getAllRoutes()
795 return routes; in getAllRoutes()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DNetdWrapper.java220 public void addInterfaceToLocalNetwork(String iface, List<RouteInfo> routes) { in addInterfaceToLocalNetwork() argument
223 for (RouteInfo route : routes) { in addInterfaceToLocalNetwork()
447 List<RouteInfo> routes = new ArrayList<>(); in tetherInterface() local
454 routes.add(route); in tetherInterface()
455 addInterfaceToLocalNetwork(iface, routes); in tetherInterface()
/packages/modules/Connectivity/staticlibs/client-libs/netd/com/android/net/module/util/
DNetdUtils.java208 final List<RouteInfo> routes) { in addRoutesToLocalNetwork() argument
210 for (RouteInfo route : routes) { in addRoutesToLocalNetwork()
222 public static int removeRoutesFromLocalNetwork(final INetd netd, final List<RouteInfo> routes) { in removeRoutesFromLocalNetwork() argument
225 for (RouteInfo route : routes) { in removeRoutesFromLocalNetwork()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/
DInitialConfiguration.java123 public boolean isProvisionedBy(List<LinkAddress> addresses, List<RouteInfo> routes) { in isProvisionedBy() argument
134 if (routes != null) { in isProvisionedBy()
136 if (!any(routes, (routeSeen) -> isDirectlyConnectedRoute(routeSeen, prefix))) { in isProvisionedBy()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DNetlinkUtils.java444 List<RtNetlinkRouteMessage> routes = new ArrayList<>(); in getIpv6MulticastRoutes() local
450 routes.add(msg); in getIpv6MulticastRoutes()
459 return routes; in getIpv6MulticastRoutes()
462 return routes; in getIpv6MulticastRoutes()
/packages/modules/NetworkStack/src/android/net/ip/
DIpReachabilityMonitor.java373 static boolean isOnLink(List<RouteInfo> routes, InetAddress ip) {
374 for (RouteInfo route : routes) {
424 final List<RouteInfo> routes = mLinkProperties.getRoutes();
425 for (RouteInfo route : routes) {
428 if (isOnLink(routes, gw)) {
435 if (isOnLink(routes, dns)) {
DIpClient.java1898 final List<RouteInfo> routes = in assembleLinkProperties() local
1900 for (RouteInfo route : routes) { in assembleLinkProperties()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DNetworkListAdapter.java69 vh.routes = convertView.findViewById(R.id.network_routes); in getView()
95 vh.routes.setText(mNetworkList[position].mRoutes); in getView()
200 public TextView routes; field in NetworkListAdapter.ViewHolder
/packages/services/Telecomm/flags/
Dtelecom_callaudioroutestatemachine_flags.aconfig8 description: "Fix supported routes wrongly include bluetooth issue."
48 description: "Refactor call audio set/clear communication device and include unsupported routes."
/packages/modules/HealthFitness/flags/
Dflags.aconfig8 …description: "Enables reading third-party exercise routes by apps who hold the corresponding permi…
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java379 private void establishVpn(String[] addresses, String[] routes, String[] excludedRoutes, in establishVpn() argument
387 .putExtra(mPackageName + ".routes", TextUtils.join(",", routes)) in establishVpn()
401 String[] addresses, String[] routes, String allowedApplications, in startVpn() argument
405 startVpn(addresses, routes, new String[0] /* excludedRoutes */, allowedApplications, in startVpn()
410 String[] addresses, String[] routes, String[] excludedRoutes, in startVpn() argument
415 startVpn(addresses, routes, excludedRoutes, allowedApplications, disallowedApplications, in startVpn()
420 String[] addresses, String[] routes, String[] excludedRoutes, in startVpn() argument
446 establishVpn(addresses, routes, excludedRoutes, allowedApplications, disallowedApplications, in startVpn()
/packages/modules/HealthFitness/apk/tests/
DAndroid.bp186 package_name: "com.android.healthconnect.controller.tests.exercise.routes",
187 instrumentation_target_package: "com.android.healthconnect.controller.tests.exercise.routes",
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioRouteTransitionTests.java115 public RoutingTestParameters setCallSupportedRoutes(int routes) { in setCallSupportedRoutes() argument
116 callSupportedRoutes = routes; in setCallSupportedRoutes()
/packages/apps/Car/DebuggingRestrictionController/libs/
Dokhttp-3.12.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/proguard/ okhttp3/ ...
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java12849 private void assertRoutesAdded(int netId, RouteInfo... routes) throws Exception {
12853 verify(mMockNetd, times(routes.length)).networkAddRouteParcel(eq(netId), captor.capture());
12854 for (int i = 0; i < routes.length; i++) {
12855 assertRouteInfoParcelMatches(routes[i], captor.getAllValues().get(i));
12859 private void assertRoutesRemoved(int netId, RouteInfo... routes) throws Exception {
12861 verify(mMockNetd, times(routes.length)).networkRemoveRouteParcel(eq(netId),
12863 for (int i = 0; i < routes.length; i++) {
12864 assertRouteInfoParcelMatches(routes[i], captor.getAllValues().get(i));
/packages/inputmethods/LatinIME/dictionaries/
Dfr_wordlist.combined.gz
Den_GB_wordlist.combined.gz
Den_US_wordlist.combined.gz
Den_wordlist.combined.gz

12