Merge lp:~afrantzis/unity8/power-state-change-reason-snap-decision into lp:unity8

Proposed by Alexandros Frantzis on 2015-09-24
Status: Merged
Approved by: Lukáš Tinkl on 2015-09-30
Approved revision: 1989
Merged at revision: 1992
Proposed branch: lp:~afrantzis/unity8/power-state-change-reason-snap-decision
Merge into: lp:unity8
Diff against target: 25 lines (+3/-1)
2 files modified
plugins/Powerd/Powerd.h (+2/-0)
qml/Notifications/Notification.qml (+1/-1)
To merge this branch: bzr merge lp:~afrantzis/unity8/power-state-change-reason-snap-decision
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing on 2015-10-01
Lukáš Tinkl (community) 2015-09-24 Approve on 2015-09-30
Review via email: mp+272233@code.launchpad.net

Commit Message

Use power state change reason SnapDecision to turn screen on when a SnapDecision arrives

Using this value allows USC to handle proximity correctly for snap decision prompts.

Description of the Change

* Are there any related MPs required for this MP to build/function as expected? Please list.

https://code.launchpad.net/~afrantzis/unity-system-compositor/voice-call-proximity/+merge/272744

but this MP can be built and run without the USC changes fine, we just won't get the improved proximity handling.

 * 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?

n/a

 * If you changed the UI, has there been a design review?

n/a

To post a comment you must log in.
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:1988
http://jenkins.qa.ubuntu.com/job/unity8-ci/6381/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/4414
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-wily-touch/758
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1093
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-wily/411
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/988
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/989
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-amd64-ci/620
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-i386-ci/621
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-mako/3590
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4411
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4411/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/23763
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-wily-mako/455
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/758
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/758/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/23764

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6381/rebuild

review: Approve (continuous-integration)
Lukáš Tinkl (lukas-kde) wrote :

What about the "call_done" enum value that you introduced in https://code.launchpad.net/~afrantzis/unity-system-compositor/voice-call-proximity/+merge/272744? Shouldn't this be added here as well to avoid future breakage?

Otherwise the change looks good to me

review: Needs Information
Alexandros Frantzis (afrantzis) wrote :

Unity8 doesn't need to know about this value (at the moment), but I have no problem adding it if it's preferred to have fully synced enumerations.

Lukáš Tinkl (lukas-kde) wrote :

I would personally prefer these values to stay in sync

1989. By Alexandros Frantzis on 2015-09-30

Add power state change reason "CallDone" for enum completeness

Alexandros Frantzis (afrantzis) wrote :

> I would personally prefer these values to stay in sync

Fixed.

Lukáš Tinkl (lukas-kde) wrote :

LGTM

review: Approve
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:1989
http://jenkins.qa.ubuntu.com/job/unity8-ci/6388/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/4431
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-wily-touch/766
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1100
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-wily/418
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/995
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/996
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-amd64-ci/627
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-i386-ci/628
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-mako/3605
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4428
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4428/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/23799
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-wily-mako/461
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/766
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/766/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/23798

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6388/rebuild

review: Needs Fixing (continuous-integration)
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:1989
http://jenkins.qa.ubuntu.com/job/unity8-ci/6398/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/4458
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-wily-touch/777
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1110
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-wily/428
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1005
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1006
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-amd64-ci/637
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-i386-ci/638
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-mako/3625
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4455
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4455/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/23857
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-wily-mako/466
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/777
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/777/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/23859

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6398/rebuild

review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/Powerd/Powerd.h'
2--- plugins/Powerd/Powerd.h 2015-08-10 22:29:28 +0000
3+++ plugins/Powerd/Powerd.h 2015-09-30 12:23:25 +0000
4@@ -38,6 +38,8 @@
5 PowerKey = 2, // Display changed state due to user pressing power key
6 Proximity = 3, // Display changed state due to proximity events
7 Notification = 4, // Display changed state due to user notification
8+ SnapDecision = 5, // Display changed state due to snap decision prompt
9+ CallDone = 6, // Display changed state due to voice call end
10 };
11
12 enum Status {
13
14=== modified file 'qml/Notifications/Notification.qml'
15--- qml/Notifications/Notification.qml 2015-09-23 11:16:10 +0000
16+++ qml/Notifications/Notification.qml 2015-09-30 12:23:25 +0000
17@@ -90,7 +90,7 @@
18 // Turn on screen as needed (Powerd.Notification means the screen
19 // stays on for a shorter amount of time)
20 if (type == Notification.SnapDecision) {
21- Powerd.setStatus(Powerd.On, Powerd.Unknown);
22+ Powerd.setStatus(Powerd.On, Powerd.SnapDecision);
23 } else if (type != Notification.Confirmation) {
24 Powerd.setStatus(Powerd.On, Powerd.Notification);
25 }

Subscribers

People subscribed via source and target branches