/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | friction_motion.cpp | 39 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 D | friction_motion.h | 53 double friction_ { 1.0 };
|
/foundation/arkui/ace_engine/frameworks/core/components/refresh/ |
H A D | refresh_component.h | 231 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 D | scrollable_theme.h | 54 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 D | scrollable.h | 165 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 D | scrollable.cpp | 120 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 D | scrollable_pattern.h | 300 return friction_; in GetFriction() 917 double friction_ = -1.0; member in OHOS::Ace::NG::ScrollablePattern
|
H A D | scrollable_pattern.cpp | 711 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 D | layout_manager.h | 267 return friction_; in GetFriction() 272 friction_ = friction; in SetFriction() 312 double friction_ = 1.0; member in OHOS::Ace::LayoutManager
|
H A D | list_layout_manager.cpp | 208 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 D | dom_refresh.cpp | 72 friction_ = StringToInt(attr.second); in SetSpecializedAttr() 73 refreshChild_->SetFriction(friction_); in SetSpecializedAttr()
|
H A D | dom_refresh.h | 53 int32_t friction_ = 0; member in OHOS::Ace::Framework::final
|
/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | screen_session_manager_test2.cpp | 99 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 D | scrollable.h | 171 friction_ = friction; in SetUnstaticFriction() 543 double friction_ = -1.0; member in OHOS::Ace::Scrollable
|
H A D | render_scroll.h | 303 double friction_ = 0.0; member in OHOS::Ace::RenderScroll
|
H A D | scrollable.cpp | 654 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 D | scroll_bar.h | 434 double friction_ = BAR_FRICTION; member in OHOS::Ace::NG::final
|
H A D | scroll_bar.cpp | 622 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 D | scroll_bar_pattern.h | 369 float friction_ = BAR_FRICTION; member in OHOS::Ace::NG::ScrollBarPattern
|
H A D | scroll_bar_pattern.cpp | 741 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 D | dm_common.h | 426 std::string friction_; member
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/list/ |
H A D | list_attr_test_ng.cpp | 157 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 D | screen_scene_config.cpp | 337 scrollableParam.friction_ = scrollableParamArray[1]; in ReadScrollableParam()
|
H A D | screen_session_manager.cpp | 5896 scrollableParams[displayMode].friction_ : "0"; in SwitchScrollParam()
|