Searched defs:hostAddress (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/core/java/android/net/
H A DNetworkUtils.java107 * @param hostAddress an int corresponding to the IPv4 address in network byte order
109 public static InetAddress intToInetAddress(int hostAddress) { argument
110 byte[] addressBytes = { (byte)(0xff & hostAddress),
111 (byte)(0xff & (hostAddress >> 8)),
112 (byte)(0xff & (hostAddress >> 16)),
113 (byte)(0xff & (hostAddress >> 24)) };
H A DConnectivityManager.java477 * @param hostAddress the IP address of the host to which the route is desired
480 public boolean requestRouteToHost(int networkType, int hostAddress) { argument
481 InetAddress inetAddress = NetworkUtils.intToInetAddress(hostAddress);
496 * @param hostAddress the IP address of the host to which the route is desired
500 public boolean requestRouteToHostAddress(int networkType, InetAddress hostAddress) { argument
501 byte[] address = hostAddress.getAddress();
/frameworks/base/services/java/com/android/server/
H A DConnectivityService.java1199 * @param hostAddress the IP address of the host to which the route is
1203 public boolean requestRouteToHost(int networkType, int hostAddress) { argument
1204 InetAddress inetAddress = NetworkUtils.intToInetAddress(hostAddress);
1218 * @param hostAddress the IP address of the host to which the route is
1222 public boolean requestRouteToHostAddress(int networkType, byte[] hostAddress) { argument
1244 InetAddress addr = InetAddress.getByAddress(hostAddress);

Completed in 54 milliseconds