summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/NetStatService.java
AgeCommit message (Collapse)Author
2011-06-01Collect historical network stats.Jeff Sharkey
Periodically records delta network traffic into historical buckets to support other services, such NetworkPolicyManager and Settings UI. Introduces NetworkStatsHistory structure which contains sparse, uniform buckets of data usage defined by timestamps. Service periodically polls NetworkStats and records changes into buckets. It only persists to disk when substantial changes have occured. Current parameters create 4 buckets each day, and persist for 90 days, resulting in about 8kB of data per network. Only records stats for "well known" network interfaces that have been claimed by Telephony or Wi-Fi subsystems. Historical stats are also keyed off identity (such as IMSI) to support SIM swapping. Change-Id: Ia27d1289556a2bf9545fbc4f3b789425a01be53a
2010-03-25Add "dumpsys diskstats" to get a dump of disk-free values.Dan Egnor
Also includes a trivial test of I/O latency. (Mostly useful to be invoked from checkin to poll disk-free and latency issues. Also moderately useful to see in a bugreport.) Also make "dumpsys netstat" a non-no-op, in case we want this data. Change-Id: Ia93550a23ca6b35586c5d9217890ee0a5801aae1
2010-02-04API review: TrafficStats: rename Pkts to PacketsKen Shirriff
Rename getMobileTxPackets(), getMobileRxPackets(), getTotalTxPackets(), getMobileRxPackets() bug 2420318
2009-12-08Migration to TrafficStats.Ken Shirriff
TrafficStats is the SDK version of NetStat.
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-02-10auto import from //branches/cupcake/...@130745The Android Open Source Project
2008-10-21Initial ContributionThe Android Open Source Project