History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
621afac810e83e13a131c6f8db2658edd0347208 03-Dec-2014 John Spurlock <jspurlock@google.com> Doze: Don't block pickup pulses on a proximity check.

Pulse immediately, assuming the pickup sensor will not fire
if prox=near. Perform a non-blocking additional proximity check
in these cases purely to collect verification diagnostics.

Also tweak the interpolator for pickup pulses to ramp up more
quickly.

Bug: 18373928
Change-Id: I8607f4b37435722e293db741c273914183cec7be
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
f5d250deecc4ce79ef8a74f1c4eb76e268556115 02-Dec-2014 John Spurlock <jspurlock@google.com> Doze: Fast path for pickup pulses.

Decrease the pulse duration when pulsing for pickup.
Add an option to skip the proximity check entirely, but don't
turn it on yet.

Bug: 18373928
Change-Id: I54f8dee004229193a18d488759bf797a16470cab
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
27ef018846fc88122bcb2c30ba86e99a5b3039d6 02-Dec-2014 Christoph Studer <chstuder@google.com> Merge "NoMan/SysUI: Clear LEDs only when entering the shade" into lmp-mr1-dev
1f32c65697c22f423c2888cf4c53da1c95d602c1 26-Nov-2014 Christoph Studer <chstuder@google.com> NoMan/SysUI: Clear LEDs only when entering the shade

Don't clear notification LEDs when seeing notifications on the
lockscreen.

Also fix a bug where the LED didn't continue flashing after
the screen turned off.

For devices with doze capability, ensure that the LED continuing
to flash after screen off doesn't cause an immediate pulses, but
delay the first pulse by 10s.

Bug: 15449039
Change-Id: Id34d51a2c91ceaf069e49add1ab690bb855f9638
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
eab28e660223b6e02f2fbd8dc31c8bde3ce5b22d 29-Nov-2014 John Spurlock <jspurlock@google.com> Doze: Break out proxcheck stats by pulse reason.

Enumerate all possible reasons for doze pulses, and subdivide
the proxcheck stats (near/far) by reason. Include reason in
doze log when starting a pulse.

Bug: 18373928
Change-Id: I4ebc2df082f51d47e3b2f0cb3999faeb582ef8dc
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
686e4d57d8679ad4759ce872181294444a324638 21-Nov-2014 John Spurlock <jspurlock@google.com> Doze: Make proximity check configurable.

Default to true, but make it available for overlay or setting
at runtime.

Bug: 18373928
Change-Id: I6abc1924ea0f03620f4683dc055f64ede5782809
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
78503734837062306099460a61eb36646099fedd 10-Nov-2014 John Spurlock <jspurlock@google.com> Doze: Fix trigger sensor re-registration.

Bug: 17541271
Change-Id: I3f19f86165dd4e3677af5ed354e4fc120f9bb407
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
92b8d410966b5b1599c44440112ee4cecb04fe1e 03-Oct-2014 John Spurlock <jspurlock@google.com> Doze: Avoid pulsing in pockets.

Query for the current proximity value before starting a pulse.
If a "near" value is returned, skip the entire pulse.

Bug: 17350239
Change-Id: Ib930d84b163c8e54b7be5d1c975e547692f8529f
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
870f153583d069fb2dea6b36c71173d60b6e59a1 26-Sep-2014 John Spurlock <jspurlock@google.com> Avoid dozing in car mode.

Ensure we do not begin dozing in car mode, and end dozing when
entering car mode.

Bug:17658724
Change-Id: I572b0d6163d2ece3b93d86981fd6cad832f96b99
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
a273924b8c47c9b1d5f74ae82a594451514ba5dd 23-Sep-2014 Jeff Brown <jeffbrown@google.com> Ensure wakelock is released unconditionally.

Bug: 17610254
Change-Id: I8b846c867edaa5038e34d4c857550735b121a1d9
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
4d69e2219390bce567b0d2c986d0bd3a3182eda5 19-Sep-2014 Jeff Brown <jeffbrown@google.com> Fix order of operations while pulsing the ambient display.

This change fixes several issues in how the display's power state
was coordinated to ensure that the display is not turned on until
the pulse is ready to be shown. It also greatly simplifies the
wakelock logic and makes it completely deterministic instead of
relying on timed delays.

Bug: 17516245
Change-Id: If2b96845a010f2d05c610970257d898f32ccacb7
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
813552cc27cbeac366166cdda82fd813c8458bbf 19-Sep-2014 John Spurlock <jspurlock@google.com> When dozing, re-enable falsing threshold and log events.

- Reactivate our configured keyguard falsing swipe threshold
for secure keyguards, but only when dozing.
- Add DozeLog helper to capture/maintain interesting events
about the doze + unlock process, enabled by default, but
only on devices that start dozing at least once.
- Dump summary counts + logged events to dumpsys output.
- Pass notification pulse "instance" as an extra to the scheduled
intent, so we can log accordingly.

Bug:17496795
Change-Id: I7e88f93bfc967bdc06550cf1fe5e74d535edd774
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
50a8ea6ec2a41cee05d1509f10c795d6b3bb90a8 16-Sep-2014 John Spurlock <jspurlock@google.com> Doze: Workaround vibration-related pickup gestures.

Ensure the pickup is registered a safe period of time after the
last notification before resetting the notification pulse schedule.

