/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | page_transition_option.cpp | 30 auto opacityKeyframe1 = AceType::MakeRefPtr<Keyframe<float>>(0.0f, 0.0f); // start with invisible in CreateSharedInOption() 31 auto opacityKeyframe2 = AceType::MakeRefPtr<Keyframe<float>>(0.428f, 0.0f); // invisible at 42.8% of total duration in CreateSharedInOption() 33 auto opacityKeyframe3 = AceType::MakeRefPtr<Keyframe<float>>(1.0f, 1.0f); // finally visible in CreateSharedInOption() 48 AceType::MakeRefPtr<Keyframe<DimensionOffset>>(0.0f, Offset(startX, 0)); // start with startX in CreateSharedInOption() 50 AceType::MakeRefPtr<Keyframe<DimensionOffset>>(0.428f, Offset(startX, 0)); // start at 42.8% of total duration in CreateSharedInOption() 52 auto translateXKeyframe3 = AceType::MakeRefPtr<Keyframe<DimensionOffset>>(1.0f, Offset(endX, 0)); // finally at endX in CreateSharedInOption() 64 auto opacityKeyframe1 = AceType::MakeRefPtr<Keyframe<float>>(0.0f, 1.0f); // start with invisible in CreateSharedOutOption() 65 auto opacityKeyframe2 = AceType::MakeRefPtr<Keyframe<float>>(0.714f, 0.0f); // invisible at 71.4% of total duration in CreateSharedOutOption() 67 auto opacityKeyframe3 = AceType::MakeRefPtr<Keyframe<float>>(1.0f, 0.0f); // finally visible in CreateSharedOutOption() 80 auto opacityKeyframe1 = AceType::MakeRefPtr<Keyframe<floa in CreateSharedStaticOption() [all...] |
H A D | tween_option.h | 132 auto begin = AceType::MakeRefPtr<Keyframe<DimensionOffset>>(0.0f, DimensionOffset(originX, originY)); in SetTransformOrigin() 133 auto end = AceType::MakeRefPtr<Keyframe<DimensionOffset>>(1.0f, DimensionOffset(originX, originY)); in SetTransformOrigin()
|
/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() 44 keyframes_.sort([](const RefPtr<Keyframe<T>>& a, const RefPtr<Keyframe<T>>& b) { in AddKeyframe() 49 void AddKeyframe(const RefPtr<Keyframe<T>>& keyframe) in AddKeyframe() 64 void ReplaceKeyframe(const RefPtr<Keyframe<T>>& keyframeReplace) in ReplaceKeyframe() 86 const std::list<RefPtr<Keyframe<T>>>& GetKeyframes() const in GetKeyframes() 193 std::list<RefPtr<Keyframe<T>>> keyframes_;
|
H A D | keyframe.h | 25 class Keyframe : public AceType { class 28 Keyframe(float keyTime, const T& keyValue) : keyTime_(keyTime), keyValue_(keyValue) {} in Keyframe() function in OHOS::Ace::Keyframe 30 ~Keyframe() override = default;
|
H A D | card_transition_controller.cpp | 193 auto opacityKeyframe1 = AceType::MakeRefPtr<Keyframe<uint8_t>>(0.0f, 255); in CreateCardOpacityAnimation() 194 auto opacityKeyframe2 = AceType::MakeRefPtr<Keyframe<uint8_t>>(OPACITY_CHANGE_END, 0); in CreateCardOpacityAnimation() 196 auto opacityKeyframe3 = AceType::MakeRefPtr<Keyframe<uint8_t>>(1.0f, 0); in CreateCardOpacityAnimation() 201 auto opacityKeyframe1 = AceType::MakeRefPtr<Keyframe<uint8_t>>(0.0f, 0); in CreateCardOpacityAnimation() 202 auto opacityKeyframe2 = AceType::MakeRefPtr<Keyframe<uint8_t>>(OPACITY_CHANGE_START, 0); in CreateCardOpacityAnimation() 203 auto opacityKeyframe3 = AceType::MakeRefPtr<Keyframe<uint8_t>>(1.0f, 255); in CreateCardOpacityAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components/list/ |
H A D | watch_interactive_effect.cpp | 48 auto scaleFrameStart = AceType::MakeRefPtr<Keyframe<double>>(ANIMATION_ZERO_TIME, scaleBegin_); in BuildClickScaleAnimation() 49 auto scaleFrameMid = AceType::MakeRefPtr<Keyframe<double>>(ANIMATION_HALF_TIME, scaleEnd_); in BuildClickScaleAnimation() 50 auto scaleFrameEnd = AceType::MakeRefPtr<Keyframe<double>>(ANIMATION_END_TIME, scaleBegin_); in BuildClickScaleAnimation()
|
H A D | tv_interactive_effect.cpp | 27 auto scaleFrameStart = AceType::MakeRefPtr<Keyframe<double>>(ANIMATION_ZERO_TIME, scaleBegin_); in BuildStateAnimation() 28 auto scaleFrameEnd = AceType::MakeRefPtr<Keyframe<double>>(ANIMATION_END_TIME, scaleEnd_); in BuildStateAnimation()
|
H A D | interactive_effect.cpp | 152 auto alphaFrameStart = AceType::MakeRefPtr<Keyframe<double>>(ANIMATION_ZERO_TIME, beginValue); in CreateDoubleAnimation() 153 auto alphaFrameEnd = AceType::MakeRefPtr<Keyframe<double>>(ANIMATION_END_TIME, endValue); in CreateDoubleAnimation() 222 auto alphaFrameStart = AceType::MakeRefPtr<Keyframe<double>>(ANIMATION_ZERO_TIME, alphaBegin_); in BuildClickAlphaAnimation() 223 auto alphaFrameMid = AceType::MakeRefPtr<Keyframe<double>>(ANIMATION_HALF_TIME, alphaEnd_); in BuildClickAlphaAnimation() 224 auto alphaFrameEnd = AceType::MakeRefPtr<Keyframe<double>>(ANIMATION_END_TIME, alphaBegin_); in BuildClickAlphaAnimation()
|
H A D | render_list_item_group.cpp | 388 auto positionKeyframe1 = MakeRefPtr<Keyframe<double>>(0.0f, startPosition); in createPositionAnimation() 389 auto positionKeyframe2 = MakeRefPtr<Keyframe<double>>(secondKeyTime, secondKeyValue); in createPositionAnimation() 391 auto positionKeyframe3 = MakeRefPtr<Keyframe<double>>(1.0f, endPosition); in createPositionAnimation() 425 auto opacityKeyframe1 = MakeRefPtr<Keyframe<int32_t>>(0.0f, startOpacity); in CreateOpacityAnimation() 426 auto opacityKeyframe2 = MakeRefPtr<Keyframe<int32_t>>(secondKeyTime, secondKeyValue); in CreateOpacityAnimation() 428 auto opacityKeyframe3 = MakeRefPtr<Keyframe<int32_t>>(1.0f, endOpacity); in CreateOpacityAnimation() 591 auto rotateKeyframe1 = MakeRefPtr<Keyframe<double>>(0.0f, 0.0f); in CreateRotateAnimation() 592 auto rotateKeyframe2 = MakeRefPtr<Keyframe<double>>(secondKeyTime, ROTATE_ANGLE); in CreateRotateAnimation() 594 auto rotateKeyframe3 = MakeRefPtr<Keyframe<double>>(1.0f, ROTATE_ANGLE); in CreateRotateAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components/checkable/ |
H A D | render_radio.cpp | 203 auto shrinkFrameStart = AceType::MakeRefPtr<Keyframe<double>>(0.0, 1.0); in UpdateAnimation() 204 auto shrinkFrameMid = AceType::MakeRefPtr<Keyframe<double>>(DEFAULT_MID_TIME_SLOT, DEFAULT_SHRINK_TIME_SLOT); in UpdateAnimation() 206 auto shrinkFrameEnd = AceType::MakeRefPtr<Keyframe<double>>(DEFAULT_END_TIME_SLOT, 1.0); in UpdateAnimation() 219 auto selectFrameStart = AceType::MakeRefPtr<Keyframe<double>>(0.0, isOn ? 1.0 : radioInnerSizeRatio_); in UpdateAnimation() 220 auto selectFrameMid = AceType::MakeRefPtr<Keyframe<double>>(DEFAULT_MID_TIME_SLOT, 0.0); in UpdateAnimation() 223 AceType::MakeRefPtr<Keyframe<double>>(DEFAULT_END_TIME_SLOT, isOn ? radioInnerSizeRatio_ : 1.0); in UpdateAnimation()
|
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | transform_convertor.cpp | 71 auto noneKeyframes = std::list<RefPtr<Keyframe<TransformOperation>>>(); in AddAnimationToTweenOption() 75 noneKeyframes.push_back(AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation)); in AddAnimationToTweenOption() 102 void TransformConvertor::AddKeyframe(AnimationType type, const RefPtr<Keyframe<TransformOperation>>& keyframe) in AddKeyframe() 117 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe() 126 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe() 135 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe() 144 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe() 153 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe() 162 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe()
|
H A D | transform_convertor.h | 48 void AddKeyframe(AnimationType type, const RefPtr<Keyframe<TransformOperation>>& keyframe);
|
/foundation/arkui/ace_engine/frameworks/core/components/dialog/ |
H A D | dialog_component.cpp | 408 AceType::MakeRefPtr<Keyframe<float>>(dialogTheme_->GetFrameStart(), dialogTheme_->GetScaleStart()); in BuildAnimation() 409 auto scaleFrameEnd = AceType::MakeRefPtr<Keyframe<float>>(dialogTheme_->GetFrameEnd(), dialogTheme_->GetScaleEnd()); in BuildAnimation() 416 AceType::MakeRefPtr<Keyframe<float>>(dialogTheme_->GetFrameStart(), dialogTheme_->GetOpacityStart()); in BuildAnimation() 418 AceType::MakeRefPtr<Keyframe<float>>(dialogTheme_->GetFrameEnd(), dialogTheme_->GetOpacityEnd()); in BuildAnimation() 432 AceType::MakeRefPtr<Keyframe<float>>(dialogTheme_->GetFrameStart(), dialogTheme_->GetScaleEnd()); in BuildAnimation() 434 AceType::MakeRefPtr<Keyframe<float>>(dialogTheme_->GetFrameEnd(), dialogTheme_->GetScaleStart()); in BuildAnimation() 441 AceType::MakeRefPtr<Keyframe<float>>(dialogTheme_->GetFrameStart(), dialogTheme_->GetOpacityEnd()); in BuildAnimation() 443 AceType::MakeRefPtr<Keyframe<float>>(dialogTheme_->GetFrameEnd(), dialogTheme_->GetOpacityStart()); in BuildAnimation() 467 AceType::MakeRefPtr<Keyframe<float>>(dialogTheme_->GetFrameStart(), dialogTheme_->GetScaleStart()); in BuildAnimationForPhone() 468 auto scaleFrameEnd = AceType::MakeRefPtr<Keyframe<floa in BuildAnimationForPhone() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/scroll_bar/ |
H A D | render_scroll_bar.cpp | 204 auto hiddenStartKeyframe = AceType::MakeRefPtr<Keyframe<int32_t>>(KEYTIME_START, UINT8_MAX); in InitAnimator() 205 auto hiddenMiddleKeyframe = AceType::MakeRefPtr<Keyframe<int32_t>>(KEYTIME_MIDDLE, UINT8_MAX); in InitAnimator() 206 auto hiddenEndKeyframe = AceType::MakeRefPtr<Keyframe<int32_t>>(KEYTIME_END, 0); in InitAnimator()
|
/foundation/arkui/ace_engine/frameworks/core/components/toast/ |
H A D | toast_component.cpp | 56 auto opacityKeyframeStart = AceType::MakeRefPtr<Keyframe<float>>(START_FRAME_TIME, START_FRAME_OPACITY); in InitToastAnimation() 57 auto opacityKeyframeMid = AceType::MakeRefPtr<Keyframe<float>>(midFrameTime, MID_FRAME_OPACITY); in InitToastAnimation() 59 auto opacityKeyframeStop = AceType::MakeRefPtr<Keyframe<float>>(stopFrameTime, MID_FRAME_OPACITY); in InitToastAnimation() 61 auto opacityKeyframeEnd = AceType::MakeRefPtr<Keyframe<float>>(END_FRAME_TIME, END_FRAME_OPACITY); in InitToastAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components/transition/ |
H A D | transition_element.cpp | 104 auto keyframeWidthBegin = AceType::MakeRefPtr<Keyframe<float>>(0.0f, width); in ReplaceAnimation() 111 auto keyframeHeightBegin = AceType::MakeRefPtr<Keyframe<float>>(0.0f, height); in ReplaceAnimation() 119 auto keyframeColorBegin = AceType::MakeRefPtr<Keyframe<Color>>(0.0f, color); in ReplaceAnimation() 129 auto keyframeOpacityBegin = AceType::MakeRefPtr<Keyframe<float>>(0.0f, opacity); in ReplaceAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/ |
H A D | render_tab_bar_item.cpp | 143 auto keyframeBegin = AceType::MakeRefPtr<Keyframe<double>>(0.0, beginValue); in CreateDoubleAnimation() 144 auto keyframeEnd = AceType::MakeRefPtr<Keyframe<double>>(1.0, endValue); in CreateDoubleAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | scroll_bar_controller.cpp | 285 auto hiddenStartKeyframe = AceType::MakeRefPtr<Keyframe<int32_t>>(KEYTIME_START, UINT8_MAX); in InitBarEndAnimation() 286 auto hiddenMiddleKeyframe = AceType::MakeRefPtr<Keyframe<int32_t>>(KEYTIME_MIDDLE, UINT8_MAX); in InitBarEndAnimation() 287 auto hiddenEndKeyframe = AceType::MakeRefPtr<Keyframe<int32_t>>(KEYTIME_END, 0); in InitBarEndAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components/progress/ |
H A D | render_loading_progress.cpp | 84 auto keyframe1 = AceType::MakeRefPtr<Keyframe<float>>(0.0f, 0.0f); in UpdateRingAnimation() 85 auto keyframe2 = AceType::MakeRefPtr<Keyframe<float>>(0.25f, -moveRange); in UpdateRingAnimation() 86 auto keyframe3 = AceType::MakeRefPtr<Keyframe<float>>(0.75f, moveRange); in UpdateRingAnimation() 87 auto keyframe4 = AceType::MakeRefPtr<Keyframe<float>>(1.0f, 0.0f); in UpdateRingAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components/drag_bar/ |
H A D | render_drag_bar.cpp | 319 auto keyframeFrom = AceType::MakeRefPtr<Keyframe<double>>(0.0, 1.0); in FadingOut() 320 auto keyframeTo = AceType::MakeRefPtr<Keyframe<double>>(1.0, 0.0); in FadingOut() 340 auto keyframeFrom = AceType::MakeRefPtr<Keyframe<double>>(0.0, hotRegionHeight_.Value()); in Stretching() 341 auto keyframeTo = AceType::MakeRefPtr<Keyframe<double>>(1.0, context->GetStatusBarHeight()); in Stretching()
|
/foundation/arkui/ace_engine/frameworks/core/components/dialog_modal/ |
H A D | render_dialog_modal.cpp | 112 auto keyframeFrom = AceType::MakeRefPtr<Keyframe<double>>(0.0, reverse ? pageHeight : from); in AnimateTo() 113 auto keyframeTo = AceType::MakeRefPtr<Keyframe<double>>(1.0, reverse ? from : pageHeight); in AnimateTo()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/ |
H A D | render_indexer_item.cpp | 165 auto keyframeBegin = AceType::MakeRefPtr<Keyframe<Color>>(0.0, beginValue); in CreateColorAnimation() 166 auto keyframeEnd = AceType::MakeRefPtr<Keyframe<Color>>(1.0, endValue); in CreateColorAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/ |
H A D | render_text_overlay.cpp | 771 auto opacityKeyframeInFirst = AceType::MakeRefPtr<Keyframe<float>>(0.0f, 0.0f); in InitAnimation() 772 auto opacityKeyframeInSecond = AceType::MakeRefPtr<Keyframe<float>>(OPACITY_KEYFRAME, 1.0f); in InitAnimation() 774 auto opacityKeyframeInThird = AceType::MakeRefPtr<Keyframe<float>>(1.0f, 1.0f); in InitAnimation() 796 auto opacityKeyframeOutFirst = AceType::MakeRefPtr<Keyframe<float>>(0.0f, 1.0f); in InitAnimation() 797 auto opacityKeyframeOutSecond = AceType::MakeRefPtr<Keyframe<float>>(OPACITY_KEYFRAME, 0.0f); in InitAnimation() 799 auto opacityKeyframeOutThird = AceType::MakeRefPtr<Keyframe<float>>(1.0f, 0.0f); in InitAnimation() 1065 auto widthFrameStart = AceType::MakeRefPtr<Keyframe<Dimension>>(KEYFRAME_BEGINNING, from); in BuildStrokeWidthAnimation() 1066 auto widthFrameEnd = AceType::MakeRefPtr<Keyframe<Dimension>>(KEYFRAME_ENDING, to); in BuildStrokeWidthAnimation() 1071 auto widthFrameMid = AceType::MakeRefPtr<Keyframe<Dimension>>(KEYFRAME_PERCENT_THIRTY, to); in BuildStrokeWidthAnimation() 1090 auto offsetFrameStart = AceType::MakeRefPtr<Keyframe<doubl in BuildEndPointOffsetAnimation() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/indexer/ |
H A D | render_indexer_circle.cpp | 452 auto tailStartFrame = AceType::MakeRefPtr<Keyframe<double>>(KEYFRAME_BEGIN, collapseTail); in BuildArcAnimation() 453 auto tailEndFrame = AceType::MakeRefPtr<Keyframe<double>>(KEYFRAME_END, arcHeadPosition_ + arcMaxLen_); in BuildArcAnimation() 619 auto startFrame = AceType::MakeRefPtr<Keyframe<double>>(KEYFRAME_BEGIN, origin); in InitCollapseScrollInterpolator() 620 auto endFrame = AceType::MakeRefPtr<Keyframe<double>>(KEYFRAME_END, target); in InitCollapseScrollInterpolator() 638 auto startFrame = AceType::MakeRefPtr<Keyframe<double>>(KEYFRAME_BEGIN, origin); in InitFocusInterpolator() 639 auto endFrame = AceType::MakeRefPtr<Keyframe<double>>(KEYFRAME_END, target); in InitFocusInterpolator()
|
/foundation/arkui/ace_engine/frameworks/core/animation/test/unittest/framework/ |
H A D | animation_framework_test.cpp | 161 auto keyframe1 = AceType::MakeRefPtr<Keyframe<float>>(0.0f, begin); in InitBasicAnimationDirectionPropertyTest() 162 auto keyframe2 = AceType::MakeRefPtr<Keyframe<float>>(1.0f, end); in InitBasicAnimationDirectionPropertyTest() 200 auto keyframe1 = AceType::MakeRefPtr<Keyframe<float>>(0.0f, begin); in InitBasicPropertyTest() 201 auto keyframe2 = AceType::MakeRefPtr<Keyframe<float>>(1.0f, end); in InitBasicPropertyTest() 1638 auto kf1 = AceType::MakeRefPtr<Keyframe<float>>(1.0f, begin); in HWTEST_F() 1684 auto kf1 = AceType::MakeRefPtr<Keyframe<float>>(0.0f, begin); in HWTEST_F() 1685 auto kf2 = AceType::MakeRefPtr<Keyframe<float>>(1.0f, end); in HWTEST_F() 1730 auto kf1 = AceType::MakeRefPtr<Keyframe<float>>(0.0f, begin); in HWTEST_F() 1731 auto kf2 = AceType::MakeRefPtr<Keyframe<float>>(1.0f, end); in HWTEST_F() 1778 auto kf1 = AceType::MakeRefPtr<Keyframe<floa in HWTEST_F() [all...] |