/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/ |
H A D | rs_animation_group.cpp | 16 #include "animation/rs_animation_group.h" 18 #include "animation/rs_animation_callback.h" 24 void RSAnimationGroup::AddAnimation(const std::shared_ptr<RSAnimation>& animation) in AddAnimation() argument 26 if (animation == nullptr) { in AddAnimation() 27 ROSEN_LOGE("Failed to add animation, adding animation is null!"); in AddAnimation() 32 ROSEN_LOGE("Failed to add animation, group animation has started!"); in AddAnimation() 36 if (animation->IsStarted()) { in AddAnimation() 37 ROSEN_LOGE("Failed to add animation, addin in AddAnimation() 50 RemoveAnimation(const std::shared_ptr<RSAnimation>& animation) RemoveAnimation() argument [all...] |
H A D | rs_spring_animation.cpp | 16 #include "animation/rs_spring_animation.h" 18 #include "animation/rs_animation_common.h" 19 #include "animation/rs_render_spring_animation.h" 74 auto animation = std::make_shared<RSRenderSpringAnimation>(GetId(), GetPropertyId(), in OnStart() local 76 // 300: placeholder for estimated duration, will be replaced by real duration on animation start. in OnStart() 78 UpdateParamToRenderAnimation(animation); in OnStart() 79 animation->SetSpringParameters(timingCurve_.response_, timingCurve_.dampingRatio_, timingCurve_.blendDuration_); in OnStart() 80 animation->SetAdditive(GetAdditive()); in OnStart() 82 animation->SetZeroThreshold(zeroThreshold_); in OnStart() 85 animation in OnStart() 95 StartRenderAnimation(const std::shared_ptr<RSRenderSpringAnimation>& animation) StartRenderAnimation() argument 116 StartUIAnimation(const std::shared_ptr<RSRenderSpringAnimation>& animation) StartUIAnimation() argument [all...] |
H A D | rs_curve_animation.cpp | 16 #include "animation/rs_curve_animation.h" 18 #include "animation/rs_animation_common.h" 19 #include "animation/rs_render_curve_animation.h" 58 void RSCurveAnimation::StartRenderAnimation(const std::shared_ptr<RSRenderCurveAnimation>& animation) in StartRenderAnimation() argument 62 ROSEN_LOGE("Failed to start curve animation, target is null!"); in StartRenderAnimation() 66 std::unique_ptr<RSCommand> command = std::make_unique<RSAnimationCreateCurve>(target->GetId(), animation); in StartRenderAnimation() 73 void RSCurveAnimation::StartUIAnimation(const std::shared_ptr<RSRenderCurveAnimation>& animation) in StartUIAnimation() argument 75 StartCustomAnimation(animation); in StartUIAnimation() 82 auto animation = std::make_shared<RSRenderCurveAnimation>(GetId(), GetPropertyId(), in OnStart() local 84 animation in OnStart() [all...] |
H A D | rs_interpolating_spring_animation.cpp | 16 #include "animation/rs_interpolating_spring_animation.h" 18 #include "animation/rs_animation_common.h" 19 #include "animation/rs_render_interpolating_spring_animation.h" 73 auto animation = std::make_shared<RSRenderInterpolatingSpringAnimation>(GetId(), GetPropertyId(), in OnStart() local 75 // 300: placeholder for estimated duration, will be replaced by real duration on animation start. in OnStart() 77 UpdateParamToRenderAnimation(animation); in OnStart() 78 animation->SetSpringParameters(timingCurve_.response_, timingCurve_.dampingRatio_, timingCurve_.initialVelocity_, in OnStart() 80 animation->SetAdditive(GetAdditive()); in OnStart() 82 animation->SetZeroThreshold(zeroThreshold_); in OnStart() 85 animation in OnStart() 92 StartRenderAnimation( const std::shared_ptr<RSRenderInterpolatingSpringAnimation>& animation) StartRenderAnimation() argument 115 StartUIAnimation( const std::shared_ptr<RSRenderInterpolatingSpringAnimation>& animation) StartUIAnimation() argument [all...] |
H A D | rs_interactive_implict_animator.cpp | 16 #include "animation/rs_interactive_implict_animator.h" 116 ROSEN_LOGE("Failed to open implicit animation, implicit animator is null!"); in AddImplictAnimation() 128 for (auto& [animation, nodeId] : animations) { in AddImplictAnimation() 129 if (fractionAnimationId_ == 0 && animation->IsSupportInteractiveAnimator()) { in AddImplictAnimation() 130 fractionAnimationId_ = animation->GetId(); in AddImplictAnimation() 133 std::weak_ptr<RSAnimation> weakAnimation = animation; in AddImplictAnimation() 134 animation->SetInteractiveFinishCallback(GetAnimatorFinishCallback()); in AddImplictAnimation() 150 ROSEN_LOGE("Failed to open implicit animation, implicit animator is null!"); in AddAnimation() 158 for (auto& [animation, nodeId] : animations) { in AddAnimation() 159 if (fractionAnimationId_ == 0 && animation in AddAnimation() 184 auto animation = item.lock(); StartAnimation() local 219 auto animation = item.lock(); PauseAnimation() local 248 auto animation = item.lock(); ContinueAnimation() local 277 auto animation = item.lock(); FinishAnimation() local 305 auto animation = item.lock(); FinishOnCurrent() local 356 auto animation = item.lock(); ReverseAnimation() local 384 auto animation = item.lock(); SetFraction() local [all...] |
H A D | rs_keyframe_animation.cpp | 16 #include "animation/rs_keyframe_animation.h" 18 #include "animation/rs_render_keyframe_animation.h" 107 void RSKeyframeAnimation::StartRenderAnimation(const std::shared_ptr<RSRenderKeyframeAnimation>& animation) in StartRenderAnimation() argument 111 ROSEN_LOGE("Failed to start keyframe animation, target is null!"); in StartRenderAnimation() 115 std::unique_ptr<RSCommand> command = std::make_unique<RSAnimationCreateKeyframe>(target->GetId(), animation); in StartRenderAnimation() 121 std::make_unique<RSAnimationCreateKeyframe>(target->GetId(), animation); in StartRenderAnimation() 127 void RSKeyframeAnimation::StartUIAnimation(const std::shared_ptr<RSRenderKeyframeAnimation>& animation) in StartUIAnimation() argument 129 StartCustomAnimation(animation); in StartUIAnimation() 136 ROSEN_LOGE("Failed to start keyframe animation, keyframes is null!"); in OnStart() 139 auto animation in OnStart() local [all...] |
H A D | rs_implicit_animator.cpp | 16 #include "animation/rs_implicit_animator.h" 18 #include "animation/rs_animation.h" 19 #include "animation/rs_animation_callback.h" 20 #include "animation/rs_animation_trace_utils.h" 21 #include "animation/rs_implicit_animation_param.h" 22 #include "animation/rs_path_animation.h" 47 // Begin default curve animation in OpenImplicitAnimation() 73 // if current implicit animation params is empty, use default params, if no animation created, call finish in OpenImplicitAnimation() 78 // copy current implicit animation param in OpenImplicitAnimation() 523 std::shared_ptr<RSAnimation> animation; CreateImplicitAnimation() local 668 std::shared_ptr<RSAnimation> animation; CreateImplicitAnimationWithInitialVelocity() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/animation/ |
H A D | rs_animation_test.cpp | 19 #include "animation/rs_animation_timing_protocol.h"
20 #include "animation/rs_animation.h"
21 #include "animation/rs_curve_animation.h"
22 #include "animation/rs_path_animation.h"
23 #include "animation/rs_spring_animation.h"
24 #include "animation/rs_transition.h"
67 auto animation = std::static_pointer_cast<RSSpringAnimation>(animations[FIRST_ANIMATION]);
in HWTEST_F() local 68 EXPECT_TRUE(animation != nullptr);
in HWTEST_F() 69 if (animation != nullptr) {
in HWTEST_F() 70 RSAnimationTimingCurve timingCurve = animation in HWTEST_F() 108 auto animation = std::static_pointer_cast<RSCurveAnimation>(animations[FIRST_ANIMATION]); HWTEST_F() local 148 auto animation = std::static_pointer_cast<RSTransition>(animations[FIRST_ANIMATION]); HWTEST_F() local 190 auto animation = std::static_pointer_cast<RSSpringAnimation>(animations[FIRST_ANIMATION]); HWTEST_F() local 235 auto animation = std::static_pointer_cast<RSCurveAnimation>(animations[FIRST_ANIMATION]); HWTEST_F() local 279 auto animation = std::static_pointer_cast<RSTransition>(animations[FIRST_ANIMATION]); HWTEST_F() local 322 auto animation = std::static_pointer_cast<RSSpringAnimation>(animations[FIRST_ANIMATION]); HWTEST_F() local 364 auto animation = std::static_pointer_cast<RSCurveAnimation>(animations[FIRST_ANIMATION]); HWTEST_F() local 404 auto animation = std::static_pointer_cast<RSTransition>(animations[FIRST_ANIMATION]); HWTEST_F() local 445 auto animation = std::static_pointer_cast<RSSpringAnimation>(animations[FIRST_ANIMATION]); HWTEST_F() local 494 auto animation = std::static_pointer_cast<RSCurveAnimation>(animations[FIRST_ANIMATION]); HWTEST_F() local 541 auto animation = std::static_pointer_cast<RSTransition>(animations[FIRST_ANIMATION]); HWTEST_F() local 577 auto animation = std::static_pointer_cast<RSCurveAnimation>(animations[FIRST_ANIMATION]); HWTEST_F() local 638 auto animation = std::static_pointer_cast<RSAnimation>(animations[FIRST_ANIMATION]); HWTEST_F() local [all...] |
H A D | rs_animation_supplement_test.cpp | 19 #include "animation/rs_animation_callback.h" 20 #include "animation/rs_animation_group.h" 21 #include "animation/rs_animation_timing_protocol.h" 22 #include "animation/rs_curve_animation.h" 23 #include "animation/rs_keyframe_animation.h" 24 #include "animation/rs_path_animation.h" 25 #include "animation/rs_spring_animation.h" 26 #include "animation/rs_transition.h" 27 #include "animation/rs_implicit_animation_param.h" 28 #include "animation/rs_render_animatio 104 UpdateParamToRenderAnimation(const std::shared_ptr<RSRenderAnimation>& animation) UpdateParamToRenderAnimation() argument 109 StartCustomAnimation(const std::shared_ptr<RSRenderAnimation>& animation) StartCustomAnimation() argument 204 auto animation = std::make_shared<RSAnimationMock>(); HWTEST_F() local 226 auto animation = std::make_shared<RSAnimationMock>(); HWTEST_F() local 272 auto animation = std::make_shared<RSAnimationMock>(); HWTEST_F() local 408 auto animation = std::make_shared<RSPathAnimationMock>(property, path); HWTEST_F() local 489 auto animation = std::make_shared<RSAnimationMock>(); HWTEST_F() local 522 std::shared_ptr<RSAnimation> animation; HWTEST_F() local 555 auto animation = pathParam->CreateAnimation(property, startValue, endValue); HWTEST_F() local 600 auto animation = std::make_shared<RSTransitionMock>(effect, true); HWTEST_F() local 640 std::shared_ptr<RSAnimationMock> animation; HWTEST_F() local 681 std::shared_ptr<RSAnimationMock> animation = std::make_shared<RSAnimationMock>(); HWTEST_F() local 708 std::shared_ptr<RSKeyframeAnimationMock> animation = std::make_shared<RSKeyframeAnimationMock>(property); HWTEST_F() local 735 std::shared_ptr<RSKeyframeAnimationMock> animation = std::make_shared<RSKeyframeAnimationMock>(property); HWTEST_F() local 809 auto animation = std::make_shared<RSPathAnimationMock>(property, "abc", startValue, endValue); HWTEST_F() local 851 auto animation = std::make_shared<RSPathAnimationMock>(property, "abc", startValue, endValue); HWTEST_F() local 901 auto animation = std::make_shared<RSPathAnimationMock>(property, "abc", startValue, endValue); HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/test/unittest/animation/ |
H A D | rs_animation_test.cpp | 20 #include "animation/rs_animation_common.h" 21 #include "animation/rs_animation_timing_protocol.h" 47 * @tc.desc: Verify the duration parameter of animation 56 * @tc.steps: step1. init animation and test data in HWTEST_F() 60 std::unique_ptr<RSCurveAnimation<float>> animation = in HWTEST_F() local 62 animation->SetTimingCurve(RSAnimationTimingCurve::DEFAULT); in HWTEST_F() 64 * @tc.steps: step2. set animation duration and test in HWTEST_F() 67 animation->SetDuration(data); in HWTEST_F() 68 EXPECT_EQ(data, animation->GetDuration()); in HWTEST_F() 74 * @tc.desc: Verify the startdelay parameter of animation 87 std::unique_ptr<RSCurveAnimation<float>> animation = HWTEST_F() local 114 std::unique_ptr<RSCurveAnimation<float>> animation = HWTEST_F() local 141 std::unique_ptr<RSCurveAnimation<float>> animation = HWTEST_F() local 167 std::unique_ptr<RSCurveAnimation<float>> animation = HWTEST_F() local 194 std::unique_ptr<RSCurveAnimation<float>> animation = HWTEST_F() local 220 std::unique_ptr<RSCurveAnimation<float>> animation = HWTEST_F() local 249 std::unique_ptr<RSCurveAnimation<float>> animation = HWTEST_F() local 371 std::unique_ptr<RSPathAnimation<Vector2f>> animation = HWTEST_F() local 415 std::unique_ptr<RSPathAnimation<Vector2f>> animation = HWTEST_F() local 530 std::shared_ptr<RSAnimation> animation = HWTEST_F() local 559 std::shared_ptr<RSAnimation> animation = HWTEST_F() local 593 std::shared_ptr<RSAnimation> animation = HWTEST_F() local 621 std::shared_ptr<RSAnimation> animation = animationParam->CreateAnimation(); HWTEST_F() local 656 std::shared_ptr<RSAnimation> animation = HWTEST_F() local 681 std::unique_ptr<RSKeyframeAnimation<float>> animation = HWTEST_F() local 706 std::unique_ptr<RSKeyframeAnimation<float>> animation = HWTEST_F() local 733 std::unique_ptr<RSPropertyAnimation<float>> animation = HWTEST_F() local 754 std::unique_ptr<RSTransition> animation = HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | svg_animate.cpp | 16 #include "core/animation/svg_animate.h" 62 const RefPtr<KeyframeAnimation<T>>& animation, const T& value, float time, const RefPtr<Curve>& curve) in CreateKeyframe() 64 if (!animation) { in CreateKeyframe() 65 LOGE("create discrete calcMode animate failed, animation is null"); in CreateKeyframe() 74 animation->AddKeyframe(keyframe); in CreateKeyframe() 78 void SvgAnimate::CreateFirstKeyframe(const RefPtr<KeyframeAnimation<T>>& animation, const T& value) in CreateFirstKeyframe() argument 80 if (!animation) { in CreateFirstKeyframe() 81 LOGE("create discrete calcMode animate failed, animation is null"); in CreateFirstKeyframe() 85 animation->AddKeyframe(keyframe); in CreateFirstKeyframe() 116 auto animation in CreateMotionAnimate() local 61 CreateKeyframe( const RefPtr<KeyframeAnimation<T>>& animation, const T& value, float time, const RefPtr<Curve>& curve) CreateKeyframe() argument 153 RefPtr<KeyframeAnimation<T>> animation = AceType::MakeRefPtr<KeyframeAnimation<T>>(); CreateDiscreteAnimate() local 180 DiscreteAnimate( const RefPtr<KeyframeAnimation<T>>& animation, const T& originalValue, const T& startValue, const T& endValue) DiscreteAnimate() argument 194 DiscreteAnimate(const RefPtr<KeyframeAnimation<T>>& animation, const T& originalValue) DiscreteAnimate() argument 217 DiscreteWithValues(const RefPtr<KeyframeAnimation<T>>& animation, const T& originalValue) DiscreteWithValues() argument 243 DiscreteWithKeyTimes(const RefPtr<KeyframeAnimation<T>>& animation, const T& originalValue) DiscreteWithKeyTimes() argument 278 RefPtr<KeyframeAnimation<T>> animation = AceType::MakeRefPtr<KeyframeAnimation<T>>(); CreateLinearAnimate() local 318 auto animation = AceType::MakeRefPtr<CurveAnimation<T>>(startValue, endValue, GetCurve()); LinearAnimateFromTo() local 326 LinearAnimate(const RefPtr<KeyframeAnimation<T>>& animation) LinearAnimate() argument 346 LinearWithValues(const RefPtr<KeyframeAnimation<T>>& animation) LinearWithValues() argument 370 LinearWithKeyTimes(const RefPtr<KeyframeAnimation<T>>& animation) LinearWithKeyTimes() argument 403 RefPtr<KeyframeAnimation<T>> animation = AceType::MakeRefPtr<KeyframeAnimation<T>>(); CreatePacedAnimate() local 445 RefPtr<KeyframeAnimation<T>> animation = AceType::MakeRefPtr<KeyframeAnimation<T>>(); CreateSplineAnimate() local 482 auto animation = AceType::MakeRefPtr<CurveAnimation<T>>(startValue, endValue, GetCurve(keySplines_[0])); SplineAnimate() local 490 SplineAnimate(const RefPtr<KeyframeAnimation<T>>& animation) SplineAnimate() argument 514 SplineWithKeySplines(const RefPtr<KeyframeAnimation<T>>& animation) SplineWithKeySplines() argument 540 SplineWithKeyTimes(const RefPtr<KeyframeAnimation<T>>& animation) SplineWithKeyTimes() argument [all...] |
H A D | animatable_properties.cpp | 16 #include "core/animation/animatable_properties.h" 18 #include "core/animation/animatable_data.h" 29 for (const auto& [type, animation] : propAnimations) { in UpdatePropAnimation() 30 auto weakAnimation = AceType::WeakClaim(AceType::RawPtr(animation)); in UpdatePropAnimation() 33 animation->AddListener( in UpdatePropAnimation() 35 auto animation = weakAnimation.Upgrade(); in UpdatePropAnimation() 39 if (animation && animation->GetInit() == nullptr) { in UpdatePropAnimation() 42 animation->SetInit(init); in UpdatePropAnimation() 50 animation in UpdatePropAnimation() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/cmd/ |
H A D | rs_node_showing_cmd_test.cpp | 60 RSNodeGetShowingPropertyAndCancelAnimation animation(targetId, property); in HWTEST_F() 61 EXPECT_TRUE(animation.Unmarshalling(parcel) == nullptr); in HWTEST_F() 75 RSNodeGetShowingPropertyAndCancelAnimation animation(targetId, property); in HWTEST_F() 76 EXPECT_TRUE(animation.Marshalling(parcel) == false); in HWTEST_F() 90 RSNodeGetShowingPropertyAndCancelAnimation animation(targetId, property); in HWTEST_F() 91 EXPECT_TRUE(animation.ReadFromParcel(parcel) == false); in HWTEST_F() 105 RSNodeGetShowingPropertyAndCancelAnimation animation(targetId, property); in HWTEST_F() 106 EXPECT_TRUE(animation.CheckHeader(parcel) == false); in HWTEST_F() 119 RSNodeGetShowingPropertiesAndCancelAnimation animation(timeoutNS); in HWTEST_F() 120 EXPECT_TRUE(animation in HWTEST_F() [all...] |
H A D | rs_animat_cmd_test.cpp | 54 std::shared_ptr<RSRenderParticleAnimation> animation = nullptr; in HWTEST_F() local 55 AnimatCommandHelper::CreateParticleAnimation(context, targetId, animation); in HWTEST_F() 97 std::shared_ptr<RSRenderAnimation> animation = nullptr; in HWTEST_F() local 98 AnimatCommandHelper::CreateAnimation(context, targetId, animation); in HWTEST_F() 101 animation = std::make_shared<RSRenderAnimation>(); in HWTEST_F() 102 AnimatCommandHelper::CreateAnimation(context, targetId, animation); in HWTEST_F() 112 AnimatCommandHelper::CreateAnimation(context, targetId, animation); in HWTEST_F() 118 AnimatCommandHelper::CreateAnimation(context, targetId, animation); in HWTEST_F() 173 std::shared_ptr<RSRenderParticleAnimation> animation = nullptr; in HWTEST_F() local 174 AnimatCommandHelper::CreateParticleAnimation(context, targetId, animation); in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/command/ |
H A D | rs_node_showing_command_test.cpp | 60 RSNodeGetShowingPropertyAndCancelAnimation animation(targetId, property); in HWTEST_F() 61 EXPECT_TRUE(animation.Marshalling(parcel) == false); in HWTEST_F() 75 RSNodeGetShowingPropertyAndCancelAnimation animation(targetId, property); in HWTEST_F() 76 EXPECT_TRUE(animation.Unmarshalling(parcel) == nullptr); in HWTEST_F() 90 RSNodeGetShowingPropertyAndCancelAnimation animation(targetId, property); in HWTEST_F() 91 EXPECT_TRUE(animation.CheckHeader(parcel) == false); in HWTEST_F() 105 RSNodeGetShowingPropertyAndCancelAnimation animation(targetId, property); in HWTEST_F() 106 EXPECT_TRUE(animation.ReadFromParcel(parcel) == false); in HWTEST_F() 121 RSNodeGetShowingPropertyAndCancelAnimation animation(targetId, property); in HWTEST_F() 122 animation in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | node_transition.cpp | 99 if (effectOption->animation) { in ConvertToEffectOption() 101 toEffectOption->animation.duration = effectOption->animation->duration; in ConvertToEffectOption() 102 toEffectOption->animation.tempo = effectOption->animation->tempo; in ConvertToEffectOption() 103 toEffectOption->animation.curve = effectOption->animation->curve; in ConvertToEffectOption() 104 if (effectOption->animation->iCurve) { in ConvertToEffectOption() 105 toEffectOption->animation.iCurve = effectOption->animation in ConvertToEffectOption() [all...] |
/foundation/arkui/ace_engine/test/unittest/interfaces/ |
H A D | node_transition_test.cpp | 85 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); in HWTEST_F() local 86 ASSERT_NE(animation, nullptr); in HWTEST_F() 87 OH_ArkUI_TransitionEffect_SetAnimation(option, animation); in HWTEST_F() 91 OH_ArkUI_AnimateOption_Dispose(animation); in HWTEST_F() 92 animation = nullptr; in HWTEST_F() 110 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); in HWTEST_F() local 111 ASSERT_NE(animation, nullptr); in HWTEST_F() 112 OH_ArkUI_TransitionEffect_SetAnimation(option, animation); in HWTEST_F() 116 OH_ArkUI_AnimateOption_Dispose(animation); in HWTEST_F() 117 animation in HWTEST_F() 133 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 162 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 235 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 261 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 285 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 315 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 388 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 414 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 438 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 468 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 541 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 567 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 591 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 621 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 694 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 720 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 744 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 774 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 864 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 897 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 928 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local 965 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local [all...] |
H A D | node_animate_test.cpp | 60 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); in HWTEST_F() local 61 ASSERT_NE(animation, nullptr); in HWTEST_F() 68 OH_ArkUI_AnimateOption_SetDuration(animation, negativeInt); in HWTEST_F() 69 OH_ArkUI_AnimateOption_SetDuration(animation, normalInt); in HWTEST_F() 70 OH_ArkUI_AnimateOption_SetTempo(animation, negativeFloat); in HWTEST_F() 71 OH_ArkUI_AnimateOption_SetTempo(animation, normalFloat); in HWTEST_F() 72 OH_ArkUI_AnimateOption_SetCurve(animation, static_cast<ArkUI_AnimationCurve>(negativeInt)); in HWTEST_F() 73 OH_ArkUI_AnimateOption_SetCurve(animation, static_cast<ArkUI_AnimationCurve>(largeInt)); in HWTEST_F() 74 OH_ArkUI_AnimateOption_SetCurve(animation, ArkUI_AnimationCurve::ARKUI_CURVE_LINEAR); in HWTEST_F() 75 OH_ArkUI_AnimateOption_SetDelay(animation, normalIn in HWTEST_F() 108 ArkUI_AnimateOption* animation = OH_ArkUI_AnimateOption_Create(); HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/animation/ |
H A D | rs_animation_group_test.cpp | 17 #include "animation/rs_animation_group.h" 49 auto animation = std::make_shared<RSAnimation>(); in HWTEST_F() local 54 rsAnimationGroup.AddAnimation(animation); in HWTEST_F() 66 auto animation = nullptr; in HWTEST_F() local 68 rsAnimationGroup.AddAnimation(animation); in HWTEST_F() 82 auto animation = std::make_shared<RSAnimation>(); in HWTEST_F() local 85 animation->RSAnimation::IsStarted(); in HWTEST_F() 86 rsAnimationGroup.AddAnimation(animation); in HWTEST_F() 98 auto animation = nullptr; in HWTEST_F() local 103 rsAnimationGroup.RemoveAnimation(animation); in HWTEST_F() 115 auto animation = nullptr; HWTEST_F() local 131 auto animation = std::make_shared<RSAnimation>(); HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_render_interactive_implict_animator.cpp | 16 #include "animation/rs_render_interactive_implict_animator.h" 37 auto animation = node->GetAnimationManager().GetAnimation(animationId); in AddAnimations() local 38 if (animation == nullptr) { in AddAnimations() 56 auto animation = node->GetAnimationManager().GetAnimation(animationId); in PauseAnimator() local 57 if (animation == nullptr) { in PauseAnimator() 60 animation->Pause(); in PauseAnimator() 75 auto animation = node->GetAnimationManager().GetAnimation(animationId); in ContinueAnimator() local 76 if (animation == nullptr) { in ContinueAnimator() 79 animation->Resume(); in ContinueAnimator() 80 // register node on animation star in ContinueAnimator() 96 auto animation = node->GetAnimationManager().GetAnimation(animationId); FinishAnimator() local 115 auto animation = node->GetAnimationManager().GetAnimation(animationId); ReverseAnimator() local 135 auto animation = node->GetAnimationManager().GetAnimation(animationId); SetFractionAnimator() local [all...] |
H A D | rs_animation_manager.cpp | 16 #include "animation/rs_animation_manager.h" 21 #include "animation/rs_animation_trace_utils.h" 22 #include "animation/rs_render_animation.h" 42 for (auto[id, animation]: animations_) { in DumpAnimations() 43 if (!animation) { in DumpAnimations() 46 animation->DumpAnimation(out); in DumpAnimations() 53 void RSAnimationManager::AddAnimation(const std::shared_ptr<RSRenderAnimation>& animation) in AddAnimation() argument 55 if (animation == nullptr) { in AddAnimation() 56 ROSEN_LOGE("RSAnimationManager::AddAnimation, The animation is nullptr"); in AddAnimation() 59 AnimationId key = animation in AddAnimation() 225 OnAnimationFinished(const std::shared_ptr<RSRenderAnimation>& animation) OnAnimationFinished() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/modifier/ |
H A D | rs_modifier_manager.cpp | 19 #include "animation/rs_animation_trace_utils.h" 20 #include "animation/rs_render_animation.h" 50 void RSModifierManager::AddAnimation(const std::shared_ptr<RSRenderAnimation>& animation) in AddAnimation() argument 52 AnimationId key = animation->GetAnimationId(); in AddAnimation() 54 ROSEN_LOGE("RSModifierManager::AddAnimation, The animation already exists when is added"); in AddAnimation() 57 animations_.emplace(key, animation); in AddAnimation() 60 std::shared_ptr<RSRenderDisplaySync> displaySync = std::make_shared<RSRenderDisplaySync>(animation); in AddAnimation() 61 displaySync->SetExpectedFrameRateRange(animation->GetFrameRateRange()); in AddAnimation() 79 auto animation = iter.second.lock(); in HasUIRunningAnimation() local 80 if (animation in HasUIRunningAnimation() 131 auto animation = iter.second.lock(); FlushStartAnimation() local 165 OnAnimationFinished(const std::shared_ptr<RSRenderAnimation>& animation) OnAnimationFinished() argument [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/ |
H A D | animation_controller.cpp | 50 if (auto animation = weak.lock()) { in UpdateAnimations() 52 // to the animation controller in UpdateAnimations() 53 if (GetValue(animation->Running())) { in UpdateAnimations() 70 void AnimationController::UpdateRunningHandler(const IAnimation::Ptr& animation, bool addHandler) in UpdateRunningHandler() argument 72 if (!animation) { in UpdateRunningHandler() 75 if (auto running = animation->Running()) { in UpdateRunningHandler() 84 bool AnimationController::AddAnimation(const META_NS::IAnimation::Ptr& animation) in AddAnimation() argument 86 if (!animation) { in AddAnimation() 92 if (weak.lock() == animation) { in AddAnimation() 97 animations_.emplace_back(animation); in AddAnimation() 106 RemoveAnimation(const META_NS::IAnimation::Ptr& animation) RemoveAnimation() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/command/ |
H A D | rs_animation_command.cpp | 20 #include "animation/rs_render_interactive_implict_animator_map.h" 21 #include "animation/rs_render_interactive_implict_animator.h" 22 #include "animation/rs_render_particle.h" 50 RSContext& context, NodeId targetId, const std::shared_ptr<RSRenderAnimation>& animation) in CreateAnimation() 52 if (animation == nullptr) { in CreateAnimation() 53 RS_LOGE("AnimationCommandHelper::CreateAnimation, animation is nullptr"); in CreateAnimation() 59 " animation is %{public}" PRIu64, targetId, animation->GetAnimationId()); in CreateAnimation() 60 context.AddSyncFinishAnimationList(targetId, animation->GetAnimationId()); in CreateAnimation() 63 RsCommonHook::Instance().OnStartNewAnimation(animation in CreateAnimation() 49 CreateAnimation( RSContext& context, NodeId targetId, const std::shared_ptr<RSRenderAnimation>& animation) CreateAnimation() argument 76 CreateParticleAnimation( RSContext& context, NodeId targetId, const std::shared_ptr<RSRenderParticleAnimation>& animation) CreateParticleAnimation() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | tween_option.h | 25 #include "core/animation/animation.h" 26 #include "core/animation/animation_pub.h" 27 #include "core/animation/curve.h" 28 #include "core/animation/curves.h" 29 #include "core/animation/keyframe_animation.h" 30 #include "core/animation/property_animatable.h" 31 #include "core/animation/property_animation.h" 249 void SetPropertyAnimationFloat(PropertyAnimatableType property, const RefPtr<Animation<float>>& animation) in SetPropertyAnimationFloat() argument 251 if (!animation) { in SetPropertyAnimationFloat() [all...] |