Home
last modified time | relevance | path

Searched refs:steps_ (Results 1 - 8 of 8) sorted by relevance

/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/
H A Drs_steps_interpolator.cpp26 : steps_(steps <= 0 ? 1 : steps), position_(position) in RSStepsInterpolator()
30 : RSInterpolator(id), steps_(steps <= 0 ? 1 : steps), position_(position) in RSStepsInterpolator()
43 if (!(parcel.WriteInt32(steps_) && parcel.WriteInt32(static_cast<int32_t>(position_)))) { in Marshalling()
68 auto currentStep = static_cast<int32_t>(fraction * steps_); in InterpolateImpl()
72 if (steps_ == 0) { in InterpolateImpl()
77 currentStep = std::min(currentStep, steps_); in InterpolateImpl()
78 return static_cast<float>(currentStep) / steps_; in InterpolateImpl()
/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dcurve.h205 : steps_(steps <= 0 ? 1 : steps), position_(position) in StepsCurve()
215 auto currentStep = static_cast<int32_t>(time * steps_);
216 if (position_ == StepsCurvePosition::START && currentStep < steps_) {
219 return static_cast<float>(currentStep) / steps_;
225 curveString.append(std::string("(") + std::to_string(steps_) + comma);
241 return other->GetSteps() == steps_ && other->GetStepsCurvePosition() == position_;
246 return steps_; in GetSteps()
255 int32_t steps_; member in OHOS::Ace::StepsCurve
H A Dnative_curve_helper.cpp43 return Rosen::RSAnimationTimingCurve::CreateStepsCurve(stepsCurve->steps_, in ToNativeCurve()
/foundation/arkui/ace_engine_lite/frameworks/src/core/animation/
H A Dtransition_impl.cpp118 steps_ = params_.during / INTERVAL; in InitTransitionParamsStyle()
266 if ((steps_ != 0) && (count_ <= steps_) && (elapsedTime <= params_.during)) { in PerformTransitionBgColorLinear()
268 ColorType color = Color::GetColorFromRGB(rSrc_ + (rTo_ - rSrc_) * count_ / steps_, in PerformTransitionBgColorLinear()
269 gSrc_ + (gTo_ - gSrc_) * count_ / steps_, in PerformTransitionBgColorLinear()
270 bSrc_ + (bTo_ - bSrc_) * count_ / steps_); in PerformTransitionBgColorLinear()
H A Dtransition_impl.h210 int8_t steps_ = 1; // total target number of times of updating the bg-color (during_/INTERVAL) member in OHOS::ACELite::final
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
H A Drs_steps_interpolator.h41 int32_t steps_ { 0 };
/foundation/arkui/ace_engine/frameworks/component_test/core/
H A Daction.cpp147 uint32_t intervalMs = timeCostMs / steps_ + 1; in Decompose()
149 EventMatrix pointer(fingers, steps_ + 1); in Decompose()
152 for (uint16_t step = 1; step < steps_; step++) { in Decompose()
153 float pointX = from_.GetX() + (distanceX * step) / steps_; in Decompose()
154 float pointY = from_.GetY() + (distanceY * step) / steps_; in Decompose()
276 constexpr uint32_t steps_ = 10; in Decompose() local
294 float intervalMs = timeCostMs / (steps_ + 1) / time; in Decompose()
301 for (uint16_t step = 1; step < steps_ + 1; step++) { in Decompose()
302 float pointY = from.GetY() + (distanceY * step) / steps_; in Decompose()
H A Daction.h245 steps_(std::clamp(steps, MIN_STEP_CONUT, MAX_STEP_CONUT)) {}; in MoveAction()
254 const uint32_t steps_; member in OHOS::Ace::ComponentTest::MoveAction

Completed in 5 milliseconds