Add @UnsupportedAppUsage annotations
For packages: android.net.wimax android.net.wifi.p2p.nsd android.net.wifi.p2p android.net.wifi.hotspot2.pps android.net.wifi.hotspot2.omadm android.net.wifi.hotspot2 android.net.wifi.aware android.net.wifi android.net.util android.net.sip android.net.rtp android.net.nsd android.net.metrics android.net.lowpan android.net.http android.net.captiveportal android.net This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: Ie25423113ee1a8071cd5039382c00de6ce0af7fd Merged-In: I520be7a4c79e68310c12e4f55bf66acaa94145a1
This commit is contained in:
parent
e6d745c6f8
commit
0b8f861d07
1 changed files with 178 additions and 0 deletions
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
package android.net;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.net.LinkAddress;
|
||||
import android.os.Parcelable;
|
||||
import android.os.Parcel;
|
||||
|
|
@ -46,11 +47,16 @@ import java.util.Objects;
|
|||
* @hide
|
||||
*/
|
||||
public class StaticIpConfiguration implements Parcelable {
|
||||
@UnsupportedAppUsage
|
||||
public LinkAddress ipAddress;
|
||||
@UnsupportedAppUsage
|
||||
public InetAddress gateway;
|
||||
@UnsupportedAppUsage
|
||||
public final ArrayList<InetAddress> dnsServers;
|
||||
@UnsupportedAppUsage
|
||||
public String domains;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public StaticIpConfiguration() {
|
||||
dnsServers = new ArrayList<InetAddress>();
|
||||
}
|
||||
|
|
@ -80,6 +86,7 @@ public class StaticIpConfiguration implements Parcelable {
|
|||
* route to the gateway as well. This configuration is arguably invalid, but it used to work
|
||||
* in K and earlier, and other OSes appear to accept it.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public List<RouteInfo> getRoutes(String iface) {
|
||||
List<RouteInfo> routes = new ArrayList<RouteInfo>(3);
|
||||
if (ipAddress != null) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue