/test/testfwk/arkxtest/uitest/record/ |
D | find_widget.cpp | 35 bool WidgetMatcherByCoord::Matches(const Widget &widget) const in Matches() 37 Rect rect = widget.GetBounds(); in Matches() 45 int32_t WidgetCollector::GetDept(const Widget &widget) const in GetDept() 47 return widget.GetHierarchy().length(); in GetDept() 50 void WidgetCollector::Visit(const Widget &widget) in Visit() argument 52 if (matcher_.Matches(widget)) { in Visit() 53 int32_t dept = GetDept(widget); in Visit() 59 receiver_.insert(std::make_pair(dept, widget)); in Visit()
|
D | find_widget.h | 38 bool Matches(const Widget &widget) const override; 52 void Visit(const Widget &widget) override; 54 int32_t GetDept(const Widget &widget) const;
|
/test/testfwk/arkxtest/uitest/test/ |
D | widget_matcher_test.cpp | 80 Widget widget(""); in TEST() local 81 widget.SetAttr(ATTR_TEXT, "wyz"); in TEST() 84 ASSERT_TRUE(matcherA.Matches(widget)); in TEST() 85 widget.SetAttr(ATTR_TEXT, "wlj"); in TEST() 86 ASSERT_FALSE(matcherA.Matches(widget)); in TEST() 115 Widget widget(""); in TEST() local 116 widget.SetAttr(ATTR_TEXT, "wyz"); in TEST() 125 ASSERT_TRUE(allMatcher0.Matches(widget)); in TEST() 126 ASSERT_FALSE(allMatcher1.Matches(widget)); in TEST() 148 Widget widget(""); in TEST() local [all …]
|
D | ui_model_test.cpp | 40 Widget widget("hierarchy"); in TEST() local 42 ASSERT_EQ("none", widget.GetAttr(ATTR_TEXT, "none")); in TEST() 44 widget.SetAttr(ATTR_TEXT, "wyz"); in TEST() 45 ASSERT_EQ("wyz", widget.GetAttr(ATTR_TEXT, "none")); in TEST() 54 Widget widget("hierarchy"); in TEST() local 55 widget.SetAttr(ATTR_TEXT, "wyz"); in TEST() 56 widget.SetAttr(ATTR_ID, "100"); in TEST() 57 widget.SetHostTreeId("tree-10086"); in TEST() 58 widget.SetBounds(Rect(1, 2, 3, 4)); in TEST() 60 auto newWidget = move(widget); in TEST() [all …]
|
/test/testfwk/arkxtest/uitest/core/ |
D | ui_model.cpp | 139 static void SetWidgetBounds(Widget &widget, string_view boundsStr) in SetWidgetBounds() argument 166 widget.SetBounds(rect); in SetWidgetBounds() 169 static void SetWidgetAttributes(Widget &widget, const map<string, string> &attributes) in SetWidgetAttributes() argument 173 SetWidgetBounds(widget, item.second); in SetWidgetAttributes() 175 widget.SetAttr(item.first, item.second); in SetWidgetAttributes() 202 auto widget = widgetMap_.find(hierarchy); in DfsTraverseFronts() local 203 DCHECK(widget != widgetMap_.end()); in DfsTraverseFronts() 204 visitor.Visit(widget->second); in DfsTraverseFronts() 228 auto widget = widgetMap_.find(hierarchy); in DfsTraverseRears() local 229 DCHECK(widget != widgetMap_.end()); in DfsTraverseRears() [all …]
|
D | widget_matcher.cpp | 61 bool WidgetAttrMatcher::Matches(const Widget &widget) const in Matches() 63 if (!widget.HasAttr(attrName_)) { in Matches() 66 auto attrValue = widget.GetAttr(attrName_, ""); in Matches() 116 bool RootMatcher::Matches(const Widget &widget) const in Matches() 118 return WidgetTree::IsRootWidgetHierarchy(widget.GetHierarchy()); in Matches() 126 void MatchedWidgetCollector::Visit(const Widget &widget) in Visit() argument 128 if (matcher_.Matches(widget)) { in Visit() 129 receiver_.emplace_back(widget); in Visit()
|
D | widget_matcher.h | 50 virtual bool Matches(const Widget &widget) const = 0; 58 bool Matches(const Widget &widget) const override; 72 bool Matches(const Widget &widget) const override; 147 void Visit(const Widget &widget) override;
|
D | widget_selector.cpp | 47 …static bool CheckHasLocator(const WidgetTree &tree, const Widget &widget, const WidgetMatcher &mat… in CheckHasLocator() argument 53 tree.DfsTraverseFronts(collector, widget); in CheckHasLocator() 55 tree.DfsTraverseRears(collector, widget); in CheckHasLocator()
|
D | ui_driver.cpp | 87 const Widget *UiDriver::RetrieveWidget(const Widget &widget, ApiCallErr &err, bool updateUi) in RetrieveWidget() argument 98 … auto hashcodeMatcher = WidgetAttrMatcher(attrHashCode, widget.GetAttr(attrHashCode, "NA"), EQ); in RetrieveWidget() 99 auto hierarchyMatcher = WidgetAttrMatcher(attrHierarchy, widget.GetHierarchy(), EQ); in RetrieveWidget() 105 msg << "Widget: " << widget.GetAttr(DUMMY_ATTRNAME_SELECTION, ""); in RetrieveWidget() 117 if (widget.GetAttr(attrType, "A").compare(retrieved.GetAttr(attrType, "B")) != 0) { in RetrieveWidget()
|
D | widget_operator.cpp | 42 void Visit(const Widget &widget) override in Visit() argument 44 auto type = widget.GetAttr(ATTR_NAMES[UiAttr::TYPE], "") + "/"; in Visit() 45 auto value = widget.GetAttr(ATTR_NAMES[UiAttr::TEXT], "") + "/"; in Visit() 46 auto hashcode = widget.GetAttr(ATTR_NAMES[UiAttr::HASHCODE], "") + ";"; in Visit() 70 WidgetOperator::WidgetOperator(UiDriver &driver, const Widget &widget, const UiOpArgs &options) in WidgetOperator() argument 71 : driver_(driver), widget_(widget), options_(options) in WidgetOperator()
|
D | widget_operator.h | 24 WidgetOperator(UiDriver &driver, const Widget &widget, const UiOpArgs &options);
|
D | ui_model.h | 216 virtual void Visit(const Widget &widget) = 0; 263 const Widget *GetParentWidget(const Widget &widget) const; 272 const Widget *GetChildWidget(const Widget &widget, uint32_t index) const; 300 inline bool CheckIsMyNode(const Widget &widget) const;
|
D | ui_driver.h | 43 const Widget *RetrieveWidget(const Widget &widget, ApiCallErr &err, bool updateUi = true);
|
D | frontend_api_handler.cpp | 883 auto &widget = GetBackendObject<Widget>(in.callerObjRef_); in RegisterUiComponentOperators() local 886 auto wOp = WidgetOperator(driver, widget, uiOpArgs); in RegisterUiComponentOperators()
|
/test/xts/acts/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/FormHostAbility/pages/ |
D | MainAbility_pages.ets | 28 @State name: string = "widget";
|
/test/xts/acts/ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/test/ |
D | GetFormsInfoTest.test.ets | 25 description: "This is a service widget.", 45 description: "This is a service widget.",
|