/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_position_map.h | 241 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 D | list_item_group_layout_algorithm.cpp | 268 } 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 D | list_layout_algorithm.cpp | 120 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 D | list_item_group_layout_algorithm.h | 151 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 D | list_height_offset_calculator.h | 93 totalItemCount_++; in CalculateFrameNode() 228 if (totalItemCount_ > 0) { in GetAverageItemHeight() 229 return totalItemHeight_ / totalItemCount_; in GetAverageItemHeight() 257 float totalItemCount_ = 0.0f; variable
|
H A D | list_item_group_paint_method.h | 54 totalItemCount_ = listItemGroupPaintInfo.totalItemCount; in DECLARE_ACE_TYPE() 90 int32_t totalItemCount_ = 0; variable
|
H A D | list_paint_method.h | 79 totalItemCount_ = totalItemCount; in SetTotalItemCount() 133 int32_t totalItemCount_ = 0; variable
|
H A D | list_item_group_paint_method.cpp | 73 if (!lastLineIndex.empty() && *lastLineIndex.rbegin() < totalItemCount_ - 1) { in UpdateDividerList() 76 if (index + info.lanes >= totalItemCount_) { in UpdateDividerList()
|
H A D | list_layout_algorithm.h | 230 return totalItemCount_ - 1; in GetMaxListItemIndex() 294 if (GetEndIndex() == totalItemCount_ - 1) { in GetEndPosition() 565 int32_t totalItemCount_ = 0; variable
|
H A D | list_paint_method.cpp | 66 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 D | render_stepper.cpp | 52 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 D | render_stepper.h | 137 int32_t totalItemCount_ = 0; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_layout_algorithm.cpp | 138 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 D | swiper_layout_algorithm.h | 100 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 D | swiper_layout_test_ng.cpp | 629 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 …]
|