Merge lp:~dandrader/unity8/app-state-handling into lp:unity8
| Status: | Merged |
|---|---|
| Approved by: | Albert Astals Cid on 2015-08-04 |
| Approved revision: | 1829 |
| Merged at revision: | 1901 |
| Proposed branch: | lp:~dandrader/unity8/app-state-handling |
| Merge into: | lp:unity8 |
| Prerequisite: | lp:~dandrader/unity8/autoInstallTouchRegistry |
| Diff against target: |
1115 lines (+468/-121) 22 files modified
CMakeLists.txt (+1/-1) debian/control (+1/-1) plugins/Greeter/Unity/Launcher/CMakeLists.txt (+0/-1) plugins/Unity/Launcher/CMakeLists.txt (+0/-1) qml/Components/Unity8Settings.qml (+50/-0) qml/OrientedShell.qml (+3/-3) qml/Shell.qml (+10/-12) qml/Stages/DesktopStage.qml (+13/-0) qml/Stages/PhoneStage.qml (+10/-0) qml/Stages/TabletStage.qml (+14/-0) tests/mocks/Unity/Application/ApplicationInfo.cpp (+40/-6) tests/mocks/Unity/Application/ApplicationInfo.h (+7/-0) tests/mocks/Unity/Application/ApplicationManager.cpp (+2/-49) tests/mocks/Unity/Application/ApplicationManager.h (+0/-7) tests/plugins/Greeter/Unity/Launcher/CMakeLists.txt (+0/-1) tests/plugins/Unity/Launcher/launchermodeltest.cpp (+3/-4) tests/qmltests/Stages/ApplicationCheckBox.qml (+21/-0) tests/qmltests/Stages/tst_DesktopStage.qml (+2/-2) tests/qmltests/Stages/tst_PhoneStage.qml (+75/-3) tests/qmltests/Stages/tst_TabletStage.qml (+161/-1) tests/qmltests/tst_OrientedShell.qml (+3/-3) tests/qmltests/tst_Shell.qml (+52/-26) |
| To merge this branch: | bzr merge lp:~dandrader/unity8/app-state-handling |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Albert Astals Cid (community) | Abstain on 2015-08-04 | ||
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-08-03 | |
| Gerry Boland | 2015-05-08 | Approve on 2015-07-22 | |
|
Review via email:
|
|||
Commit Message
Stages now control the "requestedState" property of applications
We now decide whether a application is suspended or not via the new Application.
Previously that was controlled by qtmir and tied to Application.focus. We don't want that anymore since it does not apply to a windowed usage mode scenario, for instance.
Description of the Change
This branch contains lp:~dandrader/unity8/fixOrientedShellTests and lp:~dandrader/unity8/fixShellTests since I cannot set multiple prerequisites
* Are there any related MPs required for this MP to build/function as expected? Please list.
https:/
https:/
This also has https:/
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
* Did you make sure that your branch does not contain spurious tags?
Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
Not applicable
* If you changed the UI, has there been a design review?
Not applicable
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1772
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
Text conflict in plugins/
Text conflict in plugins/
2 conflicts encountered.
| Daniel d'Andrada (dandrader) wrote : | # |
> Text conflict in plugins/
> Text conflict in plugins/
> 2 conflicts encountered.
Fixed.
| Gerry Boland (gerboland) wrote : | # |
Please update commit message to refer to "requestedState" instead of the old "active" application property.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1775
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Daniel d'Andrada (dandrader) wrote : | # |
> Please update commit message to refer to "requestedState" instead of the old
> "active" application property.
Done.
| Gerry Boland (gerboland) wrote : | # |
Bug:
via launcher, rapidly launch camera, webbrowser and contacts. When contacts finally appears, open spread: camera app is showing live preview, it should be suspended. Browser is also running. If you return to dash, the wakelock is not released (as other apps considered "running"
| Gerry Boland (gerboland) wrote : | # |
Bug: open camera app. Then open gallery. Tap the camera icon in the Gallery header. It should cause focus to switch to the camera app, but actually nothing happens
| Gerry Boland (gerboland) wrote : | # |
Bug (probably same as above, but reporting for completeness), if Settings app running, another app open and focused, open indicators and select "Battery Settings" menu option - nothing happens. Indicators should close and Settings app brought to front.
| Gerry Boland (gerboland) wrote : | # |
Bug: open system settings. Switch to dash. Via ssh, kill the system-settings process. Then switch to the system settings app in unity8. It should cause the process to be respawned, but it appears to do nothing.
| Gerry Boland (gerboland) wrote : | # |
Bug: launch camera, then immediately hit the power key to turn off the display. Camera app is not suspended. Wakelock is held.
| Daniel d'Andrada (dandrader) wrote : | # |
On 13/05/15 12:45, Gerry Boland wrote:
> Review: Needs Fixing
>
> Bug:
> via launcher, rapidly launch camera, webbrowser and contacts. When contacts finally appears, open spread: camera app is showing live preview, it should be suspended. Browser is also running. If you return to dash, the wakelock is not released (as other apps considered "running"
unity8 logic is sound and working fine in that case. Problem lies in
qtmir. Just realized how messy the relationship between application
state, session state and surface creation is. Man, this is going to take
some refactoring...
| Albert Astals Cid (aacid) wrote : | # |
Text conflict in tests/plugins/
Text conflict in tests/qmltests/
2 conflicts encountered.
| Daniel d'Andrada (dandrader) wrote : | # |
On 21/05/2015 09:04, Albert Astals Cid wrote:
> Text conflict in tests/plugins/
> Text conflict in tests/qmltests/
> 2 conflicts encountered.
>
Fixed.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1776
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Daniel d'Andrada (dandrader) wrote : | # |
On 13/05/15 12:45, Gerry Boland wrote:
> Review: Needs Fixing
>
> Bug:
> via launcher, rapidly launch camera, webbrowser and contacts. When contacts finally appears, open spread: camera app is showing live preview, it should be suspended. Browser is also running. If you return to dash, the wakelock is not released (as other apps considered "running"
Fixed.
| Daniel d'Andrada (dandrader) wrote : | # |
On 13/05/15 12:49, Gerry Boland wrote:
> Bug: open camera app. Then open gallery. Tap the camera icon in the Gallery header. It should cause focus to switch to the camera app, but actually nothing happens
Fixed in qtmir.
| Daniel d'Andrada (dandrader) wrote : | # |
On 13/05/15 13:11, Gerry Boland wrote:
> Bug (probably same as above, but reporting for completeness), if Settings app running, another app open and focused, open indicators and select "Battery Settings" menu option - nothing happens. Indicators should close and Settings app brought to front.
It is. Fixed in qtmir.
| Daniel d'Andrada (dandrader) wrote : | # |
On 13/05/15 13:16, Gerry Boland wrote:
> Review: Needs Fixing
>
> Bug: open system settings. Switch to dash. Via ssh, kill the system-settings process. Then switch to the system settings app in unity8. It should cause the process to be respawned, but it appears to do nothing.
Fixed.
| Daniel d'Andrada (dandrader) wrote : | # |
On 13/05/15 13:21, Gerry Boland wrote:
> Bug: launch camera, then immediately hit the power key to turn off the display. Camera app is not suspended. Wakelock is held.
Fixed.
| Daniel d'Andrada (dandrader) wrote : | # |
On 27/05/15 18:15, Daniel d'Andrada wrote:
> On 13/05/15 12:45, Gerry Boland wrote:
>> Review: Needs Fixing
>>
>> Bug:
>> via launcher, rapidly launch camera, webbrowser and contacts. When contacts finally appears, open spread: camera app is showing live preview, it should be suspended. Browser is also running. If you return to dash, the wakelock is not released (as other apps considered "running"
> Fixed.
>
Fixed in qtmir, to be more clear.
| Gerry Boland (gerboland) wrote : | # |
Pass 2 testing. Things much improved! Am still testing, but found this small issue:
Start dialer-app, let it load. Switch to Dash. Wait until dialer-app suspended. Kill it from command line. Then open spread and select Dialer app. There is a nasty flicker between the old snapshot disappearing & the resumed app's first frame.
| Daniel d'Andrada (dandrader) wrote : | # |
On 29/05/15 19:29, Gerry Boland wrote:
> Review: Needs Fixing
>
> Pass 2 testing. Things much improved! Am still testing, but found this small issue:
>
> Start dialer-app, let it load. Switch to Dash. Wait until dialer-app suspended. Kill it from command line. Then open spread and select Dialer app. There is a nasty flicker between the old snapshot disappearing & the resumed app's first frame.
>
>
Fixed in qtmir.
The flicker is the whole SpreadDelegate disappearing for a split second.
After spending 1.5 workdays on it I still don't know exactly how or why
it was happening. But at least I found that a simple and harmless change
in qtmir makes it go away (deferring respawning of the app to the next
event loop by using a queued connection instead of a direct one).
It was also pretty curious that a short right-edge swipe didn't exhibit
this issue.
| Lukáš Tinkl (lukas-kde) wrote : | # |
Added a clarification/
| Daniel d'Andrada (dandrader) wrote : | # |
> Added a clarification/
Updated the FIXME comment. Thanks.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1777
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1822
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
Text conflict in tests/qmltests/
1 conflicts encountered.
| Daniel d'Andrada (dandrader) wrote : | # |
On 23/06/15 04:34, Albert Astals Cid wrote:
> Text conflict in tests/qmltests/
> 1 conflicts encountered.
Fixed.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1823
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Gerry Boland (gerboland) wrote : | # |
Ok, tested on phone, tablet & desktop. Unable to find any regression, nice one.
| Gerry Boland (gerboland) wrote : | # |
I can't fault the code. Functional testing works well. AP tests pass here. Approve!
* Did you perform an exploratory manual test run of the code change and any related functionality?
Y
* Did CI run pass? If not, please explain why.
Depends on qtmir/unity-api change
* Did you make sure that the branch does not contain spurious tags?
Y
| Albert Astals Cid (aacid) wrote : | # |
Setting as needs fixing because of
Text conflict in qml/OrientedShe
Text conflict in tests/qmltests/
2 conflicts encountered.
Should top-approve again once re-merged
| Daniel d'Andrada (dandrader) wrote : | # |
On 06/07/15 04:20, Albert Astals Cid wrote:
> Review: Needs Fixing
>
> Setting as needs fixing because of
> Text conflict in qml/OrientedShe
> Text conflict in tests/qmltests/
> 2 conflicts encountered.
>
> Should top-approve again once re-merged
Fixed.
| Daniel d'Andrada (dandrader) wrote : | # |
> Need to depend on unity-api 7.98
Done.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1826
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Gerry Boland (gerboland) wrote : | # |
Please merge trunk, some conflicts have appeared
| Albert Astals Cid (aacid) wrote : | # |
Text conflict in plugins/
Text conflict in plugins/
Text conflict in qml/Shell.qml
Text conflict in qml/Stages/
Text conflict in tests/plugins/
Text conflict in tests/qmltests/
Was top approved before
- 1827. By Daniel d'Andrada on 2015-08-03
-
Merge trunk
[ CI Train Bot ]
* Resync trunk.
* allow opening the manage dash area by clicking with a mouse on the
arrow label (LP: #1431564)
* TouchRegistry: remove null candidates from list of candidates (LP:
#1473492)
[ Lukáš Tinkl ]
* Fix power dialogs on desktop
* Provide DBUS compatibility with various session services
(suspend/hibernate, lock/unlock, screensaver, etc)
* React on PrtScr keyboard shortcut for taking screenshots on desktop
(LP: #1474149)
* launcher parity: close apps from quicklist (LP: #1457201)
[ Michael Zanetti ]
* Implement first edition for a desktop Alt+Tab spread
* drop the gcc-4.9 dependency (LP: #1452348)
[ Mirco Müller ]
* Added corresponding tests and visual tweaks to a launcher-item's
progress-overlay.
* Added corresponding tests and visual tweaks to a launcher-item's
progress-overlay.
* Implemented alert/wiggle feature for launcher-icons.
* Implemented alert/wiggle feature for launcher-icons.
[ handsome_feng ]
* makes left swip reset the search string. (LP: #1413791)
[ handsome_feng<email address hidden> ]
* Don't expand indicators when tap to return to call. (LP: #1453217)
* makes left swip reset the search string. (LP: #1413791) - 1828. By Daniel d'Andrada on 2015-08-03
-
Remove stuff
- 1829. By Daniel d'Andrada on 2015-08-03
-
Update debian/control
| Daniel d'Andrada (dandrader) wrote : | # |
On 03/08/15 10:20, Albert Astals Cid wrote:
> Review: Needs Fixing
>
> Text conflict in plugins/
> Text conflict in plugins/
> Text conflict in qml/Shell.qml
> Text conflict in qml/Stages/
> Text conflict in tests/plugins/
> Text conflict in tests/qmltests/
>
> Was top approved before
Fixed.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1829
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://

FAILED: Continuous integration, rev:1771 jenkins. qa.ubuntu. com/job/ unity8- ci/5694/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 2692/console jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- vivid/859/ console jenkins. qa.ubuntu. com/job/ unity8- vivid-amd64- ci/859/ console jenkins. qa.ubuntu. com/job/ unity8- vivid-i386- ci/860/ console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 2690/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity8- ci/5694/ rebuild
http://