Home
last modified time | relevance | path

Searched refs:targetIndex (Results 1 - 25 of 54) sorted by relevance

123

/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/
H A Dgrid_scroller_test_ng.cpp230 * @tc.expected: pattern_->targetIndex.value() is 15. in HWTEST_F()
1342 int32_t targetIndex = 0; in HWTEST_F() local
1344 targetIndex = 0; in HWTEST_F()
1345 pattern_->ScrollToIndex(targetIndex, true, align); in HWTEST_F()
1673 int32_t targetIndex = 15; in HWTEST_F() local
1675 pattern_->ScrollToIndex(targetIndex, true, align); in HWTEST_F()
1692 int32_t targetIndex = 15; in HWTEST_F() local
1695 pattern_->ScrollToIndex(targetIndex, true, align); in HWTEST_F()
1712 int32_t targetIndex = 15; in HWTEST_F() local
1715 pattern_->ScrollToIndex(targetIndex, tru in HWTEST_F()
1735 int32_t targetIndex = 10; HWTEST_F() local
1763 int32_t targetIndex = 10; HWTEST_F() local
1794 int32_t targetIndex = 0; HWTEST_F() local
1814 int32_t targetIndex = 10; HWTEST_F() local
1846 int32_t targetIndex = 19; HWTEST_F() local
1896 int32_t targetIndex = 19; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/indexer/
H A Drender_indexer_circle.h51 void BeginFocusAnimation(int32_t originIndex, int32_t targetIndex) override;
109 void InitFocusInterpolator(double origin, double target, int32_t originIndex, int32_t targetIndex);
111 void SetIndexerItemStatus(bool inAnimation, int32_t originIndex, int32_t targetIndex);
112 void UpdateItemBackground(double value, int32_t originIndex, int32_t targetIndex);
H A Drender_indexer_circle.cpp542 void RenderIndexerCircle::BeginFocusAnimation(int32_t originIndex, int32_t targetIndex) in BeginFocusAnimation() argument
555 SetIndexerItemStatus(false, originIndex, targetIndex); in BeginFocusAnimation()
560 SetIndexerItemStatus(true, originIndex, targetIndex); in BeginFocusAnimation()
563 focusController_->AddStopListener([weak, originIndex, targetIndex]() { in BeginFocusAnimation()
566 indexer->SetIndexerItemStatus(false, originIndex, targetIndex); in BeginFocusAnimation()
570 InitFocusInterpolator(ZERO_OPACITY_IN_PERCENT, DEFAULT_OPACITY_IN_PERCENT, originIndex, targetIndex); in BeginFocusAnimation()
575 void RenderIndexerCircle::SetIndexerItemStatus(bool inAnimation, int32_t originIndex, int32_t targetIndex) in SetIndexerItemStatus() argument
577 RefPtr<RenderIndexerItem> focusItem = GetSpecificItem(targetIndex); in SetIndexerItemStatus()
603 void RenderIndexerCircle::UpdateItemBackground(double value, int32_t originIndex, int32_t targetIndex) in UpdateItemBackground() argument
605 UpdateItemBackground(value, targetIndex); in UpdateItemBackground()
636 InitFocusInterpolator(double origin, double target, int32_t originIndex, int32_t targetIndex) InitFocusInterpolator() argument
[all...]
H A Drender_indexer.h65 virtual void BeginFocusAnimation(int32_t originIndex, int32_t targetIndex) {} in BeginFocusAnimation() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/
H A Dgrid_scroll_with_options_layout_algorithm.cpp78 LayoutWrapper* layoutWrapper, bool isTargetBackward, int32_t targetIndex) in GetTargetIndexInfoWithBenchMark()
89 while (currentIndex < targetIndex) { in GetTargetIndexInfoWithBenchMark()
92 while ((crossGridReserve > 0) && (currentIndex <= targetIndex)) { in GetTargetIndexInfoWithBenchMark()
104 if (currentIndex > targetIndex) { in GetTargetIndexInfoWithBenchMark()
160 const std::map<int32_t, int32_t>& irregularItemsPosition, int32_t& sum, int32_t& lastIndex, int32_t targetIndex) in JumpToLastIrregularItem()
166 auto iter = irregularItemsPosition.lower_bound(targetIndex); in JumpToLastIrregularItem()
77 GetTargetIndexInfoWithBenchMark( LayoutWrapper* layoutWrapper, bool isTargetBackward, int32_t targetIndex) GetTargetIndexInfoWithBenchMark() argument
159 JumpToLastIrregularItem( const std::map<int32_t, int32_t>& irregularItemsPosition, int32_t& sum, int32_t& lastIndex, int32_t targetIndex) JumpToLastIrregularItem() argument
H A Dgrid_scroll_layout_algorithm.cpp368 // Complete the gridLayoutInfo to get a complete set of data from 0 to targetIndex for the GridView. Make sure in FillGridViewportAndMeasureChildren()
369 // that the index of the matrix_ and heightMap_ is incremented from 0 to targetIndex and sequentially in FillGridViewportAndMeasureChildren()
798 LayoutWrapper* layoutWrapper, bool isTargetBackward, int32_t targetIndex) in GetTargetIndexInfoWithBenchMark()
809 while (currentIndex < targetIndex) { in GetTargetIndexInfoWithBenchMark()
812 while ((crossGridReserve > 0) && (currentIndex <= targetIndex)) { in GetTargetIndexInfoWithBenchMark()
827 if (currentIndex > targetIndex) { in GetTargetIndexInfoWithBenchMark()
854 int32_t targetIndex = gridLayoutInfo_.jumpIndex_; in UpdateGridLayoutInfo() local
855 /* 2.1 invalid targetIndex */ in UpdateGridLayoutInfo()
856 if (gridLayoutInfo_.childrenCount_ <= targetIndex) { in UpdateGridLayoutInfo()
864 ScrollToIndexStart(layoutWrapper, targetIndex); in UpdateGridLayoutInfo()
797 GetTargetIndexInfoWithBenchMark( LayoutWrapper* layoutWrapper, bool isTargetBackward, int32_t targetIndex) GetTargetIndexInfoWithBenchMark() argument
883 ScrollToIndexAuto(LayoutWrapper* layoutWrapper, float mainSize, int32_t targetIndex) ScrollToIndexAuto() argument
933 ScrollToIndexStart(LayoutWrapper* layoutWrapper, int32_t targetIndex) ScrollToIndexStart() argument
1825 auto targetIndex = tempGridLayoutInfo.targetIndex_; SupplyAllData2ZeroIndex() local
[all...]
H A Dgrid_scroll_with_options_layout_algorithm.h37 LayoutWrapper* layoutWrapper, bool isTargetBackward, int32_t targetIndex) override;
H A Dgrid_scroll_layout_algorithm.h130 LayoutWrapper* layoutWrapper, bool isTargetBackward, int32_t targetIndex);
150 void ScrollToIndexStart(LayoutWrapper* layoutWrapper, int32_t targetIndex);
151 void ScrollToIndexAuto(LayoutWrapper* layoutWrapper, float mainSize, int32_t targetIndex);
/foundation/filemanagement/dfs_service/test/unittests/distributed_file_daemon/
H A Dconnection_detector_test.cpp167 int targetIndex = 0; in HWTEST_F() local
169 string ret = connectionDetector.GetCellByIndex(str, targetIndex); in HWTEST_F()
178 int targetIndex = 0; in HWTEST_F() local
180 string ret = connectionDetector.GetCellByIndex(str, targetIndex); in HWTEST_F()
189 int targetIndex = 0; in HWTEST_F() local
191 string ret = connectionDetector.GetCellByIndex(str, targetIndex); in HWTEST_F()
200 int targetIndex = 0; in HWTEST_F() local
202 string ret = connectionDetector.GetCellByIndex(str, targetIndex); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_event_hub.h151 void FireAnimationStartEvent(int32_t index, int32_t targetIndex, const AnimationCallbackInfo& info) in FireAnimationStartEvent() argument
155 [index, targetIndex, info](const AnimationStartEventPtr& animationStartEvent) { in FireAnimationStartEvent()
160 event(index, targetIndex, info); in FireAnimationStartEvent()
H A Dswiper_layout_algorithm.h118 void SetTargetIndex(std::optional<int32_t> targetIndex) in SetTargetIndex() argument
120 targetIndex_ = targetIndex; in SetTargetIndex()
326 LayoutWrapper* layoutWrapper, float startMainPos, float endMainPos, std::optional<int32_t> targetIndex);
H A Dswiper_pattern.cpp202 auto targetIndex = GetLoopIndex(CurrentIndex()); in OnIndexChange() local
203 if (oldIndex != targetIndex) { in OnIndexChange()
204 FireChangeEvent(oldIndex, targetIndex, isInLayout); in OnIndexChange()
573 void SwiperPattern::CreateCaptureCallback(int32_t targetIndex, int32_t captureId, bool forceUpdate) in CreateCaptureCallback() argument
577 auto targetNode = AceType::DynamicCast<FrameNode>(host->GetOrCreateChildByIndex(targetIndex)); in CreateCaptureCallback()
579 auto callback = [weak = WeakClaim(this), captureId, targetIndex, hostInstanceId = GetHostInstanceId()]( in CreateCaptureCallback()
589 [weak, pixelMap, captureId, targetIndex]() mutable { in CreateCaptureCallback()
592 swiper->UpdateCaptureSource(pixelMap, captureId, targetIndex); in CreateCaptureCallback()
615 std::shared_ptr<Media::PixelMap> pixelMap, int32_t captureId, int32_t targetIndex) in UpdateCaptureSource()
619 targetIndex in UpdateCaptureSource()
614 UpdateCaptureSource( std::shared_ptr<Media::PixelMap> pixelMap, int32_t captureId, int32_t targetIndex) UpdateCaptureSource() argument
1638 auto targetIndex = IsLoop() ? index : (index < 0 || index > (TotalCount() - 1)) ? 0 : index; SwipeTo() local
1703 CheckTargetIndex(int32_t targetIndex, bool isForceBackward) CheckTargetIndex() argument
1845 auto targetIndex = currentIndex_ >= 0 ? loopCount * itemCount + index : -(loopCount + 1) * itemCount + index; ChangeIndex() local
3242 std::optional<int32_t> targetIndex; PlayPropertyTranslateAnimation() local
[all...]
/foundation/resourceschedule/ffrt/src/sched/
H A Dmulti_workgroup.cpp68 int targetIndex = -1; in InsertThreadInWorkGroup() local
72 targetIndex = i; in InsertThreadInWorkGroup()
76 if (targetIndex == -1) { in InsertThreadInWorkGroup()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_layout_algorithm.h68 void SetTargetIndex(std::optional<int32_t> targetIndex) in SetTargetIndex() argument
70 targetIndex_ = targetIndex; in SetTargetIndex()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/
H A Dconnection_detector.cpp30 std::string ConnectionDetector::GetCellByIndex(const std::string &str, int targetIndex) in GetCellByIndex() argument
53 if (count == targetIndex) { in GetCellByIndex()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
H A Djs_swiper_function.h40 void Execute(int32_t index, int32_t targetIndex, const AnimationCallbackInfo& animationCallbackInfo);
H A Djs_swiper_function.cpp125 void JsSwiperFunction::Execute(int32_t index, int32_t targetIndex, const AnimationCallbackInfo& animationCallbackInfo) in Execute() argument
139 params[1] = JSRef<JSVal>::Make(ToJSValue(targetIndex)); in Execute()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/ipc/
H A Dconnection_detector.h46 static std::string GetCellByIndex(const std::string &str, int targetIndex);
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dimage_utils.cpp773 uint32_t targetIndex = 0; in KMPFind() local
775 for (; targetIndex < targetLen; ++targetIndex) { in KMPFind()
777 while (patternIndex > 0 && target[targetIndex] != pattern[patternIndex]) { in KMPFind()
781 if (target[targetIndex] == pattern[patternIndex]) { in KMPFind()
786 return static_cast<int32_t>(targetIndex) - static_cast<int32_t>(patternLen) + static_cast<int32_t>(NUM_1); in KMPFind()
/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_controller_test_ng.cpp34 AssertionResult VerifyChangeIndex(int32_t targetIndex, bool useAnimation, int32_t expectIndex);
53 AssertionResult SwiperControllerTestNg::VerifyChangeIndex(int32_t targetIndex, bool useAnimation, int32_t expectIndex) in VerifyChangeIndex() argument
55 controller_->ChangeIndex(targetIndex, useAnimation); in VerifyChangeIndex()
H A Dswiper_test_ng.cpp2561 int32_t targetIndex = 0; in HWTEST_F() local
2562 EXPECT_TRUE(pattern_->GetLoopIndex(targetIndex) != pattern_->GetLoopIndex(pattern_->currentIndex_)); in HWTEST_F()
2563 auto currentFrameNode = pattern_->GetCurrentFrameNode(pattern_->GetLoopIndex(targetIndex)); in HWTEST_F()
2572 EXPECT_EQ(pattern_->CheckTargetIndex(targetIndex, true), targetIndex + 1); in HWTEST_F()
2573 EXPECT_EQ(pattern_->CheckTargetIndex(targetIndex, false), targetIndex - 1); in HWTEST_F()
2578 EXPECT_EQ(pattern_->CheckTargetIndex(targetIndex, true), targetIndex - 1); in HWTEST_F()
2579 EXPECT_EQ(pattern_->CheckTargetIndex(targetIndex, fals in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_layout_info.h327 bool GetLineIndexByIndex(int32_t targetIndex, int32_t& targetLineIndex) const;
358 bool GetGridItemAnimatePos(const GridLayoutInfo& currentGridLayoutInfo, int32_t targetIndex, ScrollAlign align,
H A Dgrid_pattern.h315 double GetNearestDistanceFromChildToCurFocusItemInMainAxis(int32_t targetIndex, GridItemIndexInfo itemIndexInfo);
316 double GetNearestDistanceFromChildToCurFocusItemInCrossAxis(int32_t targetIndex, GridItemIndexInfo itemIndexInfo);
/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/
H A Drender_indexer.h70 virtual void BeginFocusAnimation(int32_t originIndex, int32_t targetIndex) {} in BeginFocusAnimation() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/
H A Dselect_overlay_modifier.cpp303 int32_t targetIndex = (i + 1 == headPointIndex ? FIRST_INDEX : i + 1); in DrawbBackArrow() local
304 auto coordinate = menuOptionOffset_->Get() + circleOffset_[targetIndex]->Get(); in DrawbBackArrow()

Completed in 30 milliseconds

123