blob: 428b1cae445c98e874b4c163e9acbf5c5b79f3db (
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
Command line tests
Precondition for all test is, that the D-Bus session is launched:
$export `dbus-launch`
---------------------------------------------------------------------------------------------------------------------
Interface:
org.agl.daynightmode
Signal:
<signal name="dayNightMode">
<arg name="mode" type="i" direction="out"/>
</signal>
Preconditions:
- HomeScreen app is running
Test:
no command line test available right now
---------------------------------------------------------------------------------------------------------------------
Interface:
org.agl.homescreen
Method:
<method name="hardKeyPressed">
<arg name="key" type="i" direction="in"/> <!-- using the inputevent.hpp InputEvent::HardKey type -->
</method>
Preconditions:
- HomeScreen app is running
Test:
$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /HomeScreen org.agl.homescreen.hardKeyPressed int32:0
Method:
<method name="setToFullscreen">
<arg name="pid" type="i" direction="in"/>
</method>
$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /HomeScreen org.agl.homescreen.setToFullscreen int32:0
---------------------------------------------------------------------------------------------------------------------
Interface:
org.agl.popup
Method:
<method name="showPopup">
<arg name="type" type="i" direction="in"/>
<arg name="text" type="s" direction="in"/>
</method>
Preconditions:
- HomeScreen app is running
Test:
$dbus-send --session --type=method_call --dest=org.agl.homescreen /Popup org.agl.popup.showPopup int32:1 string:"TEST"
Method:
<method name="showPopupComboBox">
<arg name="text" type="s" direction="in"/>
<arg name="choices" type="as" direction="in"/>
</method>
Preconditions:
- HomeScreen app is running
Test:
$dbus-send --session --type=method_call --dest=org.agl.homescreen /Popup org.agl.popup.showPopupComboBox string:"TEST" array:string:"test1","test2"
---------------------------------------------------------------------------------------------------------------------
Interface:
org.agl.proximity
Method:
<method name="setObjectDetected">
<arg name="detected" type="b" direction="in"/>
</method>
Preconditions:
- HomeScreen app is running
Test:
$dbus-send --session --type=method_call --dest=org.agl.homescreen /Proximity org.agl.proximity.setObjectDetected boolean:true
---------------------------------------------------------------------------------------------------------------------
Interface:
org.agl.statusbar
Method:
<method name="getAvailablePlaceholders">
<arg name="placeholderIndexes" type="ai" direction="out"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList<int>"/>
</method>
Preconditions:
- HomeScreen app is running
Test:
$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getAvailablePlaceholders
Method:
<method name="getStatusText">
<arg name="placeholderIndex" type="i" direction="in"/>
<arg name="text" type="s" direction="out"/>
</method>
Preconditions:
- HomeScreen app is running
Test:
$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusText int32:1
Method:
<method name="getStatusIcon">
<arg name="placeholderIndex" type="i" direction="in"/>
<arg name="iconURI" type="s" direction="out"/>
</method>
Preconditions:
- HomeScreen app is running
Test:
$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusIcon int32:1
Method:
<method name="setStatusText">
<arg name="placeholderIndex" type="i" direction="in"/>
<arg name="text" type="s" direction="in"/>
</method>
Preconditions:
- HomeScreen app is running
Test:
$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.setStatusText int32:1 string:"Test1"
Method:
<method name="setStatusIcon">
<arg name="placeholderIndex" type="i" direction="in"/>
<arg name="iconURI" type="s" direction="in"/>
</method>
Preconditions:
- HomeScreen app is running
Test:
$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.setStatusIcon int32:1 string:"<path to png file here>"
|