Merge "Add @UnsupportedAppUsage annotations"
This commit is contained in:
@@ -31,6 +31,7 @@ import com.android.internal.net.VpnInfo;
|
|||||||
interface INetworkStatsService {
|
interface INetworkStatsService {
|
||||||
|
|
||||||
/** Start a statistics query session. */
|
/** Start a statistics query session. */
|
||||||
|
@UnsupportedAppUsage
|
||||||
INetworkStatsSession openSession();
|
INetworkStatsSession openSession();
|
||||||
|
|
||||||
/** Start a statistics query session. If calling package is profile or device owner then it is
|
/** Start a statistics query session. If calling package is profile or device owner then it is
|
||||||
@@ -39,9 +40,11 @@ interface INetworkStatsService {
|
|||||||
* PACKAGE_USAGE_STATS permission is always checked. If PACKAGE_USAGE_STATS is not granted
|
* PACKAGE_USAGE_STATS permission is always checked. If PACKAGE_USAGE_STATS is not granted
|
||||||
* READ_NETWORK_USAGE_STATS is checked for.
|
* READ_NETWORK_USAGE_STATS is checked for.
|
||||||
*/
|
*/
|
||||||
|
@UnsupportedAppUsage
|
||||||
INetworkStatsSession openSessionForUsageStats(int flags, String callingPackage);
|
INetworkStatsSession openSessionForUsageStats(int flags, String callingPackage);
|
||||||
|
|
||||||
/** Return data layer snapshot of UID network usage. */
|
/** Return data layer snapshot of UID network usage. */
|
||||||
|
@UnsupportedAppUsage
|
||||||
NetworkStats getDataLayerSnapshotForUid(int uid);
|
NetworkStats getDataLayerSnapshotForUid(int uid);
|
||||||
|
|
||||||
/** Get a detailed snapshot of stats since boot for all UIDs.
|
/** Get a detailed snapshot of stats since boot for all UIDs.
|
||||||
@@ -54,6 +57,7 @@ interface INetworkStatsService {
|
|||||||
NetworkStats getDetailedUidStats(in String[] requiredIfaces);
|
NetworkStats getDetailedUidStats(in String[] requiredIfaces);
|
||||||
|
|
||||||
/** Return set of any ifaces associated with mobile networks since boot. */
|
/** Return set of any ifaces associated with mobile networks since boot. */
|
||||||
|
@UnsupportedAppUsage
|
||||||
String[] getMobileIfaces();
|
String[] getMobileIfaces();
|
||||||
|
|
||||||
/** Increment data layer count of operations performed for UID and tag. */
|
/** Increment data layer count of operations performed for UID and tag. */
|
||||||
@@ -66,6 +70,7 @@ interface INetworkStatsService {
|
|||||||
in NetworkState[] networkStates,
|
in NetworkState[] networkStates,
|
||||||
in String activeIface);
|
in String activeIface);
|
||||||
/** Force update of statistics. */
|
/** Force update of statistics. */
|
||||||
|
@UnsupportedAppUsage
|
||||||
void forceUpdate();
|
void forceUpdate();
|
||||||
|
|
||||||
/** Registers a callback on data usage. */
|
/** Registers a callback on data usage. */
|
||||||
|
|||||||
@@ -27,13 +27,17 @@ interface INetworkStatsSession {
|
|||||||
NetworkStats getDeviceSummaryForNetwork(in NetworkTemplate template, long start, long end);
|
NetworkStats getDeviceSummaryForNetwork(in NetworkTemplate template, long start, long end);
|
||||||
|
|
||||||
/** Return network layer usage summary for traffic that matches template. */
|
/** Return network layer usage summary for traffic that matches template. */
|
||||||
|
@UnsupportedAppUsage
|
||||||
NetworkStats getSummaryForNetwork(in NetworkTemplate template, long start, long end);
|
NetworkStats getSummaryForNetwork(in NetworkTemplate template, long start, long end);
|
||||||
/** Return historical network layer stats for traffic that matches template. */
|
/** Return historical network layer stats for traffic that matches template. */
|
||||||
|
@UnsupportedAppUsage
|
||||||
NetworkStatsHistory getHistoryForNetwork(in NetworkTemplate template, int fields);
|
NetworkStatsHistory getHistoryForNetwork(in NetworkTemplate template, int fields);
|
||||||
|
|
||||||
/** Return network layer usage summary per UID for traffic that matches template. */
|
/** Return network layer usage summary per UID for traffic that matches template. */
|
||||||
|
@UnsupportedAppUsage
|
||||||
NetworkStats getSummaryForAllUid(in NetworkTemplate template, long start, long end, boolean includeTags);
|
NetworkStats getSummaryForAllUid(in NetworkTemplate template, long start, long end, boolean includeTags);
|
||||||
/** Return historical network layer stats for specific UID traffic that matches template. */
|
/** 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);
|
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. */
|
/** 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);
|
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 */
|
/** Return array of uids that have stats and are accessible to the calling user */
|
||||||
int[] getRelevantUids();
|
int[] getRelevantUids();
|
||||||
|
|
||||||
|
@UnsupportedAppUsage
|
||||||
void close();
|
void close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user