/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/scroll/ |
H A D | scroll_controller_test_ng.cpp | 319 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 D | scrollable.cpp | 699 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 D | scroll_fade_effect.cpp | 122 double dragVelocity = scrollable_->GetCurrentVelocity(); in HandleOverScroll()
|
H A D | scroll_bar_controller.cpp | 235 scroll->HandleScrollOverByBar(dragEndMotion_->GetCurrentVelocity()); in ProcessScrollMotion()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | scroll_motion.cpp | 68 double ScrollMotion::GetCurrentVelocity() in GetCurrentVelocity() function in OHOS::Ace::ScrollMotion 74 return springMotion_->GetCurrentVelocity(); in GetCurrentVelocity()
|
H A D | spring_curve.h | 40 float GetCurrentVelocity() const in GetCurrentVelocity() function 65 … return NearEqual(other->GetCurrentVelocity(), velocity_) && NearEqual(other->GetMass(), mass_) && in IsEqual()
|
H A D | friction_motion.cpp | 92 double FrictionMotion::GetCurrentVelocity() in GetCurrentVelocity() function in OHOS::Ace::FrictionMotion 99 return NearZero(GetCurrentVelocity(), velocityThreshold_) || in IsCompleted()
|
H A D | motion.h | 29 virtual double GetCurrentVelocity() = 0;
|
H A D | select_motion.h | 32 double GetCurrentVelocity() override in GetCurrentVelocity() function
|
H A D | friction_motion.h | 34 double GetCurrentVelocity() override;
|
H A D | velocity_motion.h | 43 double GetCurrentVelocity() override in GetCurrentVelocity() function
|
H A D | scroll_motion.h | 53 double GetCurrentVelocity() override;
|
H A D | spring_motion.h | 41 double GetCurrentVelocity() override;
|
H A D | bezier_variable_velocity_motion.h | 48 double GetCurrentVelocity() override in GetCurrentVelocity() function
|
H A D | spring_motion.cpp | 44 double SpringMotion::GetCurrentVelocity() in GetCurrentVelocity() function in OHOS::Ace::SpringMotion
|
H A D | bilateral_spring_node.cpp | 69 velocity_ = spring_->GetCurrentVelocity(); in OnAnimation()
|
H A D | simple_spring_node.cpp | 124 velocity_ = spring_->GetCurrentVelocity(); in OnAnimation()
|
H A D | chain_animation.cpp | 42 curVelocity_ = spring_->GetCurrentVelocity(); in TickAnimation()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/ |
H A D | water_flow_test_ng.cpp | 919 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 D | water_flow_scroller_test_ng.cpp | 237 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 D | grid_scroller_test_ng.cpp | 969 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 D | scroll_fade_effect.cpp | 152 fadeController_->ProcessAbsorb(std::abs(scrollable_->GetCurrentVelocity())); in HandleOverScroll()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/list/ |
H A D | list_scroller_test_ng.cpp | 1338 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 D | animation_framework_test.cpp | 2007 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 D | scrollable_event.h | 95 …std::abs(scrollable_->GetCurrentVelocity()) > PipelineBase::Vp2PxWithCurrentDensity(HTMBLOCK_VELOC… in IsHitTestBlock()
|