Searched refs:ComputeNextIndexByVelocity (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/ |
H A D | swiper_test_ng.cpp | 670 EXPECT_EQ(pattern_->ComputeNextIndexByVelocity(velocity, false), 1); 673 EXPECT_EQ(pattern_->ComputeNextIndexByVelocity(velocity, false), 1); 675 EXPECT_EQ(pattern_->ComputeNextIndexByVelocity(velocity, false), 0); 678 EXPECT_EQ(pattern_->ComputeNextIndexByVelocity(velocity, true), 0); 680 EXPECT_EQ(pattern_->ComputeNextIndexByVelocity(velocity, false), 1); 685 EXPECT_EQ(pattern_->ComputeNextIndexByVelocity(velocity, true), 1); 687 EXPECT_EQ(pattern_->ComputeNextIndexByVelocity(velocity, false), 1);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_pattern.h | 749 int32_t ComputeNextIndexByVelocity(float velocity, bool onlyDistance = false) const;
|
H A D | swiper_pattern.cpp | 2588 targetIndex_ = CheckTargetIndex(ComputeNextIndexByVelocity(velocity)); in UpdateAnimationProperty() 2912 int32_t SwiperPattern::ComputeNextIndexByVelocity(float velocity, bool onlyDistance) const in ComputeNextIndexByVelocity() function in OHOS::Ace::NG::SwiperPattern 3017 auto nextIndex = ComputeNextIndexByVelocity(static_cast<float>(dragVelocity), true); in CheckDragOutOfBoundary() 3479 nextIndex_ = ComputeNextIndexByVelocity(velocity, true); in OnSpringAnimationStart() 3550 nextIndex_ = ComputeNextIndexByVelocity(0.0); in OnFadeAnimationStart()
|