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 Change-Id: I7489aad1dceeb18ed7ca48a1ed8829a668b3fa04
This commit is contained in:
committed by
Andrei-Valentin Onea
parent
14d4847954
commit
0fbf072ca6
@@ -29,6 +29,7 @@ import android.os.Messenger;
|
||||
interface INetworkStatsService {
|
||||
|
||||
/** Start a statistics query session. */
|
||||
@UnsupportedAppUsage
|
||||
INetworkStatsSession openSession();
|
||||
|
||||
/** Start a statistics query session. If calling package is profile or device owner then it is
|
||||
@@ -37,9 +38,11 @@ interface INetworkStatsService {
|
||||
* PACKAGE_USAGE_STATS permission is always checked. If PACKAGE_USAGE_STATS is not granted
|
||||
* READ_NETWORK_USAGE_STATS is checked for.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
INetworkStatsSession openSessionForUsageStats(int flags, String callingPackage);
|
||||
|
||||
/** Return data layer snapshot of UID network usage. */
|
||||
@UnsupportedAppUsage
|
||||
NetworkStats getDataLayerSnapshotForUid(int uid);
|
||||
|
||||
/** Get a detailed snapshot of stats since boot for all UIDs.
|
||||
@@ -52,6 +55,7 @@ interface INetworkStatsService {
|
||||
NetworkStats getDetailedUidStats(in String[] requiredIfaces);
|
||||
|
||||
/** Return set of any ifaces associated with mobile networks since boot. */
|
||||
@UnsupportedAppUsage
|
||||
String[] getMobileIfaces();
|
||||
|
||||
/** Increment data layer count of operations performed for UID and tag. */
|
||||
@@ -60,6 +64,7 @@ interface INetworkStatsService {
|
||||
/** Force update of ifaces. */
|
||||
void forceUpdateIfaces(in Network[] defaultNetworks);
|
||||
/** Force update of statistics. */
|
||||
@UnsupportedAppUsage
|
||||
void forceUpdate();
|
||||
|
||||
/** Registers a callback on data usage. */
|
||||
|
||||
@@ -27,13 +27,17 @@ interface INetworkStatsSession {
|
||||
NetworkStats getDeviceSummaryForNetwork(in NetworkTemplate template, long start, long end);
|
||||
|
||||
/** Return network layer usage summary for traffic that matches template. */
|
||||
@UnsupportedAppUsage
|
||||
NetworkStats getSummaryForNetwork(in NetworkTemplate template, long start, long end);
|
||||
/** Return historical network layer stats for traffic that matches template. */
|
||||
@UnsupportedAppUsage
|
||||
NetworkStatsHistory getHistoryForNetwork(in NetworkTemplate template, int fields);
|
||||
|
||||
/** Return network layer usage summary per UID for traffic that matches template. */
|
||||
@UnsupportedAppUsage
|
||||
NetworkStats getSummaryForAllUid(in NetworkTemplate template, long start, long end, boolean includeTags);
|
||||
/** Return historical network layer stats for specific UID traffic that matches template. */
|
||||
@UnsupportedAppUsage
|
||||
NetworkStatsHistory getHistoryForUid(in NetworkTemplate template, int uid, int set, int tag, int fields);
|
||||
/** Return historical network layer stats for specific UID traffic that matches template. */
|
||||
NetworkStatsHistory getHistoryIntervalForUid(in NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end);
|
||||
@@ -41,6 +45,7 @@ interface INetworkStatsSession {
|
||||
/** Return array of uids that have stats and are accessible to the calling user */
|
||||
int[] getRelevantUids();
|
||||
|
||||
@UnsupportedAppUsage
|
||||
void close();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user