Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DStaticIpConfiguration.java60 public LinkAddress ipAddress; field in StaticIpConfiguration
82 ipAddress = source.ipAddress; in StaticIpConfiguration()
90 ipAddress = null; in clear()
100 return ipAddress; in getIpAddress()
138 public @NonNull Builder setIpAddress(@Nullable LinkAddress ipAddress) { in setIpAddress() argument
139 mIpAddress = ipAddress; in setIpAddress()
179 config.ipAddress = mIpAddress; in build()
205 if (ipAddress != null) { in getRoutes()
206 RouteInfo connectedRoute = new RouteInfo(ipAddress, null, iface); in getRoutes()
231 if (ipAddress != null) { in toLinkProperties()
[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.java43 public LinkAddress ipAddress; field in DhcpResults
82 .setIpAddress(ipAddress) in toStaticIpConfiguration()
91 ipAddress = source.getIpAddress(); in DhcpResults()
132 ipAddress = null; in clear()
224 ipAddress = new LinkAddress(addr, prefixLength); in setIpAddress()
255 return ipAddress; in getIpAddress()
258 public void setIpAddress(LinkAddress ipAddress) { in setIpAddress() argument
259 this.ipAddress = ipAddress; in setIpAddress()
DINetdEventCallback.aidl70 void onPrivateDnsValidationEvent(int netId, String ipAddress, String hostname, in onPrivateDnsValidationEvent() argument
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java249 InetAddress ipAddress = getInetAddress(jsonConfig.getString("ip")); in getWifiConfiguration() local
251 staticIpConfig.ipAddress = new LinkAddress(ipAddress, prefixLength); in getWifiConfiguration()
336 private static InetAddress getInetAddress(String ipAddress) { in getInetAddress() argument
337 if (!InetAddress.isNumeric(ipAddress)) { in getInetAddress()
339 String.format("IP address %s is not numeric", ipAddress)); in getInetAddress()
343 return InetAddress.getByName(ipAddress); in getInetAddress()
346 String.format("IP address %s could not be resolved", ipAddress)); in getInetAddress()
/frameworks/base/tests/net/common/java/android/net/
DStaticIpConfigurationTest.java58 assertNull(s.ipAddress); in checkEmpty()
66 s.ipAddress = ADDR; in makeTestObject()
102 s.ipAddress = ADDR; in testHashCodeAndEquals()
126 s.ipAddress = new LinkAddress(DNS1, 32); in testHashCodeAndEquals()
151 s.ipAddress = ADDR; in testToLinkProperties()
193 s.ipAddress = null; in testToLinkProperties()
233 assertEquals(s.ipAddress, s.getIpAddress()); in testBuilder()
DDhcpInfoTest.java52 dhcpInfo.ipAddress = ipToInteger(STR_ADDR1); in createDhcpInfoObject()
91 return left.ipAddress == right.ipAddress in dhcpInfoEquals()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractIpAddressPreferenceController.java81 String ipAddress = getDefaultIpAddresses(mCM); in updateConnectivity() local
82 if (ipAddress != null) { in updateConnectivity()
83 mIpAddress.setSummary(ipAddress); in updateConnectivity()
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java91 if (staticIpConfiguration.ipAddress != null) { in writeConfig()
92 LinkAddress ipAddress = staticIpConfiguration.ipAddress; in writeConfig() local
94 out.writeUTF(ipAddress.getAddress().getHostAddress()); in writeConfig()
95 out.writeInt(ipAddress.getPrefixLength()); in writeConfig()
290 staticIpConfiguration.ipAddress == null) { in readIpConfigurations()
291 staticIpConfiguration.ipAddress = linkAddr; in readIpConfigurations()
/frameworks/base/services/core/java/com/android/server/connectivity/
DDnsManager.java152 final public InetAddress ipAddress; field in DnsManager.PrivateDnsValidationUpdate
156 public PrivateDnsValidationUpdate(int netId, InetAddress ipAddress, in PrivateDnsValidationUpdate() argument
159 this.ipAddress = ipAddress; in PrivateDnsValidationUpdate()
192 for (String ipAddress : ipAddresses) { in updateTrackedDnses()
195 InetAddress.parseNumericAddress(ipAddress))); in updateTrackedDnses()
216 update.ipAddress); in updateStatus()
DNetdEventListenerService.java232 String ipAddress, String hostname, boolean validated) in onPrivateDnsValidationEvent() argument
236 callback.onPrivateDnsValidationEvent(netId, ipAddress, hostname, validated); in onPrivateDnsValidationEvent()
/frameworks/base/core/java/android/app/admin/
DConnectEvent.java41 public ConnectEvent(String ipAddress, int port, String packageName, long timestamp) { in ConnectEvent() argument
43 this.mIpAddress = ipAddress; in ConnectEvent()
DDnsEvent.java77 for (final String ipAddress : mIpAddresses) { in getInetAddresses()
80 inetAddresses.add(InetAddress.getByName(ipAddress)); in getInetAddresses()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DIpConfigStoreTest.java81 staticIpConfiguration.ipAddress = new LinkAddress(IP_ADDR_1); in staticIpMultiNetworks()
90 expectedConfig2.getStaticIpConfiguration().ipAddress = new LinkAddress(IP_ADDR_2); in staticIpMultiNetworks()
/frameworks/base/core/java/com/android/server/net/
DBaseNetdEventCallback.java41 public void onPrivateDnsValidationEvent(int netId, String ipAddress, in onPrivateDnsValidationEvent() argument
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistLoggingHandler.java365 for (String ipAddress : ipAddresses) { in searchIpInWatchlist()
366 if (isIpInWatchlist(ipAddress)) { in searchIpInWatchlist()
367 return ipAddress; in searchIpInWatchlist()
/frameworks/base/packages/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java223 assertEquals(new LinkAddress(clientAddr), dhcpResults.ipAddress); in testStaticIpv4()
424 assertLinkAddressMatches(dhcpResults.ipAddress, info.getAddress()); in checkTetheredClientCallbacks()
501 Inet4Address clientIp = (Inet4Address) results.ipAddress.getAddress(); in sendDhcpRequest()
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/
DEthernetTrackerTest.java110 config.ipAddress = new LinkAddress(address); in setIp()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java771 if (staticIpConfiguration.ipAddress != null) { in writeStaticIpConfigurationToXml()
774 staticIpConfiguration.ipAddress.getAddress().getHostAddress()); in writeStaticIpConfigurationToXml()
777 staticIpConfiguration.ipAddress.getPrefixLength()); in writeStaticIpConfigurationToXml()
871 staticIpConfiguration.ipAddress = linkAddress; in parseStaticIpConfigurationFromXml()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java500 staticIpConfiguration.ipAddress = linkAddress; in parseIpConfigurationFromXml()
DWifiConfigurationUtil.java550 if (staticIpConfig.ipAddress == null) { in validateIpConfiguration()
DWifiServiceImpl.java2501 if (dhcpResults.ipAddress != null && in getDhcpInfo()
2502 dhcpResults.ipAddress.getAddress() instanceof Inet4Address) { in getDhcpInfo()
2503 info.ipAddress = NetworkUtils.inetAddressToInt( in getDhcpInfo()
2504 (Inet4Address) dhcpResults.ipAddress.getAddress()); in getDhcpInfo()
DClientModeImpl.java3193 logd("link address " + dhcpResults.ipAddress); in handleIPv4Success()
3199 addr = (Inet4Address) dhcpResults.ipAddress.getAddress(); in handleIPv4Success()
3294 private String macAddressFromRoute(String ipAddress) { in macAddressFromRoute() argument
3314 if (ipAddress.equals(ip)) { in macAddressFromRoute()
3321 loge("Did not find remoteAddress {" + ipAddress + "} in /proc/net/arp"); in macAddressFromRoute()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java588 ipConfig.ipAddress = new LinkAddress(value); in parseStaticIpConfiguration()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java200 staticIpConfiguration.ipAddress = linkAddr; in generateIpConfig()

12