Home
last modified time | relevance | path

Searched refs:gateway (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/java/android/net/
DRouteInfo.java139 public RouteInfo(@Nullable IpPrefix destination, @Nullable InetAddress gateway, in RouteInfo() argument
141 this(destination, gateway, iface, type, 0); in RouteInfo()
164 public RouteInfo(@Nullable IpPrefix destination, @Nullable InetAddress gateway, in RouteInfo() argument
186 if (gateway != null) { in RouteInfo()
187 if (gateway instanceof Inet4Address) { in RouteInfo()
194 throw new IllegalArgumentException("Invalid arguments passed in: " + gateway + "," + in RouteInfo()
201 if (gateway == null) { in RouteInfo()
203 gateway = Inet4Address.ANY; in RouteInfo()
205 gateway = Inet6Address.ANY; in RouteInfo()
208 mHasGateway = (!gateway.isAnyLocalAddress()); in RouteInfo()
[all …]
DStaticIpConfiguration.java64 public InetAddress gateway; field in StaticIpConfiguration
83 gateway = source.gateway; in StaticIpConfiguration()
91 gateway = null; in clear()
107 return gateway; in getGateway()
147 public @NonNull Builder setGateway(@Nullable InetAddress gateway) { in setGateway() argument
148 mGateway = gateway; in setGateway()
180 config.gateway = mGateway; in build()
211 if (gateway != null && !connectedRoute.matches(gateway)) { in getRoutes()
212 routes.add(RouteInfo.makeHostRoute(gateway, iface)); in getRoutes()
215 if (gateway != null) { in getRoutes()
[all …]
DDhcpInfo.java27 public int gateway; field in DhcpInfo
43 gateway = source.gateway; in DhcpInfo()
56 str.append(" gateway "); putAddress(str, gateway); in toString()
78 dest.writeInt(gateway); in writeToParcel()
92 info.gateway = in.readInt();
DDhcpResults.java46 public InetAddress gateway; field in DhcpResults
83 .setGateway(gateway) in toStaticIpConfiguration()
92 gateway = source.getGateway(); in DhcpResults()
133 gateway = null; in clear()
234 gateway = InetAddresses.parseNumericAddress(addrString); in setGateway()
263 return gateway; in getGateway()
266 public void setGateway(InetAddress gateway) { in setGateway() argument
267 this.gateway = gateway; in setGateway()
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java97 if (staticIpConfiguration.gateway != null) { in writeConfig()
101 out.writeUTF(staticIpConfiguration.gateway.getHostAddress()); in writeConfig()
297 InetAddress gateway = null; in readIpConfigurations() local
300 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); in readIpConfigurations()
301 if (staticIpConfiguration.gateway == null) { in readIpConfigurations()
302 staticIpConfiguration.gateway = gateway; in readIpConfigurations()
304 loge("Duplicate gateway: " + gateway.getHostAddress()); in readIpConfigurations()
313 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); in readIpConfigurations()
315 RouteInfo route = new RouteInfo(dest, gateway); in readIpConfigurations()
317 staticIpConfiguration.gateway == null) { in readIpConfigurations()
[all …]
/frameworks/base/tests/net/common/java/android/net/
DStaticIpConfigurationTest.java59 assertNull(s.gateway); in checkEmpty()
67 s.gateway = GATEWAY; in makeTestObject()
105 s.gateway = GATEWAY; in testHashCodeAndEquals()
134 s.gateway = DNS2; in testHashCodeAndEquals()
156 s.gateway = GATEWAY; in testToLinkProperties()
161 s.gateway = OFFLINKGATEWAY; in testToLinkProperties()
184 s.gateway = null; in testToLinkProperties()
192 s.gateway = OFFLINKGATEWAY; in testToLinkProperties()
235 assertEquals(s.gateway, s.getGateway()); in testBuilder()
DDhcpInfoTest.java53 dhcpInfo.gateway = ipToInteger(STR_ADDR2); in createDhcpInfoObject()
92 && left.gateway == right.gateway in dhcpInfoEquals()
DRouteInfoTest.java127 public PatchedRouteInfo(IpPrefix destination, InetAddress gateway, String iface) { in testMatches() argument
128 mRouteInfo = new RouteInfo(destination, gateway, iface); in testMatches()
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/
DEthernetTrackerTest.java121 StaticIpConfigBuilder setGateway(String gateway) { in setGateway() argument
122 config.gateway = InetAddress.parseNumericAddress(gateway); in setGateway()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java507 InetAddress gateway = NetworkUtils.numericToInetAddress(gatewayAddressString); in parseIpConfigurationFromXml() local
508 RouteInfo route = new RouteInfo(dest, gateway); in parseIpConfigurationFromXml()
510 staticIpConfiguration.gateway = gateway; in parseIpConfigurationFromXml()
DWifiServiceImpl.java2507 if (dhcpResults.gateway != null) { in getDhcpInfo()
2508 info.gateway = NetworkUtils.inetAddressToInt((Inet4Address) dhcpResults.gateway); in getDhcpInfo()
/frameworks/base/packages/Tethering/src/android/net/util/
DBaseNetdUnsolicitedEventListener.java60 public void onRouteChanged(boolean updated, @NonNull String route, @NonNull String gateway, in onRouteChanged() argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java784 if (staticIpConfiguration.gateway != null) { in writeStaticIpConfigurationToXml()
787 staticIpConfiguration.gateway.getHostAddress()); in writeStaticIpConfigurationToXml()
880 InetAddress gateway = in parseStaticIpConfigurationFromXml() local
882 RouteInfo route = new RouteInfo(dest, gateway); in parseStaticIpConfigurationFromXml()
884 staticIpConfiguration.gateway = gateway; in parseStaticIpConfigurationFromXml()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java611 final String gateway = ri.getGateway().getHostAddress(); in pushUpstreamParameters() local
614 v4gateway = gateway; in pushUpstreamParameters()
616 v6gateways.add(gateway); in pushUpstreamParameters()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkDiagnostics.java210 InetAddress gateway = route.getGateway(); in NetworkDiagnostics() local
211 prepareIcmpMeasurement(gateway); in NetworkDiagnostics()
213 prepareExplicitSourceIcmpMeasurements(gateway); in NetworkDiagnostics()
DVpn.java1931 final String gateway = ipv4DefaultRoute.getGateway().getHostAddress();
1997 profile.ipsecSecret, profile.username, profile.password, "", gateway,
2003 caCert, serverCert, profile.username, profile.password, "", gateway,
2009 caCert, serverCert, profile.username, profile.password, "", gateway,
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java252 staticIpConfig.gateway = getInetAddress(jsonConfig.getString("gateway")); in getWifiConfiguration()
/frameworks/base/core/proto/android/net/
Dnetworkcapabilities.proto57 // carrier's DUN or tethering gateway.
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java719 String route, String gateway, String ifName) throws RemoteException { in onRouteChanged() argument
721 ("".equals(gateway)) ? null : InetAddresses.parseNumericAddress(gateway), in onRouteChanged()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java594 ipConfig.gateway = InetAddress.parseNumericAddress(value); in parseStaticIpConfiguration()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java1577 for (InetAddress gateway : response.getGatewayAddresses()) { in setLinkProperties()
1578 int mtu = gateway instanceof java.net.Inet6Address ? response.getMtuV6() in setLinkProperties()
1582 linkProperties.addRoute(new RouteInfo(null, gateway, null, in setLinkProperties()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java206 staticIpConfiguration.gateway = gatewayAddr; in generateIpConfig()
DClientModeImplTest.java1022 dhcpResults.baseConfiguration.gateway = InetAddresses.parseNumericAddress("1.2.3.4"); in connect()
2081 dhcpResults.baseConfiguration.gateway = InetAddresses.parseNumericAddress("1.2.3.4"); in disconnectFromNetworkWhenRemovedWhileObtainingIpAddr()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRIL.java6881 for (String gateway : gateways) { in convertDataCallResult()
6882 gateway = gateway.trim(); in convertDataCallResult()
6885 ia = InetAddresses.parseNumericAddress(gateway); in convertDataCallResult()
6888 Rlog.e(RILJ_LOG_TAG, "Unknown gateway: " + gateway, e); in convertDataCallResult()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java7396 final InetAddress gateway = InetAddress.getByName("fe80::5678"); in testRouteAddDeleteUpdate() local
7397 RouteInfo direct = RouteInfo.makeHostRoute(gateway, iface); in testRouteAddDeleteUpdate()
7398 RouteInfo rio1 = new RouteInfo(new IpPrefix("2001:db8:1::/48"), gateway, iface); in testRouteAddDeleteUpdate()
7399 RouteInfo rio2 = new RouteInfo(new IpPrefix("2001:db8:2::/48"), gateway, iface); in testRouteAddDeleteUpdate()
7400 RouteInfo defaultRoute = new RouteInfo((IpPrefix) null, gateway, iface); in testRouteAddDeleteUpdate()
7401 RouteInfo defaultWithMtu = new RouteInfo(null, gateway, iface, RouteInfo.RTN_UNICAST, in testRouteAddDeleteUpdate()

12