3 Precondition for all test is, that the D-Bus session is launched:
6 ---------------------------------------------------------------------------------------------------------------------
11 <signal name="dayNightMode">
12 <arg name="mode" type="i" direction="out"/>
16 - HomeScreen app is running
19 no command line test available right now
21 ---------------------------------------------------------------------------------------------------------------------
26 <method name="hardKeyPressed">
27 <arg name="key" type="i" direction="in"/> <!-- using the inputevent.hpp InputEvent::HardKey type -->
31 - HomeScreen app is running
34 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /HomeScreen org.agl.homescreen.hardKeyPressed int32:0
37 <method name="setToFullscreen">
38 <arg name="pid" type="i" direction="in"/>
41 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /HomeScreen org.agl.homescreen.setToFullscreen int32:0
43 ---------------------------------------------------------------------------------------------------------------------
48 <method name="showPopup">
49 <arg name="type" type="i" direction="in"/>
50 <arg name="text" type="s" direction="in"/>
54 - HomeScreen app is running
57 $dbus-send --session --type=method_call --dest=org.agl.homescreen /Popup org.agl.popup.showPopup int32:1 string:"TEST"
60 <method name="showPopupComboBox">
61 <arg name="text" type="s" direction="in"/>
62 <arg name="choices" type="as" direction="in"/>
66 - HomeScreen app is running
69 $dbus-send --session --type=method_call --dest=org.agl.homescreen /Popup org.agl.popup.showPopupComboBox string:"TEST" array:string:"test1","test2"
71 ---------------------------------------------------------------------------------------------------------------------
76 <method name="setObjectDetected">
77 <arg name="detected" type="b" direction="in"/>
81 - HomeScreen app is running
84 $dbus-send --session --type=method_call --dest=org.agl.homescreen /Proximity org.agl.proximity.setObjectDetected boolean:true
86 ---------------------------------------------------------------------------------------------------------------------
91 <method name="getAvailablePlaceholders">
92 <arg name="placeholderIndexes" type="ai" direction="out"/>
93 <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList<int>"/>
97 - HomeScreen app is running
100 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getAvailablePlaceholders
103 <method name="getStatusText">
104 <arg name="placeholderIndex" type="i" direction="in"/>
105 <arg name="text" type="s" direction="out"/>
109 - HomeScreen app is running
112 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusText int32:1
115 <method name="getStatusIcon">
116 <arg name="placeholderIndex" type="i" direction="in"/>
117 <arg name="iconURI" type="s" direction="out"/>
121 - HomeScreen app is running
124 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusIcon int32:1
127 <method name="setStatusText">
128 <arg name="placeholderIndex" type="i" direction="in"/>
129 <arg name="text" type="s" direction="in"/>
133 - HomeScreen app is running
136 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.setStatusText int32:1 string:"Test1"
139 <method name="setStatusIcon">
140 <arg name="placeholderIndex" type="i" direction="in"/>
141 <arg name="iconURI" type="s" direction="in"/>
145 - HomeScreen app is running
148 $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>"