/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/ |
H A D | water_flow_segment_common_test.cpp | 50 EXPECT_EQ(info_->startIndex_, 0); 72 EXPECT_EQ(info_->startIndex_, 0); 94 EXPECT_EQ(info_->startIndex_, 0); 105 EXPECT_EQ(info_->startIndex_, 19); 122 EXPECT_EQ(info_->startIndex_, 19); 127 EXPECT_EQ(info_->startIndex_, 63); 150 EXPECT_EQ(info_->startIndex_, 2); 165 EXPECT_EQ(info_->startIndex_, 2); 252 EXPECT_EQ(info_->startIndex_, 1); 264 EXPECT_EQ(info_->startIndex_, 0); [all …]
|
H A D | water_flow_segment_layout_test.cpp | 181 EXPECT_EQ(info->startIndex_, 0); 188 EXPECT_EQ(info->startIndex_, 4); 194 EXPECT_EQ(info->startIndex_, 4); 337 EXPECT_EQ(info->startIndex_, 1); 378 EXPECT_EQ(info->startIndex_, 1); 396 EXPECT_EQ(info->startIndex_, 5); 424 EXPECT_EQ(info->startIndex_, 0); 464 EXPECT_EQ(info->startIndex_, 0); 480 EXPECT_EQ(info->startIndex_, 1); 493 EXPECT_EQ(info->startIndex_, 1); [all …]
|
H A D | water_flow_segment_integrated.cpp | 54 EXPECT_EQ(info->startIndex_, 0); 59 EXPECT_EQ(info->startIndex_, 19); 72 EXPECT_EQ(info->startIndex_, 19); 79 EXPECT_EQ(info->startIndex_, 63); 108 EXPECT_EQ(info->startIndex_, 2); 123 EXPECT_EQ(info->startIndex_, 2); 132 EXPECT_EQ(info->startIndex_, 14); 201 EXPECT_EQ(info->startIndex_, 1); 215 EXPECT_EQ(info->startIndex_, 0); 241 EXPECT_EQ(info->startIndex_, 3); [all …]
|
H A D | water_flow_sw_layout_test.cpp | 60 EXPECT_EQ(info_->startIndex_, 0); 101 EXPECT_EQ(info_->startIndex_, 0); 109 EXPECT_EQ(info_->startIndex_, 0); 132 EXPECT_EQ(info_->startIndex_, 99); 140 EXPECT_EQ(info_->startIndex_, 95); 155 EXPECT_EQ(info_->startIndex_, 94); 179 EXPECT_EQ(info_->startIndex_, 5); 194 EXPECT_EQ(info_->startIndex_, 5); 212 EXPECT_EQ(info_->startIndex_, 5); 221 EXPECT_EQ(info_->startIndex_, 5); [all …]
|
H A D | water_flow_scroller_test_ng.cpp | 95 EXPECT_EQ(pattern_->layoutInfo_->startIndex_, 0); 106 EXPECT_EQ(pattern_->layoutInfo_->startIndex_, 1); 117 EXPECT_EQ(pattern_->layoutInfo_->startIndex_, 11); 128 EXPECT_EQ(pattern_->layoutInfo_->startIndex_, 7); 529 EXPECT_EQ(pattern_->layoutInfo_->startIndex_, 0); 547 EXPECT_EQ(pattern_->layoutInfo_->startIndex_, 0); 553 EXPECT_EQ(pattern_->layoutInfo_->startIndex_, 7); 559 EXPECT_EQ(pattern_->layoutInfo_->startIndex_, 3); 648 EXPECT_EQ(info->startIndex_, 0); 654 EXPECT_EQ(info->startIndex_, 0); [all …]
|
H A D | water_flow_regular_test.cpp | 38 EXPECT_EQ(info->startIndex_, 0); 98 EXPECT_EQ(info->startIndex_, 0); 113 EXPECT_EQ(info->startIndex_, 3); 118 EXPECT_EQ(info->startIndex_, 3); 180 EXPECT_TRUE(info->startIndex_ >= info->endIndex_); 201 EXPECT_EQ(info->startIndex_, 0); 235 EXPECT_EQ(info->startIndex_, 0); 336 EXPECT_EQ(info->startIndex_, 0); 350 EXPECT_EQ(info->startIndex_, 36);
|
H A D | water_flow_top_down_test.cpp | 337 EXPECT_EQ(info->startIndex_, 43); 343 EXPECT_EQ(info->startIndex_, 43); 369 EXPECT_EQ(info->startIndex_, 0); 374 EXPECT_EQ(info->startIndex_, 0); 510 EXPECT_EQ(info->startIndex_, 0); 521 EXPECT_EQ(info->startIndex_, 31); 632 EXPECT_EQ(info->startIndex_, 28); 644 EXPECT_EQ(info->startIndex_, 24);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/ |
H A D | lazy_layout_wrapper_builder.cpp | 67 …((startIndex_ && index < startIndex_.value() - 1) || (endIndex_ && index > endIndex_.value() + 1))… in OnGetOrCreateWrapperByIndex() 68 if (index > startIndex_.value()) { in OnGetOrCreateWrapperByIndex() 82 if (!startIndex_) { in OnGetOrCreateWrapperByIndexLegacy() 83 startIndex_ = index; in OnGetOrCreateWrapperByIndexLegacy() 86 if ((index >= startIndex_.value()) && (index <= endIndex_.value())) { in OnGetOrCreateWrapperByIndexLegacy() 88 std::advance(iter, index - startIndex_.value()); in OnGetOrCreateWrapperByIndexLegacy() 91 if ((index < (startIndex_.value() - 1)) || (index > (endIndex_.value() + 1))) { in OnGetOrCreateWrapperByIndexLegacy() 133 if (index == (startIndex_.value() - 1)) { in OnGetOrCreateWrapperByIndexLegacy() 135 startIndex_ = index; in OnGetOrCreateWrapperByIndexLegacy() 183 startIndex_ = 0; in OnExpandChildLayoutWrapper()
|
H A D | lazy_for_each_builder.h | 154 startIndex_ = -1; in GetItems() 175 if (startIndex_ == -1) { in GetItems() 176 startIndex_ = index; in GetItems() 183 startIndex_ = index; in GetItems() 347 startIndex_ > endIndex_ + i) { in CheckCacheIndex() 360 if ((startIndex_ <= endIndex_ && startIndex_ >= i) || in CheckCacheIndex() 361 startIndex_ > endIndex_ + i) { in CheckCacheIndex() 367 if (startIndex_ >= i) { in CheckCacheIndex() 542 startIndex_ = cachedItems_.begin()->first; in GetAllChildren() 549 startIndex_ = index; in GetAllChildren() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/common/ |
H A D | element_proxy.cpp | 81 startIndex_ = startIndex; in Update() 110 startIndex_ = startIndex; in UpdateForPartialUpdate() 182 startIndex_ = startIndex; in UpdateIndex() 353 startIndex_ = startIndex; in UpdateIndex() 419 startIndex_ = startIndex; in Update() 510 startIndex_ = startIndex; in Update() 604 startIndex_ = startIndex; in Update() 626 startIndex_ = startIndex; in UpdateIndex() 1010 startIndex_ = startIndex; in UpdateIndex() 1104 startIndex_ = startIndex; in Update() [all …]
|
H A D | element_proxy.h | 64 return (index >= startIndex_) && (index < startIndex_ + count_); in IndexInRange() 93 size_t startIndex_ = INVALID_INDEX; variable
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/ |
H A D | layout_info_test.cpp | 160 info.startIndex_ = 8; 168 info.startIndex_ = 26; 193 info.startIndex_ = 15; 218 info.startIndex_ = 20; 247 info.startIndex_ = 0; 251 info.startIndex_ = 2; 255 info.startIndex_ = 3; 259 info.startIndex_ = 5; 263 info.startIndex_ = 8; 289 info.startIndex_ = 0; [all …]
|
/ohos5.0/foundation/ai/ai_engine/services/common/platform/os_wrapper/feature/source/ |
H A D | slide_window_processor.cpp | 37 startIndex_(0), in SlideWindowProcessor() 76 startIndex_ = initIndex_; in Init() 126 …errno_t retCode = memcpy_s(workBuffer_ + startIndex_, bufferSize_ - startIndex_, input.data, input… in Process() 133 startIndex_ += stepSize_; in Process() 137 if (bufferSize_ - startIndex_ < stepSize_) { in Process() 143 startIndex_ = initIndex_; in Process()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/list/ |
H A D | render_list_item_group.cpp | 131 size_t curIndex = startIndex_; in RecycleStartCacheItems() 145 startIndex_ = curIndex + lanes; in RecycleStartCacheItems() 177 size_t curIndex = startIndex_; in LayoutOrRecycleCurrentItems() 207 size_t newIndex = startIndex_ + items_.size(); in RequestNewItemsAtEnd() 247 if (startIndex_ >= TotalCount()) { in RequestNewItemsAtStart() 248 count = startIndex_ % lanes_; in RequestNewItemsAtStart() 254 for (; idx < count && startIndex_ - idx > 0; idx++) { in RequestNewItemsAtStart() 268 if (startIndex_ >= TotalCount()) { in RequestNewItemsAtStart() 273 startIndex_ -= idx; in RequestNewItemsAtStart() 282 if ((stickyHeader_ || startIndex_ == 0) && !header_) { in LayoutHeaderFooter() [all …]
|
H A D | render_list.cpp | 472 startIndex_ = std::min(startIndex_, TotalCount()); in RequestNewItemsAtEndForLaneList() 518 startIndex_ = std::min(startIndex_, TotalCount()); in RequestNewItemsAtEnd() 541 for (; startIndex_ > 0; --startIndex_) { in RequestNewItemsAtStartForLaneList() 590 for (; startIndex_ > 0; --startIndex_) { in RequestNewItemsAtStart() 1174 startIndex_ = std::min(startIndex_, TotalCount()); in GetCurMainPosAndMainSize() 1366 size_t curIndex = startIndex_ != 0 ? startIndex_ - 1 : INVALID_CHILD_INDEX; in LayoutOrRecycleCurrentItemsForLaneList() 1430 startIndex_ = std::min(startIndex_, TotalCount()); in LayoutOrRecycleCurrentItemsForLaneList() 1524 curIndex = startIndex_; in LayoutOrRecycleCurrentItemsForCache() 1693 --startIndex_; in OnItemDelete() 1963 if (startIndex_ == 0) { in CalculateMainScrollExtent() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/irregular/ |
H A D | grid_irregular_layout_test.cpp | 204 info.startIndex_ = 3; 256 info.startIndex_ = 0; 376 info.startIndex_ = 5; 405 oldInfo.startIndex_ = 3; 459 oldInfo.startIndex_ = 5; 626 info.startIndex_ = 0; 668 info.startIndex_ = 2; 1105 info.startIndex_ = 5; 1140 info.startIndex_ = 7; 1180 info.startIndex_ = 0; [all …]
|
H A D | grid_layout_range_solver_test.cpp | 256 info.startIndex_ = 2; 291 info.startIndex_ = 0; 328 EXPECT_EQ(info.startIndex_, 85); 332 EXPECT_EQ(info.startIndex_, 2); 360 EXPECT_EQ(info.startIndex_, 22); 414 EXPECT_EQ(info.startIndex_, 0); 444 EXPECT_EQ(info.startIndex_, 29); 452 EXPECT_EQ(info.startIndex_, 28); 462 EXPECT_EQ(info.startIndex_, 21); 596 EXPECT_EQ(info.startIndex_, 0); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_height_offset_calculator.h | 37 startIndex_ = itemPosition.begin()->first; in ListHeightOffsetCalculator() 58 if (currentIndex_ == startIndex_) { in CalculateFrameNode() 74 if (currentIndex_ == startIndex_) { in CalculateFrameNode() 128 if (itor->first == startIndex_ || itor->first == endIndex_) { in GetLazyForEachIndexAverageHeight() 179 if ((endIndex_ < currentIndex_) || (startIndex_ >= currentIndex_ + count)) { in CalculateLazyForEachNode() 191 int32_t startIndex = std::max(currentIndex_, startIndex_); in CalculateLazyForEachNode() 195 if (startIndex == startIndex_) { in CalculateLazyForEachNode() 196 int32_t curr = GetLines(lanes, startIndex_ - currentIndex_); in CalculateLazyForEachNode() 249 int32_t startIndex_ = 0; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/grid/ |
H A D | render_grid_scroll.cpp | 266 if (main < startIndex_) { in SetChildPosition() 688 startIndex_ += count; in LoadForward() 708 if (startIndex_ > 0) { in CalculateViewPort() 717 if (startIndex_ == 0) { in CalculateViewPort() 724 if (startIndex_ == 0) { in CalculateViewPort() 777 if (startIndex_ == 0) { in CalculateViewPort() 913 int32_t main = startIndex_ > 0 ? startIndex_ - 1 : startIndex_; in PerformLayout() 941 if (main >= startIndex_) { in PerformLayout() 1044 startIndex_ = 0; in ClearLayout() 1157 if (index == startIndex_) { in CalculateWholeSize() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/ |
H A D | render_popup_list.cpp | 89 for (size_t newIndex = startIndex_ + items_.size(); curMainPos < endMainPos_; ++newIndex) { in PerformLayout() 92 startIndex_ = std::min(startIndex_, datas_.size()); in PerformLayout() 108 for (; currentOffset_ > startMainPos_ && startIndex_ > 0; --startIndex_) { in PerformLayout() 109 auto child = RequestAndLayoutNewItem(startIndex_ - 1, innerLayout); in PerformLayout() 228 selected = index + static_cast<int32_t>(startIndex_); in CalTouchPoint() 257 size_t curIndex = startIndex_; in LayoutOrRecycleCurrentItems() 268 startIndex_ = curIndex + 1; in LayoutOrRecycleCurrentItems() 289 if (index < startIndex_) { in RequestAndLayoutNewItem()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | layout_wrapper_builder.h | 53 startIndex_ = startIndex; in SetStartIndex() 58 return startIndex_; in GetStartIndex() 86 int32_t startIndex_ = 0; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/sliding_window/ |
H A D | water_flow_layout_info_sw.cpp | 28 startIndex_ = StartIndex(); in Sync() 30 if (startIndex_ > endIndex_) { in Sync() 34 const auto* startLane = GetLane(startIndex_); in Sync() 63 if (startIndex_ == 0) { in CalibrateOffset() 130 if (startIndex_ == 0) { in GetOverScrolledDelta() 323 if (startIndex_ > endIndex_) { in PrepareJump() 327 jumpIndex_ = startIndex_; in PrepareJump() 369 return startIndex_; in StartIndex() 630 auto prevSegIdx = GetSegment(startIndex_); in InitSegmentsForKeepPositionMode() 729 startIndex_ = StartIndex(); in UpdateLanesIndex() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/ |
H A D | water_flow_segmented_layout.cpp | 119 for (int32_t i = std::max(0, info_->startIndex_ - cacheCount); i <= maxIdx; ++i) { in Layout() 126 info_->firstIndex_ = info_->startIndex_; in Layout() 146 info->jumpIndex_ = std::min(info->startIndex_, info->childrenCount_ - 1); in PrepareJump() 148 float itemOffset = (info->itemInfos_.size() <= static_cast<size_t>(info->startIndex_)) in PrepareJump() 150 : info->currentOffset_ + info->itemInfos_[info->startIndex_].mainOffset; in PrepareJump() 159 for (int32_t i = info_->startIndex_; i <= info_->endIndex_; ++i) { in CheckDirtyItem() 327 const int32_t oldStart = info_->startIndex_; in MeasureOnOffset() 334 for (int32_t i = info_->startIndex_; i <= bound; ++i) { in MeasureOnOffset() 352 info_->startIndex_ = 0; in MeasureOnJump() 389 for (int32_t i = info_->startIndex_; i < jumpIdx; ++i) { in MeasureOnJump() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/ |
H A D | grid_scroll_layout_algorithm.cpp | 446 gridLayoutInfo_.startIndex_ = firstItem; in ReloadToStartIndex() 475 gridLayoutInfo_.startIndex_ = firstItem; in ReloadFromUpdateIdxToStartIndex() 549 gridLayoutInfo_.startIndex_ = tempStartIndex; in FillOneLineForwardWithoutUpdatingStartIndex() 1133 …gridLayoutInfo_.startIndex_ = std::clamp(gridLayoutInfo_.startIndex_, 0, gridLayoutInfo_.childrenC… in SkipForwardLines() 1177 …gridLayoutInfo_.startIndex_ = std::clamp(gridLayoutInfo_.startIndex_, 0, gridLayoutInfo_.childrenC… in SkipBackwardLines() 1194 gridLayoutInfo_.startIndex_ = 0; in SkipRegularLines() 1213 gridLayoutInfo_.startIndex_ = in SkipIrregularLines() 1225 auto currentIndex = gridLayoutInfo_.startIndex_; in FillNewLineForward() 1265 gridLayoutInfo_.startIndex_ = currentIndex; in FillNewLineForward() 2047 info_.startIndex_ = subStart_; in ~TempLayoutRange() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_layout_info.cpp | 63 int32_t mainIndex = (i - startIndex_) / crossCount_ + startMainLineIndex_; in MoveItemsBack() 64 int32_t crossIndex = (i - startIndex_) % crossCount_; in MoveItemsBack() 86 int32_t crossIndex = (i - startIndex_) % crossCount_; in MoveItemsForward() 177 auto lines = startIndex_ / crossCount_; in GetCurrentOffsetOfRegularGrid() 208 return startIndex_ * averageHeight - currentOffset_; in GetContentOffset() 294 if (startIndex_ == 0) { in GetContentOffset() 423 startIndex_ = 0; in SkipStartIndexByOffset() 462 startIndex_ = std::min(startIdx, childrenCount_ - 1); in SkipStartIndexByOffset() 536 if (itemIdx >= startIndex_ && itemIdx <= endIndex_) { in TransformAutoScrollAlign() 865 startIndex_ = startLine->second.begin()->second; in UpdateStartIndexForExtralOffset() [all …]
|