/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 | 47 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/ |
D | IpConfigStore.java | 96 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/ |
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 | 52 dhcpInfo.gateway = ipToInteger(STR_ADDR2); in createDhcpInfoObject() 91 && 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/wifi/service/java/com/android/server/wifi/util/ |
D | IpConfigStore.java | 132 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()
|
D | XmlUtil.java | 907 InetAddress gateway = in parseStaticIpConfigurationFromXml() local 909 RouteInfo route = new RouteInfo(null, gateway, null, RouteInfo.RTN_UNICAST); in parseStaticIpConfigurationFromXml() 912 builder.setGateway(gateway); in parseStaticIpConfigurationFromXml()
|
D | NetdWrapper.java | 132 String route, String gateway, String ifName) throws RemoteException { in onRouteChanged() argument
|
/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/tests/wifitests/src/com/android/server/wifi/ |
D | IpConfigStoreTestWriter.java | 65 if (staticIpConfiguration.gateway != null) { in writeConfig() 69 out.writeUTF(staticIpConfiguration.gateway.getHostAddress()); in writeConfig()
|
D | WifiConfigurationTestUtil.java | 227 staticIpConfiguration.gateway = gatewayAddr; in generateIpConfig()
|
/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/ |
D | WifiBackupDataV1Parser.java | 530 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/ |
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/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | WifiEntry.java | 360 public String gateway; field in WifiEntry.ConnectedInfo 677 mConnectedInfo.gateway = routeInfo.getGateway().getHostAddress(); in updateLinkProperties()
|
/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 | 1559 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()
|