Home
last modified time | relevance | path

Searched refs:cachedCount_ (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/grid/
H A Dgrid_component.h92 return cachedCount_; in GetCachedCount()
155 int32_t cachedCount_ { DEFAULT_CACHED_COUNT };
H A Dgrid_component.cpp86 cachedCount_ = cachedCount; in SetCachedCount()
H A Drender_grid.cpp227 cachedCount_ = grid->GetCachedCount(); in Update()
813 callback_(0, std::min(cachedCount_, maxCount_)); in RequestChildIfNeeded()
842 if ((cachedNum < cachedCount_)) { in RequestChildIfNeeded()
845 callback_(index_ + count_, std::min(cachedCount_ - cachedNum, remain)); in RequestChildIfNeeded()
H A Drender_grid.h218 int32_t cachedCount_ = 10; // the default value of cached child number. variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dlist_component.h138 return cachedCount_; in GetCachedCount()
167 cachedCount_ = cachedCount; in SetCachedCount()
545 int32_t cachedCount_ { 1 }; // the default value of cached child number.
H A Dgrid_layout_manager.h66 int32_t cachedCount_ = 1; variable
H A Dlist_element.cpp156 if (index >= preBuildCount_ - cachedCount_ && requestItemAsync_) { in BuildListDataFromChild()
157 RetrieveListData(0, preBuildCount_ + cachedCount_); in BuildListDataFromChild()
832 RetrieveListData(0, cachedCount_); in PerformBuild()
836 RetrieveListData(0, cachedCount_); in PerformBuild()
854 cachedCount_ = list->GetCachedCount(); in Update()
H A Dlist_layout_manager.h94 int32_t cachedCount_ = 1; variable
H A Dgrid_layout_manager.cpp40 cachedCount_ = renderList_.GetCachedCount(); in Update()
171 CalculateCachedRange(viewBegin, viewEnd, cachedCount_, cachedBegin, cachedEnd); in RequestMoreItemsIfNeeded()
175 …CalculateCachedRange(viewBegin, viewEnd, 2 * cachedCount_, requestBegin, requestEnd); // 2: double… in RequestMoreItemsIfNeeded()
H A Drender_list.h183 return cachedCount_; in GetCachedCount()
551 int32_t cachedCount_ = 1; variable
H A Dlist_element.h90 int32_t cachedCount_ = 0; variable
H A Dlist_layout_manager.cpp37 cachedCount_ = renderList_.GetCachedCount(); in Update()
142 CalculateCachedRange(viewBegin, viewEnd, cachedCount_, cachedBegin, cachedEnd); in RequestMoreItemsIfNeeded()
146 …CalculateCachedRange(viewBegin, viewEnd, 2 * cachedCount_, requestBegin, requestEnd); // 2: double… in RequestMoreItemsIfNeeded()
H A Drender_list.cpp42 cachedCount_ = list->GetCachedCount(); in Update()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list.cpp106 cachedCount_ = static_cast<size_t>(component_->GetCachedCount()); in Update()
108 LOGI("cached count: %{public}zu", cachedCount_); in Update()
507 if (cachedCount_ != 0) { in RequestNewItemsAtEnd()
591 if (cachedCount_ != 0) { in RequestNewItemsAtStart()
1163 if (cachedCount_ != 0) { in GetCurMainPosAndMainSize()
1164 if (endCachedCount_ >= cachedCount_) { in GetCurMainPosAndMainSize()
1473 if (startCachedCount_ >= cachedCount_) { in BackwardLayoutForCache()
1493 if (recycleAll || endCachedCount_ >= cachedCount_) { in LayoutOrRecycleCurrentItemsForCache()
1545 if (cachedCount_ != 0) { in LayoutOrRecycleCurrentItems()
3087 … .startCacheCount = (cachedCount_ > 0 && !isLaneList_) ? cachedCount_ - startCachedCount_ : 0, in LayoutChild()
[all …]
H A Drender_list.h475 size_t cachedCount_ = 0; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_layout_algorithm.h293 cachedCount_ = cachedCount > realTotalCount_ ? realTotalCount_ : cachedCount; in SetCachedCount()
414 int32_t cachedCount_ = 0; variable
H A Dswiper_layout_algorithm.cpp250 … layoutWrapper->SetActiveChildRange(startIndex, endIndex, std::min(cachedCount_, startIndex), in Measure()
251 std::min(cachedCount_, totalItemCount_ - 1 - endIndex)); in Measure()
253 layoutWrapper->SetActiveChildRange(startIndex, endIndex, cachedCount_, cachedCount_); in Measure()
268 … layoutWrapper->SetActiveChildRange(endIndex, startIndex, std::min(cachedCount_, endIndex), in Measure()
269 std::min(cachedCount_, totalItemCount_ - 1 - startIndex)); in Measure()
271 layoutWrapper->SetActiveChildRange(endIndex, startIndex, cachedCount_, cachedCount_); in Measure()
1453 auto cachedCount = cachedCount_; in CheckCachedItem()
H A Dswiper_pattern.h391 if (cachedCount_.has_value() && cachedCount_.value() != cachedCount) { in SetCachedCount()
394 cachedCount_ = cachedCount; in SetCachedCount()
1084 std::optional<int32_t> cachedCount_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_list.h154 int32_t cachedCount_ = 0; variable
H A Ddom_list.cpp46 … [](DOMList& list, const std::string& val) { list.cachedCount_ = StringUtils::StringToInt(val); }, in SetSpecializedAttr()
354 if (cachedCount_ > 0) { in CreateOrUpdateList()
355 listComponent_->SetCachedCount(cachedCount_); in CreateOrUpdateList()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Drender_swiper.h306 return cachedCount_; in GetCachedCount()
576 int32_t cachedCount_ = -1; variable
H A Drender_swiper.cpp255 cachedCount_ = swiper->GetCachedSize(); in Update()