blob: 45718028a0cc9fd524c68eb8a61674d26cf87371 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
Command line tests
Precondition for all test is, that the D-Bus session is launched:
$export `dbus-launch`
---------------------------------------------------------------------------------------------------------------------
Interface:
org.agl.windowmanager
dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.freedesktop.DBus.Properties.GetAll string:"org.agl.windowmanager"
dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.freedesktop.DBus.Properties.Get string:"org.agl.windowmanager" string:"homeScreenPid"
dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.freedesktop.DBus.Properties.Set string:"org.agl.windowmanager" string:"homeScreenPid" variant:int32:1
Method:
<method name="addLayout">
<arg name="layoutId" type="i" direction="in"/>
<arg name="layoutName" type="s" direction="in"/>
<arg name="surfaceAreas" type="a(iiii)" direction="in"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QList<SimpleRect>"/>
<arg name="error" type="i" direction="out"/>
</method>
Preconditions:
- WindowManager app is running
Test:
it is not possible to send isa(iiii) via the dbus-send tool.
Method:
<method name="getAvailableLayouts">
<arg name="numberOfAppSurfaces" type="i" direction="in"/>
<arg name="layoutIds" type="ai" direction="out"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList<int>"/>
</method>
Preconditions:
- HomeScreen app is running
- WindowManager app is running
Test:
$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.getAvailableLayouts int32:1
Method:
<method name="setLayoutById">
<arg name="layoutId" type="i" direction="in"/>
</method>
Preconditions:
- HomeScreen app is running
- WindowManager app is running
Test:
$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.setLayoutById int32:1
Method:
<method name="setLayoutByName">
<arg name="layoutName" type="s" direction="in"/>
</method>
Preconditions:
- HomeScreen app is running
- WindowManager app is running
Test:
$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.setLayoutByName string:"name"
Method:
<method name="getLayout">
<arg name="layoutId" type="i" direction="out"/>
</method>
Preconditions:
- HomeScreen app is running
- WindowManager app is running
Test:
$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.getLayout
Method:
<method name="setPidToLayoutArea">
<arg name="pid" type="i" direction="in"/>
<arg name="layoutAreaId" type="i" direction="in"/>
</method>
Preconditions:
- HomeScreen app is running
- WindowManager app is running
Test:
$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.setPidToLayoutArea int32:1123 int32:1
Method:
<method name="getAvailableSurfaces">
<arg name="surfacesAndPids" type="a(ii)" direction="out"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList<SimplePoint>"/>
</method>
Preconditions:
- HomeScreen app is running
- WindowManager app is running
Test:
$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.getAvailableSurfaces
Method:
<method name="getLayoutName">
<arg name="layoutId" type="i" direction="in"/>
<arg name="layoutName" type="s" direction="out"/>
</method>
Preconditions:
- HomeScreen app is running
- WindowManager app is running
Test:
$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.getLayoutName int32:1
|