Home
last modified time | relevance | path

Searched refs:totalItemCount_ (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_position_map.h241 if (curLine_ == lanes_ || curIndex_ == totalItemCount_ - 1) { in CalculateListItemNode()
301 for (int32_t index = 0; index < totalItemCount_;) { in GroupPosMapRecalculate()
320 for (int32_t index = 0; index < totalItemCount_; index++) { in PosMapUpdateAllSize()
331 totalItemCount_ = layoutWrapper->GetTotalChildCount(); in UpdatePosMap()
359 if (totalCount != totalItemCount_) { in UpdateGroupPosMap()
361 totalItemCount_ = totalCount; in UpdateGroupPosMap()
376 if (totalItemCount_ <= 0) { in UpdateGroupPosMap()
397 totalItemCount_ = totalCount; in UpdateTotalCount()
498 while (endIndex < (totalItemCount_ - 1) && in GetRowEndIndexAndHeight()
502 if (endIndex == totalItemCount_ - 1) { in GetRowEndIndexAndHeight()
[all …]
H A Dlist_item_group_layout_algorithm.cpp268 } else if (end == totalItemCount_ - 1) { in SetActiveChildRange()
402 while (currentIndex < totalItemCount_) { in LayoutListItemAll()
409 if (currentIndex < (totalItemCount_ - 1)) { in LayoutListItemAll()
439 if (totalItemCount_ <= 0) { in MeasureListItem()
450 int32_t endIndex = totalItemCount_ - 1; in MeasureListItem()
468 jumpIndex_ = totalItemCount_ - 1; in MeasureListItem()
493 if (startIndex >= totalItemCount_) { in MeasureListItem()
494 startIndex = totalItemCount_ - 1; in MeasureListItem()
1000 if (GetEndIndex() == totalItemCount_ - 1) { in AdjustItemPosition()
1288 if (totalItemCount_ == 0 || childrenSize_) { in GetLayoutInfo()
[all …]
H A Dlist_layout_algorithm.cpp120 totalItemCount_ = layoutWrapper->GetTotalChildCount(); in Measure()
123 childrenSize_->ResizeChildrenSize(totalItemCount_); in Measure()
126 if (totalItemCount_ == 0) { in Measure()
147 if (totalItemCount_ > 0) { in Measure()
665 if (GetEndIndex() == totalItemCount_ - 1) { in UpdateSnapCenterContentOffset()
675 jumpIndex_ = totalItemCount_ - 1; in CheckJumpValid()
773 targetIndex_ = totalItemCount_ - 1; in MeasureList()
788 jumpIndex_ = totalItemCount_ - 1; in MeasureList()
958 if (currentIndex + 1 >= totalItemCount_) { in LayoutALineForward()
1799 return totalItemCount_ - 1; in GetMidIndex()
[all …]
H A Dlist_item_group_layout_algorithm.h151 tmpIndex = tmpIndex >= totalItemCount_ ? totalItemCount_ - 1 : tmpIndex; in GetLanesCeil()
239 if (GetEndIndex() == totalItemCount_ - 1) { in GetEndPosition()
261 if (GetCacheEndIndex() == totalItemCount_ - 1) { in GetCacheEndPosition()
269 return totalItemCount_; in GetTotalItemCount()
465 int32_t totalItemCount_ = 0; variable
H A Dlist_height_offset_calculator.h93 totalItemCount_++; in CalculateFrameNode()
228 if (totalItemCount_ > 0) { in GetAverageItemHeight()
229 return totalItemHeight_ / totalItemCount_; in GetAverageItemHeight()
257 float totalItemCount_ = 0.0f; variable
H A Dlist_item_group_paint_method.h54 totalItemCount_ = listItemGroupPaintInfo.totalItemCount; in DECLARE_ACE_TYPE()
90 int32_t totalItemCount_ = 0; variable
H A Dlist_paint_method.h79 totalItemCount_ = totalItemCount; in SetTotalItemCount()
133 int32_t totalItemCount_ = 0; variable
H A Dlist_item_group_paint_method.cpp73 if (!lastLineIndex.empty() && *lastLineIndex.rbegin() < totalItemCount_ - 1) { in UpdateDividerList()
76 if (index + info.lanes >= totalItemCount_) { in UpdateDividerList()
H A Dlist_layout_algorithm.h230 return totalItemCount_ - 1; in GetMaxListItemIndex()
294 if (GetEndIndex() == totalItemCount_ - 1) { in GetEndPosition()
565 int32_t totalItemCount_ = 0; variable
H A Dlist_paint_method.cpp66 if (!divider_.strokeWidth.IsValid() || totalItemCount_ <= 0 || in UpdateContentModifier()
85 .totalItemCount = totalItemCount_, in UpdateContentModifier()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/stepper/
H A Drender_stepper.cpp52 if (index >= 0 && index < totalItemCount_) { in Update()
57 currentIndex_ = totalItemCount_ - 1; in Update()
365 if (totalItemCount_ == 0) { in UpdateButtonStatus()
399 if (totalItemCount_ == 1) { in LoadDefaultButtonStatus()
405 } else if (totalItemCount_ > 1) { in LoadDefaultButtonStatus()
658 if (index >= totalItemCount_) { in GetPrevIndex()
659 index = totalItemCount_ - 1; in GetPrevIndex()
680 if (index >= totalItemCount_) { in GetNextIndex()
681 index = totalItemCount_ - 1; in GetNextIndex()
704 if (index >= totalItemCount_) { in StepperTo()
[all …]
H A Drender_stepper.h137 int32_t totalItemCount_ = 0; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_layout_algorithm.cpp138 loopIndex = loopIndex + totalItemCount_; in GetLoopIndex()
140 loopIndex %= totalItemCount_; in GetLoopIndex()
192 if (totalItemCount_ == 0) { in Measure()
215 if (totalItemCount_ > 0) { in Measure()
251 std::min(cachedCount_, totalItemCount_ - 1 - endIndex)); in Measure()
269 std::min(cachedCount_, totalItemCount_ - 1 - startIndex)); in Measure()
566 if ((currentIndex + 1 >= totalItemCount_ && !isLoop_) || in LayoutForwardItem()
567 (static_cast<int32_t>(itemPosition_.size()) >= totalItemCount_)) { in LayoutForwardItem()
1449 for (auto i = startIndex; i < totalItemCount_; ++i) { in CheckCachedItem()
1468 if (endIndex < totalItemCount_) { in CheckCachedItem()
[all …]
H A Dswiper_layout_algorithm.h100 totalItemCount_ = totalItemCount; in SetTotalItemCount()
170 if (GetEndIndex() == totalItemCount_ - 1 && !isLoop_) { in GetEndPosition()
375 int32_t totalItemCount_ = 0; variable
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_layout_test_ng.cpp629 swiperLayoutAlgorithm->totalItemCount_ = 2;
794 swiperLayoutAlgorithm->totalItemCount_ = 3;
830 swiperLayoutAlgorithm->totalItemCount_ = 2;
999 swiperLayoutAlgorithm->totalItemCount_ = 2;
1108 swiperLayoutAlgorithm->totalItemCount_ = 2;
1148 swiperLayoutAlgorithm->totalItemCount_ = 1;
1543 swiperLayoutAlgorithm->totalItemCount_ = 2;
1625 swiperLayoutAlgorithm->totalItemCount_ = 3;
1665 swiperPatternAlgorithm->totalItemCount_ = 0;
1674 swiperPatternAlgorithm->totalItemCount_ = 10;
[all …]