Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DRouteInfo.java133 public RouteInfo(@Nullable IpPrefix destination, @Nullable InetAddress gateway, in RouteInfo() argument
155 if (gateway != null) { in RouteInfo()
156 if (gateway instanceof Inet4Address) { in RouteInfo()
163 throw new IllegalArgumentException("Invalid arguments passed in: " + gateway + "," + in RouteInfo()
170 if (gateway == null) { in RouteInfo()
172 gateway = Inet4Address.ANY; in RouteInfo()
174 gateway = Inet6Address.ANY; in RouteInfo()
177 mHasGateway = (!gateway.isAnyLocalAddress()); in RouteInfo()
180 (gateway instanceof Inet4Address == false)) || in RouteInfo()
182 (gateway instanceof Inet6Address == false))) { in RouteInfo()
[all …]
DStaticIpConfiguration.java62 public InetAddress gateway; field in StaticIpConfiguration
81 gateway = source.gateway; in StaticIpConfiguration()
89 gateway = null; in clear()
105 return gateway; in getGateway()
145 public @NonNull Builder setGateway(@Nullable InetAddress gateway) { in setGateway() argument
146 mGateway = gateway; in setGateway()
177 config.gateway = mGateway; in build()
206 if (gateway != null && !connectedRoute.matches(gateway)) { in getRoutes()
207 routes.add(RouteInfo.makeHostRoute(gateway, iface)); in getRoutes()
210 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.java45 public InetAddress gateway; field in DhcpResults
79 .setGateway(gateway) in toStaticIpConfiguration()
88 gateway = source.getGateway(); in DhcpResults()
128 gateway = null; in clear()
222 gateway = InetAddresses.parseNumericAddress(addrString); in setGateway()
251 return gateway; in getGateway()
254 public void setGateway(InetAddress gateway) { in setGateway() argument
255 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()
71 s.gateway = GATEWAY; in makeTestObject()
109 s.gateway = GATEWAY; in testHashCodeAndEquals()
138 s.gateway = DNS2; in testHashCodeAndEquals()
160 s.gateway = GATEWAY; in testToLinkProperties()
165 s.gateway = OFFLINKGATEWAY; in testToLinkProperties()
188 s.gateway = null; in testToLinkProperties()
196 s.gateway = OFFLINKGATEWAY; in testToLinkProperties()
239 assertEquals(s.gateway, s.getGateway()); in testBuilder()
DRouteInfoTest.java77 public PatchedRouteInfo(IpPrefix destination, InetAddress gateway, String iface) { in testMatches() argument
78 mRouteInfo = new RouteInfo(destination, gateway, iface); in testMatches()
/frameworks/base/tests/net/java/android/net/shared/
DIpConfigurationParcelableUtilTest.java51 mDhcpResults.gateway = parseNumericAddress("192.168.42.42"); in setUp()
77 mDhcpResults.gateway = null; in testParcelUnparcelDhcpResults_NullGateway()
/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/base/services/net/aidl/networkstack/2/android/net/
DInitialConfigurationParcelable.aidl6 String gateway;
/frameworks/base/services/net/aidl/networkstack/3/android/net/
DInitialConfigurationParcelable.aidl23 String gateway;
/frameworks/base/services/net/aidl/networkstack/1/android/net/
DInitialConfigurationParcelable.aidl6 String gateway;
/frameworks/base/services/net/java/android/net/
DInitialConfigurationParcelable.aidl26 String gateway;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java506 InetAddress gateway = NetworkUtils.numericToInetAddress(gatewayAddressString); in parseIpConfigurationFromXml() local
507 RouteInfo route = new RouteInfo(dest, gateway); in parseIpConfigurationFromXml()
509 staticIpConfiguration.gateway = gateway; in parseIpConfigurationFromXml()
DWifiServiceImpl.java2465 if (dhcpResults.gateway != null) { in getDhcpInfo()
2466 info.gateway = NetworkUtils.inetAddressToInt((Inet4Address) dhcpResults.gateway); in getDhcpInfo()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java716 if (staticIpConfiguration.gateway != null) { in writeStaticIpConfigurationToXml()
719 staticIpConfiguration.gateway.getHostAddress()); in writeStaticIpConfigurationToXml()
812 InetAddress gateway = in parseStaticIpConfigurationFromXml() local
814 RouteInfo route = new RouteInfo(dest, gateway); in parseStaticIpConfigurationFromXml()
816 staticIpConfiguration.gateway = gateway; in parseStaticIpConfigurationFromXml()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DOffloadController.java472 final String gateway = ri.getGateway().getHostAddress(); in pushUpstreamParameters() local
474 v4gateway = gateway; in pushUpstreamParameters()
476 v6gateways.add(gateway); in pushUpstreamParameters()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkDiagnostics.java194 InetAddress gateway = route.getGateway(); in NetworkDiagnostics() local
195 prepareIcmpMeasurement(gateway); in NetworkDiagnostics()
197 prepareExplicitSourceIcmpMeasurements(gateway); in NetworkDiagnostics()
DVpn.java1742 final String gateway = ipv4DefaultRoute.getGateway().getHostAddress(); in startLegacyVpnPrivileged() local
1785 profile.ipsecSecret, profile.username, profile.password, "", gateway, in startLegacyVpnPrivileged()
1791 caCert, serverCert, profile.username, profile.password, "", gateway, in startLegacyVpnPrivileged()
1797 caCert, serverCert, profile.username, profile.password, "", gateway, in startLegacyVpnPrivileged()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java246 staticIpConfig.gateway = getInetAddress(jsonConfig.getString("gateway")); in getWifiConfiguration()
/frameworks/base/core/proto/android/net/
Dnetworkcapabilities.proto57 // carrier's DUN or tethering gateway.
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java439 ipConfig.gateway = InetAddress.parseNumericAddress(value); in parseStaticIpConfiguration()
/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/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java205 staticIpConfiguration.gateway = gatewayAddr; in generateIpConfig()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRIL.java6001 for (String gateway : gateways) { in convertDataCallResult()
6002 gateway = gateway.trim(); in convertDataCallResult()
6005 ia = NetworkUtils.numericToInetAddress(gateway); in convertDataCallResult()
6008 Rlog.e(RILJ_LOG_TAG, "Unknown gateway: " + gateway, e); in convertDataCallResult()

12