OSDN Git Service

Add granular control over disabled effects.
authorBryce Lee <brycelee@google.com>
Fri, 8 Apr 2016 17:54:23 +0000 (10:54 -0700)
committerBryce Lee <brycelee@google.com>
Fri, 8 Apr 2016 17:54:23 +0000 (10:54 -0700)
commit7219adadb05d916874e7edff553dfc34bccf94ef
tree723c515df700879769e18c3e3a7061788385ce52
parent50a2d43bffedd578d4e54d69440733edbc6990cd
Add granular control over disabled effects.

Currently, we can only wholesale disable effects outside of zen mode.
There are some devices that require long running suppression of features.
Effects disabling was added previously to support this. However, calling
suppression was broken recently on a device where we needed notification
suppression, but not calling suppression.

This CL remedies this problem by adding more granular disabled effects
hints. The NotificationManagerService has been updated to handle these
request types and present ZenModeHelper with a unified map of what should
be suppressed.

Bug: 27992763
Change-Id: I38b4706446dfd6e1c3eb97266dbc3332b250adda
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/service/notification/NotificationListenerService.java
services/core/java/com/android/server/notification/NotificationManagerService.java
services/core/java/com/android/server/notification/ZenLog.java
services/core/java/com/android/server/notification/ZenModeHelper.java