/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/grid/ |
H A D | grid_component.h | 92 return cachedCount_; in GetCachedCount() 155 int32_t cachedCount_ { DEFAULT_CACHED_COUNT };
|
H A D | grid_component.cpp | 86 cachedCount_ = cachedCount; in SetCachedCount()
|
H A D | render_grid.cpp | 227 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 D | render_grid.h | 218 int32_t cachedCount_ = 10; // the default value of cached child number. variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/list/ |
H A D | list_component.h | 138 return cachedCount_; in GetCachedCount() 167 cachedCount_ = cachedCount; in SetCachedCount() 545 int32_t cachedCount_ { 1 }; // the default value of cached child number.
|
H A D | grid_layout_manager.h | 66 int32_t cachedCount_ = 1; variable
|
H A D | list_element.cpp | 156 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 D | list_layout_manager.h | 94 int32_t cachedCount_ = 1; variable
|
H A D | grid_layout_manager.cpp | 40 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 D | render_list.h | 183 return cachedCount_; in GetCachedCount() 551 int32_t cachedCount_ = 1; variable
|
H A D | list_element.h | 90 int32_t cachedCount_ = 0; variable
|
H A D | list_layout_manager.cpp | 37 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 D | render_list.cpp | 42 cachedCount_ = list->GetCachedCount(); in Update()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/list/ |
H A D | render_list.cpp | 106 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 D | render_list.h | 475 size_t cachedCount_ = 0; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_layout_algorithm.h | 293 cachedCount_ = cachedCount > realTotalCount_ ? realTotalCount_ : cachedCount; in SetCachedCount() 414 int32_t cachedCount_ = 0; variable
|
H A D | swiper_layout_algorithm.cpp | 250 … 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 D | swiper_pattern.h | 391 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 D | dom_list.h | 154 int32_t cachedCount_ = 0; variable
|
H A D | dom_list.cpp | 46 … [](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 D | render_swiper.h | 306 return cachedCount_; in GetCachedCount() 576 int32_t cachedCount_ = -1; variable
|
H A D | render_swiper.cpp | 255 cachedCount_ = swiper->GetCachedSize(); in Update()
|