/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/animation/ |
H A D | rs_animation_timing_curve_test.cpp | 51 float mass = -1.0f; in HWTEST_F() local 54 rsAnimationTimingCurve.CreateSpringCurve(velocity, mass, stiffness, damping); in HWTEST_F() 68 float mass = -1.0f; in HWTEST_F() local 71 rsAnimationTimingCurve.CreateInterpolatingSpring(velocity, mass, stiffness, damping); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/ |
H A D | rs_animation_timing_curve.cpp | 83 float velocity, float mass, float stiffness, float damping) in CreateSpringCurve() 85 if (stiffness <= 0.0f || mass * stiffness <= 0.0f) { in CreateSpringCurve() 91 float response = 2 * PI * sqrt(mass / stiffness); in CreateSpringCurve() 92 float dampingRatio = (damping / (2 * sqrt(mass * stiffness))); in CreateSpringCurve() 97 float mass, float stiffness, float damping, float velocity, float minimumAmplitudeRatio) in CreateInterpolatingSpring() 99 if (stiffness <= 0.0f || mass * stiffness <= 0.0f) { in CreateInterpolatingSpring() 106 float response = 2 * PI * sqrt(mass / stiffness); in CreateInterpolatingSpring() 107 float dampingRatio = (damping / (2 * sqrt(mass * stiffness))); in CreateInterpolatingSpring() 82 CreateSpringCurve( float velocity, float mass, float stiffness, float damping) CreateSpringCurve() argument 96 CreateInterpolatingSpring( float mass, float stiffness, float damping, float velocity, float minimumAmplitudeRatio) CreateInterpolatingSpring() argument
|
H A D | rs_animation_timing_curve.h | 53 static RSAnimationTimingCurve CreateSpringCurve(float velocity, float mass, float stiffness, float damping); 56 static RSAnimationTimingCurve CreateInterpolatingSpring(float mass, float stiffness, float damping, float velocity,
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/animator/ |
H A D | cj_animator.cpp | 78 float mass = StringUtils::StringToFloat(paramsVector[1]); in ParseOptionToMotion() local 83 if (LessOrEqual(mass, 0)) { in ParseOptionToMotion() 84 mass = 1.0f; in ParseOptionToMotion() 93 option->begin, option->end, velocity, AceType::MakeRefPtr<SpringProperty>(mass, stiffness, damping)); in ParseOptionToMotion()
|
/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | spring_model.h | 33 SpringProperty(double mass, double stiffness, double damping) in SpringProperty() argument 34 : mass_(mass), stiffness_(stiffness), damping_(damping) in SpringProperty() 41 void SetMass(double mass); 60 // Default mass of spring 63 // the mass of the spring.
|
H A D | spring_model.cpp | 36 void SpringProperty::SetMass(double mass) in SetMass() argument 38 if (mass > 0.0) { in SetMass() 39 mass_ = mass; in SetMass()
|
H A D | spring_curve.cpp | 34 SpringCurve::SpringCurve(float velocity, float mass, float stiffness, float damping) in SpringCurve() argument 35 : velocity_(velocity), mass_(mass), stiffness_(stiffness), damping_(damping) in SpringCurve()
|
H A D | spring_curve.h | 28 SpringCurve(float velocity, float mass, float stiffness, float damping); 84 RefPtr<SpringProperty> property_; // Contain: mass & stiffness & damping
|
H A D | curve.h | 343 InterpolatingSpring(float velocity, float mass, float stiffness, float damping) in InterpolatingSpring() argument 344 : velocity_(velocity), mass_(mass), stiffness_(stiffness), damping_(damping) in InterpolatingSpring()
|
/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | animate_impl.cpp | 298 ArkUI_CurveHandle SpringCurve(float velocity, float mass, float stiffness, float damping) in SpringCurve() argument 304 if (mass <= 0) { in SpringCurve() 305 mass = 1; in SpringCurve() 313 auto curve = impl->getAnimation()->springCurve(velocity, mass, stiffness, damping); in SpringCurve() 364 ArkUI_CurveHandle InterpolatingSpring(float velocity, float mass, float stiffness, float damping) in InterpolatingSpring() argument 370 if (mass <= 0) { in InterpolatingSpring() 371 mass = 1; in InterpolatingSpring() 379 auto curve = impl->getAnimation()->interpolatingSpring(velocity, mass, stiffness, damping); in InterpolatingSpring()
|
H A D | animate_impl.h | 113 ArkUI_CurveHandle SpringCurve(float velocity, float mass, float stiffness, float damping); 116 ArkUI_CurveHandle InterpolatingSpring(float velocity, float mass, float stiffness, float damping);
|
H A D | node_animate.cpp | 671 ArkUI_CurveHandle OH_ArkUI_Curve_CreateSpringCurve(float velocity, float mass, float stiffness, float damping) in OH_ArkUI_Curve_CreateSpringCurve() argument 673 return OHOS::Ace::AnimateModel::SpringCurve(velocity, mass, stiffness, damping); in OH_ArkUI_Curve_CreateSpringCurve() 687 ArkUI_CurveHandle OH_ArkUI_Curve_CreateInterpolatingSpring(float velocity, float mass, float stiffness, float damping) in OH_ArkUI_Curve_CreateInterpolatingSpring() argument 689 return OHOS::Ace::AnimateModel::InterpolatingSpring(velocity, mass, stiffness, damping); in OH_ArkUI_Curve_CreateInterpolatingSpring()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_animate.h | 44 ArkUI_Float32 velocity, ArkUI_Float32 mass, ArkUI_Float32 stiffness, ArkUI_Float32 damping); 50 ArkUI_Float32 velocity, ArkUI_Float32 mass, ArkUI_Float32 stiffness, ArkUI_Float32 damping);
|
H A D | node_animate.cpp | 463 ArkUI_Float32 velocity, ArkUI_Float32 mass, ArkUI_Float32 stiffness, ArkUI_Float32 damping) in CreateSpringCurve() 465 auto curve = AceType::MakeRefPtr<SpringCurve>(velocity, mass, stiffness, damping); in CreateSpringCurve() 487 ArkUI_Float32 velocity, ArkUI_Float32 mass, ArkUI_Float32 stiffness, ArkUI_Float32 damping) in CreateInterpolatingSpring() 489 auto curve = AceType::MakeRefPtr<InterpolatingSpring>(velocity, mass, stiffness, damping); in CreateInterpolatingSpring() 462 CreateSpringCurve( ArkUI_Float32 velocity, ArkUI_Float32 mass, ArkUI_Float32 stiffness, ArkUI_Float32 damping) CreateSpringCurve() argument 486 CreateInterpolatingSpring( ArkUI_Float32 velocity, ArkUI_Float32 mass, ArkUI_Float32 stiffness, ArkUI_Float32 damping) CreateInterpolatingSpring() argument
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/modules/ |
H A D | jsi_curves_module.cpp | 108 double mass = 1.0; in CreateSpringCurve() local 115 mass = argv[1]->ToDouble(runtime); in CreateSpringCurve() 116 if (LessOrEqual(mass, 0.0)) { in CreateSpringCurve() 117 mass = 1.0; in CreateSpringCurve() 132 curve = AceType::MakeRefPtr<SpringCurve>(velocity, mass, stiffness, damping); in CreateSpringCurve() 143 float mass = static_cast<float>(argv[1]->IsNumber(runtime) ? argv[1]->ToDouble(runtime) : 1.0); in CreateInterpolatingSpring() local 146 if (LessOrEqual(mass, 0)) { in CreateInterpolatingSpring() 147 mass = 1.0; in CreateInterpolatingSpring() 155 curve = AceType::MakeRefPtr<InterpolatingSpring>(velocity, mass, stiffness, damping); in CreateInterpolatingSpring()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/animation/ |
H A D | rs_implicit_animator_test.cpp | 55 float mass = 0.5f; in HWTEST_F() local 59 auto timingCurve = RSAnimationTimingCurve::CreateInterpolatingSpring(mass, stiffness, damping, velocity); in HWTEST_F() 76 float mass = 0.5f; in HWTEST_F() local 80 auto timingCurve = RSAnimationTimingCurve::CreateSpringCurve(velocity, mass, stiffness, damping); in HWTEST_F()
|
H A D | rs_animation_timing_curve_test.cpp | 436 float mass = 0.5f;
in HWTEST_F() local 439 auto timingCurve = RSAnimationTimingCurve::CreateSpringCurve(velocity, mass, stiffness, damping);
in HWTEST_F() 459 float mass = 0.5f;
in HWTEST_F() local 463 auto timingCurve = RSAnimationTimingCurve::CreateInterpolatingSpring(mass, stiffness, damping, velocity);
in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
H A D | toss_animation_controller.cpp | 147 double mass = PICKER_SPRING_MASS; in UpdatePlayAnimationValue() local 154 return AceType::MakeRefPtr<InterpolatingSpring>(speed_, mass, stiffness, damping); in UpdatePlayAnimationValue()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/ |
H A D | toss_animation_controller.cpp | 151 double mass = PICKER_SPRING_MASS; in UpdatePlayAnimationValue() local 158 return AceType::MakeRefPtr<InterpolatingSpring>(speed_, mass, stiffness, damping); in UpdatePlayAnimationValue()
|
/foundation/arkui/ace_engine/frameworks/core/components/list/ |
H A D | list_component.h | 431 void SetOverSpringProperty(double mass, double stiffness, double damping) in SetOverSpringProperty() argument 433 overSpringProperty_ = AceType::MakeRefPtr<SpringProperty>(mass, stiffness, damping); in SetOverSpringProperty()
|
/foundation/arkui/ace_engine/interfaces/native/ |
H A D | native_animate.h | 307 ArkUI_CurveHandle OH_ArkUI_Curve_CreateSpringCurve(float velocity, float mass, float stiffness, float damping); 311 ArkUI_CurveHandle OH_ArkUI_Curve_CreateInterpolatingSpring(float velocity, float mass, float stiffness, float damping);
|
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | utils.cpp | 90 double mass = StringToDouble(params.at(1)); in SpringCurveCreator() local 93 return AceType::MakeRefPtr<SpringCurve>(velocity, mass, stiffness, damping); in SpringCurveCreator() 102 double mass = StringToDouble(params.at(1)); in InterpolatingSpringCreator() local 105 return AceType::MakeRefPtr<InterpolatingSpring>(velocity, mass, stiffness, damping); in InterpolatingSpringCreator()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/animator/ |
H A D | js_animator.cpp | 135 float mass = StringUtils::StringToFloat(paramsVector[1]); in ParseOptionToMotion() local 140 if (LessOrEqual(mass, 0)) { in ParseOptionToMotion() 141 mass = 1.0f; in ParseOptionToMotion() 150 option->begin, option->end, velocity, AceType::MakeRefPtr<SpringProperty>(mass, stiffness, damping)); in ParseOptionToMotion()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/ |
H A D | swiper_animation_test_ng.cpp | 397 float mass = 0.1f; in HWTEST_F() local 400 auto curve1 = AceType::MakeRefPtr<SpringCurve>(velocity, mass, stiffness, damping); in HWTEST_F() 401 auto curve2 = AceType::MakeRefPtr<InterpolatingSpring>(velocity, mass, stiffness, damping); in HWTEST_F() 438 float mass = 0.1f; in HWTEST_F() local 442 auto curve1 = AceType::MakeRefPtr<SpringCurve>(velocity, mass, stiffness, damping); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/ |
H A D | render_list_item.cpp | 376 double mass = theme_ ? theme_->GetItemSwipeSpringMass() : SWIPE_SPRING_MASS; in StartSpringMotion() local 380 AceType::MakeRefPtr<SpringProperty>(mass, stiffness, damping); in StartSpringMotion()
|