libaurum: add updateApplication information 95/290995/1
authorHosang Kim <hosang12.kim@samsung.com>
Thu, 6 Apr 2023 06:43:02 +0000 (15:43 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Thu, 6 Apr 2023 06:43:02 +0000 (15:43 +0900)
Change-Id: Id25717aebac97fd163db004db40c8ab719a40f42

libaurum/src/AurumXML.cc
libaurum/src/UiDevice.cc

index 7da5c37..8f3ba78 100644 (file)
@@ -46,6 +46,7 @@ void AurumXML::traverse(xml_node& element, const std::shared_ptr<AccessibleNode>
     node->updateRoleName();
     node->updateAttributes();
     node->updateToolkitName();
+    node->updateApplication();
 
     std::string name;
     if (node->getType().empty())
index 1cac2bb..7438bbf 100644 (file)
@@ -216,6 +216,7 @@ std::vector<std::shared_ptr<AccessibleNode>> UiDevice::getWindowRoot() const
         auto wins = pidToAppNode[tWin->getPid()]->getWindows();
         std::transform(wins.begin(), wins.end(), std::back_inserter(ret),
              [&](std::shared_ptr<AccessibleWindow> window) {
+                 window->getAccessibleNode()->updateApplication();
                  LOGI("Target window add pkg: (%s), name (%s)", window->getAccessibleNode()->getPkg().c_str(), window->getTitle().c_str());
                  return window->getAccessibleNode();
              }