summaryrefslogtreecommitdiffstats
path: root/core/java/android/net/NetworkIdentity.java
Commit message (Collapse)AuthorAgeFilesLines
* Combine network subtypes by default.Jeff Sharkey2012-03-161-6/+14
| | | | | | | | | Subtype controls (3G-vs-4G) aren't exposed in the UI, so tracking data with that granularity creates unnecessary overhead. For example, some GSM networks can regularly flap between two subtypes. Bug: 6118868 Change-Id: Id098891dba52336d00d0f96632a7924e228b4713
* Include roaming in NetworkIdentity.hashCode().Jeff Sharkey2011-12-161-1/+1
| | | | Change-Id: I148d95c8d08e3916a90fa78f7efee327d4b7de2a
* Data usage notifs, newly installed apps, defaults.Jeff Sharkey2011-07-171-1/+13
| | | | | | | | | | | | Only show warning/limit notifications for active networks, since they aren't actionable for inactive IMSI. Include IMSI in debug output on engineering builds. Move default policy warning to be configured through overlay. Watch for newly installed packages to enforce global policy. Bug: 5038729, 5038541, 4979026, 5023634 Change-Id: I8fc8ab4c23c440a3091504ea16133ed6ababf58e
* Teach NetworkIdentity about roaming.Jeff Sharkey2011-06-191-6/+17
| | | | | | | | And correctly upgrade NetworkIdentitySet written to disk, assuming that old values aren't roaming. Bug: 4724762 Change-Id: Ic25897ebbaf43be2390174d8e5fd08386bc8a345
* Handle removed UIDs in network stats and policy.Jeff Sharkey2011-06-191-3/+7
| | | | | | | | | | | | When UID_REMOVED, clean up any existing UID network policy so it doesn't linger for future apps. Also move any NetworkStatsHistory to special UID_REMOVED tracking bucket. Tests for new removal code. Also test detailed UID stats, including network changes to verify template matching logic. Bug: 4584212 Change-Id: I9faadf6b6f3830eb45d86c7f1980a27cdbcdb11e
* Read "qtaguid" network stats, refactor templates.Jeff Sharkey2011-06-181-0/+107
Teach NMS to read qtaguid stats from kernel, but fall back to older stats when kernel doesn't support. Add "tags" to NetworkStats entries to support qtaguid. To work around double-reporting bug, subtract tagged stats from TAG_NONE entry. Flesh out stronger NetworkTemplate. All NetworkStatsService requests now require a template, and moved matching logic into template. Record UID stats keyed on complete NetworkIdentitySet definition, similar to how interface stats are stored. Since previous UID stats didn't have iface breakdown, discard during file format upgrade. Change-Id: I0447b5e7d205d73d28e71c889c568e536e91b8e4