aurum: Code clean up for 1.0 Release 97/264197/5
authorWoochanlee <wc0917.lee@samsung.com>
Tue, 14 Sep 2021 08:10:38 +0000 (17:10 +0900)
committerWoochanlee <wc0917.lee@samsung.com>
Thu, 23 Sep 2021 04:02:41 +0000 (13:02 +0900)
1. Delete useless class such as capi, AccessibleUtils.
2. Delete commented out codes.
3. Delete useless build configure.
4. Delete uesless methods.
5. Delete useless event types.
6. Code indentations.

Change-Id: I5bd1495ebfd41990b52f5c9ecc4a630ed43a057f

20 files changed:
libaurum/capi/inc/capi_uidevice.h [deleted file]
libaurum/capi/src/capi_uidevice.c [deleted file]
libaurum/inc/Accessibility/Accessible.h
libaurum/inc/Accessibility/AccessibleNode.h
libaurum/inc/Accessibility/AccessibleUtils.h [deleted file]
libaurum/inc/Accessibility/AccessibleWatcher.h
libaurum/inc/Accessibility/IEventConsumer.h
libaurum/inc/Impl/Accessibility/AtspiAccessibleWatcher.h
libaurum/inc/Impl/TizenDeviceImpl.h
libaurum/inc/Waiter.h
libaurum/src/Accessibility/AccessibleUtils.cc [deleted file]
libaurum/src/Accessibility/meson.build
libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc
libaurum/src/UiObject.cc
meson.build
org.tizen.aurum-bootstrap/src/Commands/CloseAppCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetAppInfoCommand.cc
org.tizen.aurum-bootstrap/src/Commands/InstallAppCommand.cc
org.tizen.aurum-bootstrap/src/Commands/RemoveAppCommand.cc
org.tizen.aurum-bootstrap/src/Runnable/LaunchAppRunnable.cc

diff --git a/libaurum/capi/inc/capi_uidevice.h b/libaurum/capi/inc/capi_uidevice.h
deleted file mode 100644 (file)
index b91be75..0000000
+++ /dev/null
@@ -1,164 +0,0 @@
-#pragma once
-
-
-typedef enum _KeyRequestType {
-    STROKE,
-    LONG_STROKE,
-    PRESS,
-    RELEASE,
-} KeyRequestType;
-
-typedef enum _TimeRequestType {
-    WALLCLOCK,
-    MONOTONIC,
-} TimeRequestType;
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_click(const int x, const int y);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_interval_click(const int x, const int y, const unsigned int intv);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_drag(const int sx, const int sy, const int ex, const int ey,
-            const int steps, const int durationMs);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_touchDown(const int x, const int y);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_touchMove(const int x, const int y, const int seq);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_touchUp(const int x, const int y, const int seq);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_wheelUp(int amount, const int durationMs);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_wheelDown(int amount, const int durationMs);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_pressBack(KeyRequestType type);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_pressHome(KeyRequestType type);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_pressMenu(KeyRequestType type);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_pressVolUp(KeyRequestType type);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_pressVolDown(KeyRequestType type);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_pressPower(KeyRequestType type);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_pressKeyCode(char* keycode, KeyRequestType type);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_takeScreenshot(char* path, float scale, int quality);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-long long aurum_uidevice_getSystemTime(TimeRequestType type);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-int aurum_uidevice_hasObject(const std::shared_ptr<UiSelector> selector);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-std::shared_ptr<UiObject> aurum_uidevice_findObject(
-    const std::shared_ptr<UiSelector> selector) const;
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-std::vector<std::shared_ptr<UiObject>> aurum_uidevice_findObjects(
-    const std::shared_ptr<UiSelector> selector) const;
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-/*
-bool aurum_uidevice_waitFor(
-    const std::function<bool(const ISearchable *)> condition) const;
-*/
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-std::shared_ptr<UiObject> aurum_uidevice_waitFor(
-    const std::function<std::shared_ptr<UiObject>(const ISearchable *)>
-        condition) const;
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-std::shared_ptr<UiDevice> aurum_uidevice_getInstance(IDevice *deviceImpl = nullptr);
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-std::vector<std::shared_ptr<AccessibleNode>> aurum_uidevice_getWindowRoot() const;
diff --git a/libaurum/capi/src/capi_uidevice.c b/libaurum/capi/src/capi_uidevice.c
deleted file mode 100644 (file)
index da98682..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#include "capi_uidevice.h"
\ No newline at end of file
index 1f369be9dffe80f31523b6e795b53dc8b88ac91a..df22041c37f8f1e591074568f353ca562ae4811f 100644 (file)
@@ -1,7 +1,6 @@
 #pragma once
 
 #include "AccessibleNode.h"
