Home
last modified time | relevance | path

Searched refs:ipAddress (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/java/android/net/
DStaticIpConfiguration.java49 public LinkAddress ipAddress; field in StaticIpConfiguration
62 ipAddress = source.ipAddress; in StaticIpConfiguration()
70 ipAddress = null; in clear()
85 if (ipAddress != null) { in getRoutes()
86 RouteInfo connectedRoute = new RouteInfo(ipAddress, null, iface); in getRoutes()
107 if (ipAddress != null) { in toLinkProperties()
108 lp.addLinkAddress(ipAddress); in toLinkProperties()
124 if (ipAddress != null ) str.append(ipAddress).append(" "); in toString()
141 result = 47 * result + (ipAddress == null ? 0 : ipAddress.hashCode()); in hashCode()
157 Objects.equals(ipAddress, other.ipAddress) && in equals()
[all …]
DDhcpInfo.java26 public int ipAddress; field in DhcpInfo
42 ipAddress = source.ipAddress; in DhcpInfo()
55 str.append("ipaddr "); putAddress(str, ipAddress); in toString()
77 dest.writeInt(ipAddress); in writeToParcel()
91 info.ipAddress = in.readInt();
DDhcpResults.java149 ipAddress = new LinkAddress(addr, prefixLength); in setIpAddress()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java243 InetAddress ipAddress = getInetAddress(jsonConfig.getString("ip")); in getWifiConfiguration() local
245 staticIpConfig.ipAddress = new LinkAddress(ipAddress, prefixLength); in getWifiConfiguration()
329 private static InetAddress getInetAddress(String ipAddress) { in getInetAddress() argument
330 if (!InetAddress.isNumeric(ipAddress)) { in getInetAddress()
332 String.format("IP address %s is not numeric", ipAddress)); in getInetAddress()
336 return InetAddress.getByName(ipAddress); in getInetAddress()
339 String.format("IP address %s could not be resolved", ipAddress)); in getInetAddress()
/frameworks/base/core/tests/coretests/src/android/net/
DStaticIpConfigurationTest.java50 assertNull(s.ipAddress); in checkEmpty()
70 s.ipAddress = ADDR; in makeTestObject()
106 s.ipAddress = ADDR; in testHashCodeAndEquals()
130 s.ipAddress = new LinkAddress(DNS1, 32); in testHashCodeAndEquals()
155 s.ipAddress = ADDR; in testToLinkProperties()
197 s.ipAddress = null; in testToLinkProperties()
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java81 if (staticIpConfiguration.ipAddress != null) { in writeConfig()
82 LinkAddress ipAddress = staticIpConfiguration.ipAddress; in writeConfig() local
84 out.writeUTF(ipAddress.getAddress().getHostAddress()); in writeConfig()
85 out.writeInt(ipAddress.getPrefixLength()); in writeConfig()
210 staticIpConfiguration.ipAddress == null) { in readIpAndProxyConfigurations()
211 staticIpConfiguration.ipAddress = linkAddr; in readIpAndProxyConfigurations()
/frameworks/base/services/net/java/android/net/dhcp/
DDhcpPacket.java1100 Inet4Address ipAddress = mYourIp; in toDhcpResults() local
1101 if (ipAddress.equals(Inet4Address.ANY)) { in toDhcpResults()
1102 ipAddress = mClientIp; in toDhcpResults()
1103 if (ipAddress.equals(Inet4Address.ANY)) { in toDhcpResults()
1117 prefixLength = NetworkUtils.getImplicitNetmask(ipAddress); in toDhcpResults()
1122 results.ipAddress = new LinkAddress(ipAddress, prefixLength); in toDhcpResults()
DDhcpClient.java756 (Inet4Address) mOffer.ipAddress.getAddress(), // DHCP_REQUESTED_IP in sendPacket()
823 mController.sendMessage(CMD_CONFIGURE_LINKADDRESS, mDhcpLease.ipAddress); in enter()
889 (Inet4Address) mDhcpLease.ipAddress.getAddress(), // ciaddr in sendPacket()
900 if (!mDhcpLease.ipAddress.equals(results.ipAddress)) { in receivePacket()
/frameworks/base/services/tests/servicestests/src/android/net/dhcp/
DDhcpPacketTest.java233 assertEquals(expectedAddress, results.ipAddress); in checkIpAddress()
262 private void assertDhcpResults(String ipAddress, String gateway, String dnsServersString, in assertDhcpResults() argument
265 assertEquals(new LinkAddress(ipAddress), dhcpResults.ipAddress); in assertDhcpResults()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java244 if (staticConfig.ipAddress != null && in setStaticIpAddress()
250 config.setLinkAddress(staticConfig.ipAddress); in setStaticIpAddress()
/frameworks/base/services/net/java/android/net/ip/
DIpManager.java906 if (setIPv4Address(mConfiguration.mStaticIpConfig.ipAddress)) { in startIPv4()
1188 final LinkAddress ipAddress = (LinkAddress) msg.obj; in processMessage() local
1189 if (setIPv4Address(ipAddress)) { in processMessage()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java1188 if (dhcpResults.ipAddress != null && in getDhcpInfo()
1189 dhcpResults.ipAddress.getAddress() instanceof Inet4Address) { in getDhcpInfo()
1190 … info.ipAddress = NetworkUtils.inetAddressToInt((Inet4Address) dhcpResults.ipAddress.getAddress()); in getDhcpInfo()
DWifiStateMachine.java3633 logd("link address " + dhcpResults.ipAddress); in handleIPv4Success()
3639 addr = (Inet4Address) dhcpResults.ipAddress.getAddress(); in handleIPv4Success()
3831 private String macAddressFromRoute(String ipAddress) { in macAddressFromRoute() argument
3851 if (ipAddress.equals(ip)) { in macAddressFromRoute()
3858 loge("Did not find remoteAddress {" + ipAddress + "} in " + in macAddressFromRoute()
6755 if (config.ipAddress == null) { in enter()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt16990 field public int ipAddress;
/frameworks/base/api/
Dcurrent.txt23459 field public int ipAddress;
Dtest-current.txt23528 field public int ipAddress;
Dsystem-current.txt25283 field public int ipAddress;