/frameworks/base/core/java/android/net/ |
D | RouteInfo.java | 133 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 …]
|
D | StaticIpConfiguration.java | 62 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 …]
|
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 | 45 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/ |
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() 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()
|
D | RouteInfoTest.java | 77 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/ |
D | IpConfigurationParcelableUtilTest.java | 51 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/ |
D | EthernetTrackerTest.java | 121 StaticIpConfigBuilder setGateway(String gateway) { in setGateway() argument 122 config.gateway = InetAddress.parseNumericAddress(gateway); in setGateway()
|
/frameworks/base/services/net/aidl/networkstack/2/android/net/ |
D | InitialConfigurationParcelable.aidl | 6 String gateway;
|
/frameworks/base/services/net/aidl/networkstack/3/android/net/ |
D | InitialConfigurationParcelable.aidl | 23 String gateway;
|
/frameworks/base/services/net/aidl/networkstack/1/android/net/ |
D | InitialConfigurationParcelable.aidl | 6 String gateway;
|
/frameworks/base/services/net/java/android/net/ |
D | InitialConfigurationParcelable.aidl | 26 String gateway;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiBackupDataV1Parser.java | 506 InetAddress gateway = NetworkUtils.numericToInetAddress(gatewayAddressString); in parseIpConfigurationFromXml() local 507 RouteInfo route = new RouteInfo(dest, gateway); in parseIpConfigurationFromXml() 509 staticIpConfiguration.gateway = gateway; in parseIpConfigurationFromXml()
|
D | WifiServiceImpl.java | 2465 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/ |
D | XmlUtil.java | 716 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/ |
D | OffloadController.java | 472 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/ |
D | NetworkDiagnostics.java | 194 InetAddress gateway = route.getGateway(); in NetworkDiagnostics() local 195 prepareIcmpMeasurement(gateway); in NetworkDiagnostics() 197 prepareExplicitSourceIcmpMeasurements(gateway); in NetworkDiagnostics()
|
D | Vpn.java | 1742 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/ |
D | WifiConfigurationHelper.java | 246 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/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetTracker.java | 439 ipConfig.gateway = InetAddress.parseNumericAddress(value); in parseStaticIpConfiguration()
|
/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/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigurationTestUtil.java | 205 staticIpConfiguration.gateway = gatewayAddr; in generateIpConfig()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RIL.java | 6001 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()
|