OSDN Git Service

Rate limit notification sounds/vibrations
authorJulia Reynolds <juliacr@google.com>
Mon, 19 Jun 2017 12:16:04 +0000 (08:16 -0400)
committerJulia Reynolds <juliacr@google.com>
Mon, 10 Jul 2017 16:46:53 +0000 (12:46 -0400)
commit3ff26d2739261a320c308d30cf4719979f49b314
treede176163291af34f2a2accf0ac2347b2ea7b5142
parent34149bad4eac7eca3793cb4859f6387fe5cee431
Rate limit notification sounds/vibrations

1 alert per second.

Bug: 36662487
Test: runtest systemui-notification
Change-Id: I42c2342c7ccb86f5912d729c7c2a0074f3000ad2
services/core/java/com/android/server/notification/AlertRateLimiter.java
services/core/java/com/android/server/notification/NotificationUsageStats.java
services/tests/notification/src/com/android/server/notification/AlertRateLimiterTest.java
services/tests/notification/src/com/android/server/notification/NotificationManagerServiceTest.java