/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/ |
H A D | rs_interpolator_test.cpp | 52 EXPECT_EQ(interpolator, nullptr); 57 EXPECT_EQ(interpolator, nullptr); 65 EXPECT_TRUE(interpolator != nullptr); 81 EXPECT_EQ(interpolator, nullptr); 86 EXPECT_EQ(interpolator, nullptr); 92 EXPECT_EQ(interpolator, nullptr); 101 EXPECT_TRUE(interpolator != nullptr); 151 EXPECT_TRUE(interpolator != nullptr); 170 EXPECT_TRUE(interpolator != nullptr); 171 if (interpolator != nullptr) { [all …]
|
H A D | rs_render_keyframe_animation_test.cpp | 70 auto interpolator = std::make_shared<RSStepsInterpolator>(0); variable 74 renderKeyframeAnimation->AddKeyframe(-1.0f, property1, interpolator); 77 renderKeyframeAnimation->AddKeyframe(2.0f, property1, interpolator); 96 auto interpolator = std::make_shared<RSStepsInterpolator>(0); variable 98 renderKeyframeAnimation->AddKeyframe(0.1f, property1, interpolator); 103 renderKeyframeAnimation->AddKeyframe(0.2f, property1, interpolator); 119 auto interpolator = std::make_shared<RSStepsInterpolator>(0); variable 120 keyframes.push_back(std::make_tuple(0.1f, property1, interpolator)); 149 auto interpolator = std::make_shared<RSStepsInterpolator>(0); variable 176 auto interpolator = std::make_shared<RSStepsInterpolator>(0); variable [all …]
|
H A D | rs_render_particle_effector_test.cpp | 101 std::shared_ptr<RSInterpolator> interpolator = nullptr; in SetOpacity() local 102 …td::make_shared<ChangeInOverLife<float>>(fromValue, toValue, startMillis, endMillis, interpolator); in SetOpacity() 104 …red<ChangeInOverLife<float>>(toValue, fromValue, endMillis + 4000, endMillis + 7000, interpolator); in SetOpacity() 221 std::shared_ptr<RSInterpolator> interpolator = variable 223 …td::make_shared<ChangeInOverLife<float>>(fromValue, toValue, startMillis, endMillis, interpolator); 225 …red<ChangeInOverLife<float>>(toValue, fromValue, endMillis + 4000, endMillis + 7000, interpolator); 292 std::shared_ptr<RSInterpolator> interpolator = variable 295 …hared<ChangeInOverLife<Color>>(colorFromValue, colorToValue, startMillis, endMillis, interpolator); 385 std::shared_ptr<RSInterpolator> interpolator = nullptr; variable 386 …td::make_shared<ChangeInOverLife<float>>(fromValue, toValue, startMillis, endMillis, interpolator); [all …]
|
H A D | rs_render_particle_emitter_test.cpp | 96 std::shared_ptr<RSInterpolator> interpolator = nullptr; in SetOpacity() local 97 …td::make_shared<ChangeInOverLife<float>>(fromValue, toValue, startMillis, endMillis, interpolator); in SetOpacity() 99 …red<ChangeInOverLife<float>>(toValue, fromValue, endMillis + 4000, endMillis + 7000, interpolator); in SetOpacity()
|
H A D | rs_value_estimator_test.cpp | 80 auto interpolator = std::make_shared<RSStepsInterpolator>(1, StepsCurvePosition::START); variable 89 auto result = curveValueEstimator->EstimateFraction(interpolator);
|
H A D | rs_render_curve_animation_test.cpp | 109 auto interpolator = std::make_shared<RSStepsInterpolator>(0); variable 111 renderCurveAnimation->SetInterpolator(interpolator);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_render_keyframe_animation.cpp | 39 const std::shared_ptr<RSInterpolator>& interpolator) in AddKeyframe() argument 51 keyframes_.push_back({ fraction, value, interpolator }); in AddKeyframe() 108 … for (const auto& [startFraction, endFraction, property, interpolator] : durationKeyframes_) { in Marshalling() 111 interpolator != nullptr && interpolator->Marshalling(parcel))) { in Marshalling() 123 for (const auto& [value, property, interpolator] : keyframes_) { in Marshalling() 125 interpolator != nullptr && interpolator->Marshalling(parcel))) { in Marshalling() 178 std::shared_ptr<RSInterpolator> interpolator(RSInterpolator::Unmarshalling(parcel)); in ParseParam() local 179 if (interpolator == nullptr) { in ParseParam() 183 keyframes_.emplace_back(std::make_tuple(tupValue0, tupValue1, interpolator)); in ParseParam() 201 std::shared_ptr<RSInterpolator> interpolator(RSInterpolator::Unmarshalling(parcel)); in ParseDurationKeyframesParam() local [all …]
|
H A D | rs_render_curve_animation.cpp | 35 void RSRenderCurveAnimation::SetInterpolator(const std::shared_ptr<RSInterpolator>& interpolator) in SetInterpolator() argument 37 interpolator_ = interpolator; in SetInterpolator() 84 std::shared_ptr<RSInterpolator> interpolator(RSInterpolator::Unmarshalling(parcel)); in ParseParam() local 85 if (interpolator == nullptr) { in ParseParam() 89 SetInterpolator(interpolator); in ParseParam() 118 …CurveAnimation::OnAnimateInner(float fraction, const std::shared_ptr<RSInterpolator>& interpolator) in OnAnimateInner() argument 126 if (valueEstimator_ == nullptr || interpolator == nullptr) { in OnAnimateInner() 129 auto interpolatorValue = interpolator->Interpolate(fraction); in OnAnimateInner()
|
H A D | rs_value_estimator.cpp | 64 …RSCurveValueEstimator<float>::EstimateFraction(const std::shared_ptr<RSInterpolator>& interpolator) in EstimateFraction() argument 66 if (interpolator == nullptr) { in EstimateFraction() 75 float fraction = interpolator->Interpolate(mid); in EstimateFraction()
|
H A D | rs_render_transition.cpp | 74 std::shared_ptr<RSInterpolator> interpolator(RSInterpolator::Unmarshalling(parcel)); in ParseParam() local 75 if (interpolator == nullptr) { in ParseParam() 79 SetInterpolator(interpolator); in ParseParam()
|
H A D | rs_render_path_animation.cpp | 40 void RSRenderPathAnimation::SetInterpolator(const std::shared_ptr<RSInterpolator>& interpolator) in SetInterpolator() argument 42 interpolator_ = interpolator; in SetInterpolator() 171 std::shared_ptr<RSInterpolator> interpolator(RSInterpolator::Unmarshalling(parcel)); in ParseParam() local 172 if (interpolator == nullptr) { in ParseParam() 183 SetInterpolator(interpolator); in ParseParam()
|
H A D | rs_render_particle_effector.cpp | 69 auto& interpolator = valChangeOverLife[i]->interpolator_; in UpdateCurveValue() local 70 t = (interpolator != nullptr) ? interpolator->Interpolate(t) : t; in UpdateCurveValue() 93 auto& interpolator = valChangeOverLife[i]->interpolator_; in UpdateColorCurveValue() local 94 t = (interpolator != nullptr) ? interpolator->Interpolate(t) : t; in UpdateColorCurveValue()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/animation/ |
H A D | rs_render_keyframe_animation_test.cpp | 60 auto interpolator = std::shared_ptr<RSInterpolator>(); in HWTEST_F() local 61 rsRenderKeyframeAnimation.AddKeyframe(1.0f, value, interpolator); in HWTEST_F() 94 auto interpolator = std::shared_ptr<RSInterpolator>(); in HWTEST_F() local 97 rsRenderKeyframeAnimation.AddKeyframe(start, end, value, interpolator); in HWTEST_F() 102 rsRenderKeyframeAnimation.AddKeyframe(start, end, value, interpolator); in HWTEST_F() 106 rsRenderKeyframeAnimation.AddKeyframe(start, end, value, interpolator); in HWTEST_F() 111 rsRenderKeyframeAnimation.AddKeyframe(start, end, value, interpolator); in HWTEST_F()
|
H A D | rs_cubic_bezier_interpolator_test.cpp | 88 RSCubicBezierInterpolator* interpolator; variable 89 interpolator = rsCubicBezierInterpolator.Unmarshalling(parcel); 90 EXPECT_EQ(interpolator, nullptr);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/ |
H A D | rs_curve_animation.cpp | 83 auto interpolator = timingCurve_.GetInterpolator(GetDuration()); in OnStart() local 86 animation->SetInterpolator(interpolator); in OnStart() 99 auto interpolator = timingCurve_.GetInterpolator(GetDuration()); in IsSupportInteractiveAnimator() local 100 …if (interpolator->GetType() == InterpolatorType::CUSTOM || interpolator->GetType() == Interpolator… in IsSupportInteractiveAnimator()
|
H A D | rs_transition.cpp | 63 auto interpolator = timingCurve_.GetInterpolator(GetDuration()); in StartCustomTransition() local 64 transition->SetInterpolator(interpolator); in StartCustomTransition() 89 auto interpolator = timingCurve_.GetInterpolator(GetDuration()); in StartRenderTransition() local 90 transition->SetInterpolator(interpolator); in StartRenderTransition()
|
H A D | rs_particle_params.h | 180 auto interpolator = curve.GetInterpolator(duration); in translateValToRender() local 183 fromValue, toValue, startMillis, endMillis, std::move(interpolator))); in translateValToRender() 211 auto interpolator = curve.GetInterpolator(duration); in translateColorToRender() local 214 fromValue, toValue, startMillis, endMillis, std::move(interpolator))); in translateColorToRender()
|
H A D | rs_animation_timing_curve.cpp | 53 RSAnimationTimingCurve::RSAnimationTimingCurve(const std::shared_ptr<RSInterpolator>& interpolator) in RSAnimationTimingCurve() argument 54 : interpolator_(interpolator), customCurveFunc_(nullptr) in RSAnimationTimingCurve()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/ |
H A D | rs_render_transition.h | 33 void SetInterpolator(const std::shared_ptr<RSInterpolator>& interpolator) in SetInterpolator() argument 35 interpolator_ = interpolator; in SetInterpolator()
|
H A D | rs_value_estimator.h | 52 virtual float EstimateFraction(const std::shared_ptr<RSInterpolator>& interpolator) in EstimateFraction() argument 57 virtual float EstimateFraction(const std::shared_ptr<RSInterpolator>& interpolator, in EstimateFraction() argument 123 float EstimateFraction(const std::shared_ptr<RSInterpolator>& interpolator) override in EstimateFraction() argument 128 float EstimateFraction(const std::shared_ptr<RSInterpolator>& interpolator, in EstimateFraction() argument 131 if (interpolator == nullptr || duration <= 0) { in EstimateFraction() 143 float fraction = interpolator->Interpolate(frameFraction); in EstimateFraction() 159 …SCurveValueEstimator<float>::EstimateFraction(const std::shared_ptr<RSInterpolator>& interpolator);
|
H A D | rs_render_curve_animation.h | 36 void SetInterpolator(const std::shared_ptr<RSInterpolator>& interpolator); 56 void OnAnimateInner(float fraction, const std::shared_ptr<RSInterpolator>& interpolator);
|
H A D | rs_render_keyframe_animation.h | 35 const std::shared_ptr<RSInterpolator>& interpolator); 41 const std::shared_ptr<RSInterpolator>& interpolator);
|
H A D | rs_render_path_animation.h | 40 void SetInterpolator(const std::shared_ptr<RSInterpolator>& interpolator);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/fuzztest/rsanimationbase_fuzzer/ |
H A D | rsanimationbase_fuzzer.cpp | 165 auto interpolator = std::make_shared<RSCubicBezierInterpolator>(x1, y1, x2, y2); in RSCubicBezierInterpolatorFuzzerTest() local 166 interpolator->Interpolate(input); in RSCubicBezierInterpolatorFuzzerTest() 167 interpolator->Marshalling(parcel); in RSCubicBezierInterpolatorFuzzerTest()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | animator.cpp | 557 for (auto& interpolator : interpolators) { in Cancel() local 558 interpolator->OnInitNotify(normalizedTime, isReverse_); in Cancel() 596 for (const auto& interpolator : interpolators) { in OnFrame() local 597 … interpolator->OnNormalizedTimestampChanged(isCurDirection_ ? 1.0f : 0.0f, isReverse_); in OnFrame() 659 for (const auto& interpolator : interpolators) { in NotifyInterpolator() local 662 interpolator->OnInitNotify(normalizedTime, isReverse_); in NotifyInterpolator() 665 interpolator->OnNormalizedTimestampChanged(normalizedTime, isReverse_); in NotifyInterpolator()
|