docs: update aurum.proto for tutorial guide 41/292741/1
authorHosang Kim <hosang12.kim@samsung.com>
Fri, 12 May 2023 06:23:10 +0000 (15:23 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Fri, 12 May 2023 06:23:10 +0000 (15:23 +0900)
Change-Id: Idcc0825ba9feb6d62a4d75e2560ae042b4db5da3

docs/protocol/aurum.proto

index 9e4a42a..d929d4d 100644 (file)
@@ -37,6 +37,8 @@ service Bootstrap {
    rpc enableScreenAnalyzer(ReqEnableScreenAnalyzer) returns (RspEnableScreenAnalyzer) {}
    rpc getTextMinBoundingRect(ReqGetTextMinBoundingRect) returns (RspGetTextMinBoundingRect) {}
    rpc setTimeout(ReqSetTimeout) returns (RspSetTimeout) {}
+   rpc setXMLSync(ReqSetXMLSync) returns (RspSetXMLSync) {}
+   rpc getAngle(ReqGetAngle) returns (RspGetAngle) {}
 }
 
 // ------------------------------------ //
@@ -90,6 +92,9 @@ message Element {
    double maxValue = 28;
    double value = 29;
    double increment = 30;
+
+   int32 windowAngle = 31;
+   int32 targetAngle = 32;
 }
 
 message Point {
@@ -549,6 +554,7 @@ message RspKey{
 }
 
 message ReqTakeScreenshot{
+   bool getPixels = 1;
 }
 message RspTakeScreenshot{
    bytes image = 1;
@@ -589,7 +595,10 @@ message ReqActionAndWaitEvent {
    enum EventType {
       EVENT_WINDOW_ACTIVATE = 0;
       EVENT_WINDOW_DEACTIVATE = 1;
-      EVENT_STATE_CHANGED_FOCUSED = 2;
+      EVENT_WINDOW_MINIMIZE = 2;
+      EVENT_WINDOW_RAISE = 3;
+      EVENT_WINDOW_IDLE = 4;
+      EVENT_STATE_CHANGED_FOCUSED = 5;
    }
    ActionType type = 1;
    oneof params {
@@ -599,6 +608,7 @@ message ReqActionAndWaitEvent {
    EventType eventType = 4;
    int32 timeoutMs = 5;
    string packageName = 6;
+   int32 count = 7;
 }
 
 message RspActionAndWaitEvent {
@@ -646,3 +656,20 @@ message ReqSetTimeout {
 message RspSetTimeout {
    RspStatus status = 1;
 }
+
+message ReqSetXMLSync {
+   bool enable = 1;
+}
+
+message RspSetXMLSync {
+   RspStatus status = 1;
+}
+
+message ReqGetAngle {
+}
+
+message RspGetAngle {
+   RspStatus status = 1;
+   int32 windowAngle = 2;
+   int32 targetAngle = 3;
+}