Home
last modified time | relevance | path

Searched refs:maxDistance (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
H A Dsecurity_component_layout_algorithm.cpp463 float maxDistance) in IsTextAdaptOutOfRange() argument
488 if (GreatNotEqual(leftTopDistance, maxDistance)) { in IsTextOutOfRangeInCircle()
514 if (GreatNotEqual(distance, maxDistance)) { in CompareDistance()
521 float maxDistance) in IsOutOfRangeInHoriCapsule() argument
540 float maxDistance) in IsOutOfRangeInVertiCapsule() argument
601 auto maxDistance = pow(radius + threshold); in TopLeftCompDistance() local
602 if (GreatNotEqual(distance, maxDistance)) { in TopLeftCompDistance()
617 auto maxDistance = pow(radius + threshold); in BottomLeftCompDistance() local
618 if (GreatNotEqual(distance, maxDistance)) { in BottomLeftCompDistance()
633 auto maxDistance = pow(radius + threshold); in TopRightCompDistance() local
[all …]
H A Dsecurity_component_layout_algorithm.h57 … IsTextAdaptOutOfRange(SizeF& leftPoint, SizeF& rightPoint, SizeF& circlePoint, float maxDistance);
61 …bool IsOutOfRangeInHoriCapsule(SizeF& leftCirclePoint, SizeF& rightCirclePoint, float maxDistance);
62 …ool IsOutOfRangeInVertiCapsule(SizeF& topCirclePoint, SizeF& bottomCirclePoint, float maxDistance);
65 bool CompareDistance(SizeF& point, SizeF& circlePoint, float maxDistance);
H A Dsecurity_component_layout_element.cpp252 …ent::TryShrinkTextWidth(SizeF& point, SizeF& circlePoint, bool maxSpaceToShrink, float maxDistance, in TryShrinkTextWidth() argument
278 if (!GreatNotEqual(distance, maxDistance)) { in TryShrinkTextWidth()
H A Dsecurity_component_layout_element.h155 …bool TryShrinkTextWidth(SizeF& point, SizeF& circlePoint, bool maxSpaceToShrink, float maxDistance,
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/list/
H A Dlist_swipe_test_ng.cpp480 HandleDragUpdate(FIRSTITEM_INDEX, maxDistance);
527 HandleDragUpdate(FIRSTITEM_INDEX, -maxDistance);
528 EXPECT_EQ(listItemPattern->curOffset_, -maxDistance);
530 EXPECT_EQ(listItemPattern->curOffset_, -maxDistance);
577 HandleDragUpdate(FIRSTITEM_INDEX, maxDistance);
578 EXPECT_EQ(listItemPattern->curOffset_, maxDistance);
580 EXPECT_GT(listItemPattern->curOffset_, maxDistance);
629 HandleDragUpdate(FIRSTITEM_INDEX, -maxDistance);
630 EXPECT_EQ(listItemPattern->curOffset_, -maxDistance);
632 EXPECT_LT(listItemPattern->curOffset_, -maxDistance);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Drefresh_model_impl.cpp121 void RefreshModelImpl::SetMaxDistance(const Dimension& maxDistance) in SetMaxDistance() argument
126 component->SetMaxDistance(maxDistance); in SetMaxDistance()
H A Drefresh_model_impl.h40 void SetMaxDistance(const Dimension& maxDistance) override;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/refresh/
H A Drefresh_component.h203 void SetMaxDistance(const Dimension& maxDistance) in SetMaxDistance() argument
205 maxDistance_ = maxDistance; in SetMaxDistance()
H A Drender_refresh.cpp486 double maxDistance = triggerRefreshDistance_ - triggerLoadingDistance_; in GetLoadingDiameter() local
490 … diameter = ((actualDistance * loadingDiameter_ * HALF) / maxDistance) + loadingDiameter_ * HALF; in GetLoadingDiameter()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/utils/
H A Ddrag_animation_helper.cpp66 calcResult.maxDistance = std::max(calcResult.maxDistance, dis); in CalcDistanceBeforeLifting()
81 …if (NearZero(calcResult.maxDistance) || NearZero(calcResult.minDistance) || calcResult.maxTranslat… in CalcOffsetToTarget()
92 calcResult.maxDistance * GATHER_OFFSET_RADIUS); in CalcOffsetToTarget()
H A Ddrag_animation_helper.h30 float maxDistance = 0.0f; member
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/refresh/
H A Drefresh_model.h46 virtual void SetMaxDistance(const Dimension& maxDistance) = 0;
H A Drefresh_model_ng.h55 void SetMaxDistance(const Dimension& maxDistance) override {} in SetMaxDistance() argument
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/progress/
H A Drender_loading_progress.h74 void SetDragRange(double minDistance, double maxDistance);
H A Drender_loading_progress.cpp296 void RenderLoadingProgress::SetDragRange(double minDistance, double maxDistance) in SetDragRange() argument
299 maxDistance_ = maxDistance; in SetDragRange()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/manager/
H A Ddrag_animation_helper_test_ng.cpp130 result.maxDistance = 10.0f;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/
H A Ddrag_drop_manager.cpp2029 double maxDistance = 0.0; in CalcGatherNodeMaxDistanceWithPoint() local
2038 maxDistance = std::max(maxDistance, dis); in CalcGatherNodeMaxDistanceWithPoint()
2040 return maxDistance; in CalcGatherNodeMaxDistanceWithPoint()