/foundation/arkui/ui_lite/test/unittest/animator/ |
H A D | animator_unit_test.cpp | 33 explicit TestAnimatorCallback(UIView* view) : view_(view), animator_(nullptr) {} in TestAnimatorCallback() 37 if (animator_ != nullptr) { in ~TestAnimatorCallback() 38 delete animator_; in ~TestAnimatorCallback() 39 animator_ = nullptr; in ~TestAnimatorCallback() 45 if (animator_ == nullptr) { in Init() 46 animator_ = new Animator(this, view_, TIME, false); in Init() 47 if (animator_ == nullptr) { in Init() 57 int16_t pos = EasingEquation::LinearEaseNone(START_POS, END_POS, animator_->GetRunTime(), animator_->GetTime()); 68 return animator_; in GetAnimator() 73 Animator* animator_; global() member in OHOS::TestAnimatorCallback 80 static Animator* animator_; global() member in OHOS::AnimatorTest 83 Animator* AnimatorTest::animator_ = nullptr; global() member in OHOS::AnimatorTest [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/image/ |
H A D | image_animator_element.cpp | 37 if (!animator_) { in Update() 38 animator_ = CREATE_ANIMATOR(); in Update() 41 if (!animator_->HasScheduler()) { in Update() 42 animator_->AttachScheduler(context_); in Update() 44 animator_->SetFillMode(imageAnimatorComponent->GetFillMode()); in Update() 45 animator_->SetIteration(imageAnimatorComponent->GetIteration()); in Update() 68 if (!element || !element->animator_) { in Update() 73 if (element->animator_->GetStatus() == Animator::Status::RUNNING) { in Update() 74 element->animator_->Pause(); in Update() 80 element->animator_ in Update() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/animator/ |
H A D | cj_animator.cpp | 98 CHECK_NULL_VOID(animator_); in ApplyOption() 102 animator_->SetIteration(1); in ApplyOption() 103 animator_->SetAnimationDirection(AnimationDirection::NORMAL); in ApplyOption() 105 animator_->SetDuration(option_->duration); in ApplyOption() 106 animator_->SetIteration(option_->iterations); in ApplyOption() 107 animator_->SetAnimationDirection(StringToAnimationDirection(option_->direction)); in ApplyOption() 109 animator_->SetStartDelay(option_->delay); in ApplyOption() 111 animator_->SetFillMode(StringToFillMode(option_->fill)); in ApplyOption() 118 animator_->ClearInterpolators(); in SetOnframe() 135 animator_ in SetOnframe() [all...] |
H A D | cj_animator.h | 56 : animator_(std::move(animator)), option_(std::move(option)) in AnimatorResultImpl() 67 return animator_; in GetAnimator() 103 RefPtr<Animator> animator_; member in OHOS::Ace::AnimatorResultImpl
|
/foundation/arkui/ace_engine/test/mock/core/animation/ |
H A D | mock_animation.cpp | 29 animator_->SetDuration(animationDuration_); in OnPostFlush() 30 setRepeatSucc_ = animator_->SetIteration(iteration_); in OnPostFlush() 31 animator_->SetStartDelay(startDelay_); in OnPostFlush() 39 animator_->Play(); in ExecuteOperation() 42 animator_->Reverse(); in ExecuteOperation() 45 animator_->Finish(); in ExecuteOperation() 48 animator_->Pause(); in ExecuteOperation() 51 animator_->Cancel(); in ExecuteOperation() 62 animator_->AddStartListener([weak]() { in AddListeners() 68 animator_ in AddListeners() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/data_panel/ |
H A D | render_data_panel.cpp | 56 if (!animator_) { in Update() 57 animator_ = CREATE_ANIMATOR(pipelineContext); in Update() 101 if (animator_) { in AnimationChanged() 103 isUserSetPlay_ ? animator_->Play() : animator_->Pause(); in AnimationChanged() 108 if (animator_) { in AnimationChanged() 109 animator_->Pause(); in AnimationChanged() 201 if (animator_) { in PrepareAnimation() 202 animator_->AddInterpolator(animation_); in PrepareAnimation() 203 animator_ in PrepareAnimation() [all...] |
H A D | render_data_panel.h | 72 RefPtr<Animator> animator_; member in OHOS::Ace::RenderDataPanel 119 if (animator_) { 120 animator_->Play(); 132 if (animator_) { 133 animator_->Stop(); 169 if (animator_) { 170 animator_->Play(); 177 if (animator_) { 178 animator_->Pause();
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_label.cpp | 125 animator_{nullptr} in UILabel() 130 animator_.speed = DEFAULT_ANIMATOR_SPEED; 136 delete animator_.animator; in ~UILabel() 137 animator_.animator = nullptr; in ~UILabel() 246 animator_.animator->Stop(); in SetLineBreakMode() 374 static_cast<LabelAnimator*>(animator_.animator)->UpdateWidth(textWidth, rectWidth); in RemeasureForMarquee() 381 animator->SetAnimatorSpeed(animator_.speed); in RemeasureForMarquee() 382 animator_.animator = animator; in RemeasureForMarquee() 385 animator_.animator->Start(); in RemeasureForMarquee() 389 animator_ in RemeasureForMarquee() [all...] |
H A D | ui_arc_label.cpp | 112 arcLabel->offsetAngle_ = arcLabel->animator_.secondLapOffsetAngle_; in CalculatedOffsetAngle() 154 animator_.animator = nullptr; in orientation_() 155 animator_.scrollListener = nullptr; in orientation_() 156 animator_.speed = DEFAULT_ARC_LABEL_ANIMATOR_SPEED; in orientation_() 157 animator_.rollCount = DEFAULT_ARC_LABEL_ROLL_COUNT; in orientation_() 158 animator_.secondLapOffsetAngle_ = 0.0f; in orientation_() 169 delete animator_.animator; in ~UIArcLabel() 170 animator_.animator = nullptr; in ~UIArcLabel() 407 animator_.secondLapOffsetAngle_ = -maxTextAngle; in OnMeasureArcTextInfo() 409 animator_ in OnMeasureArcTextInfo() [all...] |
H A D | ui_texture_mapper.cpp | 37 : animator_(&animatorCallback_, this, 0, false), in UITextureMapper() 60 animator_.Start(); in Start() 65 animator_.Stop(); in Cancel() 77 uint16_t curTime = animator_.GetRunTime(); in Callback() 80 uint16_t durationTime = animator_.GetTime() - delayTime_; in Callback()
|
H A D | ui_button.cpp | 39 animator_(*this), in UIButton() 165 animator_.Start(); in OnPressEvent() 179 animator_.Start(); in OnReleaseEvent() 193 animator_.Start(); in OnCancelEvent() 292 animator_.DrawMask(gfxDstBuffer, invalidatedArea); in OnPostDraw() 310 if ((animator_.GetState() == Animator::STOP) && FloatEqual(targetScale, scale_)) { in Start() 315 animator_.SetTime(SHRINK_DURATION); in Start() 317 animator_.SetTime(RECOVER_DURATION); in Start() 319 animator_.Start(); in Start() 324 animator_ in Start() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image_animator/ |
H A D | image_animator_pattern.cpp | 33 animator_ = CREATE_ANIMATOR(PipelineContext::GetCurrentContext());
in ImageAnimatorPattern() 34 animator_->SetFillMode(FillMode::FORWARDS);
in ImageAnimatorPattern() 35 animator_->SetDuration(DEFAULT_DURATION);
in ImageAnimatorPattern() 47 animator_->SetDuration(durationTotal_);
in CreatePictureAnimation() 226 auto averageShowTime = animator_->GetDuration() / static_cast<int32_t>(images_.size());
in GenerateCachedImages() 267 animator_->Cancel();
in RunAnimatorByStatus() 272 animator_->Pause();
in RunAnimatorByStatus() 276 animator_->Finish();
in RunAnimatorByStatus() 285 isReverse_ ? animator_->Backward() : animator_ in RunAnimatorByStatus() [all...] |
H A D | image_animator_pattern.h | 36 animator_ = nullptr;
83 animator_->SetFillMode(fillMode);
in SetFillMode() 101 animator_->Pause();
107 if (status_ == Animator::Status::RUNNING && animator_->GetStatus() != Animator::Status::RUNNING) {
108 isReverse_ ? animator_->Backward() : animator_->Forward();
124 return animator_->GetDuration();
in GetDuration() 136 return animator_->GetFillMode();
in GetFillMode() 170 RefPtr<Animator> animator_;
member in OHOS::Ace::NG::ImageAnimatorPattern
|
/foundation/arkui/ace_engine/frameworks/core/components/focus_animation/ |
H A D | render_focus_animation.cpp | 55 animator_ = CREATE_ANIMATOR(pipelineContext); in Update() 64 animator_->AddInterpolator(focusAnimation_); in Update() 65 animator_->SetDuration(TOTAL_DURATION); in Update() 66 animator_->SetIteration(ANIMATION_REPEAT_INFINITE); in Update() 111 animator_->Play(); in SetFocusAnimationProperties() 137 animator_->Pause(); in CancelFocusAnimation() 152 animator_->Stop(); in StopFocusAnimation() 162 animator_->Play(); in StartFocusAnimation()
|
/foundation/arkui/ui_lite/test/uitest/test_animator/ |
H A D | ui_test_animator.h | 34 animator_(new Animator(this, uiView, 1000, true)) // 1000:duration of animator_, in milliseconds. in ImageEaseAnimatorCallback() 40 delete animator_; in ~ImageEaseAnimatorCallback() 45 return animator_; in GetAnimator() 58 int16_t pos = easingFunc_(startPos_, endPos_, animator_->GetRunTime(), animator_->GetTime()); in Callback() 69 Animator* animator_; member in OHOS::ImageEaseAnimatorCallback 100 Animator* animator_ = nullptr; member in OHOS::UITestAnimator
|
/foundation/arkui/ace_engine/frameworks/core/components/semi_modal/ |
H A D | render_semi_modal.cpp | 69 animator_ = CREATE_ANIMATOR(GetContext()); in Update() 360 animator_->AddStopListener([weak = WeakClaim(this)]() { in ExtendContentHeight() 456 animator_->AddStopListener([weak = context_, semiWeak = AceType::WeakClaim(this)]() { in AnimateToExitApp() 473 root->AnimateToHide(animator_->GetDuration()); in AnimateToExitApp() 614 animator_->AddInterpolator(radiusAnimation); in AppendContentRadiusAnimation() 644 animator_->AddInterpolator(heightAnimation); in AppendBlankHeightAnimation() 649 if (!animator_) { in AnimateToFullWindow() 658 if (animator_->IsRunning()) { in AnimateToFullWindow() 659 animator_->Finish(); in AnimateToFullWindow() 661 animator_ in AnimateToFullWindow() [all...] |
/foundation/arkui/ace_engine/frameworks/core/image/ |
H A D | animated_image_player.h | 45 animator_ = CREATE_ANIMATOR(context); in AnimatedImagePlayer() 77 animator_->AddInterpolator(pictureAnimation); in AnimatedImagePlayer() 78 animator_->SetDuration(totalFrameDuration); in AnimatedImagePlayer() 80 animator_->SetIteration(repetitionCount > 0 ? repetitionCount : ANIMATION_REPEAT_INFINITE); in AnimatedImagePlayer() 81 animator_->Play(); in AnimatedImagePlayer() 115 RefPtr<Animator> animator_; member in OHOS::Ace::AnimatedImagePlayer
|
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/ |
H A D | render_tab_content.cpp | 53 if (animator_ && animator_->IsRunning()) { in Update() 54 animator_->Finish(); in Update() 100 if (!animator_) { 101 animator_ = CREATE_ANIMATOR(context); 226 if (!animator_->IsStopped()) { in ScrollContents() 229 animator_->Finish(); in ScrollContents() 231 animator_->Stop(); in ScrollContents() 234 animator_->ClearStopListeners(); in ScrollContents() 235 animator_ in ScrollContents() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/display/ |
H A D | render_display.cpp | 61 animator_->Play(); in Update() 186 if (animator_->GetStatus() != Animator::Status::STOPPED) { in ResetAppearingAnimation() 187 animator_->Stop(); in ResetAppearingAnimation() 189 animator_->ClearInterpolators(); in ResetAppearingAnimation() 194 if (!animator_) { in CreateAppearingAnimation() 195 animator_ = CREATE_ANIMATOR(context_); in CreateAppearingAnimation() 207 animator_->AddInterpolator(appearingAnimation_); in CreateAppearingAnimation() 208 animator_->SetDuration(std::min(duration_, limit)); in CreateAppearingAnimation()
|
/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_texture_mapper.h | 152 animator_.SetTime(durationTime + delayTime_); in SetDurationTime() 166 animator_.SetTime(animator_.GetTime() - delayTime_ + delayTime); in SetDelayTime() 277 Animator animator_; member in OHOS::UITextureMapper
|
/foundation/arkui/ace_engine/frameworks/core/components/drag_bar/ |
H A D | render_drag_bar.cpp | 62 if (!animator_) { in Update() 63 animator_ = CREATE_ANIMATOR(GetContext()); in Update() 330 animator_->AddInterpolator(animation); in FadingOut() 353 animator_->AddStopListener([weak = AceType::WeakClaim(this)]() { in Stretching() 361 animator_->AddInterpolator(animation); in Stretching() 366 if (animator_->IsRunning()) { in AnimateToStatusBarPadding() 367 animator_->Finish(); in AnimateToStatusBarPadding() 369 animator_->ClearAllListeners(); in AnimateToStatusBarPadding() 370 animator_->ClearInterpolators(); in AnimateToStatusBarPadding() 373 animator_ in AnimateToStatusBarPadding() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_animation.cpp | 207 if (animator_) { in CreatePropertyAnimation() 209 if (!animator_->IsStopped()) { in CreatePropertyAnimation() 210 animator_->Stop(); in CreatePropertyAnimation() 212 animator_->ClearInterpolators(); in CreatePropertyAnimation() 214 animator_ = CREATE_ANIMATOR(PipelineContext::GetCurrentContext()); in CreatePropertyAnimation() 215 animator_->AddStopListener([weak = svgContext_](){ in CreatePropertyAnimation() 222 context->AddAnimator(animator_->GetId(), animator_); in CreatePropertyAnimation() 225 if (!CreatePropertyAnimate(std::move(callback), originalValue, animator_)) { in CreatePropertyAnimation() 226 animator_ in CreatePropertyAnimation() [all...] |
/foundation/arkui/ui_lite/test/uitest/test_view_zindex/ |
H A D | ui_test_view_zindex.cpp | 82 if (animator_ != nullptr) { in TearDown() 83 delete animator_; in TearDown() 84 animator_ = nullptr; in TearDown() 198 if (animator_ != nullptr) { in ClickModifyBtn() 199 animator_->Stop(); in ClickModifyBtn() 200 delete animator_; in ClickModifyBtn() 204 animator_ = new Animator(this, zIndexView, 15, true); // 15: time millsec in ClickModifyBtn() 205 animator_->Start(); in ClickModifyBtn() 217 animator_->Stop(); in Callback()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/animation/ |
H A D | transition_impl.cpp | 28 if (animator_ != nullptr) { in Init() 31 animator_ = new Animator(this, view_, 0, true); in Init() 32 if (animator_ == nullptr) { in Init() 41 if (animator_ == nullptr) { in Callback() 45 int32_t elapsedTime = animator_->GetRunTime() - params_.delay; // animation execution time in Callback() 58 if (animator_ == nullptr) { in Start() 62 uint8_t state = animator_->GetState(); in Start() 66 animator_->Start(); in Start() 72 if (animator_ == nullptr) { in Stop() 76 uint8_t state = animator_ in Stop() [all...] |
H A D | transition_impl.h | 136 animator_(nullptr), in TransitionImpl() 143 if (animator_ != nullptr) { in ~TransitionImpl() 144 delete (animator_); in ~TransitionImpl() 145 animator_ = nullptr; in ~TransitionImpl() 186 Animator* animator_; member in OHOS::ACELite::final
|