/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | animate_impl.cpp | 69 if (!impl || !context || !option || option->keyframes.size() == 0) { in KeyframeAnimateTo() 78 ArkUIKeyframeState keyframes[option->keyframes.size()]; in KeyframeAnimateTo() local 79 for (size_t i = 0; i < option->keyframes.size(); i++) { in KeyframeAnimateTo() 80 keyframes[i].duration = option->keyframes[i].duration; in KeyframeAnimateTo() 81 keyframes[i].event = option->keyframes[i].event; in KeyframeAnimateTo() 82 keyframes[i].userData = option->keyframes[ in KeyframeAnimateTo() [all...] |
H A D | node_animate.cpp | 177 animateOption->keyframes.resize(size); in OH_ArkUI_KeyframeAnimateOption_Create() 185 animateOption->keyframes[i].duration = 1000; in OH_ArkUI_KeyframeAnimateOption_Create() 186 animateOption->keyframes[i].curve = nullptr; in OH_ArkUI_KeyframeAnimateOption_Create() 187 animateOption->keyframes[i].event = nullptr; in OH_ArkUI_KeyframeAnimateOption_Create() 188 animateOption->keyframes[i].userData = nullptr; in OH_ArkUI_KeyframeAnimateOption_Create() 228 if (option == nullptr || index < 0 || index >= static_cast<int32_t>(option->keyframes.size())) { in OH_ArkUI_KeyframeAnimateOption_SetDuration() 234 option->keyframes[index].duration = value; in OH_ArkUI_KeyframeAnimateOption_SetDuration() 241 if (option == nullptr || index < 0 || index >= static_cast<int32_t>(option->keyframes.size())) { in OH_ArkUI_KeyframeAnimateOption_SetCurve() 245 option->keyframes[index].curve = nullptr; in OH_ArkUI_KeyframeAnimateOption_SetCurve() 252 option->keyframes[inde in OH_ArkUI_KeyframeAnimateOption_SetCurve() [all...] |
H A D | animate_impl.h | 70 std::vector<ArkUI_KeyframeState> keyframes; member 88 std::vector<ArkUI_Keyframe> keyframes; member
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/animation/ |
H A D | rs_keyframe_animation_test.cpp | 166 std::vector<std::tuple<float, std::shared_ptr<RSPropertyBase>, RSAnimationTimingCurve>> keyframes;
in HWTEST_F() local 167 keyframes.push_back(std::make_tuple(FRACTION_MIN, startProperty, RSAnimationTimingCurve::EASE_IN));
in HWTEST_F() 168 keyframes.push_back(std::make_tuple(FRACTION_MAX / 2, secondProperty, RSAnimationTimingCurve::EASE_IN));
in HWTEST_F() 169 keyframes.push_back(std::make_tuple(FRACTION_MAX, endProperty, RSAnimationTimingCurve::EASE_IN));
in HWTEST_F() 170 keyframeAnimation->AddKeyFrames(keyframes);
in HWTEST_F() 206 std::vector<std::tuple<float, std::shared_ptr<RSPropertyBase>, RSAnimationTimingCurve>> keyframes;
in HWTEST_F() local 207 keyframes.push_back(std::make_tuple(FRACTION_MIN, startProperty, RSAnimationTimingCurve::EASE_IN));
in HWTEST_F() 208 keyframes.push_back(std::make_tuple(FRACTION_MAX / 3, secondProperty, RSAnimationTimingCurve::EASE_IN));
in HWTEST_F() 209 keyframes.push_back(std::make_tuple(FRACTION_MAX * 2 / 3, thirdProperty, RSAnimationTimingCurve::EASE_IN));
in HWTEST_F() 210 keyframes in HWTEST_F() 247 std::vector<std::tuple<float, std::shared_ptr<RSPropertyBase>, RSAnimationTimingCurve>> keyframes; HWTEST_F() local 335 std::vector<std::tuple<float, std::shared_ptr<RSPropertyBase>, RSAnimationTimingCurve>> keyframes; HWTEST_F() local 374 std::vector<std::tuple<float, std::shared_ptr<RSPropertyBase>, RSAnimationTimingCurve>> keyframes; HWTEST_F() local [all...] |
H A D | rs_animation_supplement_test.cpp | 710 std::vector<std::tuple<float, std::shared_ptr<RSPropertyBase>, RSAnimationTimingCurve>> keyframes; in HWTEST_F() local 711 keyframes.push_back({ 0.5f, value1, RSAnimationTimingCurve::LINEAR }); in HWTEST_F() 714 animation->AddKeyFrames(keyframes); in HWTEST_F() 718 animation->AddKeyFrames(keyframes); in HWTEST_F()
|
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/ |
H A D | track_animation_state.cpp | 125 bool TrackAnimationState::SetKeyframes(const IArrayAny::Ptr& keyframes) in SetKeyframes() argument 128 if (keyframes) { in SetKeyframes() 129 if (keyframes != keyframeArray_) { in SetKeyframes() 130 keyframeArray_ = keyframes; in SetKeyframes()
|
H A D | track_animation_state.h | 83 /** Updates the keyframe array containing the keyframes of the animation */ 84 bool SetKeyframes(const IArrayAny::Ptr& keyframes);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/ |
H A D | rs_render_keyframe_animation_test.cpp | 118 std::vector<std::tuple<float, std::shared_ptr<RSRenderPropertyBase>, std::shared_ptr<RSInterpolator>>> keyframes; in HWTEST_F() local 120 keyframes.push_back(std::make_tuple(0.1f, property1, interpolator)); in HWTEST_F() 121 keyframes.push_back(std::make_tuple(1.0f, property2, interpolator)); in HWTEST_F() 131 renderKeyframeAnimation->AddKeyframes(keyframes); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/animat/ |
H A D | rs_keyframe_animat_test.cpp | 104 auto keyframes = std::vector<std::tuple<float, std::shared_ptr<RSRenderPropertyBase>, in HWTEST_F() local 107 rsRenderKeyframeAnimat.AddKeyframes(keyframes); in HWTEST_F() 111 rsRenderKeyframeAnimat.AddKeyframes(keyframes); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/animation/ |
H A D | rs_render_keyframe_animation_test.cpp | 73 auto keyframes = std::vector<std::tuple<float, std::shared_ptr<RSRenderPropertyBase>, in HWTEST_F() local 76 rsRenderKeyframeAnimation.AddKeyframes(keyframes); in HWTEST_F() 80 rsRenderKeyframeAnimation.AddKeyframes(keyframes); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/ |
H A D | rs_value_estimator.h | 70 std::shared_ptr<RSInterpolator>>>& keyframes, in InitKeyframeAnimationValue() 75 std::shared_ptr<RSInterpolator>>>& keyframes, in InitDurationKeyframeAnimationValue() 171 std::shared_ptr<RSInterpolator>>>& keyframes, 180 for (const auto& keyframe : keyframes) { 190 std::shared_ptr<RSInterpolator>>>& keyframes, 199 for (const auto& keyframe : keyframes) { 68 InitKeyframeAnimationValue(const std::shared_ptr<RSRenderPropertyBase>& property, std::vector<std::tuple<float, std::shared_ptr<RSRenderPropertyBase>, std::shared_ptr<RSInterpolator>>>& keyframes, const std::shared_ptr<RSRenderPropertyBase>& lastValue) InitKeyframeAnimationValue() argument 73 InitDurationKeyframeAnimationValue(const std::shared_ptr<RSRenderPropertyBase>& property, std::vector<std::tuple<float, float, std::shared_ptr<RSRenderPropertyBase>, std::shared_ptr<RSInterpolator>>>& keyframes, const std::shared_ptr<RSRenderPropertyBase>& lastValue) InitDurationKeyframeAnimationValue() argument
|
H A D | rs_render_keyframe_animation.h | 38 std::shared_ptr<RSInterpolator>>>& keyframes);
|
/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | keyframe_animation.h | 38 void AddKeyframe(const std::list<RefPtr<Keyframe<T>>>& keyframes) in AddKeyframe() argument 40 for (const auto& keyframe : keyframes) { in AddKeyframe()
|
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/animation/ |
H A D | animation.h | 134 auto& Keyframes(BASE_NS::array_view<Type> keyframes) in Keyframes() argument 137 kf->SetValue(BASE_NS::move(keyframes)); in Keyframes()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/ |
H A D | rs_keyframe_animation.cpp | 48 const std::vector<std::tuple<float, std::shared_ptr<RSPropertyBase>, RSAnimationTimingCurve>>& keyframes) in AddKeyFrames() 54 keyframes_ = keyframes; in AddKeyFrames() 136 ROSEN_LOGE("Failed to start keyframe animation, keyframes is null!"); in OnStart() 47 AddKeyFrames( const std::vector<std::tuple<float, std::shared_ptr<RSPropertyBase>, RSAnimationTimingCurve>>& keyframes) AddKeyFrames() argument
|
H A D | rs_keyframe_animation.h | 43 std::vector<std::tuple<float, std::shared_ptr<RSPropertyBase>, RSAnimationTimingCurve>>& keyframes);
|
H A D | rs_symbol_animation.cpp | 742 std::vector<std::tuple<float, std::shared_ptr<RSPropertyBase>, RSAnimationTimingCurve>> keyframes; in KeyframeAlphaSymbolAnimation() local 744 keyframes.push_back(std::make_tuple(timePercents[i], alphaPropertyStages_[i], timingCurve)); in KeyframeAlphaSymbolAnimation() 746 keyframeAnimation->AddKeyFrames(keyframes); in KeyframeAlphaSymbolAnimation()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/test/unittest/animation/ |
H A D | rs_animation_test.cpp | 708 std::vector<std::tuple<float, float, RSAnimationTimingCurve>> keyframes; in HWTEST_F() local 709 keyframes.push_back(std::make_tuple(0.1f, 100, RSAnimationTimingCurve::LINEAR)); in HWTEST_F() 710 keyframes.push_back(std::make_tuple(0.5f, 500, RSAnimationTimingCurve::LINEAR)); in HWTEST_F() 711 keyframes.push_back(std::make_tuple(1.0f, 600, RSAnimationTimingCurve::LINEAR)); in HWTEST_F() 712 animation->AddKeyFrames(keyframes); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_render_keyframe_animation.cpp | 62 std::shared_ptr<RSInterpolator>>>& keyframes) in AddKeyframes() 69 keyframes_ = keyframes; in AddKeyframes() 221 ROSEN_LOGE("Failed to animate key frame, keyframes is empty!"); in OnAnimate() 61 AddKeyframes(const std::vector<std::tuple<float, std::shared_ptr<RSRenderPropertyBase>, std::shared_ptr<RSInterpolator>>>& keyframes) AddKeyframes() argument
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/fuzztest/rsanimationbase_fuzzer/ |
H A D | rsanimationbase_fuzzer.cpp | 396 keyframes; in RSRenderKeyframeAnimationFuzzerTest() local 404 keyframes.push_back({ fraction, startValue, interpolator }); in RSRenderKeyframeAnimationFuzzerTest() 405 animation->AddKeyframes(keyframes); in RSRenderKeyframeAnimationFuzzerTest() 486 keyframes; in RSKeyframeValueEstimatorFuzzerTest() local 493 keyframes.push_back({ fraction, property, interpolator }); in RSKeyframeValueEstimatorFuzzerTest() 495 keyFrameValueEstimator->InitKeyframeAnimationValue(property, keyframes, lastValue); in RSKeyframeValueEstimatorFuzzerTest()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | rosen_transition_effect_impl.h | 57 void SetKeyframes(const std::vector<std::pair<float, PropertyType>>& keyframes) in SetKeyframes() argument 59 keyframes_ = keyframes; in SetKeyframes() 87 // PLANNING: maybe we need to reverse the keyframes in disappearing animation.
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_animate.cpp | 221 duration += animateOption->keyframes[i].duration; in KeyframeAnimateTo() 230 auto keyframe = animateOption->keyframes[i]; in KeyframeAnimateTo() 257 auto keyframe = option->keyframes[i]; in ParseAnimatorAnimation()
|
/foundation/arkui/ace_engine/test/unittest/interfaces/ |
H A D | animate_impl_test.cpp | 392 option->keyframes.push_back(keyframe); in HWTEST_F() 598 option->keyframes.push_back(keyframe); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_view_context.cpp | 735 auto keyframes = ParseKeyframes(info.GetExecutionContext(), keyframeArr); in JSKeyframeAnimateTo() local 737 for (auto& keyframe : keyframes) { in JSKeyframeAnimateTo() 748 for (auto& keyframe : keyframes) { in JSKeyframeAnimateTo()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | jsUIContext.js | 491 keyframeAnimateTo(param, keyframes) { 493 Context.keyframeAnimateTo(param, keyframes);
|