Home
last modified time | relevance | path

Searched refs:cachedCount (Results 1 - 25 of 52) sorted by relevance

123

/foundation/arkui/ace_engine/frameworks/core/components/grid/
H A Dgrid_component.cpp80 void GridComponent::SetCachedCount(int32_t cachedCount) in SetCachedCount() argument
82 if (cachedCount <= 0) { in SetCachedCount()
83 LOGW("Invalid CachedCount %{public}d", cachedCount); in SetCachedCount()
86 cachedCount_ = cachedCount; in SetCachedCount()
H A Dgrid_component.h50 void SetCachedCount(int32_t cachedCount);
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_grid_ffi.cpp54 void FfiOHOSAceFrameworkGridSetCachedCount(int32_t cachedCount) in FfiOHOSAceFrameworkGridSetCachedCount() argument
56 GridModel::GetInstance()->SetCachedCount(cachedCount); in FfiOHOSAceFrameworkGridSetCachedCount()
H A Dcj_grid_ffi.h26 CJ_EXPORT void FfiOHOSAceFrameworkGridSetCachedCount(int32_t cachedCount);
H A Dcj_list_ffi.cpp199 void FfiOHOSAceFrameworkListSetCachedCount(int32_t cachedCount) in FfiOHOSAceFrameworkListSetCachedCount() argument
201 int32_t value = cachedCount < 0 ? 1 : cachedCount; in FfiOHOSAceFrameworkListSetCachedCount()
H A Dcj_swiper_ffi.cpp159 void FfiOHOSAceFrameworkSwiperSetCachedCount(int32_t cachedCount) in FfiOHOSAceFrameworkSwiperSetCachedCount() argument
161 SwiperModel::GetInstance()->SetCachedCount(cachedCount); in FfiOHOSAceFrameworkSwiperSetCachedCount()
H A Dcj_swiper_ffi.h59 CJ_EXPORT void FfiOHOSAceFrameworkSwiperSetCachedCount(int32_t cachedCount);
H A Dcj_list_ffi.h46 CJ_EXPORT void FfiOHOSAceFrameworkListSetCachedCount(int32_t cachedCount);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_lanes_layout_algorithm.cpp566 int32_t cacheCount, int32_t& cachedCount, int32_t& curIndex) in LayoutCachedForward()
572 while (cachedCount < cacheCount && curIndex <= GetMaxListItemIndex()) { in LayoutCachedForward()
598 auto res = GetLayoutGroupCachedCount(layoutWrapper, wrapper, cacheCount - cachedCount, -1, curIndex, true); in LayoutCachedForward()
599 if (res.forwardCachedCount < res.forwardCacheMax && res.forwardCachedCount < cacheCount - cachedCount) { in LayoutCachedForward()
603 cachedCount += std::max(res.forwardCacheMax, 1); in LayoutCachedForward()
605 cachedCount++; in LayoutCachedForward()
618 int32_t cacheCount, int32_t& cachedCount, int32_t& curIndex) in LayoutCachedBackward()
624 while (cachedCount < cacheCount && curIndex >= 0) { in LayoutCachedBackward()
654 auto res = GetLayoutGroupCachedCount(layoutWrapper, wrapper, -1, cacheCount - cachedCount, curIndex, true); in LayoutCachedBackward()
655 if (res.backwardCachedCount < res.backwardCacheMax && res.backwardCachedCount < cacheCount - cachedCount) { in LayoutCachedBackward()
565 LayoutCachedForward(LayoutWrapper* layoutWrapper, int32_t cacheCount, int32_t& cachedCount, int32_t& curIndex) LayoutCachedForward() argument
617 LayoutCachedBackward(LayoutWrapper* layoutWrapper, int32_t cacheCount, int32_t& cachedCount, int32_t& curIndex) LayoutCachedBackward() argument
[all...]
H A Dlist_lanes_layout_algorithm.h80 int32_t cacheCount, int32_t& cachedCount, int32_t& curIndex) override;
82 int32_t cacheCount, int32_t& cachedCount, int32_t& curIndex) override;
H A Dlist_model_ng.cpp194 void ListModelNG::SetCachedCount(int32_t cachedCount, bool show) in SetCachedCount() argument
196 ACE_UPDATE_LAYOUT_PROPERTY(ListLayoutProperty, CachedCount, cachedCount); in SetCachedCount()
484 void ListModelNG::SetCachedCount(FrameNode* frameNode, int32_t cachedCount) in SetCachedCount() argument
486 ACE_UPDATE_NODE_LAYOUT_PROPERTY(ListLayoutProperty, CachedCount, cachedCount, frameNode); in SetCachedCount()
491 int32_t cachedCount = 1; in GetCachedCount() local
492 ACE_GET_NODE_LAYOUT_PROPERTY_WITH_DEFAULT_VALUE(ListLayoutProperty, CachedCount, cachedCount, frameNode, 1); in GetCachedCount()
493 return cachedCount; in GetCachedCount()
H A Dlist_model.h57 virtual void SetCachedCount(int32_t cachedCount, bool show = false) = 0;
/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dlist_component.h161 void SetCachedCount(int32_t cachedCount) in SetCachedCount() argument
163 if (cachedCount <= 0) { in SetCachedCount()
164 LOGE("Invalid CachedCount %{public}d", cachedCount); in SetCachedCount()
167 cachedCount_ = cachedCount; in SetCachedCount()
H A Dgrid_layout_manager.cpp149 int32_t viewBegin, int32_t viewEnd, int32_t cachedCount, int32_t& cachedBegin, int32_t& cachedEnd) in CalculateCachedRange()
151 cachedBegin = (viewBegin - cachedCount > 0) ? (viewBegin - cachedCount) : 0; in CalculateCachedRange()
153 cachedEnd = (viewEnd + cachedCount > length_) ? length_ : viewEnd + cachedCount; in CalculateCachedRange()
155 cachedEnd = viewEnd + cachedCount; in CalculateCachedRange()
148 CalculateCachedRange( int32_t viewBegin, int32_t viewEnd, int32_t cachedCount, int32_t& cachedBegin, int32_t& cachedEnd) CalculateCachedRange() argument
H A Dgrid_layout_manager.h62 int32_t viewBegin, int32_t viewEnd, int32_t cachedCount, int32_t& cachedBegin, int32_t& cachedEnd) override;
H A Dlist_layout_manager.h82 void CalculateCachedRange(int32_t viewBegin, int32_t viewEnd, int32_t cachedCount, int32_t& cachedBegin,
H A Dlist_layout_manager.cpp119 int32_t viewBegin, int32_t viewEnd, int32_t cachedCount, int32_t& cachedBegin, int32_t& cachedEnd) in CalculateCachedRange()
121 cachedBegin = (viewBegin - cachedCount > 0) ? (viewBegin - cachedCount) : 0; in CalculateCachedRange()
123 cachedEnd = (viewEnd + cachedCount > length_) ? length_ : viewEnd + cachedCount; in CalculateCachedRange()
125 cachedEnd = viewEnd + cachedCount; in CalculateCachedRange()
118 CalculateCachedRange( int32_t viewBegin, int32_t viewEnd, int32_t cachedCount, int32_t& cachedBegin, int32_t& cachedEnd) CalculateCachedRange() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_layout_algorithm.h275 void SetCachedCount(int32_t cachedCount) in SetCachedCount() argument
277 cachedCount_ = cachedCount > realTotalCount_ ? realTotalCount_ : cachedCount; in SetCachedCount()
H A Dswiper_model_ng.cpp125 void SwiperModelNG::SetCachedCount(int32_t cachedCount) in SetCachedCount() argument
131 pattern->SetCachedCount(cachedCount); in SetCachedCount()
133 ACE_UPDATE_LAYOUT_PROPERTY(SwiperLayoutProperty, CachedCount, cachedCount); in SetCachedCount()
485 void SwiperModelNG::SetCachedCount(FrameNode* frameNode, int32_t cachedCount) in SetCachedCount() argument
490 pattern->SetCachedCount(cachedCount); in SetCachedCount()
492 ACE_UPDATE_NODE_LAYOUT_PROPERTY(SwiperLayoutProperty, CachedCount, cachedCount, frameNode); in SetCachedCount()
497 int32_t cachedCount = 1; in GetCachedCount() local
498 ACE_GET_NODE_LAYOUT_PROPERTY_WITH_DEFAULT_VALUE(SwiperLayoutProperty, CachedCount, cachedCount, frameNode, 1); in GetCachedCount()
499 return cachedCount; in GetCachedCount()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_model_ng.cpp430 void GridModelNG::SetCachedCount(FrameNode* frameNode, int32_t cachedCount) in SetCachedCount() argument
432 ACE_UPDATE_NODE_LAYOUT_PROPERTY(GridLayoutProperty, CachedCount, cachedCount, frameNode); in SetCachedCount()
562 int32_t cachedCount = 1; in GetCachedCount() local
563 ACE_GET_NODE_LAYOUT_PROPERTY_WITH_DEFAULT_VALUE(GridLayoutProperty, CachedCount, cachedCount, frameNode, 1); in GetCachedCount()
564 return cachedCount; in GetCachedCount()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_water_flow.cpp247 JSClass<JSWaterFlow>::StaticMethod("cachedCount", &JSWaterFlow::SetCachedCount); in JSBind()
455 int32_t cachedCount = 1; in SetCachedCount() local
459 ParseJsInt32(jsValue, cachedCount); in SetCachedCount()
460 if (cachedCount < 0) { in SetCachedCount()
461 cachedCount = 1; in SetCachedCount()
468 WaterFlowModel::GetInstance()->SetCachedCount(cachedCount, show); in SetCachedCount()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/
H A Dwater_flow_layout_algorithm.cpp206 const int32_t cachedCount = layoutProperty->GetCachedCountValue(1); in Layout() local
219 if (item.first < layoutInfo_->startIndex_ - cachedCount || in Layout()
220 item.first > layoutInfo_->endIndex_ + cachedCount) { in Layout()
264 layoutInfo_->NodeIdx(layoutInfo_->endIndex_), cachedCount, cachedCount, in Layout()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dlist_model_impl.cpp109 void ListModelImpl::SetCachedCount(int32_t cachedCount, bool show) in SetCachedCount() argument
111 JSViewSetProperty(&V2::ListComponent::SetCachedCount, cachedCount); in SetCachedCount()
H A Dswiper_model_impl.h41 void SetCachedCount(int32_t cachedCount) override;
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dgrid_modifier.cpp164 void SetGridCachedCount(ArkUINodeHandle node, int32_t cachedCount) in SetGridCachedCount() argument
168 GridModelNG::SetCachedCount(frameNode, cachedCount); in SetGridCachedCount()
426 void SetCachedCount(ArkUINodeHandle node, ArkUI_Int32 cachedCount) in SetCachedCount() argument
430 GridModelNG::SetCachedCount(frameNode, cachedCount); in SetCachedCount()

Completed in 20 milliseconds

123