History log of /frameworks/base/core/java/android/app/usage/NetworkStats.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6965c1869aa8499706522d057b5143bbc240178b 30-Mar-2016 Antonio Cansado <acansado@google.com> Addressing API council comments on NetworkStatsManager.

Callbacks
- DataUsageCallback renamed to UsageCallback
- DataUsagePolicy removed; passing in params directly to register method
- making it an abstract class
- passing in (networkType, subscriberId) that reached its threshold
- renaming onLimitReached to onThresholdReached to match existing naming
- only monitor single network,subscriberId
- no monitoring of specific uids; using device or user wide instead

Tags
- only owner uid can read its tags
- exposing only TAG_NONE to match service side

BUG: 27530098

Change-Id: I2b2664da71806868a1e937d2bf4d1f234637509b
/frameworks/base/core/java/android/app/usage/NetworkStats.java
3e883daeef3d4efc835e283a4e326ad427a593f9 22-Apr-2016 Antonio Cansado <acansado@google.com> Fixing network tags.

- History was not populating the tag, so all of them appeared as tag 0x0.

Bug: 28345240
Change-Id: I9c898695bbe8d18531f7ea432ebb8f02d72e5d27
/frameworks/base/core/java/android/app/usage/NetworkStats.java
1f7e05eda687279ac9deb894f42ac927bd471ad2 10-Mar-2016 Jeff Davidson <jpd@google.com> NetworkStats.Bucket API polish.

-Add @IntDef constants for STATE_ and ROAMING_.
-Expand docs for ROAMING_ constants.
-Use ROAMING_NO/YES instead of ROAMING_DEFAULT/ROAMING.

Bug: 27531260
Change-Id: I54ecfb4148caa549214df0bee9983036ffa4cb55
/frameworks/base/core/java/android/app/usage/NetworkStats.java
46c75367fa47bfd0429cab6121da0b897b5620a2 11-Dec-2015 Antonio Cansado <acansado@google.com> Retuning tag information through NetworkStatsManager.

Network tags could be set since ICS but was not exposed
through the SDK. This CL extends existing functionality
of NetworkStatsManager to return network tags.

Bug: 25813338
Change-Id: I414b98193249ba88a3f2d64cb2e0d2633f64fa3f
/frameworks/base/core/java/android/app/usage/NetworkStats.java
921d15b58a82e426f51abfc0599aff6a384b778c 29-Jan-2016 Jeff Davidson <jpd@google.com> Revert Network Stats API stub for tracking of metered networks.

Bug: 25813958
Change-Id: I9d2835b7bacfffef05b1588f1301afc70f5f582f
/frameworks/base/core/java/android/app/usage/NetworkStats.java
a6a78076eeb27084ed815ce0492d4ffe08134bec 12-Jan-2016 Jeff Davidson <jpd@google.com> Implement roaming tracking in NetworkStats summary queries.

Whether a network is deemed roaming or not was already being tracked
as part of the NetworkIdentitySet, so the underlying data store
already tracks roaming and native data separately. However, this data
was being aggregated together in NetworkStatsCollection#getSummary,
since the NetworkIdentitySet is converted to an iface name for the
purposes of matching, and the iface name will be identical whether or
not the iface is considered roaming. Now it is separated.

Also fixes a long-standing bug in NetworkIdentitySet where an identity
read from a saved file would always be considered roaming == false,
even if it wasn't at the time it was written.

Bug: 25813438
Change-Id: I11ab5b51182ed8da7af8fde468df065f9fdc3dad
/frameworks/base/core/java/android/app/usage/NetworkStats.java
05ae0feefcda2e4f60d6b4014bf6eee2d6448d1c 06-Jan-2016 Jeff Davidson <jpd@google.com> Define new APIs for metering and roaming network stats buckets.

These are analagous to the state buckets for tracking whether usage is
incurred while the app is in the foreground or background. We will
additionally track whether data usage is incurred over a metered or
unmetered network, and whether it is incurred over a roaming or native
network.

The APIs are not implemented in this CL; the existing buckets are
still returned with METERING_ALL and ROAMING_ALL to indicate that this
is not yet being tracked.

Bug: 25813438
Bug: 25813958
Change-Id: I76dd3dd063ed28ef5579ca3a978570532e7836bc
/frameworks/base/core/java/android/app/usage/NetworkStats.java
887cffea244c88ec06d9dbec1792f05eea87a7c6 13-Aug-2015 Zoltan Szatmary-Ban <szatmz@google.com> Remove uids with empty history from NetworkStats uid enumeration

Bug: 23018174
Change-Id: I1a482280599e0f5da18a208e727653d4bd4107ec
/frameworks/base/core/java/android/app/usage/NetworkStats.java
72027d2e424a94f002452d1e16310d00f3696d00 16-Jun-2015 Zoltan Szatmary-Ban <szatmz@google.com> Expose time-interval detail query on INetworkStatsSession

Also, force polling when a session is opened for NetworkStatsManager.

Bug: 21864554
Bug: 21754685
Change-Id: I24ea822c2d5bc1421ec7ee65d0cfe27cf02dd69e
/frameworks/base/core/java/android/app/usage/NetworkStats.java
df70dcee687977be90dc86a76537e5a669eb4e73 04-Jun-2015 Zoltan Szatmary-Ban <szatmz@google.com> Replace renamed reference to NetworkStats in javadoc

Bug: 21572680
Change-Id: Iad43af4d8a6d178f3396f23a74f1568e6faed311
/frameworks/base/core/java/android/app/usage/NetworkStats.java
381483b3a0ac416e02da058eb01ec683aa8ff9e1 13-May-2015 Zoltan Szatmary-Ban <szatmz@google.com> Rename NetworkUsageStats -> NetworkStats

Also making other changes to Data Usage API as requested by API review.

Bug: 20823478
Change-Id: Id766c5a725c856da9d8883d73ae788fc1472440a
/frameworks/base/core/java/android/app/usage/NetworkStats.java