Home
last modified time | relevance | path

Searched refs:edges (Results 1 - 25 of 55) sorted by relevance

123

/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/
H A Dgraph_test.cpp71 vector<vector<uint32_t>> edges={{TestNodes::POINT_A, TestNodes::POINT_A}, in HWTEST_F() local
74 for (uint32_t i = 0; i < edges.size(); i++) { in HWTEST_F()
75 graph.AddEdge(edges[i][0], edges[i][1]); in HWTEST_F()
92 vector<vector<uint32_t>> edges={{TestNodes::POINT_A, TestNodes::POINT_B}, in HWTEST_F() local
96 for (uint32_t i = 0; i < edges.size(); i++) { in HWTEST_F()
97 graph.AddEdge(edges[i][0], edges[i][1]); in HWTEST_F()
114 vector<vector<uint32_t>> edges={{TestNodes::POINT_A, TestNodes::POINT_B}, in HWTEST_F() local
119 for (uint32_t i = 0; i < edges in HWTEST_F()
137 vector<vector<uint32_t>> edges={{TestNodes::POINT_A, TestNodes::POINT_B}, HWTEST_F() local
160 vector<vector<uint32_t>> edges = { HWTEST_F() local
190 vector<vector<uint32_t>> edges = { HWTEST_F() local
219 vector<vector<uint32_t>> edges = { HWTEST_F() local
245 vector<vector<uint32_t>> edges = { HWTEST_F() local
271 vector<vector<uint32_t>> edges = { HWTEST_F() local
327 vector<vector<uint32_t>> edges = { HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dsafe_area_insets.h128 uint32_t edges = SAFE_AREA_EDGE_NONE; member
133 return type == other.type && edges == other.edges; in operator ==()
138 return (edges & SAFE_AREA_EDGE_START) || (edges & SAFE_AREA_EDGE_TOP) || (edges & SAFE_AREA_EDGE_BOTTOM); in ExpansiveToMark()
148 return type != SAFE_AREA_TYPE_NONE && edges != SAFE_AREA_EDGE_NONE; in Expansive()
153 return (edges & SAFE_AREA_EDGE_BOTTOM) && (type & SAFE_AREA_TYPE_KEYBOARD); in ExpansiveToKeyboard()
158 return "SafeAreaExpandOpts: type:" + TypeToString() + ", edges: " + EdgeToString(); in ToString()
181 switch (edges) { in EdgeToString()
[all...]
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnav_destination_modifier.cpp68 NG::SafeAreaExpandOpts opts { .type = NG::SAFE_AREA_TYPE_SYSTEM, .edges = NG::SAFE_AREA_EDGE_ALL }; in SetIgnoreLayoutSafeArea()
74 NG::SafeAreaExpandOpts opts { .type = NG::SAFE_AREA_TYPE_NONE, .edges = NG::SAFE_AREA_EDGE_NONE}; in SetIgnoreLayoutSafeArea()
81 std::string edges; in SetIgnoreLayoutSafeArea() local
90 edges = safeAreaEdgeStr.substr(0, pos); in SetIgnoreLayoutSafeArea()
91 safeAreaEdge |= (1 << StringUtils::StringToUint(edges)); in SetIgnoreLayoutSafeArea()
96 opts.edges = safeAreaEdge; in SetIgnoreLayoutSafeArea()
106 opts.edges = DEFAULT_SAFE_AREA_EDGE; in ResetIgnoreLayoutSafeArea()
H A Dnavigation_modifier.cpp221 NG::SafeAreaExpandOpts opts { .type = NG::SAFE_AREA_TYPE_SYSTEM, .edges = NG::SAFE_AREA_EDGE_ALL }; in SetNavIgnoreLayoutSafeArea()
227 NG::SafeAreaExpandOpts opts { .type = NG::SAFE_AREA_TYPE_NONE, .edges = NG::SAFE_AREA_EDGE_NONE}; in SetNavIgnoreLayoutSafeArea()
234 std::string edges; in SetNavIgnoreLayoutSafeArea() local
243 edges = safeAreaEdgeStr.substr(0, pos); in SetNavIgnoreLayoutSafeArea()
244 safeAreaEdge |= (1 << StringUtils::StringToUint(edges)); in SetNavIgnoreLayoutSafeArea()
249 opts.edges = safeAreaEdge; in SetNavIgnoreLayoutSafeArea()
259 opts.edges = DEFAULT_SAFE_AREA_EDGE; in ResetNavIgnoreLayoutSafeArea()
/foundation/arkui/ace_engine/test/unittest/core/layout/safe_area/
H A Dexpand_safe_area_test_ng.cpp156 if (opts.edges & SAFE_AREA_EDGE_TOP) { in InitSafeArea()
159 if (opts.edges & SAFE_AREA_EDGE_START) { in InitSafeArea()
162 if (opts.edges & SAFE_AREA_EDGE_END) { in InitSafeArea()
165 if (opts.edges & SAFE_AREA_EDGE_BOTTOM) { in InitSafeArea()
206 SafeAreaExpandOpts opts { .type = SAFE_AREA_TYPE_SYSTEM, .edges = SAFE_AREA_EDGE_TOP | SAFE_AREA_EDGE_BOTTOM }; in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navrouter/
H A Dnavdestination_layout_algorithm.cpp51 if ((opts.edges & SAFE_AREA_EDGE_TOP) && (opts.type & SAFE_AREA_TYPE_SYSTEM)) { in CheckTopEdgeOverlap()
52 SafeAreaExpandOpts opts = {.type = SAFE_AREA_TYPE_SYSTEM, .edges = SAFE_AREA_EDGE_TOP}; in CheckTopEdgeOverlap()
91 if ((opts.edges & SAFE_AREA_EDGE_BOTTOM) && (opts.type & SAFE_AREA_TYPE_SYSTEM)) { in CheckBottomEdgeOverlap()
92 SafeAreaExpandOpts opts = { .type = SAFE_AREA_TYPE_SYSTEM, .edges = SAFE_AREA_EDGE_BOTTOM }; in CheckBottomEdgeOverlap()
108 .edges = SAFE_AREA_TYPE_NONE}); in CheckIgnoreLayoutSafeArea()
121 SafeAreaExpandOpts opts = {.type = SAFE_AREA_TYPE_SYSTEM, .edges = SAFE_AREA_EDGE_NONE}; in CheckIgnoreLayoutSafeArea()
245 .edges = SAFE_AREA_TYPE_NONE}); in LayoutContent()
246 if ((opts.edges & SAFE_AREA_EDGE_TOP) && NearEqual(offsetY, 0.0f)) { in LayoutContent()
365 .edges = SAFE_AREA_TYPE_NONE}); in Layout()
H A Dnavdestination_pattern.cpp341 .edges = SAFE_AREA_EDGE_ALL }; in OnAttachToFrameNode()
379 if (opts && (opts->type & SAFE_AREA_TYPE_KEYBOARD) && (opts->edges & SAFE_AREA_EDGE_BOTTOM)) { in NeedIgnoreKeyboard()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/
H A Dnav_bar_layout_algorithm.cpp138 if ((opts.edges & SAFE_AREA_EDGE_TOP) && (opts.type & SAFE_AREA_TYPE_SYSTEM)) { in CheckTopEdgeOverlap()
139 SafeAreaExpandOpts opts = {.type = SAFE_AREA_TYPE_SYSTEM, .edges = SAFE_AREA_EDGE_TOP}; in CheckTopEdgeOverlap()
176 if ((opts.edges & SAFE_AREA_EDGE_BOTTOM) && (opts.type & SAFE_AREA_TYPE_SYSTEM)) { in CheckBottomEdgeOverlap()
177 SafeAreaExpandOpts opts = {.type = SAFE_AREA_TYPE_SYSTEM, .edges = SAFE_AREA_EDGE_BOTTOM}; in CheckBottomEdgeOverlap()
197 .edges = SAFE_AREA_TYPE_NONE}); in CheckIgnoreLayoutSafeArea()
203 SafeAreaExpandOpts topParam = {.type = SAFE_AREA_TYPE_SYSTEM, .edges = SAFE_AREA_EDGE_NONE}; in CheckIgnoreLayoutSafeArea()
282 .edges = SAFE_AREA_TYPE_NONE}); in LayoutContent()
283 if ((opts.edges & SAFE_AREA_EDGE_TOP) && NearEqual(offsetY, 0.0f)) { in LayoutContent()
354 .edges = SAFE_AREA_TYPE_NONE}); in Layout()
H A Dnavigation_content_pattern.h49 .edges = SAFE_AREA_EDGE_ALL };
H A Dtool_bar_pattern.h54 .edges = SAFE_AREA_EDGE_BOTTOM };
H A Dnav_bar_node.cpp53 .edges = SAFE_AREA_EDGE_ALL }; in AddChildToGroup()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_view_measure_layout.cpp123 JSRef<JSObject> edges = JSRef<JSObject>::New(); in GenEdgesGlobalized() local
126 edges->SetProperty("top", edgeNative.top.value_or(0) * px2vpScale); in GenEdgesGlobalized()
127 edges->SetProperty("bottom", edgeNative.bottom.value_or(0) * px2vpScale); in GenEdgesGlobalized()
129 edges->SetProperty("start", edgeNative.left.value_or(0) * px2vpScale); in GenEdgesGlobalized()
130 edges->SetProperty("end", edgeNative.right.value_or(0) * px2vpScale); in GenEdgesGlobalized()
132 edges->SetProperty("start", edgeNative.right.value_or(0) * px2vpScale); in GenEdgesGlobalized()
133 edges->SetProperty("end", edgeNative.left.value_or(0) * px2vpScale); in GenEdgesGlobalized()
135 return edges; in GenEdgesGlobalized()
140 JSRef<JSObject> edges = JSRef<JSObject>::New(); in GenBorderWidthGlobalized() local
143 edges in GenBorderWidthGlobalized()
[all...]
H A Djs_navdestination.cpp449 NG::SafeAreaExpandOpts opts { .type = NG::SAFE_AREA_TYPE_SYSTEM, .edges = NG::SAFE_AREA_EDGE_ALL}; in SetIgnoreLayoutSafeArea()
480 opts.edges = safeAreaEdge; in SetIgnoreLayoutSafeArea()
/foundation/arkui/ace_engine/test/unittest/core/layout/
H A Dlayout_property_test_ng_two.cpp829 EdgesParam edges; in HWTEST_F() local
830 edges.SetTop(top); in HWTEST_F()
831 edges.SetBottom(bottom); in HWTEST_F()
832 edges.start = start; in HWTEST_F()
833 edges.end = end; in HWTEST_F()
837 renderContext->UpdateOffsetEdges(edges); in HWTEST_F()
861 EdgesParam edges; in HWTEST_F() local
865 renderContext->UpdateOffsetEdges(edges); in HWTEST_F()
890 EdgesParam edges; in HWTEST_F() local
891 edges in HWTEST_F()
922 EdgesParam edges; HWTEST_F() local
[all...]
H A Dlayout_wrapper_testtwo_ng.cpp551 childWrapper0->layoutProperty_->safeAreaExpandOpts_->edges |= SAFE_AREA_EDGE_BOTTOM; in HWTEST_F()
878 opts->edges |= SAFE_AREA_EDGE_START; in HWTEST_F()
879 opts->edges |= SAFE_AREA_EDGE_TOP; in HWTEST_F()
880 opts->edges |= SAFE_AREA_EDGE_END; in HWTEST_F()
881 opts->edges |= SAFE_AREA_EDGE_BOTTOM; in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/
H A Dlayout_property.cpp1380 EdgesParam edges; in CheckPositionLocalizedEdges() local
1386 edges.SetTop(positionEdges.top.value_or(Dimension(0.0))); in CheckPositionLocalizedEdges()
1389 edges.SetBottom(positionEdges.bottom.value_or(Dimension(0.0))); in CheckPositionLocalizedEdges()
1392 edges.start = positionEdges.start.value(); in CheckPositionLocalizedEdges()
1394 edges.SetRight(positionEdges.start.value_or(Dimension(0.0))); in CheckPositionLocalizedEdges()
1396 edges.SetLeft(positionEdges.start.value_or(Dimension(0.0))); in CheckPositionLocalizedEdges()
1400 edges.end = positionEdges.end.value(); in CheckPositionLocalizedEdges()
1402 edges.SetLeft(positionEdges.end.value_or(Dimension(0.0))); in CheckPositionLocalizedEdges()
1404 edges.SetRight(positionEdges.end.value_or(Dimension(0.0))); in CheckPositionLocalizedEdges()
1407 target->UpdatePositionEdges(edges); in CheckPositionLocalizedEdges()
1437 EdgesParam edges; CheckOffsetLocalizedEdges() local
[all...]
H A Dlayout_wrapper.cpp238 if ((opts->edges & SAFE_AREA_EDGE_BOTTOM) && (opts->type & SAFE_AREA_TYPE_KEYBOARD)) { in ExpandSafeArea()
279 if ((opts->edges & SAFE_AREA_EDGE_START) && safeArea.left_.IsOverlapped(frame.Left())) { in ExpandHelper()
283 if ((opts->edges & SAFE_AREA_EDGE_TOP) && safeArea.top_.IsOverlapped(frame.Top())) { in ExpandHelper()
288 if ((opts->edges & SAFE_AREA_EDGE_END) && safeArea.right_.IsOverlapped(frame.Right())) { in ExpandHelper()
291 if ((opts->edges & SAFE_AREA_EDGE_BOTTOM) && safeArea.bottom_.IsOverlapped(frame.Bottom())) { in ExpandHelper()
532 if (opts && (opts->edges & SAFE_AREA_EDGE_BOTTOM) && opts->type & SAFE_AREA_TYPE_KEYBOARD) { in ExpandIntoKeyboard()
/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dview_abstract_test_ng_for_property_config.cpp1041 * @tc.desc: Test setting position edges
1062 EdgesParam edges; in HWTEST_F() local
1065 edges.SetBottom(bottom); in HWTEST_F()
1066 edges.SetRight(right); in HWTEST_F()
1067 ViewAbstract::SetPositionEdges(rootFrameNode, edges); in HWTEST_F()
1104 EdgesParam edges; in HWTEST_F() local
1107 edges.SetTop(top); in HWTEST_F()
1108 edges.SetLeft(left); in HWTEST_F()
1109 ViewAbstract::SetOffsetEdges(rootFrameNode, edges); in HWTEST_F()
H A Dview_abstract_test_ng_new.cpp660 EdgesParam edges; in HWTEST_F() local
663 edges.SetTop(top); in HWTEST_F()
664 edges.SetLeft(left); in HWTEST_F()
665 ViewAbstract::SetOffsetEdges(edges); in HWTEST_F()
702 EdgesParam edges; in HWTEST_F() local
705 edges.SetBottom(bottom); in HWTEST_F()
706 edges.SetRight(right); in HWTEST_F()
707 ViewAbstract::SetPositionEdges(edges); in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/rosen/
H A Drosen_render_context_test_new.cpp802 EdgesParam edges; in HWTEST_F() local
804 edges.SetTop(top); in HWTEST_F()
805 rosenRenderContext->UpdateOffsetEdges(edges); in HWTEST_F()
806 rosenRenderContext->OnPositionEdgesUpdate(edges); in HWTEST_F()
814 rosenRenderContext->UpdatePositionEdges(edges); in HWTEST_F()
815 rosenRenderContext->OnOffsetEdgesUpdate(edges); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable_utils.cpp110 bool canExpand = axis == Axis::VERTICAL && safeAreaOpts && (safeAreaOpts->edges & SAFE_AREA_EDGE_BOTTOM) && in CheckHeightExpansion()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_content_pattern.h84 .edges = SAFE_AREA_EDGE_TOP + SAFE_AREA_EDGE_BOTTOM });
/foundation/arkui/ace_engine/test/unittest/core/pattern/web/
H A Dweb_pattern_touch_test_ng.cpp163 SafeAreaExpandOpts opts { .type = SAFE_AREA_TYPE_CUTOUT, .edges = SAFE_AREA_EDGE_TOP | SAFE_AREA_EDGE_BOTTOM }; in HWTEST_F()
189 SafeAreaExpandOpts opts { .type = SAFE_AREA_TYPE_SYSTEM, .edges = SAFE_AREA_EDGE_TOP | SAFE_AREA_EDGE_BOTTOM }; in HWTEST_F()
215 SafeAreaExpandOpts opts { .type = SAFE_AREA_TYPE_KEYBOARD, .edges = SAFE_AREA_EDGE_TOP | SAFE_AREA_EDGE_BOTTOM }; in HWTEST_F()
264 SafeAreaExpandOpts opts = { .type = SAFE_AREA_TYPE_KEYBOARD, .edges = SAFE_AREA_EDGE_BOTTOM }; in HWTEST_F()
290 SafeAreaExpandOpts opts = { .type = SAFE_AREA_TYPE_KEYBOARD, .edges = SAFE_AREA_EDGE_TOP }; in HWTEST_F()
316 SafeAreaExpandOpts opts = { .type = SAFE_AREA_TYPE_SYSTEM, .edges = SAFE_AREA_EDGE_BOTTOM }; in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/pattern/navigation/
H A Dnav_bar_test_ng.cpp1034 navBarLayoutProperty->UpdateSafeAreaExpandOpts({ .type = SAFE_AREA_TYPE_SYSTEM, .edges = SAFE_AREA_EDGE_ALL }); in HWTEST_F()
1060 navBarLayoutProperty->UpdateSafeAreaExpandOpts({ .type = SAFE_AREA_TYPE_NONE, .edges = SAFE_AREA_EDGE_NONE }); in HWTEST_F()
1134 .edges = SAFE_AREA_TYPE_NONE}); in HWTEST_F()
1136 EXPECT_EQ(opts.edges, SAFE_AREA_TYPE_NONE); in HWTEST_F()
1138 navBarLayoutProperty->UpdateIgnoreLayoutSafeArea({ .type = SAFE_AREA_TYPE_SYSTEM, .edges = SAFE_AREA_EDGE_ALL }); in HWTEST_F()
1140 .edges = SAFE_AREA_TYPE_NONE}); in HWTEST_F()
1142 EXPECT_EQ(opts.edges, SAFE_AREA_EDGE_ALL); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_view_abstract_ffi.h395 CJ_EXPORT void FfiOHOSAceFrameworkViewAbstractExpandSafeArea(uint32_t types, uint32_t edges);

Completed in 28 milliseconds

123