bootstrap: Delete Sync Command 63/258963/1
authorWoochanlee <wc0917.lee@samsung.com>
Fri, 28 May 2021 08:55:19 +0000 (17:55 +0900)
committerWoochanlee <wc0917.lee@samsung.com>
Fri, 28 May 2021 08:55:19 +0000 (17:55 +0900)
It do nothing.

Change-Id: I0a17b090566172c6b7dc474ae3ca2271f97afa3d

13 files changed:
org.tizen.aurum-bootstrap/inc/AurumServiceImpl.h
org.tizen.aurum-bootstrap/inc/Commands/Command.h
org.tizen.aurum-bootstrap/inc/Commands/Commands.h
org.tizen.aurum-bootstrap/inc/Commands/SyncCommand.h [deleted file]
org.tizen.aurum-bootstrap/meson.build
org.tizen.aurum-bootstrap/src/AurumServiceImpl.cc
org.tizen.aurum-bootstrap/src/Commands/SyncCommand.cc [deleted file]
protocol/aurum.proto
protocol/examples/node/client.js
protocol/examples/python/legacySamples/sample01.py
protocol/examples/python/legacySamples/sample02.py
protocol/examples/python/legacySamples/sample03.py
protocol/examples/python/legacySamples/sample04.py

index b4550b9..9c0d637 100644 (file)
@@ -13,9 +13,6 @@ protected:
     ::grpc::Status execute(Command *cmd);
 
 public:
-    ::grpc::Status sync(::grpc::ServerContext *  context,
-                        const ::aurum::ReqEmpty *request,
-                        ::aurum::RspEmpty *      response) override;
     ::grpc::Status killServer(::grpc::ServerContext *  context,
                               const ::aurum::ReqEmpty *request,
                               ::aurum::RspEmpty *      response) override;
@@ -92,4 +89,4 @@ public:
     ::grpc::Status dumpObjectTree(::grpc::ServerContext *context,
                             const ::aurum::ReqDumpObjectTree *request,
                             ::aurum::RspDumpObjectTree *      response) override;
-};
\ No newline at end of file
+};
index 85607df..544c6fc 100644 (file)
@@ -13,4 +13,4 @@ public:
     virtual ::grpc::Status execute() = 0;
     virtual ::grpc::Status executePost();
     virtual ::grpc::Status executePre();
-};
\ No newline at end of file
+};
index 30dc22e..20a0dd8 100644 (file)
@@ -1,8 +1,6 @@
 #pragma once
 
 #include "Commands/KillServerCommand.h"
-#include "Commands/SyncCommand.h"
-
 #include "Commands/FindElementCommand.h"
 
 #include "Commands/GetAttributeCommand.h"
diff --git a/org.tizen.aurum-bootstrap/inc/Commands/SyncCommand.h b/org.tizen.aurum-bootstrap/inc/Commands/SyncCommand.h
deleted file mode 100644 (file)
index 6c52304..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#pragma once
-
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
-
-class SyncCommand : public Command {
-private:
-    const ::aurum::ReqEmpty* mRequest;
-    ::aurum::RspEmpty*       mResponse;
-
-public:
-    SyncCommand(const ::aurum::ReqEmpty* request, ::aurum::RspEmpty* response);
-    ::grpc::Status execute() override;
-};
\ No newline at end of file
index 14e8f31..eb6cfd0 100644 (file)
@@ -33,7 +33,6 @@ bootstrap_svr_src += [
    files('src/Commands/TouchDownCommand.cc'),
    files('src/Commands/TouchMoveCommand.cc'),
    files('src/Commands/TouchUpCommand.cc'),
-   files('src/Commands/SyncCommand.cc'),
    files('src/Commands/KillServerCommand.cc'),
    files('src/Commands/TakeScreenshotCommand.cc'),
    files('src/Commands/Command.cc'),
index b5f7a44..8cf4527 100644 (file)
@@ -26,13 +26,6 @@ aurumServiceImpl::aurumServiceImpl()
 }
 
 aurumServiceImpl::~aurumServiceImpl() {}
-::grpc::Status aurumServiceImpl::aurumServiceImpl::sync(
-    ::grpc::ServerContext* context, const ::aurum::ReqEmpty* request,
-    ::aurum::RspEmpty* response)
-{
-    std::unique_ptr<SyncCommand> cmd = std::make_unique<SyncCommand>(request, response);
-    return execute(cmd.get());
-}
 ::grpc::Status aurumServiceImpl::aurumServiceImpl::killServer(
     ::grpc::ServerContext* context, const ::aurum::ReqEmpty* request,
     ::aurum::RspEmpty* response)
