Home
last modified time | relevance | path

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

12

/frameworks/base/tests/net/common/java/android/net/
DLinkPropertiesTest.java152 lp.addRoute(new RouteInfo(GATEWAY1)); in makeTestObject()
153 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 …]
DStaticIpConfigurationTest.java153 expected.addRoute(connectedRoute); in testToLinkProperties()
158 expected.addRoute(defaultRoute); in testToLinkProperties()
164 expected.addRoute(defaultRoute); in testToLinkProperties()
167 expected.addRoute(gatewayRoute); in testToLinkProperties()
196 expected.addRoute(defaultRoute); in testToLinkProperties()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadControllerTest.java305 lp.addRoute(new RouteInfo(new IpPrefix("192.0.2.0/24"), null, null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
321 lp.addRoute(new RouteInfo(null, InetAddress.getByName(ipv4Gateway), null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
332 lp.addRoute(new RouteInfo(null, InetAddress.getByName(ipv6Gw1), null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
346 lp.addRoute(new RouteInfo(null, InetAddress.getByName(ipv6Gw2), null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
363 stacked.addRoute(new RouteInfo(null, InetAddress.getByName("192.0.2.254"), null, in testSetUpstreamLinkPropertiesWorking()
365 stacked.addRoute(new RouteInfo(null, InetAddress.getByName("fe80::bad:f00"), null, in testSetUpstreamLinkPropertiesWorking()
386 lp.addRoute(new RouteInfo(new IpPrefix("2001:db8::/64"), null, null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
618 usbLinkProperties.addRoute( in testAddRemoveDownstreams()
625 usbLinkProperties.addRoute( in testAddRemoveDownstreams()
634 usbLinkProperties.addRoute( in testAddRemoveDownstreams()
[all …]
DIPv6TetheringCoordinatorTest.java90 linkProp.addRoute(new RouteInfo(new IpPrefix("::/0"), null, TEST_INTERFACE, RTN_UNICAST)); in createDualStackUpstream()
91 linkProp.addRoute(new RouteInfo(new IpPrefix("0.0.0.0/0"), null, TEST_INTERFACE, in createDualStackUpstream()
DTetheringTest.java449 prop.addRoute(new RouteInfo(new IpPrefix(Inet4Address.ANY, 0), in buildMobileUpstreamState()
459 prop.addRoute(new RouteInfo(new IpPrefix(Inet6Address.ANY, 0), in buildMobileUpstreamState()
467 stackedLink.addRoute(new RouteInfo(new IpPrefix(Inet4Address.ANY, 0), in buildMobileUpstreamState()
/frameworks/libs/net/common/tests/unit/src/android/net/util/
DLinkPropertiesUtilsTest.java75 lp.addRoute(RT_INFO1); in createTestObject()
76 lp.addRoute(RT_INFO2); in createTestObject()
144 target.addRoute(testRoute); in testLinkPropertiesIdenticalEqual()
155 target.addRoute(RT_INFO1); in testLinkPropertiesIdenticalEqual()
/frameworks/base/core/java/android/net/
DVpnService.java588 public Builder addRoute(@NonNull InetAddress address, int prefixLength) { in addRoute() method in VpnService.Builder
617 public Builder addRoute(@NonNull String address, int prefixLength) { in addRoute() method in VpnService.Builder
618 return addRoute(InetAddress.parseNumericAddress(address), prefixLength); in addRoute()
DStaticIpConfiguration.java235 lp.addRoute(route); in toLinkProperties()
DLinkProperties.java713 public boolean addRoute(@NonNull RouteInfo route) { in addRoute() method in LinkProperties
769 addRoute(new RouteInfo(addr, null, mIfaceName)); in ensureDirectlyConnectedRoutes()
1887 netProp.addRoute(in.readParcelable(null));
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinator.java247 v6only.addRoute(routeInfo); in getIPv6OnlyLinkProperties()
278 lp.addRoute(new RouteInfo(local48, null, null, RouteInfo.RTN_UNICAST)); in getUniqueLocalConfig()
/frameworks/base/services/core/java/com/android/server/
DTestNetworkService.java287 lp.addRoute(new RouteInfo(new IpPrefix(Inet4Address.ANY, 0), null, iface));
290 lp.addRoute(new RouteInfo(new IpPrefix(Inet6Address.ANY, 0), null, iface));
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DPolicyAudioPort.h110 void addRoute(const sp<AudioRoute> &route) { mRoutes.add(route); } in addRoute() function
/frameworks/base/tests/net/java/com/android/server/connectivity/
DIpConnectivityMetricsTest.java597 nai.linkProperties.addRoute(new RouteInfo(new IpPrefix("0.0.0.0/0"))); in makeNai()
601 nai.linkProperties.addRoute(new RouteInfo(new IpPrefix("::/0"))); in makeNai()
DDnsManagerTest.java183 lp.addRoute(new RouteInfo((IpPrefix) null, InetAddress.getByName("192.0.2.4"), in testTrackedValidationUpdates()
186 lp.addRoute(new RouteInfo((IpPrefix) null, InetAddress.getByName("2001:db8:1::1"), in testTrackedValidationUpdates()
DVpnTest.java1027 lp.addRoute(defaultRoute); in testStartLegacyVpn()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java4046 lp.addRoute(new RouteInfo(InetAddress.getByName("fe80::1234"))); in testPacketKeepalives()
4047 lp.addRoute(new RouteInfo(InetAddress.getByName("192.0.2.254"))); in testPacketKeepalives()
4185 lp.addRoute(new RouteInfo(InetAddress.getByName("fe80::1234"))); in doTestNattSocketKeepalivesWithExecutor()
4186 lp.addRoute(new RouteInfo(InetAddress.getByName("192.0.2.254"))); in doTestNattSocketKeepalivesWithExecutor()
4353 lp.addRoute(new RouteInfo(InetAddress.getByName("fe80::1234"))); in doTestTcpSocketKeepalivesWithExecutor()
4354 lp.addRoute(new RouteInfo(InetAddress.getByName("127.0.0.254"))); in doTestTcpSocketKeepalivesWithExecutor()
4422 lp.addRoute(new RouteInfo(InetAddress.getByName("192.0.2.254"))); in doTestNattSocketKeepalivesFdWithExecutor()
4740 lp.addRoute(myIpv4DefaultRoute); in testLinkPropertiesEnsuresDirectlyConnectedRoutes()
4864 cellLp.addRoute(new RouteInfo((IpPrefix) null, InetAddress.getByName("192.0.2.4"), in testBasicDnsConfigurationPushed()
4867 cellLp.addRoute(new RouteInfo((IpPrefix) null, InetAddress.getByName("2001:db8:1::1"), in testBasicDnsConfigurationPushed()
[all …]
/frameworks/base/core/java/android/os/
DINetworkManagementService.aidl112 void addRoute(int netId, in RouteInfo route); in addRoute() method
/frameworks/base/core/java/com/android/server/net/
DNetlinkTracker.java153 changed = mLinkProperties.addRoute(route); in routeUpdated()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNat464Xlat.java443 stacked.addRoute(ipv4Default); in makeLinkProperties()
DVpn.java1024 lp.addRoute(route);
1043 lp.addRoute(new RouteInfo(new IpPrefix(Inet4Address.ANY, 0), RTN_UNREACHABLE));
1046 lp.addRoute(new RouteInfo(new IpPrefix(Inet6Address.ANY, 0), RTN_UNREACHABLE));
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java112 lp4.addRoute(new RouteInfo(gateway1)); in createProvisionedLinkProperties()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DSerializer.cpp589 sink->addRoute(route); in deserialize()
592 source->addRoute(route); in deserialize()
/frameworks/base/packages/Tethering/src/android/net/ip/
DIpServer.java644 mLinkProperties.addRoute(getDirectConnectedRoute(mIpv4Address)); in configureIPv4()
778 for (RouteInfo route : toBeAdded) mLinkProperties.addRoute(route); in addRoutesToLocalNetwork()
/frameworks/base/media/java/android/media/
DMediaRouter.java1134 group.addRoute(info); in addRouteStatic()
2501 public void addRoute(RouteInfo route) { in addRoute() method in MediaRouter.RouteGroup
2526 public void addRoute(RouteInfo route, int insertAt) { in addRoute() method in MediaRouter.RouteGroup
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java935 linkProp.addRoute(new RouteInfo(new IpPrefix("::/0"), null, iface, RTN_UNICAST)); in buildIpv6OnlyLinkProperties()

12