Searched refs:ComputeSwipePageNextIndex (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 | 1551 EXPECT_EQ(pattern_->ComputeSwipePageNextIndex(dragVelocity), 3); 1554 EXPECT_EQ(pattern_->ComputeSwipePageNextIndex(dragVelocity), 3); 1570 EXPECT_EQ(pattern_->ComputeSwipePageNextIndex(dragVelocity), 3); 1573 EXPECT_EQ(pattern_->ComputeSwipePageNextIndex(dragVelocity), 3); 1586 EXPECT_EQ(pattern_->ComputeSwipePageNextIndex(dragVelocity), 6); 1589 EXPECT_EQ(pattern_->ComputeSwipePageNextIndex(dragVelocity), 6); 1602 EXPECT_EQ(pattern_->ComputeSwipePageNextIndex(dragVelocity), 6); 1607 EXPECT_EQ(pattern_->ComputeSwipePageNextIndex(dragVelocity), 0); 1611 EXPECT_EQ(pattern_->ComputeSwipePageNextIndex(dragVelocity), 3);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_pattern.h | 846 int32_t ComputeSwipePageNextIndex(float velocity, bool onlyDistance = false) const;
|
H A D | swiper_pattern.cpp | 2848 int32_t SwiperPattern::ComputeSwipePageNextIndex(float velocity, bool onlyDistance) const in ComputeSwipePageNextIndex() function in OHOS::Ace::NG::SwiperPattern 2916 return ComputeSwipePageNextIndex(velocity, onlyDistance); in ComputeNextIndexByVelocity()
|