-#include "AccessibleUtils.h"
 #include "AccessibleWatcher.h"
 #include "AccessibleApplication.h"
 #include "AccessibleWindow.h"
index bbef7250c825cfc119dfd30a3d30b21f739ae344..c5dc2b5854d37effbea76732f3f5743ef71fd454 100644 (file)
@@ -6,9 +6,7 @@
 #include <vector>
 #include <mutex>
 
-#include "AccessibleUtils.h"
 #include "IEventConsumer.h"
-
 #include "Rect.h"
 #include "config.h"
 
@@ -63,7 +61,7 @@ enum class NodeFeatureProperties {
  * @since_tizen 5.5
  */
 class AccessibleNode : public std::enable_shared_from_this<AccessibleNode>, public IEventConsumer  {
-public:  // Constructor & Destructor
+public:
     /**
      * @brief TBD
      * @since_tizen 5.5
diff --git a/libaurum/inc/Accessibility/AccessibleUtils.h b/libaurum/inc/Accessibility/AccessibleUtils.h
deleted file mode 100644 (file)
index 3b38a84..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-#pragma once
-
-//#include <atspi/atspi.h>
-#include <gio/gio.h>
-
-#include <string.h>
-#include <memory>
-
-#include "config.h"
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-struct GobjDeletor {
-    void operator()(gpointer ptr) const
-    {
-        if (ptr) g_object_unref(ptr);
-    }
-};
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-struct GarrayDeletor {
-    void operator()(GArray *ptr) const
-    {
-        if (ptr) g_array_free(ptr, 1);
-    }
-};
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-template <class T>
-using unique_ptr_gobj = std::unique_ptr<T, GobjDeletor>;
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-template <class T>
-using unique_ptr_garray = std::unique_ptr<T, GarrayDeletor>;
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-template <class T>
-unique_ptr_gobj<T> make_gobj_unique(T *ptr)
-{
-    return unique_ptr_gobj<T>(ptr);
-}
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-template <class T>
-unique_ptr_garray<T> make_garray_unique(T *ptr)
-{
-    return unique_ptr_garray<T>(ptr);
-}
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-template <class T>
-unique_ptr_gobj<T> make_gobj_ref_unique(T *ptr)
-{
-    g_object_ref(ptr);
-    return unique_ptr_gobj<T>(ptr);
-}
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-template <class T>
-std::shared_ptr<T> make_gobj_shared(T *ptr)
-{
-    return std::shared_ptr<T>(ptr, [](T *ptr){ if(ptr) g_object_unref(ptr); });
-}
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-template <class T>
-std::shared_ptr<T> make_garray_shared(T *ptr)
-{
-    return std::shared_ptr<T>(ptr,  [](T *ptr){ if(ptr) g_array_free(ptr, 1); });
-}
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-template <class T>
-std::shared_ptr<T> make_gobj_ref_shared(T *ptr)
-{
-    g_object_ref(ptr);
-    return std::shared_ptr<T>(ptr,  [](T *ptr){ if(ptr) g_object_unref(ptr); });
-}
-
-/**
- * @brief TBD
- * @since_tizen 5.5
- */
-//char *state_to_char(AtspiStateType state);
index 3090741747d9560ec111d1acdc2b2a827bfa15d8..c01654b16d3d6bf9e306f7eca141f7576f948902 100644 (file)
@@ -3,7 +3,6 @@
 #include "AccessibleApplication.h"
 #include "AccessibleWindow.h"
 #include "AccessibleNode.h"
-#include "AccessibleUtils.h"
 #include "IEventSource.h"
 #include "Runnable.h"
 #include "A11yEvent.h"
@@ -59,13 +58,18 @@ public:
      */
     virtual std::vector<std::shared_ptr<AccessibleApplication>> getApplications(void) const = 0;
 
-    /**s
+    /**
      * @brief TBD
      * @since_tizen 6.5
      */
     virtual bool executeAndWaitForEvents(const Runnable *cmd, const A11yEvent type, const int timeout) = 0;
 
+    /**
+     * @brief TBD
+     * @since_tizen 6.5
+     */
     virtual std::map<AtspiAccessible *, std::shared_ptr<AccessibleApplication>> getActiveAppMap(void) = 0;
+
 public:
     /**
      * @brief TBD
index 970e5168114c4c19524a132888115a3a52070b4f..5240eccdf242084cb4f3c00bf3519836fbd97204 100644 (file)
@@ -1,20 +1,13 @@
 #pragma once
 
 enum class EventType {
-    Window,
-    Object,
-};
-
-enum class WindowEventType {
-    WindowActivated,
-    WindowDeactivated,
-    WindowCreated,
-    WindowDestroyed,
+    none = 0,
+    Object = 1,
 };
 
 enum class ObjectEventType {
-    ObjectStateVisible,
-    ObjectStateDefunct,
+    none = 0,
+    ObjectStateDefunct = 1,
 };
 
 class IEventConsumer
index 663835fd1f32514117fc5cc356f7f2219ad58206..a089e4c5786d83332f41b61aaf42cd875b9adace 100644 (file)
@@ -37,36 +37,6 @@ public:
      */
     virtual ~IAtspiEvents() {}
 
-    /**
-     * @brief TBD
-     * @since_tizen 5.5
-     */
-    virtual void onWindowActivated(AtspiAccessible *node, WindowActivateInfoType type) = 0;
-
-    /**
-     * @brief TBD
-     * @since_tizen 5.5
-     */
-    virtual void onWindowDeactivated(AtspiAccessible *node) = 0;
-
-    /**
-     * @brief TBD
-     * @since_tizen 5.5
-     */
-    virtual void onWindowCreated(AtspiAccessible *node) = 0;
-
-    /**
-     * @brief TBD
-     * @since_tizen 5.5
-     */
-    virtual void onWindowDestroyed(AtspiAccessible *node) = 0;
-
-    /**
-     * @brief TBD
-     * @since_tizen 5.5
-     */
-    virtual void onVisibilityChanged(AtspiAccessible *node, bool visible) = 0;
-
     /**
      * @brief TBD
      * @since_tizen 5.5
@@ -114,36 +84,6 @@ public:
      */
     static void onAtspiEvents(AtspiEvent *event, void *user_data);
 
-    /**
-     * @brief TBD
-     * @since_tizen 5.5
-     */
-    void onWindowActivated(AtspiAccessible *node, WindowActivateInfoType type) override;
-
-    /**
-     * @brief TBD
-     * @since_tizen 5.5
-     */
-    void onWindowDeactivated(AtspiAccessible *node) override;
-
-    /**
-     * @brief TBD
-     * @since_tizen 5.5
-     */
-    void onWindowCreated(AtspiAccessible *node) override;
-
-    /**
-     * @brief TBD
-     * @since_tizen 5.5
-     */
-    void onWindowDestroyed(AtspiAccessible *node) override;
-
-    /**
-     * @brief TBD
-     * @since_tizen 5.5
-     */
-    void onVisibilityChanged(AtspiAccessible *node, bool visible) override;
-
     /**
      * @brief TBD
      * @since_tizen 5.5
@@ -180,8 +120,6 @@ private:
      */
     bool addToWindowSet(AtspiAccessible *node);
 
-    void print_debug();
-
     /**
      * @brief TBD
      * @since_tizen 6.5
index 01541dbd9cc11d25806dbdc0af72befcc685d524..fff19b5f80939b856a6da65144936e051491e96a 100644 (file)
@@ -1,13 +1,11 @@
 #pragma once
 
 #include "config.h"
-
 #include "IDevice.h"
-#include <set>
 
-#ifdef GBS_BUILD
+#include <set>
 #include <efl_util.h>
-#endif
+
 /**
  * @brief TizenDeviceImpl Class
  * @since_tizen 5.5
index ae33f60c1a6e12df48a4d23d205c95c87d45421f..9218a3dcf4741010a812db1eb9ca48a49f6a7706 100644 (file)
@@ -21,7 +21,7 @@ public:
      * @since_tizen 5.5
      */
     Waiter(const ISearchable *searchableObject,
-           const UiObject *uiObject = nullptr);  // : mObject{object}
+           const UiObject *uiObject = nullptr);
 
     /**
      * @brief TBD
diff --git a/libaurum/src/Accessibility/AccessibleUtils.cc b/libaurum/src/Accessibility/AccessibleUtils.cc
deleted file mode 100644 (file)
index b126880..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-#include "Aurum.h"
-
-#include <string.h>
-
-char* state_to_char(AtspiStateType state)
-{
-   switch (state) {
-   case ATSPI_STATE_INVALID:
-      return strdup("ATSPI_STATE_INVALID");
-   case ATSPI_STATE_ACTIVE:
-      return strdup("ATSPI_STATE_ACTIVE");
-   case ATSPI_STATE_ARMED:
-      return strdup("ATSPI_STATE_ARMED");
-   case ATSPI_STATE_BUSY:
-      return strdup("ATSPI_STATE_BUSY");
-   case ATSPI_STATE_CHECKED:
-      return strdup("ATSPI_STATE_CHECKED");
-   case ATSPI_STATE_COLLAPSED:
-      return strdup("ATSPI_STATE_COLLAPSED");
-   case ATSPI_STATE_DEFUNCT:
-      return strdup("ATSPI_STATE_DEFUNCT");
-   case ATSPI_STATE_EDITABLE:
-      return strdup("ATSPI_STATE_EDITABLE");
-   case ATSPI_STATE_ENABLED:
-      return strdup("ATSPI_STATE_ENABLED");
-   case ATSPI_STATE_EXPANDABLE:
-      return strdup("ATSPI_STATE_EXPANDABLE");
-   case ATSPI_STATE_EXPANDED:
-      return strdup("ATSPI_STATE_EXPANDED");
-   case ATSPI_STATE_FOCUSABLE:
-      return strdup("ATSPI_STATE_FOCUSABLE");
-   case ATSPI_STATE_FOCUSED:
-      return strdup("ATSPI_STATE_FOCUSED");
-   case ATSPI_STATE_HAS_TOOLTIP:
-      return strdup("ATSPI_STATE_HAS_TOOLTIP");
-   case ATSPI_STATE_HORIZONTAL:
-      return strdup("ATSPI_STATE_HORIZONTAL");
-   case ATSPI_STATE_ICONIFIED:
-      return strdup("ATSPI_STATE_ICONIFIED");
-   case ATSPI_STATE_MULTI_LINE:
-      return strdup("ATSPI_STATE_MULTI_LINE");
-   case ATSPI_STATE_MULTISELECTABLE:
-      return strdup("ATSPI_STATE_MULTISELECTABLE");
-   case ATSPI_STATE_OPAQUE:
-      return strdup("ATSPI_STATE_OPAQUE");
-   case ATSPI_STATE_PRESSED:
-      return strdup("ATSPI_STATE_PRESSED");
-   case ATSPI_STATE_RESIZABLE:
-      return strdup("ATSPI_STATE_RESIZABLE");
-   case ATSPI_STATE_SELECTABLE:
-      return strdup("ATSPI_STATE_SELECTABLE");
-   case ATSPI_STATE_SELECTED:
-      return strdup("ATSPI_STATE_SELECTED");
-   case ATSPI_STATE_SENSITIVE:
-      return strdup("ATSPI_STATE_SENSITIVE");
-   case ATSPI_STATE_SHOWING:
-      return strdup("ATSPI_STATE_SHOWING");
-   case ATSPI_STATE_SINGLE_LINE:
-      return strdup("ATSPI_STATE_SINGLE_LINE");
-   case ATSPI_STATE_STALE:
-      return strdup("ATSPI_STATE_STALE");
-   case ATSPI_STATE_TRANSIENT:
-      return strdup("ATSPI_STATE_TRANSIENT");
-   case ATSPI_STATE_VERTICAL:
-      return strdup("ATSPI_STATE_VERTICAL");
-   case ATSPI_STATE_VISIBLE:
-      return strdup("ATSPI_STATE_VISIBLE");
-   case ATSPI_STATE_MANAGES_DESCENDANTS:
-      return strdup("ATSPI_STATE_MANAGES_DESCENDANTS");
-   case ATSPI_STATE_INDETERMINATE:
-      return strdup("ATSPI_STATE_INDETERMINATE");
-   case ATSPI_STATE_REQUIRED:
-      return strdup("ATSPI_STATE_REQUIRED");
-   case ATSPI_STATE_TRUNCATED:
-      return strdup("ATSPI_STATE_TRUNCATED");
-   case ATSPI_STATE_ANIMATED:
-      return strdup("ATSPI_STATE_ANIMATED");
-   case ATSPI_STATE_INVALID_ENTRY:
-      return strdup("ATSPI_STATE_INVALID_ENTRY");
-   case ATSPI_STATE_SUPPORTS_AUTOCOMPLETION:
-      return strdup("ATSPI_STATE_SUPPORTS_AUTOCOMPLETION");
-   case ATSPI_STATE_SELECTABLE_TEXT:
-      return strdup("ATSPI_STATE_SELECTABLE_TEXT");
-   case ATSPI_STATE_IS_DEFAULT:
-      return strdup("ATSPI_STATE_IS_DEFAULT");
-   case ATSPI_STATE_VISITED:
-      return strdup("ATSPI_STATE_VISITED");
-   case ATSPI_STATE_CHECKABLE:
-      return strdup("ATSPI_STATE_CHECKABLE");
-   case ATSPI_STATE_HAS_POPUP:
-      return strdup("ATSPI_STATE_HAS_POPUP");
-   case ATSPI_STATE_READ_ONLY:
-      return strdup("ATSPI_STATE_READ_ONLY");
-   case ATSPI_STATE_LAST_DEFINED:
-      return strdup("ATSPI_STATE_LAST_DEFINED");
-   case ATSPI_STATE_MODAL:
-      return strdup("ATSPI_STATE_MODAL");
-   default:
-      return strdup("\0");
-   }
-}
-
-static void _print_stateset_debug( AtspiStateSet *stateSet)
-{
-   if (!stateSet) return;
-   GArray *states = AtspiWrapper::Atspi_state_set_get_states(stateSet);
-   if (!states) return;
-
-   char *state_name = NULL;
-   AtspiStateType stat;
-   LOGI("check ss:%p s:%p, len:%d", stateSet, states, states->len);
-   for (int i = 0; states && (i < states->len); ++i) {
-      stat = g_array_index(states, AtspiStateType, i);
-      state_name = state_to_char(stat);
-      LOGI("state: %s", state_name);
-      free(state_name);
-   }
-   g_array_free(states, 1);
-}
\ No newline at end of file
index 9eb78687c70e70783ac301d13480170d602574f5..4bb5f1d6a6b50b4e93471a486be9cd5a24c7d80c 100644 (file)
@@ -1,7 +1,6 @@
 libaurum_src += [
     files('AccessibleApplication.cc'),
     files('AccessibleNode.cc'),
-    #files('AccessibleUtils.cc'),
     files('AccessibleWatcher.cc'),
     files('AccessibleWindow.cc'),
 ]
\ No newline at end of file
index fa61623737f7caccb3c1f193ff19d4ccf615006f..4d8c6d682924b9ad573bc4e56018e1c6d6efce7b 100644 (file)
@@ -11,6 +11,9 @@
 #include <thread>
 #include <iostream>
 
+#define COMPARE(A, B) \
+    (B != A11yEvent::EVENT_NONE) && ((A & B) == B)
+
 std::vector<std::shared_ptr<A11yEventInfo>> AtspiAccessibleWatcher::mEventQueue;
 GThread *AtspiAccessibleWatcher::mEventThread = nullptr;
 std::mutex AtspiAccessibleWatcher::mMutex = std::mutex{};
@@ -188,56 +191,6 @@ void AtspiAccessibleWatcher::onAtspiEvents(AtspiEvent *event, void *user_data)
     if (pkg) free(pkg);
 }
 
-void AtspiAccessibleWatcher::print_debug()
-{
-    LOGI("activatewindowlist-------------------");
-    std::for_each(mActivatedWindowList.begin(), mActivatedWindowList.end(), [](auto acc){
-        LOGI("child:%p", acc);
-    });
-
-    LOGI("mActivatedApplicationList--------------------------");
-    std::for_each(mActivatedApplicationList.begin(), mActivatedApplicationList.end(), [](auto acc){
-        LOGI("child:%p", acc);
-    });
-
-    LOGI("mWindowSet------------------------------");
-    std::for_each(mWindowSet.begin(), mWindowSet.end(), [](auto acc){
-        LOGI("child:%p", acc);
-    });
-    LOGI("------------------------------");
-}
-
-void AtspiAccessibleWatcher::onWindowActivated(AtspiAccessible *node,
-                            WindowActivateInfoType type)
-{
-    LOGI("onWindowActivated obj:%p", node);
-    notifyAll((int)EventType::Window, (int)WindowEventType::WindowActivated, node);
-}
-
-void AtspiAccessibleWatcher::onWindowDeactivated(AtspiAccessible *node)
-{
-    LOGI("onWindowDeactivated obj:%p", node);
-    notifyAll((int)EventType::Window, (int)WindowEventType::WindowDeactivated, node);
-}
-
-void AtspiAccessibleWatcher::onWindowCreated(AtspiAccessible *node)
-{
-    LOGI("onWindowCreated obj:%p", node);
-    notifyAll((int)EventType::Window, (int)WindowEventType::WindowCreated, node);
-}
-
-void AtspiAccessibleWatcher::onWindowDestroyed(AtspiAccessible *node)
-{
-    LOGI("onWindowDestroyed obj:%p", node);
-    notifyAll((int)EventType::Window, (int)WindowEventType::WindowDestroyed, node);
-}
-
-void AtspiAccessibleWatcher::onVisibilityChanged(AtspiAccessible *node, bool visible)
-{
-    LOGI("onVisibilityChanged obj:%p", node);
-    notifyAll((int)EventType::Object, (int)ObjectEventType::ObjectStateVisible, node);
-}
-
 void AtspiAccessibleWatcher::onObjectDefunct(AtspiAccessible *node)
 {
     LOGI("onObjectDefunct obj:%p", node);
@@ -282,9 +235,6 @@ std::vector<std::shared_ptr<AccessibleApplication>> AtspiAccessibleWatcher::getA
     return ret;
 }
 
-#define COMPARE(A, B) \
-    (B != A11yEvent::EVENT_NONE) && ((A & B) == B)
-
 bool AtspiAccessibleWatcher::executeAndWaitForEvents(const Runnable *cmd, const A11yEvent type, const int timeout)
 {
     mMutex.lock();
index 6470a85debe16d425dd6e7838c92b358cd58a4cf..e8f7cddf75e81fb11998458e8791a07993fbbd96 100644 (file)
@@ -31,16 +31,6 @@ UiObject::UiObject(const std::shared_ptr<UiDevice> device, const std::shared_ptr
 {
 }
 
-// UiObject::UiObject(const UiObject &src)
-//     : mDevice(src.mDevice),
-//       mSelector(src.mSelector),
-//       mNode(src.mNode),
-//       mWaiter{src.mWaiter},
-//       mNode_src(std::move(src.mNode_src))
-
-// {
-// }
-
 UiObject::UiObject(UiObject &&src)
     : mDevice(src.mDevice),
       mSelector(std::move(src.mSelector)),
index 68d7bd992c2273764d9cb4c6ec49ddc1b10e6887..3a8f395f64e4623fe86cf228a57279547c539340 100644 (file)
@@ -9,8 +9,6 @@ dir_include   = join_paths(dir_prefix, get_option('includedir'))
 
 config_h = configuration_data()
 if get_option('tizen') == true
-  config_h.set10('GBS_BUILD', true)
-  config_h.set10('GBSBUILD', true)
   config_h.set10('TIZEN', true)
 else
   message('')
index c1073f4eec40aebfe96c406ea71a76e5b9c8c5d2..d1863d22ae7c0d9d25be8139e7b9573a7964342d 100644 (file)
@@ -2,9 +2,7 @@
 #include "CloseAppCommand.h"
 #include <chrono>
 #include <thread>
-#ifdef GBSBUILD
 #include <app_manager_extension.h>
-#endif
 
 CloseAppCommand::CloseAppCommand(const ::aurum::ReqCloseApp *request,
                                  ::aurum::RspCloseApp *response)
@@ -15,7 +13,7 @@ CloseAppCommand::CloseAppCommand(const ::aurum::ReqCloseApp *request,
 ::grpc::Status CloseAppCommand::execute()
 {
     LOGI("CloseApp --------------- ");
-#ifdef GBSBUILD
+
     std::string   packageName = mRequest->packagename();
     app_context_h app_context = NULL;
 
@@ -33,7 +31,7 @@ CloseAppCommand::CloseAppCommand(const ::aurum::ReqCloseApp *request,
         mResponse->set_status(::aurum::RspStatus::ERROR);
         return grpc::Status::OK;
     }
-#endif
+
     return grpc::Status::OK;
 }
 
index cf14e32aad34b5616052bb6cf6ffbfeaf1840eae..4e155bb1ebae7103253314049a62f1f7336153a0 100644 (file)
@@ -1,9 +1,7 @@
 #include "bootstrap.h"
 #include "GetAppInfoCommand.h"
-#ifdef GBSBUILD
 #include <app_manager_extension.h>
 #include <package_manager.h>
-#endif
 
 GetAppInfoCommand::GetAppInfoCommand(const ::aurum::ReqGetAppInfo *request,
                                      ::aurum::RspGetAppInfo *response)
@@ -14,7 +12,7 @@ GetAppInfoCommand::GetAppInfoCommand(const ::aurum::ReqGetAppInfo *request,
 ::grpc::Status GetAppInfoCommand::execute()
 {
     LOGI("GetAppInfo --------------- ");
-#ifdef GBSBUILD
+
     std::string packageName = mRequest->packagename();
 
     app_context_h  app_context;
@@ -45,6 +43,5 @@ GetAppInfoCommand::GetAppInfoCommand(const ::aurum::ReqGetAppInfo *request,
         }
     }
 
-#endif
     return grpc::Status::OK;
 }
index 500557a0ac0abd70bee8865426b38ccb1e0f7292..9e1b0b2e1f87dcfb2a19cad5f7c65bf7f4b57a4f 100644 (file)
@@ -3,9 +3,7 @@
 #include <fstream>
 #include <chrono>
 #include <thread>
-#ifdef GBSBUILD
 #include <package_manager.h>
-#endif
 
 InstallAppCommand::InstallAppCommand(
     ::grpc::ServerReader<::aurum::ReqInstallApp> *request,
@@ -17,7 +15,7 @@ InstallAppCommand::InstallAppCommand(
 ::grpc::Status InstallAppCommand::execute()
 {
     LOGI("InstallApp --------------- ");
-#ifdef GBSBUILD
+
     ::aurum::ReqInstallApp chunk;
 
     std::ofstream outfile("/tmp/app.tpk", std::ofstream::binary);
@@ -34,7 +32,7 @@ InstallAppCommand::InstallAppCommand(
 
     package_manager_request_create(&pkgRequest);
     package_manager_request_install(pkgRequest, "/tmp/app.tpk", &id);
-#endif
+
     return grpc::Status::OK;
 }
 
index 7c20460127d4d457881d2b9aa4b02902480c4caa..3fe4c37eaee72bca723a63b275498fc1c08f3e3e 100644 (file)
@@ -2,9 +2,7 @@
 #include "RemoveAppCommand.h"
 #include <chrono>
 #include <thread>
-#ifdef GBSBUILD
 #include <package_manager.h>
-#endif
 
 RemoveAppCommand::RemoveAppCommand(const ::aurum::ReqRemoveApp* request,
                                    ::aurum::RspRemoveApp*       response)
@@ -16,7 +14,6 @@ RemoveAppCommand::RemoveAppCommand(const ::aurum::ReqRemoveApp* request,
 {
     LOGI("RemoveAppCommand::execute");
 
-#ifdef GBSBUILD
     package_manager_request_h pkgRequest;
     std::string               name = mRequest->packagename();
     int                       id;
@@ -27,7 +24,7 @@ RemoveAppCommand::RemoveAppCommand(const ::aurum::ReqRemoveApp* request,
             mResponse->set_status(::aurum::RspStatus::OK);
         }
     }
-#endif
+
     return grpc::Status::OK;
 }
 
index 887a44ad25c0fbc3577c79d276f5c2d02c95f233..b842b8dd038afe0f970a25fe9384080ec10b0402 100644 (file)
@@ -2,10 +2,7 @@
 #include "bootstrap.h"
 #include "LaunchAppCommand.h"
 #include "LaunchAppRunnable.h"
-
-#ifdef GBSBUILD
 #include <app_control.h>
-#endif
 
 LaunchAppRunnable::LaunchAppRunnable(std::string pkg, const google::protobuf::RepeatedPtrField<aurum::LaunchData>& data)
     : mPkg{pkg}, mData(data)
@@ -14,7 +11,6 @@ LaunchAppRunnable::LaunchAppRunnable(std::string pkg, const google::protobuf::Re
 
 void LaunchAppRunnable::run() const
 {
-#ifdef GBSBUILD
     app_control_h appControl;
     std::string   packageName = mPkg;
     int           ret = -1;
@@ -51,7 +47,6 @@ void LaunchAppRunnable::run() const
     }
 
     app_control_destroy(appControl);
-#endif
 }
 
 std::string LaunchAppRunnable::getPkgName()