diff --git a/org.tizen.aurum-bootstrap/src/Commands/SyncCommand.cc b/org.tizen.aurum-bootstrap/src/Commands/SyncCommand.cc
deleted file mode 100644 (file)
index 70c4de6..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "SyncCommand.h"
-#include <loguru.hpp>
-
-#include "UiDevice.h"
-
-SyncCommand::SyncCommand(const ::aurum::ReqEmpty *request,
-                         ::aurum::RspEmpty *      response)
-    : mRequest{request}, mResponse{response}
-{
-}
-
-::grpc::Status SyncCommand::execute()
-{
-    std::shared_ptr<UiDevice> obj = UiDevice::getInstance();
-    long long timeMs = obj->getSystemTime(TimeRequestType::WALLCLOCK);
-    LOG_SCOPE_F(INFO, "Sync Command @ %f", timeMs/1000.0);
-    // do post-command
-    return grpc::Status::OK;
-}
\ No newline at end of file
index 00efec3..a93de34 100644 (file)
@@ -6,7 +6,6 @@ package aurum;
   * Here is a page with some descriptions about protocol explained
   */
 service Bootstrap {
-   rpc sync(ReqEmpty) returns (RspEmpty) {}
    rpc killServer(ReqEmpty) returns (RspEmpty) {}
    rpc findElement(ReqFindElement) returns (RspFindElement) {}
    rpc getValue(ReqGetValue) returns (RspGetValue) {}
@@ -406,4 +405,4 @@ message ReqDumpObjectTree {
 message RspDumpObjectTree {
    RspStatus status = 1;
    repeated Element roots = 2;
-}
\ No newline at end of file
+}
index b368488..64f1007 100644 (file)
@@ -10,8 +10,6 @@ function main() {
 
   var request = new messages.ReqFindElement();
 
-  client.sync(new messages.ReqEmpty(), function(err, res){console.log(res)});
-
   request.setStrategy(proto.aurum.ReqFindElement.RequestType.TEXT);
   request.setTextfield("DONE");
 
index a143c15..28eddc4 100644 (file)
@@ -94,10 +94,6 @@ def touchup(stub, xx, yy):
    rsp = stub.touchUp(aurum_pb2.ReqTouchUp(coordination=aurum_pb2.Point(x=xx,y=yy)))
    print(rsp)
 
-def sync(stub):
-   rsp = stub.sync(aurum_pb2.ReqEmpty())
-   print(rsp)
-
 def run():
     with grpc.insecure_channel('127.0.0.1:50051') as channel:
         stub = aurum_pb2_grpc.BootstrapStub(channel)
index 5c7d849..13d2b4e 100644 (file)
@@ -39,11 +39,6 @@ def touchup(stub, xx, yy):
    rsp = stub.touchUp(aurum_pb2.ReqTouchUp(coordination=aurum_pb2.Point(x=xx,y=yy)))
    print(rsp)
 
-def sync(stub):
-   rsp = stub.sync(aurum_pb2.ReqEmpty())
-   print(rsp)
-
-
 def new_memo(stub):
     touchdown(stub, 630,1140)
     time.sleep(0.1)
index 65e4420..eaf9a3a 100644 (file)
@@ -39,11 +39,6 @@ def touchup(stub, xx, yy):
    rsp = stub.touchUp(aurum_pb2.ReqTouchUp(coordination=aurum_pb2.Point(x=xx,y=yy)))
    print(rsp)
 
-def sync(stub):
-   rsp = stub.sync(aurum_pb2.ReqEmpty())
-   print(rsp)
-
-
 def new_memo(stub):
     touchdown(stub, 630,1140)
     time.sleep(0.1)
index 12074e8..d504fdd 100644 (file)
@@ -39,11 +39,6 @@ def touchup(stub, xx, yy):
    rsp = stub.touchUp(aurum_pb2.ReqTouchUp(coordination=aurum_pb2.Point(x=xx,y=yy)))
    print(rsp)
 
-def sync(stub):
-   rsp = stub.sync(aurum_pb2.ReqEmpty())
-   print(rsp)
-
-
 def new_memo(stub):
     touchdown(stub, 630,1140)
     time.sleep(0.1)
@@ -112,7 +107,6 @@ def clear_text(stub, el):
 def run():
     with grpc.insecure_channel('127.0.0.1:50051') as channel:
         stub = aurum_pb2_grpc.BootstrapStub(channel)
-#sync(stub)
 
         foundId = findElementByText(stub, 'Title')
         print(foundId)