Home
last modified time | relevance | path

Searched refs:NetworkUtils (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/
DLinkPropertiesTest.java52 NetworkUtils.numericToInetAddress(ADDRV4), 32)); in testEqualsSameOrder()
54 NetworkUtils.numericToInetAddress(ADDRV6), 128)); in testEqualsSameOrder()
56 source.addDns(NetworkUtils.numericToInetAddress(DNS1)); in testEqualsSameOrder()
57 source.addDns(NetworkUtils.numericToInetAddress(DNS2)); in testEqualsSameOrder()
59 source.addRoute(new RouteInfo(NetworkUtils.numericToInetAddress(GATEWAY1))); in testEqualsSameOrder()
60 source.addRoute(new RouteInfo(NetworkUtils.numericToInetAddress(GATEWAY2))); in testEqualsSameOrder()
67 NetworkUtils.numericToInetAddress(ADDRV4), 32)); in testEqualsSameOrder()
69 NetworkUtils.numericToInetAddress(ADDRV6), 128)); in testEqualsSameOrder()
70 target.addDns(NetworkUtils.numericToInetAddress(DNS1)); in testEqualsSameOrder()
71 target.addDns(NetworkUtils.numericToInetAddress(DNS2)); in testEqualsSameOrder()
[all …]
/frameworks/base/core/java/android/net/
DDhcpInfoInternal.java66 InetAddress inetAddress = NetworkUtils.numericToInetAddress(addr); in convertToInt()
68 return NetworkUtils.inetAddressToInt(inetAddress); in convertToInt()
85 InetAddress inetAddress = NetworkUtils.numericToInetAddress(ipAddress); in makeDhcpInfo()
86 info.netmask = NetworkUtils.prefixLengthToNetmaskInt(prefixLength); in makeDhcpInfo()
100 return new LinkAddress(NetworkUtils.numericToInetAddress(ipAddress), prefixLength); in makeLinkAddress()
111 p.addDns(NetworkUtils.numericToInetAddress(dns1)); in makeLinkProperties()
116 p.addDns(NetworkUtils.numericToInetAddress(dns2)); in makeLinkProperties()
DDhcpStateMachine.java30 import android.net.NetworkUtils;
266 if (!NetworkUtils.stopDhcp(mInterfaceName)) { in processMessage()
307 if (!NetworkUtils.stopDhcp(mInterfaceName)) { in processMessage()
340 success = NetworkUtils.runDhcp(mInterfaceName, dhcpInfoInternal); in runDhcp()
344 success = NetworkUtils.runDhcpRenew(mInterfaceName, dhcpInfoInternal); in runDhcp()
374 NetworkUtils.getDhcpError()); in runDhcp()
375 NetworkUtils.stopDhcp(mInterfaceName); in runDhcp()
DEthernetDataTracker.java136 NetworkUtils.stopDhcp(mIface); in disconnect()
170 if (!NetworkUtils.runDhcp(mIface, dhcpInfoInternal)) { in runDhcp()
171 Log.e(TAG, "DHCP request error:" + NetworkUtils.getDhcpError()); in runDhcp()
254 NetworkUtils.stopDhcp(mIface); in teardown()
DRouteInfo.java68 mDestination = new LinkAddress(NetworkUtils.getNetworkPart(destination.getAddress(), in RouteInfo()
227 InetAddress dstNet = NetworkUtils.getNetworkPart(destination, in matches()
246 if (NetworkUtils.addressTypeMatches(route.mDestination.getAddress(), dest)) { in selectBestRoute()
DDhcpInfo.java69 buf.append(NetworkUtils.intToInetAddress(addr).getHostAddress()); in putAddress()
DNetworkUtils.java32 public class NetworkUtils { class
DConnectivityManager.java507 InetAddress inetAddress = NetworkUtils.intToInetAddress(hostAddress); in requestRouteToHost()
DDnsPinger.java305 return NetworkUtils.numericToInetAddress(dns); in getDefaultDns()
DProxy.java236 if (NetworkUtils.numericToInetAddress(host).isLoopbackAddress()) { in isLocalHost()
/frameworks/base/telephony/java/com/android/internal/telephony/
DDataCallState.java22 import android.net.NetworkUtils;
143 ia = NetworkUtils.numericToInetAddress(addr); in setLinkProperties()
168 ia = NetworkUtils.numericToInetAddress(addr); in setLinkProperties()
185 ia = NetworkUtils.numericToInetAddress(dnsAddr); in setLinkProperties()
211 ia = NetworkUtils.numericToInetAddress(addr); in setLinkProperties()
/frameworks/base/core/java/android/bluetooth/
DBluetoothTetheringDataTracker.java27 import android.net.NetworkUtils;
271 if (!NetworkUtils.runDhcp(mIface, dhcpInfoInternal)) { in startReverseTether()
272 Log.e(TAG, "DHCP request error:" + NetworkUtils.getDhcpError()); in startReverseTether()
292 NetworkUtils.stopDhcp(iface); in stopReverseTether()
/frameworks/base/services/java/com/android/server/
DNetworkManagementService.java43 import android.net.NetworkUtils;
451 addr = NetworkUtils.numericToInetAddress(st.nextToken()); in getInterfaceConfig()
651 NetworkUtils.intToInetAddress((int)Long.parseLong(dest, 16)); in getRoutes()
653 NetworkUtils.netmaskIntToPrefixLength( in getRoutes()
659 NetworkUtils.intToInetAddress((int)Long.parseLong(gate, 16)); in getRoutes()
688 InetAddress destAddr = NetworkUtils.hexToInet6Address(dest); in getRoutes()
691 InetAddress gateAddr = NetworkUtils.hexToInet6Address(gate); in getRoutes()
821 cmd.appendArg(NetworkUtils.numericToInetAddress(s).getHostAddress()); in setDnsForwarders()
855 InetAddress addr = NetworkUtils.getNetworkPart( in modifyNat()
905 NetworkUtils.numericToInetAddress(localAddr).getHostAddress(), in attachPppd()
[all …]
DConnectivityService.java51 import android.net.NetworkUtils;
354 mDefaultDns = NetworkUtils.numericToInetAddress(dns); in ConnectivityService()
1264 InetAddress inetAddress = NetworkUtils.intToInetAddress(hostAddress); in requestRouteToHost()
1941 int resetMask = doReset ? NetworkUtils.RESET_ALL_ADDRESSES : 0; in handleConnectivityChange()
1967 resetMask |= NetworkUtils.RESET_IPV4_ADDRESSES; in handleConnectivityChange()
1970 resetMask |= NetworkUtils.RESET_IPV6_ADDRESSES; in handleConnectivityChange()
1986 resetMask = NetworkUtils.RESET_ALL_ADDRESSES; in handleConnectivityChange()
2015 NetworkUtils.resetConnections(iface, resetMask); in handleConnectivityChange()
2019 if ((resetMask & NetworkUtils.RESET_IPV4_ADDRESSES) != 0) { in handleConnectivityChange()
2309 mNetd.setDnsServersForInterface(iface, NetworkUtils.makeStrings(dnses)); in updateDns()
[all …]
/frameworks/base/core/java/android/text/format/
DFormatter.java20 import android.net.NetworkUtils;
111 return NetworkUtils.intToInetAddress(ipv4Address).getHostAddress(); in formatIpAddress()
/frameworks/base/core/java/android/server/
DBluetoothPanProfileHandler.java32 import android.net.NetworkUtils;
383 addr.equals(NetworkUtils.numericToInetAddress("0.0.0.0")) || in enableTethering()
384 addr.equals(NetworkUtils.numericToInetAddress("::0"))) { in enableTethering()
385 addr = NetworkUtils.numericToInetAddress(address); in enableTethering()
/frameworks/base/wifi/java/android/net/wifi/
DWifiInfo.java22 import android.net.NetworkUtils;
220 return NetworkUtils.inetAddressToInt(mIpAddress); in getIpAddress()
DWifiConfigStore.java24 import android.net.NetworkUtils;
866 NetworkUtils.numericToInetAddress(in.readUTF()), in.readInt()); in readIpAndProxyConfigurations()
873 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); in readIpAndProxyConfigurations()
877 NetworkUtils.numericToInetAddress(in.readUTF()), in readIpAndProxyConfigurations()
881 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); in readIpAndProxyConfigurations()
887 NetworkUtils.numericToInetAddress(in.readUTF())); in readIpAndProxyConfigurations()
DWifiStateMachine.java58 import android.net.NetworkUtils;
1212 NetworkUtils.numericToInetAddress("192.168.43.1"), 24)); in startTethering()
1246 new LinkAddress(NetworkUtils.numericToInetAddress("0.0.0.0"), 0)); in stopTethering()
1739 InetAddress addr = NetworkUtils.numericToInetAddress(dhcpInfoInternal.ipAddress); in handleSuccessfulIpConfiguration()
/frameworks/base/services/java/com/android/server/connectivity/
DTethering.java37 import android.net.NetworkUtils;
548 InetAddress addr = NetworkUtils.numericToInetAddress(USB_NEAR_IFACE_ADDR); in configureUsbIface()
1348 dnsServers = NetworkUtils.makeStrings(v4Dnses); in chooseUpstreamType()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmDataConnectionTracker.java34 import android.net.NetworkUtils;
957 NetworkUtils.trimV4AddrZeros( in createApnList()
961 NetworkUtils.trimV4AddrZeros( in createApnList()
964 NetworkUtils.trimV4AddrZeros( in createApnList()
1265 if (NetworkUtils.addressTypeMatches(removed.getAddress(), in onDataStateChanged()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pService.java42 import android.net.NetworkUtils;
1401 ifcg.setLinkAddress(new LinkAddress(NetworkUtils.numericToInetAddress( in startDhcpServer()
1531 mWifiP2pInfo.groupOwnerAddress = NetworkUtils.numericToInetAddress(serverAddress); in setWifiP2pInfoOnGroupFormation()
/frameworks/base/
Dpreloaded-classes525 android.net.NetworkUtils