Merge lp://staging/~gerboland/qtmir/RTM-fix-lifecycle-exempt-keeps-wakelock into lp://staging/qtmir/rtm-14.09
Proposed by
Gerry Boland
Status: | Merged |
---|---|
Approved by: | Albert Astals Cid |
Approved revision: | 301 |
Merged at revision: | 295 |
Proposed branch: | lp://staging/~gerboland/qtmir/RTM-fix-lifecycle-exempt-keeps-wakelock |
Merge into: | lp://staging/qtmir/rtm-14.09 |
Diff against target: |
1184 lines (+653/-249) 15 files modified
debian/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) |
To merge this branch: | bzr merge lp://staging/~gerboland/qtmir/RTM-fix-lifecycle-exempt-keeps-wakelock |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Albert Astals Cid (community) | Approve | ||
Gerry Boland (community) | Abstain | ||
Review via email:
|
Commit message
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
To post a comment you must log in.
2 wakelocks somehow acquired with this by the Music app, something wrong