Home
last modified time | relevance | path

Searched refs:gateway (Results 1 – 25 of 33) 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.java47 public InetAddress gateway; field in DhcpResults
84 .setGateway(gateway) in toStaticIpConfiguration()
93 gateway = source.getGateway(); in DhcpResults()
134 gateway = null; in clear()
235 gateway = InetAddresses.parseNumericAddress(addrString); in setGateway()
264 return gateway; in getGateway()
267 public void setGateway(InetAddress gateway) { in setGateway() argument
268 this.gateway = gateway; in setGateway()
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java96 if (staticIpConfiguration.gateway != null) { in writeConfig()
100 out.writeUTF(staticIpConfiguration.gateway.getHostAddress()); in writeConfig()
296 InetAddress gateway = null; in readIpConfigurations() local
299 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); in readIpConfigurations()
300 if (staticIpConfiguration.gateway == null) { in readIpConfigurations()
301 staticIpConfiguration.gateway = gateway; in readIpConfigurations()
303 loge("Duplicate gateway: " + gateway.getHostAddress()); in readIpConfigurations()
312 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); in readIpConfigurations()
314 RouteInfo route = new RouteInfo(dest, gateway); in readIpConfigurations()
316 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.java52 dhcpInfo.gateway = ipToInteger(STR_ADDR2); in createDhcpInfoObject()
91 && 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/wifi/service/java/com/android/server/wifi/util/
DIpConfigStore.java132 InetAddress gateway = null; in readIpConfigurations() local
135 gateway = InetAddresses.parseNumericAddress(in.readUTF()); in readIpConfigurations()
136 staticIPBuilder.setGateway(gateway); in readIpConfigurations()
144 gateway = InetAddresses.parseNumericAddress(in.readUTF()); in readIpConfigurations()
149 gateway, null, RouteInfo.RTN_UNICAST); in readIpConfigurations()
153 staticIPBuilder.setGateway(gateway); in readIpConfigurations()
DXmlUtil.java907 InetAddress gateway = in parseStaticIpConfigurationFromXml() local
909 RouteInfo route = new RouteInfo(null, gateway, null, RouteInfo.RTN_UNICAST); in parseStaticIpConfigurationFromXml()
912 builder.setGateway(gateway); in parseStaticIpConfigurationFromXml()
DNetdWrapper.java132 String route, String gateway, String ifName) throws RemoteException { in onRouteChanged() argument
/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/tests/wifitests/src/com/android/server/wifi/
DIpConfigStoreTestWriter.java65 if (staticIpConfiguration.gateway != null) { in writeConfig()
69 out.writeUTF(staticIpConfiguration.gateway.getHostAddress()); in writeConfig()
DWifiConfigurationTestUtil.java227 staticIpConfiguration.gateway = gatewayAddr; in generateIpConfig()
/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/
DWifiBackupDataV1Parser.java530 InetAddress gateway = InetAddresses.parseNumericAddress(gatewayAddressString); in parseIpConfigurationFromXml() local
531 RouteInfo route = new RouteInfo(null, gateway, null, RouteInfo.RTN_UNICAST); in parseIpConfigurationFromXml()
534 builder.setGateway(gateway); in parseIpConfigurationFromXml()
/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/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DWifiEntry.java360 public String gateway; field in WifiEntry.ConnectedInfo
677 mConnectedInfo.gateway = routeInfo.getGateway().getHostAddress(); in updateLinkProperties()
/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.java1559 for (InetAddress gateway : response.getGatewayAddresses()) { in setLinkProperties()
1560 int mtu = gateway instanceof java.net.Inet6Address ? response.getMtuV6() in setLinkProperties()
1564 linkProperties.addRoute(new RouteInfo(null, gateway, null, in setLinkProperties()

12