OSDN Git Service

only rate limit notification updates
authorChris Wren <cwren@android.com>
Thu, 4 Aug 2016 15:24:42 +0000 (11:24 -0400)
committerChris Wren <cwren@android.com>
Thu, 4 Aug 2016 17:04:02 +0000 (17:04 +0000)
commita61f179c3d95e2b04b82dcc4ef824be1f6c4690a
tree9c5978ba61a9d3aa09c2405850c2a4b017f18149
parent3c2587f26eed32a8723488131d1d8940dc147ee1
only rate limit notification updates

Updates to progress bars are the main culprit in system
performance events caused by apps spamming the notification
service. Rate-limiting only updates allows us to set a lower
threshold wihtout the owrry of mistakenly dropping bursts of
notifications being quickly posted after a network sync.

Also reduce logspam caused by the rate-limit events.

Bug: 30132961
Change-Id: I49acda6a2831204da45e899ddd3d62d571d7174b
core/java/android/app/NotificationManager.java
services/core/java/com/android/server/notification/NotificationManagerService.java