lp:~gerboland/qtmir/RTM-fix-lifecycle-exempt-keeps-wakelock
- Get this branch:
- bzr branch lp:~gerboland/qtmir/RTM-fix-lifecycle-exempt-keeps-wakelock
Branch merges
- Albert Astals Cid (community): Approve
- Gerry Boland (community): Abstain
-
Diff: 1184 lines (+653/-249)15 files modifieddebian/control (+2/-0)
src/common/abstractdbusservicemonitor.cpp (+2/-3)
src/common/abstractdbusservicemonitor.h (+1/-7)
src/modules/Unity/Application/Application.pro (+1/-1)
src/modules/Unity/Application/application.cpp (+3/-1)
src/modules/Unity/Application/application_manager.cpp (+5/-2)
src/modules/Unity/Application/sharedwakelock.cpp (+120/-57)
src/modules/Unity/Application/sharedwakelock.h (+14/-9)
tests/modules/Application/application_test.cpp (+7/-7)
tests/modules/ApplicationManager/application_manager_test.cpp (+78/-0)
tests/modules/SharedWakelock/SharedWakelock.pro (+11/-0)
tests/modules/SharedWakelock/sharedwakelock_test.cpp (+365/-146)
tests/modules/common/common.pri (+2/-1)
tests/modules/common/mock_shared_wakelock.h (+41/-14)
tests/modules/modules.pro (+1/-1)
Related bugs
Related blueprints
Branch information
Recent revisions
- 298. By Gerry Boland
-
Fix acquire(), release(), acquire() being called in quick succession, and only after do 2 cookies get sent from dbus
- 297. By Gerry Boland
-
Refactor wakelock handling. Lifecycle exempt apps now release wakelock when shell tries to suspend them
The previous Wakelock RAII design was faulty as it was wrapping an asynchronous service. It made it possible for wakelocks to be acquired and not be released.
This refactors SharedWakelock to hold a single instance of Wakelock, and Wakelock always holds a DBus connection.
Testing now includes testing the DBus calls are actually emitted.
Adds dependency on libqtdbusmock1-dev and libqtdbustest1-dev
- 293. By Łukasz Zemczak
-
[ Gerry Boland ]
* Add Wakelock support - ensures device drops to deep-sleep mode only
when all AppMan suspend tasks have completed (LP: #1309915)
[ Ricardo Mendoza ]
* Reduce suspend timeout to half of the previous value because the
long value was too apparent on fast paced apps, like web games of
music players; it broke the user experience according to design.
(LP: #1402650)
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:qtmir