/foundation/arkui/ace_engine/test/unittest/bridge/common/utils/ |
H A D | utils_test.cpp | 46 std::string curve = ""; in HWTEST_F() local 52 EXPECT_EQ(CreateCurve(curve), Curves::EASE_IN_OUT); in HWTEST_F() 53 curve = "123)"; in HWTEST_F() 54 EXPECT_EQ(CreateCurve(curve, false), nullptr); in HWTEST_F() 55 curve = "123)"; in HWTEST_F() 56 EXPECT_EQ(CreateCurve(curve), Curves::EASE_IN_OUT); in HWTEST_F() 57 curve = "()"; in HWTEST_F() 58 EXPECT_EQ(CreateCurve(curve), Curves::EASE_IN_OUT); in HWTEST_F() 59 curve = "steps()"; in HWTEST_F() 60 EXPECT_EQ(CreateCurve(curve), Curve in HWTEST_F() 96 std::string curve = ""; HWTEST_F() local 387 RefPtr<Curve> curve; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/test/unittest/interfaces/ |
H A D | animate_impl_test.cpp | 51 ArkUI_CurveHandle curve = InitCurve(ArkUI_AnimationCurve::ARKUI_CURVE_EASE); in HWTEST_F() local 52 ASSERT_EQ(curve, nullptr); in HWTEST_F() 54 DisposeCurve(curve); in HWTEST_F() 64 ArkUI_CurveHandle curve = CubicBezierCurve(0.0f, 0.0f, 0.0f, 0.0f); in HWTEST_F() local 65 ASSERT_EQ(curve, nullptr); in HWTEST_F() 75 ArkUI_CurveHandle curve = SpringCurve(0.0f, 0.0f, 0.0f, 0.0f); in HWTEST_F() local 76 ASSERT_EQ(curve, nullptr); in HWTEST_F() 86 ArkUI_CurveHandle curve = SpringMotion(0.0f, 0.0f, 0.0f); in HWTEST_F() local 87 ASSERT_EQ(curve, nullptr); in HWTEST_F() 97 ArkUI_CurveHandle curve in HWTEST_F() local 108 ArkUI_CurveHandle curve = ResponsiveSpringMotion(0.0f, 0.0f, 0.0f); HWTEST_F() local 119 ArkUI_CurveHandle curve = CustomCurve(nullptr, InterpolateCallback); HWTEST_F() local 131 ArkUI_CurveHandle curve = InitCurve(ArkUI_AnimationCurve::ARKUI_CURVE_EASE); HWTEST_F() local 146 ArkUI_CurveHandle curve = StepsCurve(0, true); HWTEST_F() local 158 ArkUI_CurveHandle curve = StepsCurve(1, true); HWTEST_F() local 173 ArkUI_CurveHandle curve = CubicBezierCurve(0.0f, 0.0f, 0.0f, 0.0f); HWTEST_F() local 188 ArkUI_CurveHandle curve = SpringCurve(0.0f, 0.0f, 0.0f, 0.0f); HWTEST_F() local 203 ArkUI_CurveHandle curve = SpringCurve(0.5f, 0.5f, 0.5f, 0.5f); HWTEST_F() local 218 ArkUI_CurveHandle curve = SpringMotion(0.5f, 0.5f, 0.5f); HWTEST_F() local 233 ArkUI_CurveHandle curve = SpringMotion(-1.0f, -1.0f, -1.0f); HWTEST_F() local 248 ArkUI_CurveHandle curve = ResponsiveSpringMotion(-1.0f, -1.0f, -1.0f); HWTEST_F() local 263 ArkUI_CurveHandle curve = ResponsiveSpringMotion(0.5f, 0.5f, 0.5f); HWTEST_F() local 278 ArkUI_CurveHandle curve = InterpolatingSpring(0.5f, 0.5f, 0.5f, 0.5f); HWTEST_F() local 293 ArkUI_CurveHandle curve = InterpolatingSpring(0.0f, 0.0f, 0.0f, 0.0f); HWTEST_F() local 308 ArkUI_CurveHandle curve = CustomCurve(nullptr, InterpolateCallback); HWTEST_F() local 646 ArkUI_CurveHandle curve = new ArkUI_Curve(); HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | native_curve_helper.cpp | 23 Rosen::RSAnimationTimingCurve NativeCurveHelper::ToNativeCurve(const RefPtr<Curve>& curve) in ToNativeCurve() argument 25 if (AceType::InstanceOf<LinearCurve>(curve)) { in ToNativeCurve() 27 } else if (auto cubicCurve = AceType::DynamicCast<CubicCurve>(curve)) { in ToNativeCurve() 30 } else if (auto springCurve = AceType::DynamicCast<SpringCurve>(curve)) { in ToNativeCurve() 33 } else if (auto interpolatingSpringCurve = AceType::DynamicCast<InterpolatingSpring>(curve)) { in ToNativeCurve() 37 } else if (auto customCurve = AceType::DynamicCast<CustomCurve>(curve)) { in ToNativeCurve() 39 } else if (auto springMotionCurve = AceType::DynamicCast<ResponsiveSpringMotion>(curve)) { in ToNativeCurve() 42 } else if (auto stepsCurve = AceType::DynamicCast<StepsCurve>(curve)) { in ToNativeCurve() 47 [weak = WeakPtr<Curve>(curve)](float fraction) -> float { in ToNativeCurve() 48 auto curve in ToNativeCurve() [all...] |
H A D | curve.h | 30 // The running time of the curve needs to be normalized to the interval of 0.0 to 1.0; 31 // Relatively, the corresponding value of the curve also needs to be normalized to the interval of 0.0 to 1.0; 40 // Notice: The value of time must be between 0.0 and 1.0 since the curve uses normalized timestamp. 54 virtual bool IsEqual(const RefPtr<Curve>& curve) const in IsEqual() 60 // The reverse curve is used to convert the direction of motion. 61 // It uses the 1.0->0.0 motion of the child curve to achieve the reverse purpose. 66 explicit ReverseCurve(const RefPtr<Curve>& curve) : curve_(curve) {} in ReverseCurve() argument 88 explicit ComplementaryCurve(const RefPtr<Curve>& curve) : curve_(curve) {} in ComplementaryCurve() argument [all...] |
H A D | curve_animation.h | 20 #include "core/animation/curve.h" 29 CurveAnimation(const T& begin, const T& end, const RefPtr<Curve>& curve) in CurveAnimation() argument 32 if (curve) { in CurveAnimation() 33 curve_ = curve; in CurveAnimation() 35 LOGW("curve is empty when construct animation, use EASE as default."); in CurveAnimation() 48 void SetCurve(const RefPtr<Curve>& curve) override 50 if (!curve) { 51 LOGE("set curve failed. curve is null."); 54 curve_ = curve; 100 Calculate(float time, const RefPtr<Curve>& curve) Calculate() argument [all...] |
H A D | keyframe_animation.h | 23 #include "core/animation/curve.h" 91 void SetCurve(const RefPtr<Curve>& curve) override 93 if (!curve) { 94 LOGE("set curve failed. curve is null."); 98 keyframe->SetCurve(curve); 119 auto curve = keyframe->GetCurve() ? keyframe->GetCurve() : AceType::DynamicCast<Curve>(Curves::EASE); variable 121 fraction, curve, [weak = AceType::WeakClaim(this), callback = prepareCallback, fraction]() { 165 auto& curve = keyframe->GetCurve(); in Calculate() local 168 if (curve) { in Calculate() [all...] |
H A D | scheduler.cpp | 98 bool Scheduler::Animate(const AnimationOption& option, const RefPtr<Curve>& curve, in Animate() argument 107 return context->Animate(option, curve, propertyCallback, finishCallBack); in Animate() 110 void Scheduler::OpenImplicitAnimation(const AnimationOption& option, const RefPtr<Curve>& curve, in OpenImplicitAnimation() argument 119 return context->OpenImplicitAnimation(option, curve, finishCallBack); in OpenImplicitAnimation() 134 float fraction, const RefPtr<Curve>& curve, const std::function<void()>& propertyCallback) in AddKeyFrame() 142 return context->AddKeyFrame(fraction, curve, propertyCallback); in AddKeyFrame() 133 AddKeyFrame( float fraction, const RefPtr<Curve>& curve, const std::function<void()>& propertyCallback) AddKeyFrame() argument
|
H A D | keyframe.h | 20 #include "core/animation/curve.h" 56 void SetCurve(const RefPtr<Curve>& curve) in SetCurve() argument 58 if (!curve) { in SetCurve() 59 LOGE("set curve failed, input curve is null."); in SetCurve() 62 curve_ = curve; in SetCurve()
|
H A D | animatable.h | 22 #include "core/animation/curve.h" 82 void SetCurve(const RefPtr<Curve>& curve) in SetCurve() argument 84 if (curve) { in SetCurve() 85 curve_ = curve; in SetCurve()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/animation/ |
H A D | rs_interactive_implict_animator_test.cpp | 48 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; in HWTEST_F() local 49 auto animator = RSInteractiveImplictAnimator::Create(protocol, curve); in HWTEST_F() 52 RSNode::Animate(protocol, curve, [&]() { in HWTEST_F() 81 RSAnimationTimingCurve curve = RSAnimationTimingCurve::SPRING; in HWTEST_F() local 82 auto animator = RSInteractiveImplictAnimator::Create(protocol, curve); in HWTEST_F() 85 RSNode::Animate(protocol, curve, [&]() { in HWTEST_F() 110 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; in HWTEST_F() local 111 auto animator = RSInteractiveImplictAnimator::Create(protocol, curve); in HWTEST_F() 136 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; in HWTEST_F() local 137 auto animator = RSInteractiveImplictAnimator::Create(protocol, curve); in HWTEST_F() 166 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; HWTEST_F() local 197 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; HWTEST_F() local 227 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; HWTEST_F() local 256 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; HWTEST_F() local 285 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; HWTEST_F() local 316 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; HWTEST_F() local 351 RSAnimationTimingCurve curve = RSAnimationTimingCurve::SPRING; HWTEST_F() local 385 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; HWTEST_F() local [all...] |
H A D | rs_animation_test.cpp | 55 RSAnimationTimingCurve curve = RSAnimationTimingCurve::SPRING;
in HWTEST_F() local 56 auto animations = RSNode::Animate(protocol, curve, [&property]() {
in HWTEST_F() 97 RSAnimationTimingCurve curve = RSAnimationTimingCurve::LINEAR;
in HWTEST_F() local 98 auto animations = RSNode::Animate(protocol, curve, [&property]() {
in HWTEST_F() 176 RSAnimationTimingCurve curve = RSAnimationTimingCurve::SPRING;
in HWTEST_F() local 179 auto animations = RSNode::Animate(protocol, curve, [&property]() {
in HWTEST_F() 222 RSAnimationTimingCurve curve = RSAnimationTimingCurve::LINEAR;
in HWTEST_F() local 225 auto animations = RSNode::Animate(protocol, curve, [&property]() {
in HWTEST_F() 310 RSAnimationTimingCurve curve = RSAnimationTimingCurve::SPRING;
in HWTEST_F() local 311 auto animations = RSNode::Animate(protocol, curve, [ in HWTEST_F() 352 RSAnimationTimingCurve curve = RSAnimationTimingCurve::LINEAR; HWTEST_F() local 433 RSAnimationTimingCurve curve = RSAnimationTimingCurve::SPRING; HWTEST_F() local 482 RSAnimationTimingCurve curve = RSAnimationTimingCurve::LINEAR; HWTEST_F() local 573 RSAnimationTimingCurve curve = RSAnimationTimingCurve::SPRING; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | animate_impl.cpp | 35 animateOption.curve = static_cast<ArkUI_Int32>(option->curve); in AnimateTo() 39 animateOption.iCurve = option->iCurve->curve; in AnimateTo() 84 auto curve = option->keyframes[i].curve; in KeyframeAnimateTo() local 85 if (!curve) { in KeyframeAnimateTo() 88 //不支持当前curve in KeyframeAnimateTo() 89 if (curve->type == ARKUI_CURVE_TYPE_SPRING_MOTION || curve->type == ARKUI_CURVE_TYPE_RESPONSIVE_SPRING_MOTION || in KeyframeAnimateTo() 90 curve in KeyframeAnimateTo() 269 auto curve = impl->getAnimation()->initCurve(animationCurve); InitCurve() local 280 auto curve = impl->getAnimation()->stepsCurve(count, end); StepsCurve() local 293 auto curve = impl->getAnimation()->cubicBezierCurve(x1, y1, x2, y2); CubicBezierCurve() local 313 auto curve = impl->getAnimation()->springCurve(velocity, mass, stiffness, damping); SpringCurve() local 336 auto curve = impl->getAnimation()->springMotion(response, dampingFraction, overlapDuration); SpringMotion() local 359 auto curve = impl->getAnimation()->responsiveSpringMotion(response, dampingFraction, overlapDuration); ResponsiveSpringMotion() local 379 auto curve = impl->getAnimation()->interpolatingSpring(velocity, mass, stiffness, damping); InterpolatingSpring() local 390 auto curve = impl->getAnimation()->customCurve(interpolate, userData); CustomCurve() local [all...] |
H A D | animate_impl.h | 33 ArkUI_AnimationCurve curve; member 54 ArkUICurveHandle curve; member 60 ArkUI_CurveHandle curve; member 76 ArkUI_CurveHandle curve; member
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_animate.cpp | 72 "duration:%{public}d, curve:%{public}s", in PrintNodeAnimationInfo() 95 ACE_SCOPED_TRACE("duration:%d, curve:%s, iteration:%d", option.GetDuration(), option.GetCurve()->ToString().c_str(), in AnimateToInner() 159 auto curve = reinterpret_cast<Curve*>(option.iCurve); in AnimateTo() local 160 animationOption.SetCurve(AceType::Claim(curve)); in AnimateTo() 163 CURVES_LIST[option.curve > static_cast<ArkUI_Int32>(CURVES_LIST.size()) ? 0 : option.curve]); in AnimateTo() 224 // actual curve is in keyframe, this curve will not be effective in KeyframeAnimateTo() 241 if (keyframe.curve) { in KeyframeAnimateTo() 242 auto curve in KeyframeAnimateTo() local 260 auto curve = reinterpret_cast<Curve*>(keyframe.curve); ParseAnimatorAnimation() local 270 auto curve = reinterpret_cast<Curve*>(option->easing); ParseAnimatorAnimation() local 441 CreateCurve(ArkUI_Int32 curve) CreateCurve() argument 450 auto curve = AceType::MakeRefPtr<StepsCurve>(count, static_cast<StepsCurvePosition>(end)); CreateStepsCurve() local 457 auto curve = AceType::MakeRefPtr<CubicCurve>(x1, y1, x2, y2); CreateCubicBezierCurve() local 465 auto curve = AceType::MakeRefPtr<SpringCurve>(velocity, mass, stiffness, damping); CreateSpringCurve() local 473 auto curve = AceType::MakeRefPtr<ResponsiveSpringMotion>(response, dampingFraction, overlapDuration); CreateSpringMotion() local 481 auto curve = AceType::MakeRefPtr<ResponsiveSpringMotion>(response, dampingFraction, overlapDuration); CreateResponsiveSpringMotion() local 489 auto curve = AceType::MakeRefPtr<InterpolatingSpring>(velocity, mass, stiffness, damping); CreateInterpolatingSpring() local 502 auto curve = AceType::MakeRefPtr<CustomCurve>(func); CreateCustomCurve() local 507 DisposeCurve(ArkUICurveHandle curve) DisposeCurve() argument [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/modules/ |
H A D | jsi_curves_module.cpp | 22 #include "frameworks/core/animation/curve.h" 67 RefPtr<Curve> curve; in CurvesInitInternal() local 74 curve = CreateCurve(curveString); in CurvesInitInternal() 102 const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) in CreateSpringCurve() 132 curve = AceType::MakeRefPtr<SpringCurve>(velocity, mass, stiffness, damping); in CreateSpringCurve() 137 const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) in CreateInterpolatingSpring() 155 curve = AceType::MakeRefPtr<InterpolatingSpring>(velocity, mass, stiffness, damping); in CreateInterpolatingSpring() 160 const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) in CreateCubicCurve() 184 curve = AceType::MakeRefPtr<CubicCurve>(x0, y0, x1, y1); in CreateCubicCurve() 189 const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) in CreateStepsCurve() 101 CreateSpringCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) CreateSpringCurve() argument 136 CreateInterpolatingSpring(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) CreateInterpolatingSpring() argument 159 CreateCubicCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) CreateCubicCurve() argument 188 CreateStepsCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) CreateStepsCurve() argument 214 CreateSpringMotionCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) CreateSpringMotionCurve() argument 245 CreateResponsiveSpringMotionCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) CreateResponsiveSpringMotionCurve() argument 281 RefPtr<Curve> curve; ParseCurves() local [all...] |
/foundation/arkui/ace_engine/test/mock/core/animation/ |
H A D | mock_scheduler.cpp | 31 bool Scheduler::Animate(const AnimationOption& option, const RefPtr<Curve>& curve, in Animate() argument 38 const AnimationOption& option, const RefPtr<Curve>& curve, const std::function<void()>& finishCallBack) in OpenImplicitAnimation() 48 void Scheduler::AddKeyFrame(float fraction, const RefPtr<Curve>& curve, const std::function<void()>& propertyCallback) in AddKeyFrame() argument 37 OpenImplicitAnimation( const AnimationOption& option, const RefPtr<Curve>& curve, const std::function<void()>& finishCallBack) OpenImplicitAnimation() argument
|
/foundation/arkui/ace_engine/frameworks/core/components/grid/ |
H A D | grid_controller.cpp | 32 void GridController::AnimateTo(double position, float duration, const RefPtr<Curve>& curve) in AnimateTo() argument 39 grid->AnimateTo(position, duration, curve); in AnimateTo() 52 void GridController::AnimateTo(int32_t index, float duration, const RefPtr<Curve>& curve) in AnimateTo() argument 59 grid->AnimateTo(index, duration, curve); in AnimateTo()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | animation_option.h | 24 #include "core/animation/curve.h" 32 AnimationOption(const RefPtr<Curve>& curve, int32_t duration) : duration_(duration), curve_(curve) {} in AnimationOption() argument 55 void SetCurve(const RefPtr<Curve>& curve) in SetCurve() argument 57 if (!curve) { in SetCurve() 58 LOGE("set curve failed. curve is null."); in SetCurve() 61 curve_ = curve; in SetCurve() 163 .append(", curve:").append(curve_ ? curve_->ToString() : ""); in ToString()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | rosen_animation_utils.cpp | 91 const AnimationOption& option, const RefPtr<Curve>& curve, const std::function<void()>& finishCallback) in OpenImplicitAnimation() 95 Rosen::RSNode::OpenImplicitAnimation(timingProtocol, NativeCurveHelper::ToNativeCurve(curve), wrappedOnFinish); in OpenImplicitAnimation() 146 void AnimationUtils::AddKeyFrame(float fraction, const RefPtr<Curve>& curve, const PropertyCallback& callback) in AddKeyFrame() argument 148 Rosen::RSNode::AddKeyFrame(fraction, NativeCurveHelper::ToNativeCurve(curve), callback); in AddKeyFrame() 156 void AnimationUtils::AddDurationKeyFrame(int duration, const RefPtr<Curve>& curve, const PropertyCallback& callback) in AddDurationKeyFrame() argument 158 Rosen::RSNode::AddDurationKeyFrame(duration, NativeCurveHelper::ToNativeCurve(curve), callback); in AddDurationKeyFrame() 193 RefPtr<NG::RenderContext>& renderContext, const Color& endColor, int32_t duration, const RefPtr<Curve>& curve) in BlendBgColorAnimation() 196 option.SetCurve(curve); in BlendBgColorAnimation() 241 Rosen::RSAnimationTimingCurve curve; in CreateInteractiveAnimation() local 243 Rosen::RSInteractiveImplictAnimator::Create(timingProtocol, curve); in CreateInteractiveAnimation() 90 OpenImplicitAnimation( const AnimationOption& option, const RefPtr<Curve>& curve, const std::function<void()>& finishCallback) OpenImplicitAnimation() argument 192 BlendBgColorAnimation( RefPtr<NG::RenderContext>& renderContext, const Color& endColor, int32_t duration, const RefPtr<Curve>& curve) BlendBgColorAnimation() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/ |
H A D | rs_implicit_animator.cpp | 47 // Begin default curve animation in OpenImplicitAnimation() 58 ROSEN_LOGE("Wrong type of timing curve!"); in OpenImplicitAnimation() 79 [[maybe_unused]] const auto& [protocol, curve, unused, unused_repeatCallback] = globalImplicitParams_.top(); in OpenImplicitAnimation() 80 return OpenImplicitAnimation(protocol, curve, std::move(finishCallback)); in OpenImplicitAnimation() 91 // copy current implicit animation callback and replace timing protocol and curve in OpenImplicitAnimation() 92 [[maybe_unused]] const auto& [protocol, curve, callback, unused_repeatCallback] = globalImplicitParams_.top(); in OpenImplicitAnimation() 259 ROSEN_LOGE("Wrong type of timing curve!"); in BeginImplicitKeyFrameAnimation() 302 ROSEN_LOGE("Wrong type of timing curve!"); in BeginImplicitDurationKeyFrameAnimation() 341 [[maybe_unused]] const auto& [protocol, curve, unused, unused_repeatCallback] = globalImplicitParams_.top(); in BeginImplicitCurveAnimation() 342 auto curveAnimationParam = std::make_shared<RSImplicitCurveAnimationParam>(protocol, curve); in BeginImplicitCurveAnimation() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/test/unittest/animation/ |
H A D | rs_animation_test.cpp | 222 RSAnimationTimingCurve curve = RSAnimationTimingCurve::CreateCustomCurve([](float input) { return input; }); in HWTEST_F() local 223 animation->SetTimingCurve(curve); in HWTEST_F() 252 RSAnimationTimingCurve curve = RSAnimationTimingCurve::CreateCubicCurve(0.42f, 0.0f, 0.58f, 1.0f); in HWTEST_F() local 253 animation->SetTimingCurve(curve); in HWTEST_F() 523 * @tc.steps: step1. init animation timing curve in HWTEST_F() 526 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; in HWTEST_F() local 528 std::make_unique<RSImplicitCurveAnimationParam>(protocol, curve); in HWTEST_F() 551 * @tc.steps: step1. init animation timing curve in HWTEST_F() 554 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; in HWTEST_F() local 557 std::make_unique<RSImplicitKeyframeAnimationParam>(protocol, curve, fractio in HWTEST_F() 584 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; HWTEST_F() local 617 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; HWTEST_F() local 644 RSAnimationTimingCurve curve = RSAnimationTimingCurve::EASE_IN_OUT; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_animate_param_ffi.cpp | 62 if (animationValue.curve.hasValue) { in ParseCjAnimation() 63 RefPtr<Curve> curve = CreateCurve(animationValue.curve.value); in ParseCjAnimation() local 64 result.SetCurve(curve); in ParseCjAnimation()
|
H A D | cj_page_transition_ffi.cpp | 26 void FfiPageTransitionEnterCreate(int type, int duration, char* curve, int delay) in FfiPageTransitionEnterCreate() argument 28 PageTransitionOption option = {(RouteType)type, duration, delay, Framework::CreateCurve(std::string(curve))}; in FfiPageTransitionEnterCreate() 32 void FfiPageTransitionExitCreate(int type, int duration, char* curve, int delay) in FfiPageTransitionExitCreate() argument 35 static_cast<RouteType>(type), duration, delay, Framework::CreateCurve(std::string(curve))}; in FfiPageTransitionExitCreate()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | animation_utils.h | 42 const AnimationOption& option, const RefPtr<Curve>& curve, const std::function<void()>& finishCallback); 48 static void AddKeyFrame(float fraction, const RefPtr<Curve>& curve, const PropertyCallback& callback); 50 static void AddDurationKeyFrame(int duration, const RefPtr<Curve>& curve, const PropertyCallback& callback); 63 RefPtr<NG::RenderContext>& renderContext, const Color& endColor, int32_t duration, const RefPtr<Curve>& curve);
|
/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | scroll_position_controller.cpp | 73 bool ScrollPositionController::AnimateTo(double position, float duration, const RefPtr<Curve>& curve, in AnimateTo() argument 80 scroll->AnimateTo(position, duration, curve, limitDuration, onFinish); in AnimateTo() 88 const Dimension& position, float duration, const RefPtr<Curve>& curve, bool smooth, bool canOverScroll) in AnimateTo() 95 scroll->AnimateTo(normalizedPos, duration, curve, true, nullptr); in AnimateTo() 102 bool ScrollPositionController::AnimateToTarget(const ComposeId& targetId, float duration, const RefPtr<Curve>& curve, in AnimateToTarget() argument 109 return scroll->AnimateToTarget(targetId, duration, curve, limitDuration, onFinish); in AnimateToTarget() 87 AnimateTo( const Dimension& position, float duration, const RefPtr<Curve>& curve, bool smooth, bool canOverScroll) AnimateTo() argument
|