Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DRouteInfo.java102 public RouteInfo(IpPrefix destination, InetAddress gateway, String iface, int type) { in RouteInfo() argument
123 if (gateway != null) { in RouteInfo()
124 if (gateway instanceof Inet4Address) { in RouteInfo()
131 throw new IllegalArgumentException("Invalid arguments passed in: " + gateway + "," + in RouteInfo()
138 if (gateway == null) { in RouteInfo()
140 gateway = Inet4Address.ANY; in RouteInfo()
142 gateway = Inet6Address.ANY; in RouteInfo()
145 mHasGateway = (!gateway.isAnyLocalAddress()); in RouteInfo()
148 (gateway instanceof Inet4Address == false)) || in RouteInfo()
150 (gateway instanceof Inet6Address == false))) { in RouteInfo()
[all …]
DStaticIpConfiguration.java50 public InetAddress gateway; field in StaticIpConfiguration
63 gateway = source.gateway; in StaticIpConfiguration()
71 gateway = null; in clear()
88 if (gateway != null && !connectedRoute.matches(gateway)) { in getRoutes()
89 routes.add(RouteInfo.makeHostRoute(gateway, iface)); in getRoutes()
92 if (gateway != null) { in getRoutes()
93 routes.add(new RouteInfo((IpPrefix) null, gateway, iface)); in getRoutes()
127 if (gateway != null) str.append(gateway.getHostAddress()).append(" "); in toString()
142 result = 47 * result + (gateway == null ? 0 : gateway.hashCode()); in hashCode()
158 Objects.equals(gateway, other.gateway) && in equals()
[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.java159 gateway = NetworkUtils.numericToInetAddress(addrString); in setGateway()
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java87 if (staticIpConfiguration.gateway != null) { in writeConfig()
91 out.writeUTF(staticIpConfiguration.gateway.getHostAddress()); in writeConfig()
217 InetAddress gateway = null; in readIpAndProxyConfigurations() local
220 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); in readIpAndProxyConfigurations()
221 if (staticIpConfiguration.gateway == null) { in readIpAndProxyConfigurations()
222 staticIpConfiguration.gateway = gateway; in readIpAndProxyConfigurations()
224 loge("Duplicate gateway: " + gateway.getHostAddress()); in readIpAndProxyConfigurations()
233 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); in readIpAndProxyConfigurations()
235 RouteInfo route = new RouteInfo(dest, gateway); in readIpAndProxyConfigurations()
237 staticIpConfiguration.gateway == null) { in readIpAndProxyConfigurations()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DStaticIpConfigurationTest.java51 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()
DRouteInfoTest.java76 public PatchedRouteInfo(IpPrefix destination, InetAddress gateway, String iface) { in testMatches() argument
77 mRouteInfo = new RouteInfo(destination, gateway, iface); in testMatches()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkDiagnostics.java193 InetAddress gateway = route.getGateway(); in NetworkDiagnostics() local
194 prepareIcmpMeasurement(gateway); in NetworkDiagnostics()
196 prepareExplicitSourceIcmpMeasurements(gateway); in NetworkDiagnostics()
DVpn.java1306 final String gateway = ipv4DefaultRoute.getGateway().getHostAddress(); in startLegacyVpnPrivileged() local
1349 profile.ipsecSecret, profile.username, profile.password, "", gateway, in startLegacyVpnPrivileged()
1355 caCert, serverCert, profile.username, profile.password, "", gateway, in startLegacyVpnPrivileged()
1361 caCert, serverCert, profile.username, profile.password, "", gateway, in startLegacyVpnPrivileged()
/frameworks/base/services/tests/servicestests/src/android/net/dhcp/
DDhcpPacketTest.java262 private void assertDhcpResults(String ipAddress, String gateway, String dnsServersString, in assertDhcpResults() argument
266 assertEquals(v4Address(gateway), dhcpResults.gateway); in assertDhcpResults()
/frameworks/base/docs/html/distribute/googleplay/work/
Dabout.jd21 …<p>Get your business related apps listed in a business specific gateway so they stand out from con…
39 …<p>Provides a secure gateway for distributing apps within your company, whether they are available…
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java246 staticIpConfig.gateway = getInetAddress(jsonConfig.getString("gateway")); in getWifiConfiguration()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java245 staticConfig.gateway != null && in setStaticIpAddress()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java1193 if (dhcpResults.gateway != null) { in getDhcpInfo()
1194 info.gateway = NetworkUtils.inetAddressToInt((Inet4Address) dhcpResults.gateway); in getDhcpInfo()
DWifiStateMachine.java3275 InetAddress gateway = route.getGateway(); in updateDefaultRouteMacAddress() local
3276 if (gateway instanceof Inet4Address) { in updateDefaultRouteMacAddress()
3279 + gateway.getHostAddress()); in updateDefaultRouteMacAddress()
3281 address = macAddressFromRoute(gateway.getHostAddress()); in updateDefaultRouteMacAddress()
3286 reachable = gateway.isReachable(timeout); in updateDefaultRouteMacAddress()
3289 + gateway.getHostAddress()); in updateDefaultRouteMacAddress()
3294 address = macAddressFromRoute(gateway.getHostAddress()); in updateDefaultRouteMacAddress()
3297 + gateway.getHostAddress() + " found " + address); in updateDefaultRouteMacAddress()
7278 InetAddress gateway = RouteInfo.selectBestRoute( in processMessage() local
7280 String dstMacStr = macAddressFromRoute(gateway.getHostAddress()); in processMessage()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java947 InetAddress gateway = null; in onEvent() local
948 if (via != null) gateway = InetAddress.parseNumericAddress(via); in onEvent()
949 RouteInfo route = new RouteInfo(new IpPrefix(cooked[3]), gateway, dev); in onEvent()
/frameworks/base/services/net/java/android/net/dhcp/
DDhcpPacket.java1128 results.gateway = mGateways.get(0); in toDhcpResults()
/frameworks/base/docs/html/guide/components/
Dfundamentals.jd158 just a "gateway" to other components and is intended to do a very minimal amount of work. For
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt16989 field public int gateway;
/frameworks/base/api/
Dcurrent.txt23458 field public int gateway;
Dsystem-current.txt25282 field public int gateway;
Dtest-current.txt23527 field public int gateway;