Home
last modified time | relevance | path

Searched refs:CheckTargetIndex (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_test_ng.cpp1967 EXPECT_EQ(pattern_->CheckTargetIndex(targetIndex, true), targetIndex + 1);
1968 EXPECT_EQ(pattern_->CheckTargetIndex(targetIndex, false), targetIndex - 1);
1973 EXPECT_EQ(pattern_->CheckTargetIndex(targetIndex, true), targetIndex - 1);
1974 EXPECT_EQ(pattern_->CheckTargetIndex(targetIndex, false), targetIndex + 1);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_pattern.cpp457 return CheckTargetIndex(index + 1); in CheckUserSetIndex()
1686 int32_t SwiperPattern::CheckTargetIndex(int32_t targetIndex, bool isForceBackward) in CheckTargetIndex() function in OHOS::Ace::NG::SwiperPattern
1754 targetIndex_ = CheckTargetIndex(currentIndex_ + stepItems); in ShowNext()
1809 targetIndex_ = CheckTargetIndex(currentIndex_ - stepItems); in ShowPrevious()
1838 targetIndex = CheckTargetIndex(targetIndex); in ChangeIndex()
2516 currentFirstIndex_ = CheckTargetIndex(currentFirstIndex_, true); in UpdateNextValidIndex()
2517 nextValidIndex_ = GetLoopIndex(CheckTargetIndex(currentFirstIndex_ + 1, true)); in UpdateNextValidIndex()
2588 targetIndex_ = CheckTargetIndex(ComputeNextIndexByVelocity(velocity)); in UpdateAnimationProperty()
4188 swiper->targetIndex_ = swiper->CheckTargetIndex(swiper->currentIndex_ + stepItems); in PostTranslateTask()
H A Dswiper_pattern.h854 int32_t CheckTargetIndex(int32_t targetIndex, bool isForceBackward = false);