commit | ebbebc73a0ae25912286207139447388f0bdb3cf | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Sun Jun 05 17:42:53 2011 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Thu Jun 09 10:14:13 2011 -0700 |
tree | 0ac41be6f9311213e4dc267af01811c2187452f2 | |
parent | 9a4ad7d52c1863203a8a6b934e2a4d14c8454547 [diff] |
Persist network stats using AtomicFile. Implements read/write of network stats using AtomicFile, along with magic number and versioning. Stores in "/data/system/netstats.bin" for now. Tests to verify that stats are persisted across a simulated reboot, and to verify that TEMPLATE_WIFI is working. Fixed bug where kernel counters rolling backwards would cause negative stats to be recorded; now we clamp deltas at 0. Change-Id: I53bce26fc8fd3f4ab1e34ce135d302edfa34db34