/test/testfwk/arkxtest/uitest/test/ |
D | rect_algorithm_test.cpp | 24 Rect rect(100, 200, 300, 400); in TEST() 26 Rect rect1(0, 0, 0, 0); in TEST() 32 Rect rect0(100, 200, 300, 400); in TEST() 33 Rect rect1(0, 100, 0, 100); in TEST() 34 Rect rect2(200, 300, 400, 500); in TEST() 35 Rect rect3(100, 150, 200, 350); in TEST() 36 Rect rect4(150, 250, 350, 450); in TEST() 37 Rect rect5(120, 180, 320, 380); in TEST() 39 Rect intersection {0, 0, 0, 0}; in TEST() 68 auto rect = Rect(10, 20, 10, 20); in TEST() [all …]
|
D | select_strategy_test.cpp | 36 Rect selectWindow{10, 100, 10, 300}; in TEST() 37 Rect layer1{10, 50, 10, 40}; in TEST() 38 Rect layer2{10, 20, 50, 100}; in TEST() 39 std::vector<Rect> overlay; in TEST() 44 Rect widOriBounds{30, 30, 30, 60}; in TEST() 63 Rect selectWindow{10, 100, 10, 300}; in TEST() 64 Rect layer1{10, 50, 10, 40}; in TEST() 65 Rect layer2{10, 20, 50, 100}; in TEST() 66 std::vector<Rect> overlay; in TEST() 71 Rect widOriBounds{20, 50, 30, 40}; in TEST() [all …]
|
D | ui_driver_test.cpp | 81 w1.bounds_ = Rect{0, 100, 0, 120}; in TEST_F() 133 w1.bounds_ = Rect{0, 100, 0, 120}; in TEST_F() 193 w1.bounds_ = Rect{0, 100, 0, 120}; in TEST_F() 269 w1.bounds_ = Rect{0, 100, 0, 120}; in TEST_F() 291 w2.bounds_ = Rect{0, 100, 0, 120}; in TEST_F() 342 w1.bounds_ = Rect{0, 100, 0, 120}; in TEST_F() 365 w2.bounds_ = Rect{0, 100, 0, 120}; in TEST_F() 418 w2.bounds_ = Rect{0, 200, 100, 200}; in TEST_F() 452 w1.bounds_ = Rect{0, 100, 0, 120}; in TEST_F() 511 w2.bounds_ = Rect{0, 200, 100, 200}; in TEST_F() [all …]
|
D | ui_model_test.cpp | 26 Rect rect(100, 200, 300, 400); in TEST() 57 widget.SetBounds(Rect(1, 2, 3, 4)); in TEST()
|
/test/testfwk/arkxtest/uitest/core/ |
D | ui_model.h | 105 struct Rect { struct 106 Rect(int32_t left, int32_t right, int32_t top, int32_t bottom) in Rect() argument 111 Rect() in Rect() function 174 FORCE_INLINE static bool CheckEqual(const Rect &ra, const Rect &rb); 175 FORCE_INLINE static bool CheckIntersectant(const Rect &ra, const Rect &rb); 176 FORCE_INLINE static bool IsInnerPoint(const Rect &rect, const Point &point); 177 FORCE_INLINE static bool IsPointOnEdge(const Rect &rect, const Point &point); 178 static bool ComputeIntersection(const Rect &ra, const Rect &rb, Rect &result); 179 …static bool ComputeMaxVisibleRegion(const Rect &rect, const std::vector<Rect> &overlays, Rect &out… 182 FORCE_INLINE bool RectAlgorithm::CheckEqual(const Rect &ra, const Rect &rb) in CheckEqual() [all …]
|
D | rect_algorithm.cpp | 22 bool RectAlgorithm::ComputeIntersection(const Rect &ra, const Rect &rb, Rect &result) in ComputeIntersection() 49 static void CollectGridLineCoords(const Rect& rect, const Rect& overlay) in CollectGridLineCoords() 104 …static void CollectGridPoint(int32_t px, int32_t py, const Rect& rect, const vector<Rect>& overlay… in CollectGridPoint() 125 static void FindMaxVisibleRegion(const vector<Rect>& overlays, Rect& out) in FindMaxVisibleRegion() 131 out = Rect(0, 0, 0, 0); in FindMaxVisibleRegion() 143 …const auto area = Rect(g_Points[idx0].px_, g_Points[idx1].px_, g_Points[idx0].py_, g_Points[idx1].… in FindMaxVisibleRegion() 157 …bool RectAlgorithm::ComputeMaxVisibleRegion(const Rect& rect, const vector<Rect>& overlays, Rect& … in ComputeMaxVisibleRegion() 159 vector<Rect> filteredOverlays; in ComputeMaxVisibleRegion() 164 auto intersection = Rect(0, 0, 0, 0); in ComputeMaxVisibleRegion() 167 out = Rect(0, 0, 0, 0); in ComputeMaxVisibleRegion()
|
D | select_strategy.h | 42 …virtual void SetAndCalcSelectWindowRect(const Rect &windowBounds, const std::vector<Rect> &windowB… 53 virtual void RefreshWidgetBounds(const Rect &containerParentRect, Widget &widget); 54 …ual void CalcWidgetVisibleBounds(const Widget &widget, const Rect &containerParentRect, Rect &visi… 58 Rect windowBounds_{0, 0, 0, 0}; 59 std::vector<Rect> overplayWindowBoundsVec_;
|
D | select_strategy.cpp | 33 …void SelectStrategy::SetAndCalcSelectWindowRect(const Rect &windowBounds, const std::vector<Rect> … in SetAndCalcSelectWindowRect() 46 const Rect &containerParentRect, in CalcWidgetVisibleBounds() 47 Rect &visibleRect) in CalcWidgetVisibleBounds() 50 Rect visibleInWindow{0, 0, 0, 0}; in CalcWidgetVisibleBounds() 55 visibleRect = Rect(0, 0, 0, 0); in CalcWidgetVisibleBounds() 59 Rect visibleInParent{0, 0, 0, 0}; in CalcWidgetVisibleBounds() 64 visibleRect = Rect(0, 0, 0, 0); in CalcWidgetVisibleBounds() 81 Rect visibleBounds{0, 0, 0, 0}; in CalcWidgetVisibleBounds() 86 visibleRect = Rect{0, 0, 0, 0}; in CalcWidgetVisibleBounds() 135 void SelectStrategy::RefreshWidgetBounds(const Rect &containerParentRect, Widget &widget) in RefreshWidgetBounds() [all …]
|
D | element_node_iterator.h | 31 virtual void GetParentContainerBounds(Rect &dockerRect) = 0; 44 std::map<int, Rect> elementIndexToRectMap_;
|
D | ui_driver.h | 66 void TakeScreenCap(int32_t fd, ApiCallErr &err, Rect rect); 97 void GetMergeWindowBounds(Rect& mergeRect); 103 void DumpWindowsInfo(bool listWindows, Rect& mergeBounds, nlohmann::json& childDom);
|
/test/xts/acts/arkui/ace_ets_component_seven/ace_ets_component_seven_special/entry/src/main/ets/MainAbility/pages/ |
D | rect.ets | 44 Rect({ width: '80%', height: '20%' }) 48 Rect({ width: '60%', height: '30%' }) 52 Rect({ width: '40%', height: '40%' }) 56 Rect({ width: '80%', height: '20%' }) 60 Rect({ width: '60%', height: '30%' }) 64 Rect({ width: '40%', height: '40%' })
|
D | shape.ets | 57 Rect().width(300).height(50) 66 Rect().width(300).height(50) 76 Rect().width(300).height(50)
|
/test/xts/acts/arkui/ace_ets_component_api_four/src/main/ets/test/ |
D | ListScrollToItemInGroup.test.ets | 19 import Rect from '../TestAbility/common/Rect'; 62 let List: Rect = Utils.getComponentRect('MyList1'); 63 let ListItem: Rect = Utils.getComponentRect('ListItem_Group0_Index0'); 84 let List: Rect = Utils.getComponentRect('MyList1'); 85 let ListItem: Rect = Utils.getComponentRect('ListItem_Group0_Index1'); 106 let center: Rect = Utils.getComponentRect('CenterLine'); 108 let ListItem: Rect = Utils.getComponentRect('ListItem_Group1_Index2'); 131 let List: Rect = Utils.getComponentRect('MyList1'); 132 let ListItem: Rect = Utils.getComponentRect('ListItem_Group2_Index2'); 154 let List: Rect = Utils.getComponentRect('MyList1'); [all …]
|
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/ |
D | ApiRect.ets | 31 Rect({ width: '90%', height: 50 }) 34 Rect() 44 Rect({ width: '90%', height: 80 }) 49 Rect({ width: '90%', height: 80 }) 55 Rect({ width: '90%', height: 80 })
|
/test/xts/acts/arkui/ace_ets_test/entry/src/main/ets/MainAbility/pages/components/ |
D | Rect.ets | 30 Rect({ width: '90%', height: 50 }) 31 Rect().width('90%').height(50) 34 Rect({ width: '90%', height: 50 }).radiusHeight(20).radiusWidth(20) 35 Rect({ width: '90%', height: 50 }).radius(20)
|
D | Shape.ets | 31 Rect().width(300).height(50) 40 Rect().width(300).height(50) 61 Rect().width(300).height(100)
|
/test/xts/acts/arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/ |
D | rect.ets | 22 private rect: RectAttribute = new Rect({ 54 Rect({ width: '90%', height: "50px" }).radiusHeight(20).radiusWidth(20) 55 .key("Rect") 58 .mask(new Rect({ width: '150px', height: '150px' }).fill(Color.Gray))
|
/test/xts/acts/graphic/graphicnapitest/ |
D | NativeWindowTest.cpp | 238 struct Region::Rect * rect = new Region::Rect(); 258 struct Region::Rect * rect = new Region::Rect(); 282 struct Region::Rect *rect = new Region::Rect(); 331 struct Region::Rect *rect = new Region::Rect();
|
D | NativeImageTest.cpp | 341 struct Region::Rect *rect = new Region::Rect(); 425 struct Region::Rect *rect = new Region::Rect(); 474 struct Region::Rect *rect = new Region::Rect(); 560 struct Region::Rect *rect = new Region::Rect();
|
/test/ostest/wukong/component_event/include/ |
D | component_tree.h | 48 OHOS::Accessibility::Rect GetPosition() in GetPosition() 86 OHOS::Accessibility::Rect rect_ {};
|
/test/xts/acts/arkui/ace_ets_component_apilack/entry/src/main/ets/test/ |
D | rect.test.ets | 56 let strJson = getInspectorByKey('Rect'); 59 expect(obj.$type).assertEqual('Rect'); 73 let strJson = getInspectorByKey('Rect'); 76 expect(obj.$type).assertEqual('Rect');
|
/test/testfwk/arkxtest/uitest/record/ |
D | pointer_tracker.h | 89 void SetWindow(Rect window) in SetWindow() 158 Rect windowBounds = Rect(0, 0, 0, 0);
|
/test/xts/acts/arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/conponentadd/ |
D | shapeClipping_y.ets | 24 @State maskType: CommonShapeMethod= new Rect({ width: 280, height: 280 }); 32 rect: RectInterface = Rect 47 this.clipType = new Rect({ width: 280, height: 280 });
|
/test/testfwk/arkxtest/uitest/server/ |
D | element_node_iterator_impl.cpp | 112 void ElementNodeIteratorImpl::GetParentContainerBounds(Rect &dockerRect) in GetParentContainerBounds() 127 Accessibility::Rect nodeOriginRect = elementInfoLists_[currentIndex_].GetRectInScreen(); in CheckAndUpdateContainerRectMap() 128 …Rect visibleRect{nodeOriginRect.GetLeftTopXScreenPostion(), nodeOriginRect.GetRightBottomXScreenPo… in CheckAndUpdateContainerRectMap() 243 Accessibility::Rect nodeOriginRect = elementInfoLists_[currentIndex_].GetRectInScreen(); in WrapperNodeAttrToVec() 244 …Rect visibleRect{nodeOriginRect.GetLeftTopXScreenPostion(), nodeOriginRect.GetRightBottomXScreenPo… in WrapperNodeAttrToVec()
|
/test/xts/acts/arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/ |
D | touchAble.ets | 28 Rect() 33 console.info(this.text1 = 'Rect Clicked')
|