OSDN Git Service

Delay global alerts by 1s for high thresholds
authorChalard Jean <jchalard@google.com>
Wed, 22 Aug 2018 01:21:26 +0000 (10:21 +0900)
committerChalard Jean <jchalard@google.com>
Thu, 4 Oct 2018 01:30:43 +0000 (01:30 +0000)
commitd7c6e12baef2532888f7eab78ebaa2cb5ccd2e9e
tree94445acd57bfa7b9cab59548eed4a72ed6ebf8b6
parentb29e727b32ec93f3471a4adab4a67079c9fb4ad4
Delay global alerts by 1s for high thresholds

By skipping updates if an alert is already scheduled, this avoids firing
the global alert too often on devices with high transfer speeds and high
quota.

Test: with tethering watching videos. Also runtest frameworks-net
Bug: 117243748
Change-Id: Idce6059832db7a0e4a7117bbb3e424ec62ae3b21
services/core/java/com/android/server/net/NetworkStatsService.java