Bug:17496795
Change-Id: I0edc9bcbdf078cbf55df5935744a3eee7e902b5d
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
190d026167401ed593924dd12ab6e134e2d08e94 14-Sep-2014 John Spurlock <jspurlock@google.com> 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
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
2175e9c366998ed7bd1a4501b94a02f4f49b932c 13-Sep-2014 Jeff Brown <jeffbrown@google.com> Add support for dozing after screen off.

On some devices, we want the screen off transition to complete before
we start dozing. Added a new config.xml attribute config_dozeAfterScreenOff
to configure this behavior.

Defer starting dreams until the display is ready.

Fixed some minor issues in the system UI doze service when setting the
display state.

Bug: 16187655
Change-Id: Ib1bc60de5457166f4b4880732db5df989dda67a4
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
f50dc4993f23b02bcdc3a8569458f81879ff4d7c 11-Sep-2014 John Spurlock <jspurlock@google.com> Doze: Use configured doze brightness when pulsing.

Use the framework doze brightness configured for this device
when pulsing, instead of a separately configured value.

Bug:17409425
Change-Id: Icadc00d6c20909375d4ab726ec254dbafd997ead
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
d06aa570374ecfe5c707140a12a309b1b7c07e08 10-Sep-2014 John Spurlock <jspurlock@google.com> 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
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
c6eed84855e63ef023b83116eb95185816dcba5f 25-Aug-2014 John Spurlock <jspurlock@google.com> Doze: Only doze as owner.

The SystemUI notification doze implementation needs to run in the
main systemui process.

Bug:16900344
Change-Id: I8b21609087a4bb971bff36fb463eb2482190cd8f
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
d96179e02d157af92769e5c4adf584f05063b194 21-Aug-2014 John Spurlock <jspurlock@google.com> Don't do ambient display when in power-conservation mode.

Finish SystemUI's doze dream early when we enter saver mode.

Bug:17164834
Change-Id: I79153be34da8c4b6447acf5dc9f93364906b2bab
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
559d959b99f4daafc8befb2d9a8f2d85d771bf49 09-Aug-2014 John Spurlock <jspurlock@google.com> Doze: Pulse once when a pickup gesture is received.

- If configured, wire up the default sensor of TYPE_PICK_UP_GESTURE
as a signal to pulse (once) when dozing.
- Extend the duration that a pulse is visible.
- Skip the pre-pulse delay for the sensor signals.

Bug:15863249
Change-Id: I70e39fc5626fef5570ef74464c919427e0721c32
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
cb566aab57cafb69c628809fc0a0ffa2151c7d6e 04-Aug-2014 John Spurlock <jspurlock@google.com> Doze: Follow the notification light.

- Send the notification light info up to SystemUI from NoMan.
- Doze mode will now periodically pulse the display (once)
if the notification light is active.
- Change "tease" terminology to "pulse", which is the singular.
Maintain the multi-pulse on buzz-beep-blink for now as extra
emphasis.
- Scrim controller now always takes number of pulses as an arg,
to support a single pulse (used for notification light, and
eventually pickup once available).
- Dial down the display brightness when pulsing.

Bug:15863249
Change-Id: Ifb208a27e82b66cff1d0c04e5b7f758098ea29cf
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
13c726795fd30788057dffe7c57b0b202fafd907 27-Jul-2014 Jeff Brown <jeffbrown@google.com> Merge "Remove DozeHardware since it will not be used." into lmp-dev
0f208eb707926f0afc1ce073be866bedd4955aa2 27-Jul-2014 Jeff Brown <jeffbrown@google.com> Remove DozeHardware since it will not be used.

Bug: 16516536
Change-Id: I14597d3c9470c94e3bc5b8cff500d2fe6b2fd977
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
cad5768e22e5132efb2e5179f4988a763c7a8d9e 26-Jul-2014 John Spurlock <jspurlock@google.com> Doze: Update tease signal to buzz-beep-blink from NoMan.

Inform SystemUI when NoMan buzzes, beeps or blinks. Use that
as the notification signal when dozing instead of trying to figure
out interesting panel content updates.

At some point, we should move the entire calculation up into SystemUI
itself, but that's too large of a refactoring to perform now.

Bug:15863249
Change-Id: I40e92334977e0676a1363774c2cbbf91d72ec8e5
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
ed69bd661f5152cdcb2d8359efb592234a45fc49 23-Jul-2014 John Spurlock <jspurlock@google.com> Doze: Manage screen state + brightness when teasing.

Bug:15863249
Change-Id: I2e9574afd58594d1895777024529e90815c66913
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
6612727c18fe6e7b6edf811f3a1a871a710c0ebe 28-Jun-2014 John Spurlock <jspurlock@google.com> Doze: allow devices to opt-out of sigmotion trigger.

For devices with unreliable significant motion sensors, allow
the tease signal to be disabled via device config.

Also add doze state to dream service dumpsys.

Bug:15863249
Change-Id: I23eeec09c69cc3bd43b187e49555391ac0a99d9f
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java
bf370992508c55d1f2493923bdc1834a0710e4ba 17-Jun-2014 John Spurlock <jspurlock@google.com> Create a basic doze dream in SystemUI.

The doze dream is not configured by default.

When configured, the doze dream does not show anything by default.
It teases a dark version of the keyguard (showing only the time
and notifications) when a notification arrives or significant motion
is detected.

Bug:15863249
Change-Id: Icfceb054d35d6fd4d9178eda7480e2464873ca4b
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeService.java