Home
last modified time | relevance | path

Searched refs:cacheCnt (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/
H A Dgrid_irregular_layout_algorithm.cpp64 SyncPreloadItems(cacheCnt); in Measure()
66 PreloadItems(cacheCnt); in Measure()
86 const int32_t cacheCnt = cacheCount * info.crossCount_; in Layout() local
87 …SetActiveChildRange(std::min(info.startIndex_, info.endIndex_), info.endIndex_, cacheCnt, cacheCnt, in Layout()
89 wrapper_->SetCacheCount(cacheCnt); in Layout()
619 void GridIrregularLayoutAlgorithm::SyncPreloadItems(int32_t cacheCnt) in SyncPreloadItems() argument
621 const int32_t start = std::max(info_.startIndex_ - cacheCnt, 0); in SyncPreloadItems()
622 const int32_t end = std::min(info_.endIndex_ + cacheCnt, info_.childrenCount_ - 1); in SyncPreloadItems()
630 void GridIrregularLayoutAlgorithm::PreloadItems(int32_t cacheCnt) in PreloadItems() argument
633 for (int32_t i = 1; i <= cacheCnt; ++i) { in PreloadItems()
[all …]
H A Dgrid_irregular_layout_algorithm.h151 void PreloadItems(int32_t cacheCnt);
155 void SyncPreloadItems(int32_t cacheCnt);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/
H A Dwater_flow_layout_algorithm.cpp141 const int32_t cacheCnt = layoutProperty->GetCachedCountValue(layoutInfo_->defCachedCount_); in Measure() local
142 layoutWrapper->SetCacheCount(cacheCnt); in Measure()
144 SyncPreloadItems(layoutWrapper, layoutInfo_, cacheCnt); in Measure()
146 PreloadItems(layoutWrapper, layoutInfo_, cacheCnt); in Measure()
H A Dwater_flow_segmented_layout.cpp78 const int32_t cacheCnt = props->GetCachedCountValue(info_->defCachedCount_); in Measure() local
79 wrapper_->SetCacheCount(cacheCnt); in Measure()
81 SyncPreloadItems(wrapper_, info_, cacheCnt); in Measure()
83 PreloadItems(wrapper_, info_, cacheCnt); in Measure()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/
H A Dgrid_scroll_layout_algorithm.cpp26 int32_t startIdx, LayoutWrapper* host, int32_t cacheCnt, std::list<GridPreloadItem>& buildList) in AddCacheItemsInFront() argument
28 for (int32_t i = 1; i <= cacheCnt; ++i) { in AddCacheItemsInFront()
84 const int32_t cacheCnt = static_cast<int32_t>( in Measure() local
86 layoutWrapper->SetCacheCount(cacheCnt); in Measure()
105 … AddCacheItemsInFront(gridLayoutInfo_.startIndex_, layoutWrapper, cacheCnt, predictBuildList_); in Measure()