am 8eac056f: DO NOT MERGE Sanitize WifiConfigs
* commit '8eac056f75f09ecdbc2fe550b6e05c8d6fd30398': DO NOT MERGE Sanitize WifiConfigs
This commit is contained in:
@@ -112,6 +112,16 @@ public class LinkProperties implements Parcelable {
|
|||||||
return Collections.unmodifiableCollection(mLinkAddresses);
|
return Collections.unmodifiableCollection(mLinkAddresses);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Replaces the LinkAddresses on this link with the given collection of addresses
|
||||||
|
*/
|
||||||
|
public void setLinkAddresses(Collection<LinkAddress> addresses) {
|
||||||
|
mLinkAddresses.clear();
|
||||||
|
for (LinkAddress address: addresses) {
|
||||||
|
addLinkAddress(address);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void addDns(InetAddress dns) {
|
public void addDns(InetAddress dns) {
|
||||||
if (dns != null) mDnses.add(dns);
|
if (dns != null) mDnses.add(dns);
|
||||||
}
|
}
|
||||||
@@ -127,6 +137,16 @@ public class LinkProperties implements Parcelable {
|
|||||||
return Collections.unmodifiableCollection(mRoutes);
|
return Collections.unmodifiableCollection(mRoutes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Replaces the RouteInfos on this link with the given collection of RouteInfos.
|
||||||
|
*/
|
||||||
|
public void setRoutes(Collection<RouteInfo> routes) {
|
||||||
|
mRoutes.clear();
|
||||||
|
for (RouteInfo route : routes) {
|
||||||
|
addRoute(route);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setHttpProxy(ProxyProperties proxy) {
|
public void setHttpProxy(ProxyProperties proxy) {
|
||||||
mHttpProxy = proxy;
|
mHttpProxy = proxy;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user