From: Woochanlee Date: Fri, 28 May 2021 08:55:19 +0000 (+0900) Subject: bootstrap: Delete Sync Command X-Git-Tag: submit/tizen/20210629.075325~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=308d8a980e91cc2cb4924eb73cf6bd691749c3c0;p=platform%2Fcore%2Fuifw%2Faurum.git bootstrap: Delete Sync Command It do nothing. Change-Id: I0a17b090566172c6b7dc474ae3ca2271f97afa3d --- diff --git a/org.tizen.aurum-bootstrap/inc/AurumServiceImpl.h b/org.tizen.aurum-bootstrap/inc/AurumServiceImpl.h index b4550b9..9c0d637 100644 --- a/org.tizen.aurum-bootstrap/inc/AurumServiceImpl.h +++ b/org.tizen.aurum-bootstrap/inc/AurumServiceImpl.h @@ -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 +}; diff --git a/org.tizen.aurum-bootstrap/inc/Commands/Command.h b/org.tizen.aurum-bootstrap/inc/Commands/Command.h index 85607df..544c6fc 100644 --- a/org.tizen.aurum-bootstrap/inc/Commands/Command.h +++ b/org.tizen.aurum-bootstrap/inc/Commands/Command.h @@ -13,4 +13,4 @@ public: virtual ::grpc::Status execute() = 0; virtual ::grpc::Status executePost(); virtual ::grpc::Status executePre(); -}; \ No newline at end of file +}; diff --git a/org.tizen.aurum-bootstrap/inc/Commands/Commands.h b/org.tizen.aurum-bootstrap/inc/Commands/Commands.h index 30dc22e..20a0dd8 100644 --- a/org.tizen.aurum-bootstrap/inc/Commands/Commands.h +++ b/org.tizen.aurum-bootstrap/inc/Commands/Commands.h @@ -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 index 6c52304..0000000 --- a/org.tizen.aurum-bootstrap/inc/Commands/SyncCommand.h +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once - -#include -#include -#include "Commands/Command.h" -#include "ObjectMapper.h" -#include -#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 diff --git a/org.tizen.aurum-bootstrap/meson.build b/org.tizen.aurum-bootstrap/meson.build index 14e8f31..eb6cfd0 100644 --- a/org.tizen.aurum-bootstrap/meson.build +++ b/org.tizen.aurum-bootstrap/meson.build @@ -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'), diff --git a/org.tizen.aurum-bootstrap/src/AurumServiceImpl.cc b/org.tizen.aurum-bootstrap/src/AurumServiceImpl.cc index b5f7a44..8cf4527 100644 --- a/org.tizen.aurum-bootstrap/src/AurumServiceImpl.cc +++ b/org.tizen.aurum-bootstrap/src/AurumServiceImpl.cc @@ -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 cmd = std::make_unique(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 index 70c4de6..0000000 --- a/org.tizen.aurum-bootstrap/src/Commands/SyncCommand.cc +++ /dev/null @@ -1,19 +0,0 @@ -#include "SyncCommand.h" -#include - -#include "UiDevice.h" - -SyncCommand::SyncCommand(const ::aurum::ReqEmpty *request, - ::aurum::RspEmpty * response) - : mRequest{request}, mResponse{response} -{ -} - -::grpc::Status SyncCommand::execute() -{ - std::shared_ptr 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 diff --git a/protocol/aurum.proto b/protocol/aurum.proto index 00efec3..a93de34 100644 --- a/protocol/aurum.proto +++ b/protocol/aurum.proto @@ -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 +} diff --git a/protocol/examples/node/client.js b/protocol/examples/node/client.js index b368488..64f1007 100644 --- a/protocol/examples/node/client.js +++ b/protocol/examples/node/client.js @@ -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"); diff --git a/protocol/examples/python/legacySamples/sample01.py b/protocol/examples/python/legacySamples/sample01.py index a143c15..28eddc4 100644 --- a/protocol/examples/python/legacySamples/sample01.py +++ b/protocol/examples/python/legacySamples/sample01.py @@ -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) diff --git a/protocol/examples/python/legacySamples/sample02.py b/protocol/examples/python/legacySamples/sample02.py index 5c7d849..13d2b4e 100644 --- a/protocol/examples/python/legacySamples/sample02.py +++ b/protocol/examples/python/legacySamples/sample02.py @@ -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) diff --git a/protocol/examples/python/legacySamples/sample03.py b/protocol/examples/python/legacySamples/sample03.py index 65e4420..eaf9a3a 100644 --- a/protocol/examples/python/legacySamples/sample03.py +++ b/protocol/examples/python/legacySamples/sample03.py @@ -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) diff --git a/protocol/examples/python/legacySamples/sample04.py b/protocol/examples/python/legacySamples/sample04.py index 12074e8..d504fdd 100644 --- a/protocol/examples/python/legacySamples/sample04.py +++ b/protocol/examples/python/legacySamples/sample04.py @@ -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)