Home
last modified time | relevance | path

Searched refs:friction_ (Results 1 - 24 of 24) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dfriction_motion.cpp39 friction_ = friction * FRICTION_SCALE; in Reset()
51 finalTime_ = UNIT_CONVERT * std::log(velocityThreshold_ / initVelocity_) / friction_; in Reset()
74 return initPosition_ + signum_ * (initVelocity_ / friction_) * std::expm1(friction_ * offsetTime); in GetPosition()
79 return valueThreshold_ * threshold * signum_ - (final - initPosition_) * friction_; in GetVelocityByFinalPosition()
84 return signum_ * initVelocity_ * std::exp(friction_ * offsetTime); in GetVelocity()
125 time = std::log(position * friction_ / initVelocity_ + 1.0) / friction_; in GetTimeByPosition()
H A Dfriction_motion.h53 double friction_ { 1.0 };
/foundation/arkui/ace_engine/frameworks/core/components/refresh/
H A Drefresh_component.h231 friction_ = friction; in SetFriction()
233 friction_ = MIN_FRICTION_RATIO; in SetFriction()
235 friction_ = MAX_FRICTION_RATIO; in SetFriction()
241 return friction_; in GetFriction()
280 int32_t friction_ = DEFAULT_FRICTION_RATIO; member in OHOS::Ace::RefreshComponent
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable_theme.h54 theme->friction_ = pattern->GetAttr<double>("scroll_able_friction", 0.75f); in ParsePattern()
68 return friction_; in GetFriction()
100 float friction_ = 0.75f; member in OHOS::Ace::NG::ScrollableTheme
H A Dscrollable.h165 friction_ = friction > 0.0 ? friction : -1.0; in SetUnstaticFriction()
170 double friction = friction_; in GetFriction()
586 double friction_ = -1.0; member in OHOS::Ace::NG::Scrollable
H A Dscrollable.cpp120 if (friction_ == -1) { in Initialize()
508 double frictionTmp = friction_; in StartScrollAnimation()
509 if (NearEqual(friction_, -1.0)) { in StartScrollAnimation()
688 float friction = sFriction_.value_or(friction_); in FixScrollMotion()
H A Dscrollable_pattern.h300 return friction_; in GetFriction()
917 double friction_ = -1.0; member in OHOS::Ace::NG::ScrollablePattern
H A Dscrollable_pattern.cpp711 if (friction_ != -1) { in CreateScrollable()
712 scrollable->SetUnstaticFriction(friction_); in CreateScrollable()
1192 friction_ = friction; in SetFriction()
1195 scrollable->SetUnstaticFriction(friction_); in SetFriction()
3427 DumpLog::GetInstance().AddDesc(std::string("friction: ").append(std::to_string(friction_))); in DumpAdvanceInfo()
3610 json->Put("friction", friction_); in DumpAdvanceInfo()
3612 json->Put("eventsFiredInfos", friction_); in DumpAdvanceInfo()
/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dlayout_manager.h267 return friction_; in GetFriction()
272 friction_ = friction; in SetFriction()
312 double friction_ = 1.0; member in OHOS::Ace::LayoutManager
H A Dlist_layout_manager.cpp208 friction_ = MAX_FRICTION; in NotifyNeedRefresh()
274 list->friction_ = value; in AnimationForItemUpdate()
282 friction_ = MIN_FRICTION; in AnimationForItemUpdate()
287 list->friction_ = MAX_FRICTION; in AnimationForItemUpdate()
309 friction = friction_; in AdjustLayoutParam()
313 friction = 1.0 - friction_; in AdjustLayoutParam()
336 double offset = mainOffset_ + renderList_.GetMainSize(layoutSize) * friction_ * symbol; in AdjustLayoutParam()
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_refresh.cpp72 friction_ = StringToInt(attr.second); in SetSpecializedAttr()
73 refreshChild_->SetFriction(friction_); in SetSpecializedAttr()
H A Ddom_refresh.h53 int32_t friction_ = 0; member in OHOS::Ace::Framework::final
/foundation/window/window_manager/window_scene/test/dms_unittest/
H A Dscreen_session_manager_test2.cpp99 scrollableParam.friction_ = scrollFrictionParam.count(displayMode) ? in HWTEST_F()
138 scrollableParam.friction_ = scrollFrictionParam.count(displayMode) ? in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Dscrollable.h171 friction_ = friction; in SetUnstaticFriction()
543 double friction_ = -1.0; member in OHOS::Ace::Scrollable
H A Drender_scroll.h303 double friction_ = 0.0; member in OHOS::Ace::RenderScroll
H A Dscrollable.cpp654 double friction = friction_ > 0 ? friction_ : sFriction_; in StartScrollAnimation()
799 double friction = friction_ > 0 ? friction_ : sFriction_; in FixScrollMotion()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/
H A Dscroll_bar.h434 double friction_ = BAR_FRICTION; member in OHOS::Ace::NG::final
H A Dscroll_bar.cpp622 frictionMotion_->Reset(friction_, 0, velocity); in HandleDragEnd()
624 frictionMotion_ = AceType::MakeRefPtr<FrictionMotion>(friction_, 0, velocity); in HandleDragEnd()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/
H A Dscroll_bar_pattern.h369 float friction_ = BAR_FRICTION; member in OHOS::Ace::NG::ScrollBarPattern
H A Dscroll_bar_pattern.cpp741 frictionMotion_->Reset(friction_, 0, velocity); in HandleDragEnd()
743 frictionMotion_ = AceType::MakeRefPtr<FrictionMotion>(friction_, 0, velocity); in HandleDragEnd()
/foundation/window/window_manager/interfaces/innerkits/dm/
H A Ddm_common.h426 std::string friction_; member
/foundation/arkui/ace_engine/test/unittest/core/pattern/list/
H A Dlist_attr_test_ng.cpp157 EXPECT_EQ(pattern_->friction_, FRICTION); in HWTEST_F()
169 EXPECT_EQ(pattern_->friction_, API12_FRICTION); in HWTEST_F()
/foundation/window/window_manager/window_scene/screen_session_manager/src/
H A Dscreen_scene_config.cpp337 scrollableParam.friction_ = scrollableParamArray[1]; in ReadScrollableParam()
H A Dscreen_session_manager.cpp5896 scrollableParams[displayMode].friction_ : "0"; in SwitchScrollParam()

Completed in 37 milliseconds