5 * @page protocol Protocol
6 * Here is a page with some descriptions about protocol explained
9 rpc killServer(ReqEmpty) returns (RspEmpty) {}
10 rpc findElement(ReqFindElement) returns (RspFindElement) {}
11 rpc getValue(ReqGetValue) returns (RspGetValue) {}
12 rpc setValue(ReqSetValue) returns (RspSetValue) {}
13 rpc getSize(ReqGetSize) returns (RspGetSize) {}
14 rpc clear(ReqClear) returns (RspClear) {}
15 rpc getAttribute(ReqGetAttribute) returns (RspGetAttribute) {}
16 rpc click(ReqClick) returns (RspClick) {}
17 rpc longClick(ReqClick) returns (RspClick) {}
18 rpc flick(ReqFlick) returns (RspFlick) {}
19 rpc touchDown(ReqTouchDown) returns (RspTouchDown) {}
20 rpc touchMove(ReqTouchMove) returns (RspTouchMove) {}
21 rpc touchUp(ReqTouchUp) returns (RspTouchUp) {}
22 rpc installApp(stream ReqInstallApp) returns (RspInstallApp) {}
23 rpc removeApp(ReqRemoveApp) returns (RspRemoveApp) {}
24 rpc getAppInfo(ReqGetAppInfo) returns (RspGetAppInfo) {}
25 rpc launchApp(ReqLaunchApp) returns (RspLaunchApp) {}
26 rpc closeApp(ReqCloseApp) returns (RspCloseApp) {}
27 rpc getDeviceTime(ReqGetDeviceTime) returns (RspGetDeviceTime) {}
28 rpc getLocation(ReqGetLocation) returns (RspGetLocation) {}
29 rpc sendKey(ReqKey) returns (RspKey) {}
30 rpc takeScreenshot(ReqTakeScreenshot) returns (stream RspTakeScreenshot) {}
31 rpc dumpObjectTree(ReqDumpObjectTree) returns (RspDumpObjectTree) {}
32 rpc getScreenSize(ReqGetScreenSize) returns (RspGetScreenSize) {}
35 // ------------------------------------ //
52 repeated Element child = 2;
55 Rect window_relative_geometry = 4;
57 string widget_type = 5;
58 string widget_style = 6;
61 string automationId = 9;
66 bool isCheckable = 13;
67 bool isClickable = 14;
70 bool isFocusable = 17;
71 bool isScrollable = 18;
76 bool isSelectable = 23;
96 // ------------------------------------ //
98 message ReqFindElement {
100 string elementId = 1;
103 oneof _automationid {
104 string automationId = 2;
108 string textField = 3;
112 string widgetType = 4;
116 string widgetStyle = 5;
128 bool isClickable = 8;
140 bool isFocusable = 11;
143 oneof _isscrollable {
144 bool isScrollable = 12;
148 bool isSelected = 13;
167 string packageName = 18;
170 repeated ReqFindElement children = 19;
172 message RspFindElement {
173 RspStatus status = 1;
174 repeated Element elements = 2;
177 // ------------------------------------ //
179 message ReqGetValue {
180 string elementId = 1;
181 // TODO : text, widgetstyle, widgettype, automationid
183 message RspGetValue {
184 RspStatus status = 1;
187 string stringValue = 3;
189 double doubleValue = 5;
194 message ReqSetValue {
195 string elementId = 1;
198 string stringValue = 3;
200 double doubleValue = 5;
204 message RspSetValue {
205 RspStatus status = 1;
214 string elementId = 2;
218 RspStatus status = 1;
223 string elementId = 1;
226 RspStatus status = 1;
229 message ReqGetAttribute {
244 string elementId = 1;
245 RequestType attribute = 2;
247 message RspGetAttribute {
248 RspStatus status = 1;
252 // ------------------------------------ //
260 RequestType type = 1;
262 string elementId = 2;
263 Point coordination = 3;
267 RspStatus status = 1;
271 Point startPoint = 1;
273 int32 durationMs = 3;
276 RspStatus status = 1;
279 message ReqTouchDown{
280 Point coordination = 1;
282 message RspTouchDown{
283 RspStatus status = 1;
287 message ReqTouchMove{
289 Point coordination = 2;
291 message RspTouchMove{
292 RspStatus status = 1;
297 Point coordination = 2;
300 RspStatus status = 1;
303 // ------------------------------------ //
305 message ReqInstallApp{
308 message RspInstallApp{
309 RspStatus status = 1;
312 message ReqRemoveApp{
313 string packageName = 1;
315 message RspRemoveApp{
316 RspStatus status = 1;
319 message ReqGetAppInfo{
320 string packageName = 1;
322 message RspGetAppInfo {
323 RspStatus status = 1;
324 bool isInstalled = 2;
329 message ReqLaunchApp{
330 string packageName = 1;
331 repeated LaunchData data = 2;
333 message RspLaunchApp{
334 RspStatus status = 1;
338 string packageName = 1;
341 RspStatus status = 1;
344 // ------------------------------------ //
346 message ReqGetDeviceTime{
353 message RspGetDeviceTime{
354 RspStatus status = 1;
355 int64 timestampUTC = 2;
356 string localeDatetime = 3;
359 message ReqGetLocation{
361 message RspGetLocation{
362 RspStatus status = 1;
387 KeyActionType actionType = 2;
389 //uint32 keyCode = 3;
390 string XF86keyCode = 4;
394 RspStatus status = 1;
397 message ReqTakeScreenshot{
399 message RspTakeScreenshot{
403 // ------------------------------------ //
410 // ------------------------------------ //
412 message ReqDumpObjectTree {
413 string elementId = 1;
416 message RspDumpObjectTree {
417 RspStatus status = 1;
418 repeated Element roots = 2;
421 message ReqGetScreenSize {
424 message RspGetScreenSize {
425 RspStatus status = 1;