aurum-service: code clean up 38/300038/2
authorWoochan Lee <wc0917.lee@samsung.com>
Mon, 16 Oct 2023 04:29:11 +0000 (13:29 +0900)
committerwoochan lee <wc0917.lee@samsung.com>
Mon, 23 Oct 2023 12:20:30 +0000 (12:20 +0000)
It contains below changes

- delete unused header include (config.h)
- update bolier-plate
- use pragma intead of ifdef
- adjust tizen c++ code indentation
- re-arrage header file
- log cleanup

Change-Id: I41e4ff1fc67b9f634cab0994e67d9b748f8bcc96

81 files changed:
org.tizen.aurum-bootstrap/inc/AurumServiceImpl.h
org.tizen.aurum-bootstrap/inc/Commands/ActionAndWaitEventCommand.h
org.tizen.aurum-bootstrap/inc/Commands/ClearCommand.h
org.tizen.aurum-bootstrap/inc/Commands/ClickCommand.h
org.tizen.aurum-bootstrap/inc/Commands/CloseAppCommand.h
org.tizen.aurum-bootstrap/inc/Commands/Command.h
org.tizen.aurum-bootstrap/inc/Commands/Commands.h
org.tizen.aurum-bootstrap/inc/Commands/DumpObjectTreeCommand.h
org.tizen.aurum-bootstrap/inc/Commands/EnableScreenAnalyzerCommand.h
org.tizen.aurum-bootstrap/inc/Commands/FindElementCommand.h
org.tizen.aurum-bootstrap/inc/Commands/FindElementsCommand.h
org.tizen.aurum-bootstrap/inc/Commands/FlickCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetActiveAppToolkitNameCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetAngleCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetAppInfoCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetAttributeCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetDeviceTimeCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetLocationCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetScreenSizeCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetSizeCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetTextMinBoundingRectCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetValueCommand.h
org.tizen.aurum-bootstrap/inc/Commands/InstallAppCommand.h
org.tizen.aurum-bootstrap/inc/Commands/KillServerCommand.h
org.tizen.aurum-bootstrap/inc/Commands/LaunchAppCommand.h
org.tizen.aurum-bootstrap/inc/Commands/LongClickCommand.h
org.tizen.aurum-bootstrap/inc/Commands/PostCommand.h
org.tizen.aurum-bootstrap/inc/Commands/PreCommand.h
org.tizen.aurum-bootstrap/inc/Commands/RemoveAppCommand.h
org.tizen.aurum-bootstrap/inc/Commands/SendKeyCommand.h
org.tizen.aurum-bootstrap/inc/Commands/SetFocusCommand.h
org.tizen.aurum-bootstrap/inc/Commands/SetValueCommand.h
org.tizen.aurum-bootstrap/inc/Commands/SetXMLSyncCommand.h
org.tizen.aurum-bootstrap/inc/Commands/TakeScreenshotCommand.h
org.tizen.aurum-bootstrap/inc/Commands/TouchDownCommand.h
org.tizen.aurum-bootstrap/inc/Commands/TouchMoveCommand.h
org.tizen.aurum-bootstrap/inc/Commands/TouchUpCommand.h
org.tizen.aurum-bootstrap/inc/ObjectMapper.h
org.tizen.aurum-bootstrap/inc/Runnable/ActionAndWaitEventRunnable.h
org.tizen.aurum-bootstrap/inc/Runnable/LaunchAppRunnable.h
org.tizen.aurum-bootstrap/inc/bootstrap.h
org.tizen.aurum-bootstrap/src/AurumServiceImpl.cc
org.tizen.aurum-bootstrap/src/BootstrapServer.cc
org.tizen.aurum-bootstrap/src/Commands/ActionAndWaitEventCommand.cc
org.tizen.aurum-bootstrap/src/Commands/ClearCommand.cc
org.tizen.aurum-bootstrap/src/Commands/ClickCommand.cc
org.tizen.aurum-bootstrap/src/Commands/CloseAppCommand.cc
org.tizen.aurum-bootstrap/src/Commands/Command.cc
org.tizen.aurum-bootstrap/src/Commands/DumpObjectTreeCommand.cc
org.tizen.aurum-bootstrap/src/Commands/EnableScreenAnalyzerCommand.cc
org.tizen.aurum-bootstrap/src/Commands/FindElementCommand.cc
org.tizen.aurum-bootstrap/src/Commands/FindElementsCommand.cc
org.tizen.aurum-bootstrap/src/Commands/FlickCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetActiveAppToolkitNameCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetAngleCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetAppInfoCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetAttributeCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetDeviceTimeCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetLocationCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetScreenSizeCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetSizeCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetTextMinBoundingRectCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetValueCommand.cc
org.tizen.aurum-bootstrap/src/Commands/InstallAppCommand.cc
org.tizen.aurum-bootstrap/src/Commands/KillServerCommand.cc
org.tizen.aurum-bootstrap/src/Commands/LaunchAppCommand.cc
org.tizen.aurum-bootstrap/src/Commands/LongClickCommand.cc
org.tizen.aurum-bootstrap/src/Commands/PostCommand.cc
org.tizen.aurum-bootstrap/src/Commands/PreCommand.cc
org.tizen.aurum-bootstrap/src/Commands/RemoveAppCommand.cc
org.tizen.aurum-bootstrap/src/Commands/SendKeyCommand.cc
org.tizen.aurum-bootstrap/src/Commands/SetFocusCommand.cc
org.tizen.aurum-bootstrap/src/Commands/SetValueCommand.cc
org.tizen.aurum-bootstrap/src/Commands/SetXMLSyncCommand.cc
org.tizen.aurum-bootstrap/src/Commands/TakeScreenshotCommand.cc
org.tizen.aurum-bootstrap/src/Commands/TouchDownCommand.cc
org.tizen.aurum-bootstrap/src/Commands/TouchMoveCommand.cc
org.tizen.aurum-bootstrap/src/Commands/TouchUpCommand.cc
org.tizen.aurum-bootstrap/src/ObjectMapper.cc
org.tizen.aurum-bootstrap/src/Runnable/ActionAndWaitEventRunnable.cc
org.tizen.aurum-bootstrap/src/Runnable/LaunchAppRunnable.cc

