Home
last modified time | relevance | path

Searched refs:addRoute (Results 1 – 25 of 37) 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()
/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/media/java/android/media/
DMediaRoute2ProviderInfo.java203 public Builder addRoute(@NonNull MediaRoute2Info route) { in addRoute() method in MediaRoute2ProviderInfo.Builder
227 addRoute(route); in addRoutes()
DMediaRouter.java1147 group.addRoute(info); in addRouteStatic()
2514 public void addRoute(RouteInfo route) { in addRoute() method in MediaRouter.RouteGroup
2539 public void addRoute(RouteInfo route, int insertAt) { in addRoute() method in MediaRouter.RouteGroup
/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.h119 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()
/frameworks/base/services/core/java/com/android/server/media/
DSystemMediaRoute2Provider.java279 builder.addRoute(mDeviceRoute); in updateProviderState()
282 builder.addRoute(route); in updateProviderState()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java4038 lp.addRoute(new RouteInfo(InetAddress.getByName("fe80::1234"))); in testPacketKeepalives()
4039 lp.addRoute(new RouteInfo(InetAddress.getByName("192.0.2.254"))); in testPacketKeepalives()
4177 lp.addRoute(new RouteInfo(InetAddress.getByName("fe80::1234"))); in doTestNattSocketKeepalivesWithExecutor()
4178 lp.addRoute(new RouteInfo(InetAddress.getByName("192.0.2.254"))); in doTestNattSocketKeepalivesWithExecutor()
4345 lp.addRoute(new RouteInfo(InetAddress.getByName("fe80::1234"))); in doTestTcpSocketKeepalivesWithExecutor()
4346 lp.addRoute(new RouteInfo(InetAddress.getByName("127.0.0.254"))); in doTestTcpSocketKeepalivesWithExecutor()
4414 lp.addRoute(new RouteInfo(InetAddress.getByName("192.0.2.254"))); in doTestNattSocketKeepalivesFdWithExecutor()
4732 lp.addRoute(myIpv4DefaultRoute); in testLinkPropertiesEnsuresDirectlyConnectedRoutes()
4856 cellLp.addRoute(new RouteInfo((IpPrefix) null, InetAddress.getByName("192.0.2.4"), in testBasicDnsConfigurationPushed()
4859 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()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java114 lp4.addRoute(new RouteInfo(gateway1)); in createProvisionedLinkProperties()
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DStubMediaRoute2ProviderService.java148 public void addRoute(@NonNull MediaRoute2Info route) { in addRoute() method in StubMediaRoute2ProviderService
DMediaRouter2ManagerTest.java180 sInstance.addRoute(routeToRemove); in testOnRoutesRemovedAndAdded()
225 sInstance.addRoute(routeToRemove); in testGetRoutes_removedRoute_returnsCorrectRoutes()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DSerializer.cpp590 sink->addRoute(route); in deserialize()
593 source->addRoute(route); in deserialize()
/frameworks/base/packages/Tethering/src/android/net/ip/
DIpServer.java637 mLinkProperties.addRoute(getDirectConnectedRoute(mIpv4Address)); in configureIPv4()
771 for (RouteInfo route : toBeAdded) mLinkProperties.addRoute(route); in addRoutesToLocalNetwork()

12