Searched refs:hostAddress (Results 1 - 4 of 4) 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 DIConnectivityManager.aidl64 boolean requestRouteToHost(int networkType, int hostAddress);
66 boolean requestRouteToHostAddress(int networkType, in byte[] hostAddress);
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.java1194 * @param hostAddress the IP address of the host to which the route is
1198 public boolean requestRouteToHost(int networkType, int hostAddress) { argument
1199 InetAddress inetAddress = NetworkUtils.intToInetAddress(hostAddress);
1213 * @param hostAddress the IP address of the host to which the route is
1217 public boolean requestRouteToHostAddress(int networkType, byte[] hostAddress) { argument
1237 InetAddress addr = InetAddress.getByAddress(hostAddress);

Completed in 111 milliseconds