index 22be632621685ef3151a15fc5b59b94eeea34d50..458f4b75ffaa1dc7b863238f534d1f8a6176178e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#ifndef _AURUM_SERVICE_IMPL_H_
-#define _AURUM_SERVICE_IMPL_H_
+#pragma once
 
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include <aurum.grpc.pb.h>
+#include "bootstrap.h"
 
 class aurumServiceImpl final : public aurum::Bootstrap::Service {
 public:
@@ -141,6 +138,3 @@ public:
 public:
     int WAIT_TIMEOUT_MS;
 };
-
-#endif
-
index b6bf1ec94d74f86995203974f16937dac2779338..49ec6f047d5406fd736994aeae3b9e05541e9cb2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class ActionAndWaitEventCommand : public Command {
 private:
index cef1deb24018742cd9bd4e92dd55cbe9264899fb..b078da30347faefd6b7c49fc31063bd43b6b734e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class ClearCommand : public Command {
 private:
index 8f7a4652210db0c12ba34011d0711e0e6ad379ad..496de55b0913f0744351be4bca960480c6e2c555 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class ClickCommand : public Command {
 protected:
index 522236473b75afe2e74b7ff9d4a5660a411e8748..4525cfdc5fc9925e015b04e581da665c809db523 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class CloseAppCommand : public Command {
 private:
index 634edbe064c7b318bcb7e8cc7efea451fe909e13..af8a93bd19fe4bb9bc06262c398459802cac3a08 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#ifndef _COMMAND_H_
-#define _COMMAND_H_
+#pragma once
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-
-#include "config.h"
+#include "bootstrap.h"
 
 class Command {
 public:
@@ -32,5 +26,3 @@ public:
     virtual ::grpc::Status executePost();
     virtual ::grpc::Status executePre();
 };
-
-#endif
index 992295dd3e60e56a986f13085ac4463505c98622..9ecdb4cc6ebb6d895b33d972ea480b0bcc06514e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
 #include "Commands/KillServerCommand.h"
 #include "Commands/FindElementCommand.h"
 #include "Commands/FindElementsCommand.h"
-
 #include "Commands/GetAttributeCommand.h"
 #include "Commands/GetValueCommand.h"
 #include "Commands/SetValueCommand.h"
-
 #include "Commands/ClearCommand.h"
 #include "Commands/GetSizeCommand.h"
-
 #include "Commands/ClickCommand.h"
 #include "Commands/FlickCommand.h"
 #include "Commands/LongClickCommand.h"
-
 #include "Commands/TouchDownCommand.h"
 #include "Commands/TouchMoveCommand.h"
 #include "Commands/TouchUpCommand.h"
-
 #include "Commands/CloseAppCommand.h"
 #include "Commands/GetAppInfoCommand.h"
 #include "Commands/InstallAppCommand.h"
 #include "Commands/LaunchAppCommand.h"
 #include "Commands/RemoveAppCommand.h"
-
 #include "Commands/GetDeviceTimeCommand.h"
 #include "Commands/GetLocationCommand.h"
 #include "Commands/SendKeyCommand.h"
-
 #include "Commands/TakeScreenshotCommand.h"
 #include "Commands/DumpObjectTreeCommand.h"
 #include "Commands/GetScreenSizeCommand.h"
@@ -51,7 +44,6 @@
 #include "Commands/SetFocusCommand.h"
 #include "Commands/GetActiveAppToolkitNameCommand.h"
 #include "Commands/EnableScreenAnalyzerCommand.h"
-
 #include "Commands/GetTextMinBoundingRectCommand.h"
 #include "Commands/SetXMLSyncCommand.h"
-#include "Commands/GetAngleCommand.h"
\ No newline at end of file
+#include "Commands/GetAngleCommand.h"
index da5ec04e189b9b245475ecdb55144c31fe8a0584..f24843693aedc5573dcdbc73c560c2a6a901d2ac 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include "UiObject.h"
-
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class DumpObjectTreeCommand: public Command {
 protected:
index 700611eff61a4e9c25057b010f45519fd1b83306..105d8b9a52e88b2e840fd55c5af4c96a23c3454f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class EnableScreenAnalyzerCommand : public Command {
 private:
index 4edc4e8b72a9cca0dbdc4ce61255fbed466e5dbf..ceb94e89c4609559312ad64b9a7d76e730450b59 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class FindElementCommand : public Command {
 protected:
index 92d325bea34bb8408b8634b59bd7512a0db7ca16..02f0f99d2dfde6354e26bd2156ec2b527e92bef8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class FindElementsCommand : public Command {
 protected:
index 3f5a18841e0a497c4d19da7332ec429f6e36e283..fd032c822f8bbb46c41aafac54cb37931a446014 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class FlickCommand : public Command {
 private:
index e85aba386ee9e8ac2a41dbf02012d63d2fdb1199..bc30d536157e38e249a6a48e903ed0ac51592ab6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class GetActiveAppToolkitNameCommand : public Command {
 private:
index d378b1653898f3d052417e20bdabe067b2d9feb4..4d58776e6eaf5677a6f9af100c589660153b0e84 100644 (file)
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class GetAngleCommand : public Command {
 private:
index 3c866c41e77e06351becb3d4ab0fa4e81ab280dc..fb9c0f231e82aa9f13a141a52fc37f086c8df413 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class GetAppInfoCommand : public Command {
 private:
index 94ef0a9d0c0357465e54340769d04202acce0570..b61ca52db3042f9b6b428d67319eb0bac7b1414b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class GetAttributeCommand : public Command {
 protected:
index 05ed05e9833073d2d3dd38c778fd596e6d5aa032..07279812dcb7347b63f520745e877e16574ac810 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class GetDeviceTimeCommand : public Command {
 private:
index fc4d4c66a87d558e7a3992738dc1ac4251296cad..5e504df0ac9c537547081ebcd1b81b5e44827677 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class GetLocationCommand : public Command {
 private:
index cbb37ff43cebde4beeab256a7f72c88609500b5e..4ab16d388f7c493faf255ec5f61b89ffb79815e3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class GetScreenSizeCommand : public Command {
 private:
index 9fead1348f737c0e91ffb4de03962de35af480f2..3c3ecd4a3cff93d8a61e117771333e7c625c2bf7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class GetSizeCommand : public Command {
 private:
index bc04262b621c555512b26f2c6685a7c74f1a2b42..b7c6583c264f2b13db74e9b198033bcf81c8ce01 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class GetTextMinBoundingRectCommand : public Command {
 private:
index daeae97f4d40f14260dc9331a7533eb87cf18b27..2d9e2a8c116b14132b19cc91054d39f2a17b8166 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class GetValueCommand : public Command {
 private:
index a241697ecee86932f5783f8cdd3c0f6a06cd12a5..0e39716df311ffb57b2c1084c5e16c83ca1bd72d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class InstallAppCommand : public Command {
 private:
index f1c6739934ed906806cf7566c2b3796227301f41..0a44c244d9fe3c53b644cf6eccf1ec24763a645b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class KillServerCommand : public Command {
 private:
index c8f62f8df80b80b9a5f5fcc0a6e836298a56959f..ff67a7a2d370a32c99f79ec1781786d3916c4e23 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class LaunchAppCommand : public Command {
 private:
@@ -31,4 +26,4 @@ public:
     LaunchAppCommand(const ::aurum::ReqLaunchApp *request,
                      ::aurum::RspLaunchApp *response);
     ::grpc::Status execute() override;
-};
\ No newline at end of file
+};
index 02ed889f2340c11714d0cfb04efefb069d11e833..2b39aaa1146938e0055f4c3ba788114dd0ca87a6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class LongClickCommand : public Command {
 private:
index 2683a7b101be3e72e20848b46c60c07dc7e93187..e08bcd2b03c2c50753aac394995b85adf29b4de5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class PostCommand : public Command {
 private:
index 13eccee41a2237d595ebc91b079778402ab41d23..2021caaa28e23880c7a2d01c97477874d558f0e8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class PreCommand : public Command {
 private:
index 5f973e8c43d1fef3b2c3ab7dc8491c2e75b9b1bb..c317841f7c7e4a4120bd5894d1f0f4a8fe397af3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class RemoveAppCommand : public Command {
 private:
index b7a9c8698158dfafe2f45b1fe75fa8d4a0622f2d..860545f07f1a9d2d62270180051bc4e6af2b206e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class SendKeyCommand : public Command {
 private:
index 6df2850a39a5fe1775e7ac29dbe60090b5f386df..1565352539d549cc8130ec5abdd37af5da37d3b2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class SetFocusCommand : public Command {
 private:
index 4ab2a2eebfe16004b399454cb907bd9fab8c782c..3ce13ac732e2cc428334b7d47c860e20ad4405cf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class SetValueCommand : public Command {
 private:
index b26310a0fb2145e331bd170a58138f645bed07ca..b54ae9007711c27720caaac0c2295b6658ab287b 100644 (file)
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class SetXMLSyncCommand : public Command {
 private:
index 03553502873b50c7b5f61b26c132a6855ab84446..67ea668672358adc27902740a1532253c03f28cb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class TakeScreenshotCommand : public Command {
 private:
index 54bbebdb01a48bbc7e44f59a7b3661a9f5a12f9d..afb59508a48d42647b3f4c96d3a5661b51cbde8c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class TouchDownCommand : public Command {
 private:
index c319ecdfb5276cea0437b51772a69bd6a3ed3707..827fad9ca587a401be83253a1b7ec588f0cb2e76 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class TouchMoveCommand : public Command {
 private:
index 8d2bf08ff77f997192ea049e58e5ab81eeb73d18..4d338c872298f87919cfff801d7e1de40c590e82 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include "Commands/Command.h"
-#include "ObjectMapper.h"
-#include <aurum.grpc.pb.h>
-#include "config.h"
+#include "bootstrap.h"
 
 class TouchUpCommand : public Command {
 private:
index d71ce6dcbdc3250e9b74d978f3c0180b6d4e8c2d..4948d33b42e08af88815a6587966cbab4982f0a0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#ifndef _OBJECT_MAPPER_H_
-#define _OBJECT_MAPPER_H_
+#pragma once
 
 #include <map>
 #include <string>
 
+#include "bootstrap.h"
 #include "UiObject.h"
 
 using namespace Aurum;
@@ -28,7 +28,6 @@ using namespace Aurum;
 class ObjectMapper {
 private:
     std::map<std::string, std::shared_ptr<UiObject>> mObjectMap;
-    unsigned long long                               mObjCounter;
 
 private:
     ObjectMapper();
@@ -43,5 +42,3 @@ public:
     bool removeElement(const std::string& elementId);
     void cleanUp();
 };
-
-#endif
index eb31798f08573b30723405c5ebe755d053398dcb..683af347a679a4663084ba6ff338694958a67da6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
index b951681b4ef7769b4b8c07e438a76be1f53b7619..e8eb22d1d75cb1542c9eba894d74aaf5851fdf5b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
index c5b9bc55c87dc101275ddcf38dc5f864b77ce591..61ef1170d45174c4740da6c4397be57b1d2bbdb6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#ifndef _BOOT_STRAP_H_
-#define _BOOT_STRAP_H_
+#pragma once
 
 #include <dlog.h>
+#include <gio/gio.h>
+#include <grpcpp/grpcpp.h>
+#include <aurum.grpc.pb.h>
+
+#include "Commands/Command.h"
+#include "ObjectMapper.h"
 
 #ifdef LOG_TAG
 #undef LOG_TAG
@@ -43,5 +48,3 @@
                    __FILE__, __func__, __LINE__, ##arg); \
     } while (0); })
 #endif
-
-#endif
index 16f884239c121ab1701ff172e4705e84333d6b8b..3c9978be44d8c0969552a646aa01057d4cd8a45c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  */
 
 #include "AurumServiceImpl.h"
-
-#include <AccessibleWatcher.h>
+#include "AccessibleWatcher.h"
 #include "Commands/Commands.h"
 #include "Commands/PostCommand.h"
 #include "Commands/PreCommand.h"
 
-#include "config.h"
-#include "bootstrap.h"
-
 using namespace grpc;
 using namespace aurum;
 
@@ -39,9 +35,9 @@ aurumServiceImpl::aurumServiceImpl()
 {
     std::unique_ptr<PreCommand>  proxyPreCmd  = std::make_unique<PreCommand>(cmd);
     std::unique_ptr<PostCommand> proxyPostCmd = std::make_unique<PostCommand>(proxyPreCmd.get());
-    ::grpc::Status rst = proxyPostCmd->execute();
+    ::grpc::Status ret = proxyPostCmd->execute();
     if (clean) ObjectMapper::getInstance()->cleanUp();
-    return rst;
+    return ret;
 }
 
 aurumServiceImpl::~aurumServiceImpl()
index 93902f5ea33310c9d1f87d444c8bf635d102e3bc..7ae8188b084a31d2b94aa3fce1e17d857bdf9130 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
 
 #include <iostream>
 #include <service_app.h>
-#include <gio/gio.h>
-#include <grpcpp/grpcpp.h>
-#include <aurum.grpc.pb.h>
 #include <glib.h>
 #include <vconf.h>
 #include <system_info.h>
 
-#include "bootstrap.h"
 #include "AurumServiceImpl.h"
 #include "config.h"
 
@@ -53,7 +49,7 @@ static void _vconf_force_enable_touch_set(void *data, bool enable)
 }
 
 static gpointer
-_grpc_thread_func (gpointer data)
+_grpc_thread_func(gpointer data)
 {
     ServiceContext *ctx = (ServiceContext *)data;
     std::string binding("0.0.0.0:50051");
@@ -72,7 +68,7 @@ _grpc_thread_func (gpointer data)
         free(value);
     }
 
-    LOGI("[T] Server Listening on %s", binding.c_str());
+    LOGI("Server Listening on %s", binding.c_str());
     builder.AddListeningPort(binding, grpc::InsecureServerCredentials());
     builder.RegisterService(&service);
     ctx->server = std::move(builder.BuildAndStart());
index d31ed8ebf864c26f34ef1c06618e171f2d58ec5d..0cfb1e8a9d2eded89f2f8aa9abd0026f98faa2c7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
+#include <chrono>
+#include <thread>
+
 #include "ActionAndWaitEventCommand.h"
 #include "ActionAndWaitEventRunnable.h"
 #include "UiDevice.h"
-#include <chrono>
-#include <thread>
 
 ActionAndWaitEventCommand::ActionAndWaitEventCommand(const ::aurum::ReqActionAndWaitEvent *request,
                                    ::aurum::RspActionAndWaitEvent *response)
@@ -47,6 +47,7 @@ A11yEvent convertEventType(const ::aurum::ReqActionAndWaitEvent_EventType type)
 ::grpc::Status ActionAndWaitEventCommand::execute()
 {
     LOGI("ActionAndWaitEvent --------------- ");
+
     std::unique_ptr<ActionAndWaitEventRunnable> cmd = std::make_unique<ActionAndWaitEventRunnable>(
                                                       mRequest->type(), mRequest->elementid(), mRequest->xf86keycode());
     std::shared_ptr<UiDevice> obj = UiDevice::getInstance();
index afec1b6103cdca0c7265a5475c266757b00e4372..bfcdd834e204ed05752114a73bd28d49fcb8c26f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
-#include "ClearCommand.h"
 #include <string>
 
+#include "ClearCommand.h"
+
 ClearCommand::ClearCommand(const ::aurum::ReqClear *request,
                            ::aurum::RspClear *response)
     : mRequest{request}, mResponse{response}
@@ -42,6 +42,7 @@ bool ClearCommand::hasHintText(std::shared_ptr<UiObject> obj)
 ::grpc::Status ClearCommand::execute()
 {
     LOGI("Clear --------------- ");
+
     ObjectMapper *mObjMap = ObjectMapper::getInstance();
     std::shared_ptr<UiObject> obj = mObjMap->getElement(mRequest->elementid());
 
index d5181f69897adfee1efeb4c874400e55bbe0729e..bb464d153c7c57f5fb10a5c3261ef3f2ca9d7f7e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "ClickCommand.h"
 #include "UiObject.h"
 #include "UiDevice.h"
@@ -47,9 +46,10 @@ std::unique_ptr<ClickCommand> ClickCommand::createCommand(const ::aurum::ReqClic
 
 ::grpc::Status ClickElementCommand::execute()
 {
+    LOGI("ClickElement --------------- ");
+
     ObjectMapper *mObjMap = ObjectMapper::getInstance();
     std::shared_ptr<UiObject> obj = mObjMap->getElement(mRequest->elementid());
-    LOGI("ClickElementCommand execute %p", obj.get());
 
     if (obj) {
         obj->click();
@@ -62,21 +62,24 @@ std::unique_ptr<ClickCommand> ClickCommand::createCommand(const ::aurum::ReqClic
 
 ::grpc::Status ClickCoordCommand::execute()
 {
+    LOGI("ClickCoord (%d, %d) --------------- ", point.x(), point.y());
+
     std::shared_ptr<UiDevice> obj = UiDevice::getInstance();
     const ::aurum::Point& point = mRequest->coordination();
-    LOGI("ClickCoordCommand execute %p @ (%d, %d)", obj.get(), point.x(), point.y());
+
     obj->click(point.x(), point.y());
     mResponse->set_status(::aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
 
 ::grpc::Status ClickAtspiCommand::execute()
 {
+    LOGI("ClickAtspi --------------- ");
+
     ObjectMapper *mObjMap = ObjectMapper::getInstance();
     std::shared_ptr<UiObject> obj = mObjMap->getElement(mRequest->elementid());
 
-    LOGI("ClickAtspiCommand execute %p", obj.get());
-
     if (obj) {
         if (obj->DoAtspiActivate()) mResponse->set_status(::aurum::RspStatus::OK);
         else mResponse->set_status(::aurum::RspStatus::ERROR);
index 7ac889a66a7b05a62918d6d75346b1e1698f1bd7..1ea5a427423367fb5d8b1b0dc1e5667e14750645 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
-#include "CloseAppCommand.h"
 #include <chrono>
 #include <thread>
+
+#include "CloseAppCommand.h"
 #include <app_manager_extension.h>
 
 CloseAppCommand::CloseAppCommand(const ::aurum::ReqCloseApp *request,
@@ -51,6 +51,7 @@ CloseAppCommand::CloseAppCommand(const ::aurum::ReqCloseApp *request,
     }
 
     app_context_destroy(app_context);
+
     return grpc::Status::OK;
 }
 
@@ -58,5 +59,6 @@ CloseAppCommand::CloseAppCommand(const ::aurum::ReqCloseApp *request,
 {
     LOGI("Wait for 1500ms");
     std::this_thread::sleep_for(std::chrono::milliseconds{1500});
+
     return grpc::Status::OK;
 }
index efcc8805466281a44d20006a6372217c939b26e8..32fc2ffda2a6d0f3d96f12b2be608bcf3eebe084 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
index 80fbca336bc3c409261f735c1a78a53f59796ead..4ed405da3af15eab61acb52c20049c5e7028aa19 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
 #include "DumpObjectTreeCommand.h"
 #include "UiObject.h"
 #include "UiDevice.h"
 #include "UiSelector.h"
 #include "Sel.h"
 #include "ISearchable.h"
+#include "config.h"
 
 DumpObjectTreeCommand::DumpObjectTreeCommand(const ::aurum::ReqDumpObjectTree *request,
                                                    ::aurum::RspDumpObjectTree *response)
@@ -160,5 +160,6 @@ void DumpObjectTreeCommand::traverse(::aurum::Element *root, std::shared_ptr<Nod
             traverse(root, node, 0);
         }
     }
+
     return grpc::Status::OK;
 }
index ca4c423cbe97d3b152c8039e27d92106bc069859..04c842570e4a86388ac10eb608bbcd3a414a003e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,9 +15,9 @@
  *
  */
 
-#include "bootstrap.h"
 #include "EnableScreenAnalyzerCommand.h"
 #include "UiDevice.h"
+#include "config.h"
 
 EnableScreenAnalyzerCommand::EnableScreenAnalyzerCommand(const ::aurum::ReqEnableScreenAnalyzer *request,
                                      ::aurum::RspEnableScreenAnalyzer *response)
@@ -27,7 +27,7 @@ EnableScreenAnalyzerCommand::EnableScreenAnalyzerCommand(const ::aurum::ReqEnabl
 
 ::grpc::Status EnableScreenAnalyzerCommand::execute()
 {
-    LOGI("EnableScreenAnalyzer test --------------- ");
+    LOGI("EnableScreenAnalyzer --------------- ");
 
     LOGI("Screen Analyzer enabled (%d) Server IP : (%s)", mRequest->enable(), mRequest->serverip().c_str());
     std::shared_ptr<UiDevice> mDevice = UiDevice::getInstance();
index b8948221a8b0e088c5e04e1ad883574dbbe037c8..9567d93abd16bc43127ae4c5a05eb5982c726d32 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
 #include "FindElementCommand.h"
 #include "UiObject.h"
 #include "UiDevice.h"
 #include "UiSelector.h"
 #include "Sel.h"
 #include "ISearchable.h"
+#include "config.h"
 #ifdef MQTT_ENABLED
 #include "SaObject.h"
 #endif
@@ -82,6 +82,7 @@ std::shared_ptr<UiSelector> FindElementCommand::getSelector(void)
 ::grpc::Status FindElementCommand::execute()
 {
     LOGI("findElement --------------- ");
+
     auto searchableObj = getSearchableTop();
     auto selector     = getSelector();
     std::shared_ptr<UiDevice> mDevice = UiDevice::getInstance();
index 796839d14a9228f4d4d844472f0db9873f0a04b3..711be133440beec5f2998e3c0bae866ade53fded 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
 #include "FindElementsCommand.h"
 #include "UiObject.h"
 #include "UiDevice.h"
 #include "UiSelector.h"
 #include "Sel.h"
 #include "ISearchable.h"
+#include "config.h"
 #ifdef MQTT_ENABLED
 #include "SaObject.h"
 #endif
@@ -81,6 +81,8 @@ std::vector<std::shared_ptr<UiSelector>> FindElementsCommand::getSelectors(void)
 
 ::grpc::Status FindElementsCommand::execute()
 {
+    LOGI("findElements --------------- ");
+
     auto searchableObj = getSearchableTop();
     auto selectors     = getSelectors();
     std::shared_ptr<UiDevice> mDevice = UiDevice::getInstance();
index 1d2c0d8f54040992fb13380d73c576f2703fb961..365a540fccfcfd2277ba9d269bb436b79b66359c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "FlickCommand.h"
 #include "UiDevice.h"
 
index cb9d869d7ed7747f9eaea941b051eee0b3b7ac3c..fa5935e79470b6b671d9d839357eae651ac5a8ee 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "GetActiveAppToolkitNameCommand.h"
 #include "UiDevice.h"
 
index 01a9420077e0df9d49013adfd0c341e7f45a7ee8..feac10897560801b7c9df3b26ab2ec58c79d7fc4 100644 (file)
@@ -15,9 +15,7 @@
  *
  */
 
-#include "bootstrap.h"
 #include "GetAngleCommand.h"
-
 #include "UiDevice.h"
 
 GetAngleCommand::GetAngleCommand(const ::aurum::ReqGetAngle* request,
@@ -34,7 +32,7 @@ GetAngleCommand::GetAngleCommand(const ::aurum::ReqGetAngle* request,
 
     mResponse->set_windowangle(mDevice->getWindowAngle());
     mResponse->set_targetangle(mDevice->getTargetAngle());
-
     mResponse->set_status(::aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
index 76d9b7ccacdb085910a6b1a5b2b176b20e0a3954..23890504533f4fc5e46ed29e347feabd55df6065 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
-#include "GetAppInfoCommand.h"
 #include <app_manager_extension.h>
 #include <package_manager.h>
 
+#include "GetAppInfoCommand.h"
+
 GetAppInfoCommand::GetAppInfoCommand(const ::aurum::ReqGetAppInfo *request,
                                      ::aurum::RspGetAppInfo *response)
     : mRequest{request}, mResponse{response}
@@ -28,7 +28,7 @@ GetAppInfoCommand::GetAppInfoCommand(const ::aurum::ReqGetAppInfo *request,
 
 ::grpc::Status GetAppInfoCommand::execute()
 {
-    LOGI("GetAppInfo --------------- ");
+    LOGI("GetAppInfo (%s) --------------- ", mRequest->packagename().c_str());
 
     std::string packageName = mRequest->packagename();
 
index 1afc58eaedee7c260e6d9208f85647e8739a58e3..cea8ac5b171f7b4754ac8129f9ace8a5c46b1ef1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "GetAttributeCommand.h"
 #include "UiObject.h"
 #include "UiDevice.h"
@@ -35,6 +34,7 @@ std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::
                                                                         ::aurum::RspGetAttribute*response)
 {
     LOGI("GetAttribute --------------- ");
+
     ::aurum::ReqGetAttribute_RequestType type = request->attribute();
     LOGI("type : %d", type);
 
@@ -77,6 +77,7 @@ std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::
     obj->updateStates();
     mResponse->set_boolvalue(obj->isVisible());
     mResponse->set_status(aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
 
@@ -91,6 +92,7 @@ std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::
     obj->updateStates();
     mResponse->set_boolvalue(obj->isFocused());
     mResponse->set_status(aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
 
@@ -105,6 +107,7 @@ std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::
     obj->updateStates();
     mResponse->set_boolvalue(obj->isFocusable());
     mResponse->set_status(aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
 
@@ -119,6 +122,7 @@ std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::
     obj->updateStates();
     mResponse->set_boolvalue(obj->isCheckable());
     mResponse->set_status(aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
 
@@ -133,6 +137,7 @@ std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::
     obj->updateStates();
     mResponse->set_boolvalue(obj->isChecked());
     mResponse->set_status(aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
 
@@ -147,6 +152,7 @@ std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::
     obj->updateStates();
     mResponse->set_boolvalue(obj->isEnabled());
     mResponse->set_status(aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
 
@@ -161,6 +167,7 @@ std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::
     obj->updateStates();
     mResponse->set_boolvalue(obj->isClickable());
     mResponse->set_status(aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
 
@@ -175,6 +182,7 @@ std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::
     obj->updateStates();
     mResponse->set_boolvalue(obj->isScrollable());
     mResponse->set_status(aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
 
@@ -189,6 +197,7 @@ std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::
     obj->updateStates();
     mResponse->set_boolvalue(obj->isSelectable());
     mResponse->set_status(aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
 
@@ -203,6 +212,7 @@ std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::
     obj->updateStates();
     mResponse->set_boolvalue(obj->isSelected());
     mResponse->set_status(aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
 
@@ -217,6 +227,7 @@ std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::
     obj->updateStates();
     mResponse->set_boolvalue(obj->isShowing());
     mResponse->set_status(aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
 
@@ -231,5 +242,6 @@ std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::
     obj->updateStates();
     mResponse->set_boolvalue(obj->isActive());
     mResponse->set_status(aurum::RspStatus::OK);
+
     return grpc::Status::OK;
 }
index bf8e735697f608f46c92644b066628cc5fbd0ec5..099947bc82a078e6b18ab3c31c25efa7a051be10 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
-#include "GetDeviceTimeCommand.h"
-
 #include <system_settings.h>
 #include <utils_i18n.h>
 #include <string>
+
+#include "GetDeviceTimeCommand.h"
 #include "UiDevice.h"
 
 #define BUFSIZE 64
index bd385551ba90ac27d3d1eb63fc83aad4740f6617..f7c0228bfb6f64b981cff3baab424dc38012de3d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "GetLocationCommand.h"
 
 GetLocationCommand::GetLocationCommand(const ::aurum::ReqGetLocation *request,
index 29f4cfbde513cf4ec603ab57d1e642aa4e5afa7f..640cb27548fbda678dd12e6d942b16bd0c507ef7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "GetScreenSizeCommand.h"
 #include "UiDevice.h"
 
index 534e5a1bfcd61b072708bd0db303d1b6cfa4b7fd..19033f151d92e390f6a2f01895142844df773836 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
 #include "GetSizeCommand.h"
 #include "UiObject.h"
 #include "UiDevice.h"
 #include "UiSelector.h"
 #include "Sel.h"
 #include "ISearchable.h"
+#include "config.h"
 #ifdef MQTT_ENABLED
 #include "SaObject.h"
 #endif
index c512ae562ff87f24c61ed48522dbe9dde00d2eca..5cdec494cf2b8ad09266e325ab01f1cdcf0b08ee 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "GetTextMinBoundingRectCommand.h"
 #include "UiObject.h"
 
index e5eaabacb5f574f31de6975d12ff7c2ec834318e..72c6c5eab9978cb4e8df7567139dd8e3338ac213 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "GetValueCommand.h"
 #include "UiObject.h"
 
@@ -28,9 +27,10 @@ GetValueCommand::GetValueCommand(const ::aurum::ReqGetValue *request,
 ::grpc::Status GetValueCommand::execute()
 {
     LOGI("GetValue --------------- ");
+
     ::aurum::ParamType param_type = mRequest->type();
     if (param_type == ::aurum::STRING) {
-        ObjectMapper             *mObjMap = ObjectMapper::getInstance();
+        ObjectMapper *mObjMap = ObjectMapper::getInstance();
         std::shared_ptr<UiObject> obj =
             mObjMap->getElement(mRequest->elementid());
 
@@ -47,7 +47,7 @@ GetValueCommand::GetValueCommand(const ::aurum::ReqGetValue *request,
         LOGI("Integer is not supported.");
         mResponse->set_status(::aurum::RspStatus::ERROR);
     } else if (param_type == ::aurum::DOUBLE) {
-        ObjectMapper             *mObjMap = ObjectMapper::getInstance();
+        ObjectMapper *mObjMap = ObjectMapper::getInstance();
         std::shared_ptr<UiObject> obj =
             mObjMap->getElement(mRequest->elementid());
 
index 10747f3224744ce1ea55680bbd580080531b2a06..069c226fee7e4473170f6753342d8a411b786428 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
-#include "InstallAppCommand.h"
 #include <fstream>
 #include <chrono>
 #include <thread>
 #include <package_manager.h>
 
+#include "InstallAppCommand.h"
+
 InstallAppCommand::InstallAppCommand(
     ::grpc::ServerReader<::aurum::ReqInstallApp> *request,
     ::aurum::RspInstallApp *                      response)
index 11aca7c09ef5f0a716e1c9bbadfa661e6b1bbf50..548744fdabf0dc982748d1c9067f8b995d03327c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "KillServerCommand.h"
 
 KillServerCommand::KillServerCommand(const ::aurum::ReqEmpty *request,
index 20375a5b7c65024132c382ebd2aa57c059b9a401..d1fc6ea61455461a6199710cc31d2e4be7973db3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
+#include <chrono>
+#include <thread>
+
 #include "LaunchAppCommand.h"
 #include "LaunchAppRunnable.h"
 #include "UiDevice.h"
-#include <chrono>
-#include <thread>
 
 #define WAIT_APP_LAUNCH 10000
 
@@ -32,8 +32,10 @@ LaunchAppCommand::LaunchAppCommand(const ::aurum::ReqLaunchApp *request,
 
 ::grpc::Status LaunchAppCommand::execute()
 {
+    LOGI("LaunchApp (%s) --------------- ", mRequest->packagename().c_str());
+
     bool ret = false;
-    LOGI("LaunchApp --------------- ");
+
     std::unique_ptr<LaunchAppRunnable> cmd = std::make_unique<LaunchAppRunnable>(mRequest->packagename(), mRequest->data());
     std::shared_ptr<UiDevice> obj = UiDevice::getInstance();
     ret = obj->executeAndWaitForEvents(cmd.get(), A11yEvent::EVENT_WINDOW_ACTIVATE, WAIT_APP_LAUNCH, mRequest->packagename(), 0);
index 645d860cd4603d26b4df8bea7f0f586bb54efdb5..6856f865044820faf619fa35fea28c3c3e4af5ce 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "LongClickCommand.h"
 #include "UiObject.h"
 #include "UiDevice.h"
index 302d36038f0417fb73491076bcc891b42ae8d67f..fe0c9a463d1ff6ab223bc416ad81888b3223d45c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
 #include "PostCommand.h"
-#include <atspi/atspi.h>
 
 PostCommand::PostCommand() : PostCommand(nullptr) {}
 PostCommand::PostCommand(Command *cmd) : mCommand{cmd} {}
 
 ::grpc::Status PostCommand::execute()
 {
-    ::grpc::Status rst = mCommand->execute();
+    ::grpc::Status ret = mCommand->execute();
 
     mCommand->executePost();
 
-    return rst;
+    return ret;
 }
 
 ::grpc::Status PostCommand::executePre()
index e699b46c7ffddbe2c74527bfdb53c4b6f24cfdd8..0e6288351181677f336255ac1461ebc4579845eb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
 #include "PreCommand.h"
-#include <atspi/atspi.h>
-
-#include <thread>
-#include <chrono>
-
-#include <Ecore.h>
-#include <device/power.h>
-#include <device/display.h>
-#include <device/callback.h>
 
 PreCommand::PreCommand() : PreCommand(nullptr) {}
 PreCommand::PreCommand(Command *cmd) : mCommand{cmd} {}
index bc634dcd81330f51b85dbf633acea767921a94aa..c6a3ce4dde5fdff404a614e4b187abd987703e78 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "bootstrap.h"
-#include "RemoveAppCommand.h"
 #include <chrono>
 #include <thread>
 #include <package_manager.h>
 
+#include "RemoveAppCommand.h"
+
 RemoveAppCommand::RemoveAppCommand(const ::aurum::ReqRemoveApp* request,
                                    ::aurum::RspRemoveApp*       response)
     : mRequest{request}, mResponse{response}
index 150c0724272521738b19639408934910b9e16499..263d1a6245001c6ea483a8248c2be351cf5ad054 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "SendKeyCommand.h"
 #include "UiDevice.h"
 
@@ -28,6 +27,7 @@ SendKeyCommand::SendKeyCommand(const ::aurum::ReqKey *request,
 ::grpc::Status SendKeyCommand::execute()
 {
     LOGI("SendKey --------------- ");
+
     std::shared_ptr<UiDevice> mDevice = UiDevice::getInstance();
     ::aurum::ReqKey_KeyType type = mRequest->type();
     ::aurum::ReqKey_KeyActionType action_type = mRequest->actiontype();
index d1621014214ac1070b6ff3aa8ed84384659bf7ab..a42c68a4c888066744efb8c4940f6fef5a036984 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "SetFocusCommand.h"
 #include "UiObject.h"
 
@@ -27,9 +26,10 @@ SetFocusCommand::SetFocusCommand(const ::aurum::ReqSetFocus *request,
 
 ::grpc::Status SetFocusCommand::execute()
 {
-    bool ret = false;
     LOGI("SetFocus --------------- ");
 
+    bool ret = false;
+
     ObjectMapper *mObjMap = ObjectMapper::getInstance();
     std::shared_ptr<UiObject> obj = mObjMap->getElement(mRequest->elementid());
     if (obj) ret = obj->setFocus();
index 6f7f1ee7254f2c6f7dc9c09110a8724ce54bb1db..31d892ff66aa55b5e0133562b6ecd4b2936e0c38 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "SetValueCommand.h"
 
 SetValueCommand::SetValueCommand(const ::aurum::ReqSetValue* request,
@@ -26,8 +25,10 @@ SetValueCommand::SetValueCommand(const ::aurum::ReqSetValue* request,
 
 ::grpc::Status SetValueCommand::execute()
 {
-    bool ret = false;
     LOGI("SetValue --------------- ");
+
+    bool ret = false;
+
     ::aurum::ParamType param_type = mRequest->type();
     if (param_type == ::aurum::STRING) {
         LOGI("text:%s", mRequest->stringvalue().c_str());
index 5b09d66d3b8cba8f3c1ba5015110f10bc2f86f9f..c84175f4da80ed0d911ac8f9c7a1b9bc9de6505d 100644 (file)
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "SetXMLSyncCommand.h"
 
 SetXMLSyncCommand::SetXMLSyncCommand(const ::aurum::ReqSetXMLSync* request,
@@ -26,8 +25,9 @@ SetXMLSyncCommand::SetXMLSyncCommand(const ::aurum::ReqSetXMLSync* request,
 
 ::grpc::Status SetXMLSyncCommand::execute()
 {
-    bool sync = mRequest->enable();
-    AccessibleWatcher::getInstance()->setXMLsync(sync);
+    LOGI("SetXMLSync (%d) --------------- ", mRequest->enable());
+
+    AccessibleWatcher::getInstance()->setXMLsync(mRequest->enable());
 
     mResponse->set_status(::aurum::RspStatus::OK);
     return grpc::Status::OK;
index a536684d07563bd03bed1278d5cb1e7afb33cc8b..73f84e50007504535293fc0b5b2c8b3570ba5189 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,9 +15,9 @@
  *
  */
 
-#include "bootstrap.h"
-#include "TakeScreenshotCommand.h"
 #include <fstream>
+
+#include "TakeScreenshotCommand.h"
 #include "UiObject.h"
 #include "UiDevice.h"
 
index 02e4fe6d6c3f26301b68ed18cf0049b8cbb86cfb..040e7f478f3a5877e21a5b9dc47c3e502f7db03d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "TouchDownCommand.h"
 #include "UiDevice.h"
 
@@ -28,6 +27,7 @@ TouchDownCommand::TouchDownCommand(const ::aurum::ReqTouchDown *request,
 ::grpc::Status TouchDownCommand::execute()
 {
     LOGI("TouchDown --------------- ");
+
     const aurum::Point& point_ = mRequest->coordination();
     int seq = UiDevice::getInstance()
         ->touchDown(point_.x(), point_.y());
index a7389b003d8c1856a6f60de658b6df52351b59f6..5a5e3321a543acec0627d7eee989246a919dd5e6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "TouchMoveCommand.h"
 #include "UiDevice.h"
 
@@ -28,6 +27,7 @@ TouchMoveCommand::TouchMoveCommand(const ::aurum::ReqTouchMove *request,
 ::grpc::Status TouchMoveCommand::execute()
 {
     LOGI("TouchMove --------------- ");
+
     const aurum::Point& point = mRequest->coordination();
     int seq = mRequest->seqid();
     UiDevice::getInstance()->touchMove(point.x(), point.y(), seq);
index a87c6c305a6f8e9caf92d6685f4ad8ca03c24614..894a375355e47b40d29189207085193173d6d15f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
  *
  */
 
-#include "bootstrap.h"
 #include "TouchUpCommand.h"
 #include "UiDevice.h"
 
@@ -28,6 +27,7 @@ TouchUpCommand::TouchUpCommand(const ::aurum::ReqTouchUp *request,
 ::grpc::Status TouchUpCommand::execute()
 {
     LOGI("TouchUp --------------- ");
+
     const aurum::Point& point = mRequest->coordination();
     int seq = mRequest->seqid();
     UiDevice::getInstance()->touchUp(point.x(), point.y(), seq);
index 87e1f01c158fdcb88be23142b1411404a80f3d97..269b3bbd430c044fbee61033f305939b666002e3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *
  */
 
-#include "ObjectMapper.h"
-#include <memory>
-#include "bootstrap.h"
 #include <algorithm>
 #include <sstream>
+#include <memory>
+
+#include "ObjectMapper.h"
 
-ObjectMapper::ObjectMapper() : mObjectMap{}, mObjCounter{0} {}
+ObjectMapper::ObjectMapper() : mObjectMap{} {}
 
 ObjectMapper::~ObjectMapper() {}
 
index 75c4637e16004138537c1b8584c9f723cd058e2a..a9a755bc0ef22a88d4cbc3f086fc34c57b3b9a02 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
index 1fc173d6b31eb212f9f77627806cbbcf7d8abffd..a59109c52fb9b2e2565d5b31a70e01afbc7be7d5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.