Add @UnsupportedAppUsage annotations

For packages:
  android.net
  android.net.wifi
  android.nfc

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
Merged-In: I7489aad1dceeb18ed7ca48a1ed8829a668b3fa04
Change-Id: I16570aef456b45a5543bf889dddc7a0d25441928
This commit is contained in:
Andrei Onea
2019-02-28 14:37:50 +00:00
parent 868f0589c8
commit 23393e21ec

View File

@@ -47,10 +47,12 @@ interface IConnectivityManager
{ {
Network getActiveNetwork(); Network getActiveNetwork();
Network getActiveNetworkForUid(int uid, boolean ignoreBlocked); Network getActiveNetworkForUid(int uid, boolean ignoreBlocked);
@UnsupportedAppUsage
NetworkInfo getActiveNetworkInfo(); NetworkInfo getActiveNetworkInfo();
NetworkInfo getActiveNetworkInfoForUid(int uid, boolean ignoreBlocked); NetworkInfo getActiveNetworkInfoForUid(int uid, boolean ignoreBlocked);
NetworkInfo getNetworkInfo(int networkType); NetworkInfo getNetworkInfo(int networkType);
NetworkInfo getNetworkInfoForUid(in Network network, int uid, boolean ignoreBlocked); NetworkInfo getNetworkInfoForUid(in Network network, int uid, boolean ignoreBlocked);
@UnsupportedAppUsage
NetworkInfo[] getAllNetworkInfo(); NetworkInfo[] getAllNetworkInfo();
Network getNetworkForType(int networkType); Network getNetworkForType(int networkType);
Network[] getAllNetworks(); Network[] getAllNetworks();
@@ -58,12 +60,14 @@ interface IConnectivityManager
boolean isNetworkSupported(int networkType); boolean isNetworkSupported(int networkType);
@UnsupportedAppUsage
LinkProperties getActiveLinkProperties(); LinkProperties getActiveLinkProperties();
LinkProperties getLinkPropertiesForType(int networkType); LinkProperties getLinkPropertiesForType(int networkType);
LinkProperties getLinkProperties(in Network network); LinkProperties getLinkProperties(in Network network);
NetworkCapabilities getNetworkCapabilities(in Network network); NetworkCapabilities getNetworkCapabilities(in Network network);
@UnsupportedAppUsage
NetworkState[] getAllNetworkState(); NetworkState[] getAllNetworkState();
NetworkQuotaInfo getActiveNetworkQuotaInfo(); NetworkQuotaInfo getActiveNetworkQuotaInfo();
@@ -75,6 +79,7 @@ interface IConnectivityManager
int untether(String iface, String callerPkg); int untether(String iface, String callerPkg);
@UnsupportedAppUsage
int getLastTetherError(String iface); int getLastTetherError(String iface);
boolean isTetheringSupported(String callerPkg); boolean isTetheringSupported(String callerPkg);
@@ -84,16 +89,21 @@ interface IConnectivityManager
void stopTethering(int type, String callerPkg); void stopTethering(int type, String callerPkg);
@UnsupportedAppUsage
String[] getTetherableIfaces(); String[] getTetherableIfaces();
@UnsupportedAppUsage
String[] getTetheredIfaces(); String[] getTetheredIfaces();
@UnsupportedAppUsage
String[] getTetheringErroredIfaces(); String[] getTetheringErroredIfaces();
String[] getTetheredDhcpRanges(); String[] getTetheredDhcpRanges();
@UnsupportedAppUsage
String[] getTetherableUsbRegexs(); String[] getTetherableUsbRegexs();
@UnsupportedAppUsage
String[] getTetherableWifiRegexs(); String[] getTetherableWifiRegexs();
String[] getTetherableBluetoothRegexs(); String[] getTetherableBluetoothRegexs();
@@ -118,6 +128,7 @@ interface IConnectivityManager
VpnConfig getVpnConfig(int userId); VpnConfig getVpnConfig(int userId);
@UnsupportedAppUsage
void startLegacyVpn(in VpnProfile profile); void startLegacyVpn(in VpnProfile profile);
LegacyVpnInfo getLegacyVpnInfo(int userId); LegacyVpnInfo getLegacyVpnInfo(int userId);