Home
last modified time | relevance | path

Searched refs:addRoute (Results 1 – 25 of 44) sorted by relevance

12

/packages/modules/Connectivity/tests/common/java/android/net/
DLinkPropertiesTest.java156 lp.addRoute(new RouteInfo(GATEWAY1)); in makeTestObject()
157 lp.addRoute(new RouteInfo(GATEWAY2)); in makeTestObject()
246 source.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder()
247 source.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder()
259 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder()
260 target.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder()
273 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder()
274 target.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder()
286 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder()
287 target.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder()
[all …]
DNetworkStateSnapshotTest.kt49 addRoute(RouteInfo(IpPrefix(parseNumericAddress("0.0.0.0"), 0), TEST_IPV4_GATEWAY)) in <lambda>()
50 addRoute(RouteInfo(IpPrefix(parseNumericAddress("::"), 0), TEST_IPV6_GATEWAY)) in <lambda>()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpReachabilityMonitorTest.kt135 addRoute(RouteInfo(TEST_IPV4_LINKADDR, null /* gateway */, TEST_IFACE.name)) in <lambda>()
136 addRoute(RouteInfo(TEST_IPV6_LINKADDR, null /* gateway */, TEST_IFACE.name)) in <lambda>()
139 addRoute(RouteInfo(IpPrefix(parseNumericAddress("0.0.0.0"), 0), TEST_IPV4_GATEWAY)) in <lambda>()
140 addRoute(RouteInfo(IpPrefix(parseNumericAddress("::"), 0), TEST_IPV6_GATEWAY)) in <lambda>()
152 addRoute(RouteInfo(TEST_IPV4_LINKADDR, null /* gateway */, TEST_IFACE.name)) in <lambda>()
155 addRoute(RouteInfo(IpPrefix(parseNumericAddress("0.0.0.0"), 0), TEST_IPV4_GATEWAY_DNS)) in <lambda>()
167 addRoute(RouteInfo(TEST_IPV6_LINKADDR, null /* gateway */, TEST_IFACE.name)) in <lambda>()
168 addRoute(RouteInfo(TEST_IPV6_LINKLOCAL_LINKADDR, null /* gateway */, TEST_IFACE.name)) in <lambda>()
171 addRoute(RouteInfo(IpPrefix(parseNumericAddress("::"), 0), TEST_IPV6_LINKLOCAL_SCOPED_GATEWAY)) in <lambda>()
184 addRoute(RouteInfo(TEST_IPV4_LINKADDR, null /* gateway */, TEST_IFACE.name)) in <lambda>()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadControllerTest.java303 lp.addRoute(new RouteInfo(new IpPrefix("192.0.2.0/24"), null, null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
319 lp.addRoute(new RouteInfo(null, InetAddress.getByName(ipv4Gateway), null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
330 lp.addRoute(new RouteInfo(null, InetAddress.getByName(ipv6Gw1), null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
344 lp.addRoute(new RouteInfo(null, InetAddress.getByName(ipv6Gw2), null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
361 stacked.addRoute(new RouteInfo(null, InetAddress.getByName("192.0.2.254"), null, in testSetUpstreamLinkPropertiesWorking()
363 stacked.addRoute(new RouteInfo(null, InetAddress.getByName("fe80::bad:f00"), null, in testSetUpstreamLinkPropertiesWorking()
384 lp.addRoute(new RouteInfo(new IpPrefix("2001:db8::/64"), null, null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
709 usbLinkProperties.addRoute( in testAddRemoveDownstreams()
716 usbLinkProperties.addRoute( in testAddRemoveDownstreams()
725 usbLinkProperties.addRoute( in testAddRemoveDownstreams()
[all …]
DIPv6TetheringCoordinatorTest.java91 linkProp.addRoute(new RouteInfo(new IpPrefix("::/0"), null, TEST_INTERFACE, RTN_UNICAST)); in createDualStackUpstream()
92 linkProp.addRoute(new RouteInfo(new IpPrefix("0.0.0.0/0"), null, TEST_INTERFACE, in createDualStackUpstream()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DStaticIpConfigurationTest.java169 expected.addRoute(connectedRoute); in testToLinkProperties()
174 expected.addRoute(defaultRoute); in testToLinkProperties()
180 expected.addRoute(defaultRoute); in testToLinkProperties()
183 expected.addRoute(gatewayRoute); in testToLinkProperties()
212 expected.addRoute(defaultRoute); in testToLinkProperties()
DNetworkAgentTest.kt333 addRoute(RouteInfo(IpPrefix("0.0.0.0/0"), null, null)) in createNetworkAgent()
1665 wifiLp.addRoute(newRoute) in testUnregisterAfterReplacement()
1711 addRoute(RouteInfo(IpPrefix("2001:db8::/64"), null /* nextHop */, ifName)) in doTestNativeNetworkCreation()
1712 addRoute(RouteInfo(IpPrefix("::/0"), in doTestNativeNetworkCreation()
1734 lp.addRoute(RouteInfo(IpPrefix("192.0.2.0/25"), null /* nextHop */, ifName)) in doTestNativeNetworkCreation()
/packages/modules/NetworkStack/apishim/33/com/android/networkstack/apishim/api33/
DVpnServiceBuilderShimImpl.java55 public VpnService.Builder addRoute(VpnService.Builder builder, IpPrefix prefix) in addRoute() method in VpnServiceBuilderShimImpl
57 return builder.addRoute(prefix); in addRoute()
/packages/modules/Connectivity/framework/src/android/net/
DRoutingCoordinatorManager.java52 public void addRoute(final int netId, final RouteInfo route) { in addRoute() method in RoutingCoordinatorManager
54 mService.addRoute(netId, route); in addRoute()
DIRoutingCoordinator.aidl31 void addRoute(int netId, in RouteInfo route); in addRoute() method
DLinkProperties.java704 public boolean addRoute(@NonNull RouteInfo route) { in addRoute() method in LinkProperties
778 addRoute(new RouteInfo(addr, null, mIfaceName)); in ensureDirectlyConnectedRoutes()
1835 netProp.addRoute(in.readParcelable(null));
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DLinkPropertiesUtilsTest.java80 lp.addRoute(RT_INFO1); in createTestObject()
81 lp.addRoute(RT_INFO2); in createTestObject()
157 target.addRoute(testRoute); in testLinkPropertiesIdenticalEqual()
168 target.addRoute(RT_INFO1); in testLinkPropertiesIdenticalEqual()
/packages/modules/NetworkStack/apishim/common/com/android/networkstack/apishim/common/
DVpnServiceBuilderShim.java33 VpnService.Builder addRoute(VpnService.Builder builder, IpPrefix prefix) in addRoute() method
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/imagedistributor/
DImageDistributor.java41 void addRoute(BufferQueue<Long> inputTimestampQueue, in addRoute() method
DImageDistributorImpl.java209 public void addRoute(BufferQueue<Long> inputTimestampBufferQueue, in addRoute() method in ImageDistributorImpl
/packages/modules/NetworkStack/apishim/29/com/android/networkstack/apishim/api29/
DVpnServiceBuilderShimImpl.java44 public VpnService.Builder addRoute(VpnService.Builder builder, IpPrefix prefix) in addRoute() method in VpnServiceBuilderShimImpl
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinator.java248 v6only.addRoute(routeInfo); in getIPv6OnlyLinkProperties()
279 lp.addRoute(new RouteInfo(local48, null, null, RouteInfo.RTN_UNICAST)); in getUniqueLocalConfig()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DMyVpnService.java116 vpnServiceBuilderShim.addRoute(builder, prefix); in start()
123 builder::addRoute); in start()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/
DImageStreamImpl.java57 mImageDistributor.addRoute(timestamps, mImageStreamController); in bind()
/packages/modules/Connectivity/service/src/com/android/server/
DTestNetworkService.java306 lp.addRoute(new RouteInfo(new IpPrefix( in registerTestNetworkAgent()
310 lp.addRoute(new RouteInfo(new IpPrefix( in registerTestNetworkAgent()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DTunInterfaceController.java187 mLinkProperties.addRoute(getRouteForAddress(address)); in addAddress()
262 mLinkProperties.addRoute(routeAdded); in updatePrefixes()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DIpConnectivityMetricsTest.java625 nai.linkProperties.addRoute(new RouteInfo(new IpPrefix("0.0.0.0/0"))); in makeNai()
629 nai.linkProperties.addRoute(new RouteInfo(new IpPrefix("::/0"))); in makeNai()
DDnsManagerTest.java174 lp.addRoute(new RouteInfo((IpPrefix) null, InetAddress.getByName("192.0.2.4"), in testTrackedValidationUpdates()
177 lp.addRoute(new RouteInfo((IpPrefix) null, InetAddress.getByName("2001:db8:1::1"), in testTrackedValidationUpdates()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DRoutingCoordinatorService.java61 public void addRoute(final int netId, final RouteInfo route) in addRoute() method in RoutingCoordinatorService
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSCaptivePortalAppTest.kt76 addRoute(RouteInfo(IpPrefix("0.0.0.0/0"), null, null)) in <lambda>()

12