Home
last modified time | relevance | path

Searched refs:defaultRoute (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Connectivity/tests/common/java/android/net/
DStaticIpConfigurationTest.java157 RouteInfo defaultRoute = new RouteInfo(new IpPrefix("0.0.0.0/0"), GATEWAY, IFACE); in testToLinkProperties() local
158 expected.addRoute(defaultRoute); in testToLinkProperties()
162 expected.removeRoute(defaultRoute); in testToLinkProperties()
163 defaultRoute = new RouteInfo(new IpPrefix("0.0.0.0/0"), OFFLINKGATEWAY, IFACE); in testToLinkProperties()
164 expected.addRoute(defaultRoute); in testToLinkProperties()
185 expected.removeRoute(defaultRoute); in testToLinkProperties()
196 expected.addRoute(defaultRoute); in testToLinkProperties()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java288 final RouteInfo defaultRoute = new RouteInfo(new IpPrefix(Inet4Address.ANY, 0), in addIPv4Provisioning() local
291 mObserver.onRouteUpdated(defaultRoute); in addIPv4Provisioning()
294 lp.addRoute(defaultRoute); in addIPv4Provisioning()
303 final RouteInfo defaultRoute = defaultIPV6Route(TEST_IPV6_GATEWAY); in doIPv6ProvisioningLoss() local
304 mObserver.onRouteRemoved(defaultRoute); in doIPv6ProvisioningLoss()
306 lp.removeRoute(defaultRoute); in doIPv6ProvisioningLoss()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DVpnTest.java1002 final RouteInfo defaultRoute = new RouteInfo(new IpPrefix(Inet4Address.ANY, 0), in startLegacyVpn() local
1004 lp.addRoute(defaultRoute); in startLegacyVpn()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java10547 RouteInfo defaultRoute = new RouteInfo((IpPrefix) null, gateway, iface); in testRouteAddDeleteUpdate() local
10556 lp.addRoute(defaultRoute); in testRouteAddDeleteUpdate()
10560 assertRoutesAdded(netId, direct, rio1, defaultRoute); in testRouteAddDeleteUpdate()
10564 assertTrue(lp.getRoutes().contains(defaultRoute)); in testRouteAddDeleteUpdate()
10569 assertFalse(lp.getRoutes().contains(defaultRoute)); in testRouteAddDeleteUpdate()