/frameworks/base/core/java/android/net/ |
D | RouteInfo.java | 139 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 …]
|
D | StaticIpConfiguration.java | 64 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 …]
|
D | DhcpInfo.java | 27 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();
|
D | DhcpResults.java | 46 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/ |
D | IpConfigStore.java | 97 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/ |
D | StaticIpConfigurationTest.java | 59 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()
|
D | DhcpInfoTest.java | 53 dhcpInfo.gateway = ipToInteger(STR_ADDR2); in createDhcpInfoObject() 92 && left.gateway == right.gateway in dhcpInfoEquals()
|
D | RouteInfoTest.java | 127 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/ |
D | EthernetTrackerTest.java | 121 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/ |
D | WifiBackupDataV1Parser.java | 507 InetAddress gateway = NetworkUtils.numericToInetAddress(gatewayAddressString); in parseIpConfigurationFromXml() local 508 RouteInfo route = new RouteInfo(dest, gateway); in parseIpConfigurationFromXml() 510 staticIpConfiguration.gateway = gateway; in parseIpConfigurationFromXml()
|
D | WifiServiceImpl.java | 2507 if (dhcpResults.gateway != null) { in getDhcpInfo() 2508 info.gateway = NetworkUtils.inetAddressToInt((Inet4Address) dhcpResults.gateway); in getDhcpInfo()
|
/frameworks/base/packages/Tethering/src/android/net/util/ |
D | BaseNetdUnsolicitedEventListener.java | 60 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/ |
D | XmlUtil.java | 784 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/ |
D | OffloadController.java | 611 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/ |
D | NetworkDiagnostics.java | 210 InetAddress gateway = route.getGateway(); in NetworkDiagnostics() local 211 prepareIcmpMeasurement(gateway); in NetworkDiagnostics() 213 prepareExplicitSourceIcmpMeasurements(gateway); in NetworkDiagnostics()
|
D | Vpn.java | 1931 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/ |
D | WifiConfigurationHelper.java | 252 staticIpConfig.gateway = getInetAddress(jsonConfig.getString("gateway")); in getWifiConfiguration()
|
/frameworks/base/core/proto/android/net/ |
D | networkcapabilities.proto | 57 // carrier's DUN or tethering gateway.
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 719 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/ |
D | EthernetTracker.java | 594 ipConfig.gateway = InetAddress.parseNumericAddress(value); in parseStaticIpConfiguration()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 1577 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/ |
D | WifiConfigurationTestUtil.java | 206 staticIpConfiguration.gateway = gatewayAddr; in generateIpConfig()
|
D | ClientModeImplTest.java | 1022 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/ |
D | RIL.java | 6881 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/ |
D | ConnectivityServiceTest.java | 7396 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()
|