Home
last modified time | relevance | path

Searched refs:GetCurrentVelocity (Results 1 – 25 of 32) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/scroll/
H A Dscroll_controller_test_ng.cpp319 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_005);
342 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_005);
409 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_006);
432 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_006);
504 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_007);
527 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_007);
599 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_008);
622 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_008);
688 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_009);
711 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_009);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Dscrollable.cpp699 scrollMotionFRCSceneCallback_(motion_->GetCurrentVelocity(), NG::SceneStatus::START); in StartScrollAnimation()
864 scrollMotionFRCSceneCallback_(snapMotion_->GetCurrentVelocity(), NG::SceneStatus::START); in ProcessScrollSnapSpringMotion()
876 auto velocity = scrollSnapMotion_->GetCurrentVelocity(); in UpdateScrollSnapStartOffset()
889 currentVelocity_ = scrollSnapMotion_->GetCurrentVelocity(); in ProcessScrollSnapMotion()
930 scrollMotionFRCSceneCallback_(scrollMotion_->GetCurrentVelocity(), NG::SceneStatus::END); in OnAnimateStop()
978 scrollMotionFRCSceneCallback_(scrollMotion_->GetCurrentVelocity(), NG::SceneStatus::START); in StartSpringMotion()
991 scrollMotionFRCSceneCallback_(motion_->GetCurrentVelocity(), NG::SceneStatus::END); in ProcessScrollMotionStop()
994 scrollMotionFRCSceneCallback_(snapMotion_->GetCurrentVelocity(), NG::SceneStatus::END); in ProcessScrollMotionStop()
1032 currentVelocity_ = scrollMotion_->GetCurrentVelocity(); in ProcessSpringMotion()
1055 currentVelocity_ = motion_->GetCurrentVelocity(); in ProcessScrollMotion()
[all …]
H A Dscroll_fade_effect.cpp122 double dragVelocity = scrollable_->GetCurrentVelocity(); in HandleOverScroll()
H A Dscroll_bar_controller.cpp235 scroll->HandleScrollOverByBar(dragEndMotion_->GetCurrentVelocity()); in ProcessScrollMotion()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dscroll_motion.cpp68 double ScrollMotion::GetCurrentVelocity() in GetCurrentVelocity() function in OHOS::Ace::ScrollMotion
74 return springMotion_->GetCurrentVelocity(); in GetCurrentVelocity()
H A Dspring_curve.h40 float GetCurrentVelocity() const in GetCurrentVelocity() function
65 … return NearEqual(other->GetCurrentVelocity(), velocity_) && NearEqual(other->GetMass(), mass_) && in IsEqual()
H A Dfriction_motion.cpp92 double FrictionMotion::GetCurrentVelocity() in GetCurrentVelocity() function in OHOS::Ace::FrictionMotion
99 return NearZero(GetCurrentVelocity(), velocityThreshold_) || in IsCompleted()
H A Dmotion.h29 virtual double GetCurrentVelocity() = 0;
H A Dselect_motion.h32 double GetCurrentVelocity() override in GetCurrentVelocity() function
H A Dfriction_motion.h34 double GetCurrentVelocity() override;
H A Dvelocity_motion.h43 double GetCurrentVelocity() override in GetCurrentVelocity() function
H A Dscroll_motion.h53 double GetCurrentVelocity() override;
H A Dspring_motion.h41 double GetCurrentVelocity() override;
H A Dbezier_variable_velocity_motion.h48 double GetCurrentVelocity() override in GetCurrentVelocity() function
H A Dspring_motion.cpp44 double SpringMotion::GetCurrentVelocity() in GetCurrentVelocity() function in OHOS::Ace::SpringMotion
H A Dbilateral_spring_node.cpp69 velocity_ = spring_->GetCurrentVelocity(); in OnAnimation()
H A Dsimple_spring_node.cpp124 velocity_ = spring_->GetCurrentVelocity(); in OnAnimation()
H A Dchain_animation.cpp42 curVelocity_ = spring_->GetCurrentVelocity(); in TickAnimation()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/
H A Dwater_flow_test_ng.cpp919 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_005);
942 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_005);
1008 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_006);
1031 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_006);
1090 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_007);
1113 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_007);
1183 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_008);
1206 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_008);
1265 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_009);
1288 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_009);
H A Dwater_flow_scroller_test_ng.cpp237 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY);
247 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/
H A Dgrid_scroller_test_ng.cpp969 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY);
979 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY);
1031 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_007);
1054 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_007);
1119 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_008);
1142 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_008);
1210 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_009);
1233 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_009);
1299 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_010);
1322 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_010);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/effect/
H A Dscroll_fade_effect.cpp152 fadeController_->ProcessAbsorb(std::abs(scrollable_->GetCurrentVelocity())); in HandleOverScroll()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/list/
H A Dlist_scroller_test_ng.cpp1338 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY);
1348 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY);
1409 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_008);
1432 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_008);
1508 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_009);
1531 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_009);
1601 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), -SCROLL_FIXED_VELOCITY_010);
1624 EXPECT_EQ(pattern_->fixedVelocityMotion_->GetCurrentVelocity(), SCROLL_FIXED_VELOCITY_010);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/test/unittest/framework/
H A Danimation_framework_test.cpp2007 EXPECT_NEAR(springMotion->GetCurrentVelocity(), 5000.0, DBL_EPSILON);
2016 EXPECT_EQ(floor(springMotion->GetCurrentVelocity()), 33);
2025 EXPECT_NEAR(springMotion->GetCurrentVelocity(), 0.0, DBL_EPSILON);
2060 EXPECT_EQ(floor(springMotion->GetCurrentVelocity()), 273);
2069 EXPECT_NEAR(springMotion->GetCurrentVelocity(), 0.0, DBL_EPSILON);
2104 EXPECT_EQ(floor(springMotion->GetCurrentVelocity()), -65);
2113 EXPECT_NEAR(springMotion->GetCurrentVelocity(), 0.0, DBL_EPSILON);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Dscrollable_event.h95 …std::abs(scrollable_->GetCurrentVelocity()) > PipelineBase::Vp2PxWithCurrentDensity(HTMBLOCK_VELOC… in IsHitTestBlock()

12