diff options
author | John Spurlock <jspurlock@google.com> | 2014-09-14 15:39:13 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2014-09-15 15:35:56 -0400 |
commit | 190d026167401ed593924dd12ab6e134e2d08e94 (patch) | |
tree | 87ee5d9b670b09a4203846090e2508f665d01aa3 /packages/SystemUI/res | |
parent | 7ca1161e302ea415a2f4696514967f126dfa86fa (diff) | |
download | frameworks_base-190d026167401ed593924dd12ab6e134e2d08e94.zip frameworks_base-190d026167401ed593924dd12ab6e134e2d08e94.tar.gz frameworks_base-190d026167401ed593924dd12ab6e134e2d08e94.tar.bz2 |
Doze: Aggressively dial down notification-related pulses.
When dozing and buzz-worthy notifications arrive, don't follow
the LED logic with periodic pulses.
Instead, follow a simple decay schedule after the initial arrival,
pulsing only at 10s, 30s, 60s, and 120s.
The schedule is reset when a new notification arrives, but only
for the first three times, until either the pickup sensor is
triggered or the device exits doze.
Also:
- Make the notification trigger configurable.
- Centralize existing sysprop configuration into DozeParameters.
- Decouple vibration from debugging, make separately configurable.
- Remove "delayed" pulse concept, fold into new schedule.
Bug:17496795
Change-Id: I64fc1c862bcfa1c288a4fd91c9d17e3bff245add
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r-- | packages/SystemUI/res/values/config.xml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml index cc77aaa..dd81e69 100644 --- a/packages/SystemUI/res/values/config.xml +++ b/packages/SystemUI/res/values/config.xml @@ -188,9 +188,14 @@ <!-- Doze: should the pickup sensor be used as a pulse signal? --> <bool name="doze_pulse_on_pick_up">false</bool> - <!-- Doze: period of time between pulses (start of pulse) when following the notification light - Format: <under_ms>:<period_ms>,...,<default_ms> --> - <string name="doze_pulse_period_function">60000:10000,300000:30000,1800000:60000,0</string> + <!-- Doze: should notifications be used as a pulse signal? --> + <bool name="doze_pulse_on_notifications">true</bool> + + <!-- Doze: when to pulse after a buzzworthy notification arrives --> + <string name="doze_pulse_schedule">1s,10s,30s,60s,120s</string> + + <!-- Doze: maximum number of times the notification pulse schedule can be reset --> + <integer name="doze_pulse_schedule_resets">3</integer> <!-- Doze: pulse parameter - how long does it take to fade in? --> <integer name="doze_pulse_duration_in">1000</integer> @@ -201,9 +206,6 @@ <!-- Doze: pulse parameter - how long does it take to fade out? --> <integer name="doze_pulse_duration_out">1000</integer> - <!-- Doze: pulse parameter - how long to wait before pulsing (if not starting immediately) --> - <integer name="doze_pulse_delay">1000</integer> - <!-- Doze: alpha to apply to small icons when dozing --> <integer name="doze_small_icon_alpha">222</integer><!-- 87% of 0xff --> |