Home
last modified time | relevance | path

Searched refs:safeArea (Results 1 - 22 of 22) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/safe_area/
H A Dsafe_area_manager.cpp21 SafeAreaInsets GenerateCutOutAreaWithRoot(const SafeAreaInsets& safeArea, NG::OptionalSize<uint32_t> rootSize) in GenerateCutOutAreaWithRoot() argument
27 auto cutoutArea = safeArea; in GenerateCutOutAreaWithRoot()
32 if (safeArea.bottom_.IsValid()) { in GenerateCutOutAreaWithRoot()
46 bool SafeAreaManager::CheckCutoutSafeArea(const SafeAreaInsets& safeArea, NG::OptionalSize<uint32_t> rootSize) in CheckCutoutSafeArea() argument
48 return cutoutSafeArea_ != GenerateCutOutAreaWithRoot(safeArea, rootSize); in CheckCutoutSafeArea()
51 bool SafeAreaManager::UpdateCutoutSafeArea(const SafeAreaInsets& safeArea, NG::OptionalSize<uint32_t> rootSize) in UpdateCutoutSafeArea() argument
53 auto safeAreaWithRoot = GenerateCutOutAreaWithRoot(safeArea, rootSize); in UpdateCutoutSafeArea()
57 ACE_SCOPED_TRACE("SafeAreaManager::UpdateCutoutSafeArea %s, safeAreaWithRoot %s", safeArea.ToString().c_str(), in UpdateCutoutSafeArea()
63 bool SafeAreaManager::CheckSystemSafeArea(const SafeAreaInsets& safeArea) in CheckSystemSafeArea() argument
65 return systemSafeArea_ != safeArea; in CheckSystemSafeArea()
68 UpdateSystemSafeArea(const SafeAreaInsets& safeArea) UpdateSystemSafeArea() argument
78 CheckNavArea(const SafeAreaInsets& safeArea) CheckNavArea() argument
83 UpdateNavArea(const SafeAreaInsets& safeArea) UpdateNavArea() argument
[all...]
H A Dsafe_area_manager.h37 * @param safeArea The new system safe area.
40 bool CheckSystemSafeArea(const SafeAreaInsets& safeArea);
45 * @param safeArea The new system safe area.
48 bool UpdateSystemSafeArea(const SafeAreaInsets& safeArea);
53 * @param safeArea The new navigation indictor safe area.
56 bool CheckNavArea(const SafeAreaInsets& safeArea);
61 * @param safeArea The new navigation indictor safe area.
64 bool UpdateNavArea(const SafeAreaInsets& safeArea);
79 * @param safeArea The SafeAreaInsets representing the new cutout safe area, which would be modified.
83 const SafeAreaInsets& safeArea, N
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/
H A Dlayout_wrapper.cpp87 auto safeArea = manager->GetSafeArea(); in AvoidKeyboard() local
104 RectF(OffsetF(x, safeArea.top_.Length() + manager->GetKeyboardOffset()), geometryNode->GetFrameSize()); in AvoidKeyboard()
121 SafeAreaInsets safeArea; in CheckValidSafeArea() local
130 safeArea = safeAreaManager->GetCombinedSafeArea(*parentOpts); in CheckValidSafeArea()
132 safeArea = safeAreaManager->GetCombinedSafeArea(*opts); in CheckValidSafeArea()
134 return safeArea.IsValid(); in CheckValidSafeArea()
278 auto safeArea = pipeline->GetSafeAreaManager()->GetCombinedSafeArea(*opts); in ExpandHelper() local
279 if ((opts->edges & SAFE_AREA_EDGE_START) && safeArea.left_.IsOverlapped(frame.Left())) { in ExpandHelper()
280 frame.SetWidth(frame.Width() + frame.Left() - safeArea.left_.start); in ExpandHelper()
281 frame.SetLeft(safeArea in ExpandHelper()
554 auto safeArea = safeAreaManager->GetSafeArea(); GetPageCurrentOffset() local
[all...]
H A Dlayout_property.h305 void UpdateSafeAreaInsets(const SafeAreaInsets& safeArea);
H A Dlayout_property.cpp778 void LayoutProperty::UpdateSafeAreaInsets(const SafeAreaInsets& safeArea) in UpdateSafeAreaInsets() argument
783 if (*safeAreaInsets_ != safeArea) { in UpdateSafeAreaInsets()
784 *safeAreaInsets_ = safeArea; in UpdateSafeAreaInsets()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navrouter/
H A Dnavdestination_layout_algorithm.cpp106 NavSafeArea safeArea; in CheckIgnoreLayoutSafeArea() local
111 CHECK_NULL_RETURN(pipeline, safeArea); in CheckIgnoreLayoutSafeArea()
120 CHECK_NULL_RETURN(contentNode, safeArea); in CheckIgnoreLayoutSafeArea()
123 safeArea.top = static_cast<float>(inset.top_.Length()); in CheckIgnoreLayoutSafeArea()
127 safeArea.bottom = static_cast<float>(inset.bottom_.Length()); in CheckIgnoreLayoutSafeArea()
129 return safeArea; in CheckIgnoreLayoutSafeArea()
191 auto safeArea = CheckIgnoreLayoutSafeArea(layoutWrapper, hostNode, navDestinationLayoutProperty); in MeasureContentChild() local
192 constraint.selfIdealSize.SetHeight(currentHeight + safeArea.top + safeArea.bottom); in MeasureContentChild()
242 auto safeArea in LayoutContent() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/
H A Dnav_bar_layout_algorithm.cpp190 NavSafeArea safeArea; in CheckIgnoreLayoutSafeArea() local
192 CHECK_NULL_RETURN(pipeline, safeArea); in CheckIgnoreLayoutSafeArea()
210 safeArea.top = static_cast<float>(inset.top_.Length()); in CheckIgnoreLayoutSafeArea()
214 safeArea.bottom = static_cast<float>(inset.bottom_.Length()); in CheckIgnoreLayoutSafeArea()
216 return safeArea; in CheckIgnoreLayoutSafeArea()
237 auto safeArea = CheckIgnoreLayoutSafeArea(layoutWrapper, hostNode, navBarLayoutProperty); in MeasureContentChild() local
239 constraint.selfIdealSize.SetHeight(currentHeight + safeArea.top + safeArea.bottom); in MeasureContentChild()
279 auto safeArea = CheckIgnoreLayoutSafeArea(layoutWrapper, hostNode, navBarLayoutProperty); in LayoutContent() local
284 offsetY -= safeArea in LayoutContent()
[all...]
H A Dnavigation_title_util.cpp952 auto safeArea = pipelineContext->GetSafeAreaWithoutProcess(); in CalculateTitlebarOffset() local
953 auto length = safeArea.top_.Length(); in CalculateTitlebarOffset()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/app_bar/
H A Datomic_service_pattern.cpp60 auto safeArea = pipeline->GetSafeArea(); in UpdateLayoutMargin() local
64 margin.left = CalcLength(safeArea.left_.Length()); in UpdateLayoutMargin()
65 margin.right = CalcLength(safeArea.right_.Length()); in UpdateLayoutMargin()
66 margin.top = CalcLength(safeArea.top_.Length()); in UpdateLayoutMargin()
67 margin.bottom = CalcLength(safeArea.bottom_.Length()); in UpdateLayoutMargin()
78 appBarmargin.left = CalcLength(safeArea.left_.Length()); in UpdateLayoutMargin()
79 appBarmargin.right = CalcLength(safeArea.right_.Length()); in UpdateLayoutMargin()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/folder_stack/
H A Dfolder_stack_layout_algorithm.cpp195 auto safeArea = pipeline->GetSafeArea(); in RangeCalculation() local
196 int32_t length = static_cast<int32_t>(safeArea.top_.Length()); in RangeCalculation()
223 auto safeArea = pipeline->GetSafeArea(); in IsFullWindow() local
228 if (!NearEqual(realWidth, pipeline->GetRootWidth() - safeArea.left_.Length() - safeArea.right_.Length()) || in IsFullWindow()
229 !NearEqual(realHeight, pipeline->GetRootHeight() - safeArea.top_.Length() - safeArea.bottom_.Length()) || in IsFullWindow()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable_utils.cpp115 auto safeArea = pipeline->GetSafeArea(); in CheckHeightExpansion() local
116 expandHeight = safeArea.bottom_.Length(); in CheckHeightExpansion()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stage/
H A Dpage_pattern.cpp164 auto safeArea = manager->GetSafeArea(); in ProcessShowState() local
167 // if page's frameRect not fit current safeArea, need layout page again in ProcessShowState()
168 if (!NearEqual(frame.GetY(), safeArea.top_.end)) { in ProcessShowState()
171 if (!NearEqual(frame.GetY() + frame.Height(), safeArea.bottom_.start)) { in ProcessShowState()
/foundation/arkui/ace_engine/adapter/preview/entrance/
H A Dui_content_impl.cpp197 auto safeArea = systemSafeArea_; in OnAvoidAreaChanged() local
202 [pipeline, safeArea, navSafeArea, cutoutSafeArea, type, avoidArea] { in OnAvoidAreaChanged()
204 pipeline->UpdateSystemSafeArea(safeArea); in OnAvoidAreaChanged()
H A Dace_ability.cpp183 auto safeArea = systemSafeArea_; in OnAvoidAreaChanged() local
187 [pipeline, safeArea, navSafeArea, cutoutSafeArea, type, avoidArea] { in OnAvoidAreaChanged()
189 pipeline->UpdateSystemSafeArea(safeArea); in OnAvoidAreaChanged()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toast/
H A Dtoast_pattern.cpp55 const auto& safeArea = toastProps->GetSafeAreaInsets(); in InitWrapperRect() local
58 safeArea ? safeArea->bottom_.Length() : safeAreaManager->GetSafeAreaWithoutProcess().bottom_.Length(); in InitWrapperRect()
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_ability.cpp888 auto safeArea = ConvertAvoidArea(avoidArea); in OnAvoidAreaChanged() local
891 [pipeline, safeArea, type]() { in OnAvoidAreaChanged()
893 pipeline->UpdateSystemSafeArea(safeArea); in OnAvoidAreaChanged()
895 pipeline->UpdateCutoutSafeArea(safeArea); in OnAvoidAreaChanged()
H A Dui_content_impl.cpp526 auto safeArea = systemSafeArea_; variable
531 [pipeline, safeArea, navSafeArea, cutoutSafeArea, type, avoidArea] {
533 pipeline->UpdateSystemSafeArea(safeArea);
1934 // Use metadata to control whether the cutout safeArea takes effect. in CommonInitialize()
/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/
H A Doverlay_test_update.cpp1736 const auto& safeArea = toastProps->GetSafeAreaInsets(); in HWTEST_F() local
1738 safeArea ? safeArea->bottom_.Length() : safeAreaManager->GetSafeAreaWithoutProcess().bottom_.Length(); in HWTEST_F()
1796 const auto& safeArea = toastProps->GetSafeAreaInsets(); in HWTEST_F() local
1798 safeArea ? safeArea->bottom_.Length() : safeAreaManager->GetSafeAreaWithoutProcess().bottom_.Length(); in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/layout/
H A Dlayout_property_test_ng.cpp740 SafeAreaInsets safeArea; in HWTEST_F() local
748 layoutProperty->UpdateSafeAreaInsets(safeArea); in HWTEST_F()
759 layoutProperty->safeAreaInsets_ = std::make_unique<SafeAreaInsets>(safeArea); in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dframe_node_test_ng_coverage.cpp310 SafeAreaInsets safeArea; in HWTEST_F() local
331 layoutProperty->safeAreaInsets_ = std::make_unique<SafeAreaInsets>(safeArea); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components/web/resource/
H A Dweb_delegate.cpp7032 auto safeArea = ConvertAvoidArea(avoidArea); in OnAvoidAreaChanged() local
7035 changed = (systemSafeArea_ != safeArea); in OnAvoidAreaChanged()
7036 systemSafeArea_ = safeArea; in OnAvoidAreaChanged()
7038 changed = (cutoutSafeArea_ != safeArea); in OnAvoidAreaChanged()
7039 cutoutSafeArea_ = safeArea; in OnAvoidAreaChanged()
7041 changed = (navigationIndicatorSafeArea_ != safeArea); in OnAvoidAreaChanged()
7042 navigationIndicatorSafeArea_ = safeArea; in OnAvoidAreaChanged()
/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
H A Dmenuwrapper_test_ng.cpp895 SafeAreaInsets safeArea; in HWTEST_F() local
896 props->UpdateSafeAreaInsets(safeArea); in HWTEST_F()

Completed in 47 milliseconds