Add per network static IP settings

Remove the existing global static IP settings and add support
for per network configuration

Change-Id: I5a6d8b877471b8c8ad07951c96d273893754607f
This commit is contained in:
Irfan Sheriff
2010-08-30 12:26:00 -07:00
parent b729dcc8a9
commit 31b62322bf
5 changed files with 421 additions and 198 deletions

View File

@@ -37,6 +37,19 @@ public class DhcpInfo implements Parcelable {
super();
}
/** copy constructor {@hide} */
public DhcpInfo(DhcpInfo source) {
if (source != null) {
ipAddress = source.ipAddress;
gateway = source.gateway;
netmask = source.netmask;
dns1 = source.dns1;
dns2 = source.dns2;
serverAddress = source.serverAddress;
leaseDuration = source.leaseDuration;
}
}
public String toString() {
StringBuffer str = new StringBuffer();

View File

@@ -1128,6 +1128,7 @@ public final class Settings {
*/
public static final int WIFI_SLEEP_POLICY_NEVER = 2;
//TODO: deprecate static IP constants
/**
* Whether to use static IP and other static network attributes.
* <p>