-
Committer:
CI Train Bot
-
Author(s):
Gerry Boland
-
Date:
2015-01-15 15:19:36 UTC
-
mfrom:
(296.2.23 acquire-wakelock)
-
Revision ID:
ci-train-bot@canonical.com-20150115151936-rrimwny1nz09h55l
Add Wakelock support - ensures device drops to deep-sleep mode only when all AppMan suspend tasks have completed
Implemented like so:
- SharedWakelock manages a single wakelock instance, allowing multiple owners to keep the wakelock enabled, only releasing it when all owners have released it.
- Wakelock operates by communicating with PowerD
- the Application class decides whether a wakelock is necessary, based on the process' lifecycle state.
- added a mighty bunch of tests Fixes: #1309915
Approved by: Michael Zanetti, PS Jenkins bot