/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/ |
H A D | graph_test.cpp | 71 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 D | safe_area_insets.h | 128 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 D | nav_destination_modifier.cpp | 68 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 D | navigation_modifier.cpp | 221 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 D | expand_safe_area_test_ng.cpp | 156 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 D | navdestination_layout_algorithm.cpp | 51 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 D | navdestination_pattern.cpp | 341 .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 D | nav_bar_layout_algorithm.cpp | 138 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 D | navigation_content_pattern.h | 49 .edges = SAFE_AREA_EDGE_ALL };
|
H A D | tool_bar_pattern.h | 54 .edges = SAFE_AREA_EDGE_BOTTOM };
|
H A D | nav_bar_node.cpp | 53 .edges = SAFE_AREA_EDGE_ALL }; in AddChildToGroup()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_view_measure_layout.cpp | 123 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 D | js_navdestination.cpp | 449 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 D | layout_property_test_ng_two.cpp | 829 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 D | layout_wrapper_testtwo_ng.cpp | 551 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 D | layout_property.cpp | 1380 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 D | layout_wrapper.cpp | 238 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 D | view_abstract_test_ng_for_property_config.cpp | 1041 * @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 D | view_abstract_test_ng_new.cpp | 660 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 D | rosen_render_context_test_new.cpp | 802 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 D | scrollable_utils.cpp | 110 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 D | tab_content_pattern.h | 84 .edges = SAFE_AREA_EDGE_TOP + SAFE_AREA_EDGE_BOTTOM });
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/web/ |
H A D | web_pattern_touch_test_ng.cpp | 163 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 D | nav_bar_test_ng.cpp | 1034 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 D | cj_view_abstract_ffi.h | 395 CJ_EXPORT void FfiOHOSAceFrameworkViewAbstractExpandSafeArea(uint32_t types, uint32_t edges);
|