summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2011-07-19 23:47:12 -0700
committerJeff Sharkey <jsharkey@android.com>2011-07-29 22:24:01 -0700
commita63ba59260cd1bb3f5c16e395ace45a61f1d4461 (patch)
treef70f8270c45744686c1c6741f39340c0cb644dd3 /api
parent1e833b31ee04c35b5a3494db1acb0068350d8391 (diff)
downloadframeworks_base-a63ba59260cd1bb3f5c16e395ace45a61f1d4461.zip
frameworks_base-a63ba59260cd1bb3f5c16e395ace45a61f1d4461.tar.gz
frameworks_base-a63ba59260cd1bb3f5c16e395ace45a61f1d4461.tar.bz2
Add operation counts to network statistics.
Provide API to increment "operation counts" for a UID and tag, used to eventually derive bytes/operation stats. Internally is stored at network layer, but should belong at data layer. Switch profiling to use data layer stats, which are emulated by summarizing network layer details. Read packet counts from new /proc/ columns and collect them into NetworkStatsHistory. Prevent double-counting by ignoring values from first snapshot. Watch for duplicate /proc/ entries. Update tests to verify packet and operation counters. Bug: 5052136, 5097392 Change-Id: I1832f65a2b8a9188f8088f253474a667c21a2f09
Diffstat (limited to 'api')
-rw-r--r--api/current.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index 162da33..35c9cf8 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -11307,6 +11307,7 @@ package android.net {
method public static long getUidUdpRxPackets(int);
method public static long getUidUdpTxBytes(int);
method public static long getUidUdpTxPackets(int);
+ method public static void incrementOperationCount(int, int);
method public static void setThreadStatsTag(int);
method public static deprecated void setThreadStatsTag(java.lang.String);
method public static void tagSocket(java.net.Socket) throws java.net.SocketException;