OSDN Git Service

Zen: Create a new exit condition for "next alarm".
authorJohn Spurlock <jspurlock@google.com>
Mon, 3 Nov 2014 16:01:51 +0000 (11:01 -0500)
committerJohn Spurlock <jspurlock@google.com>
Wed, 5 Nov 2014 13:46:01 +0000 (08:46 -0500)
commit37bc92cc2332eb6f864977381135c19d6a081a92
treec563109a324acd911f3ca8b50e09c6090ef36772
parent18b055e106d5452ef390716d3ea8d1641a225361
Zen: Create a new exit condition for "next alarm".

- If the user's next alarm is in the next 12 hrs, provide
this as an exit condition trigger for leaving none/priority.
- Don't display the next alarm condition when downtime is active.
- When the next-alarm exit condition is active, follow changes
to the next alarm, assuming it remains within the 12-hr window.
- Tweak the downtime condition strings to be consistent.

Bug: 16373455
Change-Id: I4020b91d323dead998e62d655132eca07438b148
core/java/android/service/notification/ZenModeConfig.java
core/res/res/values/config.xml
core/res/res/values/strings.xml
core/res/res/values/symbols.xml
packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
services/core/java/com/android/server/notification/ConditionProviders.java
services/core/java/com/android/server/notification/DowntimeConditionProvider.java
services/core/java/com/android/server/notification/NextAlarmConditionProvider.java [new file with mode: 0644]