diff options
author | John Spurlock <jspurlock@google.com> | 2014-09-10 10:40:49 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2014-09-11 14:25:11 -0400 |
commit | d06aa570374ecfe5c707140a12a309b1b7c07e08 (patch) | |
tree | 10a9a3a54db44b5b7d2b1be0c5faf557f5b47c0c /packages/SystemUI/res | |
parent | 0ecb0c4397445984a5c5db4c31f1210fb9b594a1 (diff) | |
download | frameworks_base-d06aa570374ecfe5c707140a12a309b1b7c07e08.zip frameworks_base-d06aa570374ecfe5c707140a12a309b1b7c07e08.tar.gz frameworks_base-d06aa570374ecfe5c707140a12a309b1b7c07e08.tar.bz2 |
Doze: Introduce a pulse period function.
Instead of pulsing every 30 seconds to mimic the LED, use
a function that pulses more frequently for new notifications,
decaying to a slower pulse, and eventually stopping.
Specifically, the step function for the interval is:
- 10 seconds for the first minute
- then 30 seconds until the five minute mark
- then 60 seconds until the 30 minute mark
- then no pulsing at all
- Since we pulse more frequently on new notifications, remove
the "multi-pulse" concept.
- Move all doze-related duration parameters to a new helper,
backed by config, overridable by sysprops, include in dump.
- Wake up from dozing when hitting volume keys during a pulse.
-
Bug:17393939
Change-Id: Ica86f08b25c738338fced165c77faf3dfccd0343
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r-- | packages/SystemUI/res/values/config.xml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml index 5a1c318..f899572 100644 --- a/packages/SystemUI/res/values/config.xml +++ b/packages/SystemUI/res/values/config.xml @@ -191,11 +191,21 @@ <!-- Doze: maximum brightness to use when pulsing --> <integer name="doze_pulse_brightness">40</integer> - <!-- Doze: number of pulses when doing multiple pulses in quick succession --> - <integer name="doze_multipulse_count">3</integer> + <!-- 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: interval between pulses when following the notification light --> - <integer name="doze_notification_pulse_interval">30000</integer> + <!-- Doze: pulse parameter - how long does it take to fade in? --> + <integer name="doze_pulse_duration_in">1000</integer> + + <!-- Doze: pulse parameter - once faded in, how long does it stay visible? --> + <integer name="doze_pulse_duration_visible">3000</integer> + + <!-- 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 --> |