summaryrefslogtreecommitdiffstats
path: root/core/java/android/net/NetworkUtils.java
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2011-01-19 18:57:22 -0800
committerRobert Greenwalt <rgreenwalt@google.com>2011-01-21 10:44:12 -0800
commit27d3c5907cc6f4366a7af3f0941d8d29d9b2440b (patch)
tree4bfa116561ca4bcf9b169a0d1cef015e9ac8901d /core/java/android/net/NetworkUtils.java
parent797297456eaaa305d9cd1f8eead83cb468127c47 (diff)
downloadframeworks_base-27d3c5907cc6f4366a7af3f0941d8d29d9b2440b.zip
frameworks_base-27d3c5907cc6f4366a7af3f0941d8d29d9b2440b.tar.gz
frameworks_base-27d3c5907cc6f4366a7af3f0941d8d29d9b2440b.tar.bz2
Switch from NetworkUtils to netd for iface config.
Moving more stuff to netd and getting rid of unused NetworkUtils. Change-Id: Ibb5a11dca58d07291fe33e6d33027553f6158ea7
Diffstat (limited to 'core/java/android/net/NetworkUtils.java')
-rw-r--r--core/java/android/net/NetworkUtils.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/core/java/android/net/NetworkUtils.java b/core/java/android/net/NetworkUtils.java
index f1bf852..b0c974c 100644
--- a/core/java/android/net/NetworkUtils.java
+++ b/core/java/android/net/NetworkUtils.java
@@ -104,26 +104,6 @@ public class NetworkUtils {
public native static String getDhcpError();
/**
- * When static IP configuration has been specified, configure the network
- * interface according to the values supplied.
- * @param interfaceName the name of the interface to configure
- * @param ipInfo the IP address, default gateway, and DNS server addresses
- * with which to configure the interface.
- * @return {@code true} for success, {@code false} for failure
- */
- public static boolean configureInterface(String interfaceName, DhcpInfo ipInfo) {
- return configureNative(interfaceName,
- ipInfo.ipAddress,
- ipInfo.netmask,
- ipInfo.gateway,
- ipInfo.dns1,
- ipInfo.dns2);
- }
-
- private native static boolean configureNative(
- String interfaceName, int ipAddress, int netmask, int gateway, int dns1, int dns2);
-
- /**
* Convert a IPv4 address from an integer to an InetAddress.
* @param hostAddress an int corresponding to the IPv4 address in network byte order
*/