/foundation/arkui/ace_engine/frameworks/core/components/grid/ |
H A D | grid_component.cpp | 80 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 D | grid_component.h | 50 void SetCachedCount(int32_t cachedCount);
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_grid_ffi.cpp | 54 void FfiOHOSAceFrameworkGridSetCachedCount(int32_t cachedCount) in FfiOHOSAceFrameworkGridSetCachedCount() argument 56 GridModel::GetInstance()->SetCachedCount(cachedCount); in FfiOHOSAceFrameworkGridSetCachedCount()
|
H A D | cj_grid_ffi.h | 26 CJ_EXPORT void FfiOHOSAceFrameworkGridSetCachedCount(int32_t cachedCount);
|
H A D | cj_list_ffi.cpp | 199 void FfiOHOSAceFrameworkListSetCachedCount(int32_t cachedCount) in FfiOHOSAceFrameworkListSetCachedCount() argument 201 int32_t value = cachedCount < 0 ? 1 : cachedCount; in FfiOHOSAceFrameworkListSetCachedCount()
|
H A D | cj_swiper_ffi.cpp | 159 void FfiOHOSAceFrameworkSwiperSetCachedCount(int32_t cachedCount) in FfiOHOSAceFrameworkSwiperSetCachedCount() argument 161 SwiperModel::GetInstance()->SetCachedCount(cachedCount); in FfiOHOSAceFrameworkSwiperSetCachedCount()
|
H A D | cj_swiper_ffi.h | 59 CJ_EXPORT void FfiOHOSAceFrameworkSwiperSetCachedCount(int32_t cachedCount);
|
H A D | cj_list_ffi.h | 46 CJ_EXPORT void FfiOHOSAceFrameworkListSetCachedCount(int32_t cachedCount);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_lanes_layout_algorithm.cpp | 566 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 D | list_lanes_layout_algorithm.h | 80 int32_t cacheCount, int32_t& cachedCount, int32_t& curIndex) override; 82 int32_t cacheCount, int32_t& cachedCount, int32_t& curIndex) override;
|
H A D | list_model_ng.cpp | 194 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 D | list_model.h | 57 virtual void SetCachedCount(int32_t cachedCount, bool show = false) = 0;
|
/foundation/arkui/ace_engine/frameworks/core/components/list/ |
H A D | list_component.h | 161 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 D | grid_layout_manager.cpp | 149 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 D | grid_layout_manager.h | 62 int32_t viewBegin, int32_t viewEnd, int32_t cachedCount, int32_t& cachedBegin, int32_t& cachedEnd) override;
|
H A D | list_layout_manager.h | 82 void CalculateCachedRange(int32_t viewBegin, int32_t viewEnd, int32_t cachedCount, int32_t& cachedBegin,
|
H A D | list_layout_manager.cpp | 119 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 D | swiper_layout_algorithm.h | 275 void SetCachedCount(int32_t cachedCount) in SetCachedCount() argument 277 cachedCount_ = cachedCount > realTotalCount_ ? realTotalCount_ : cachedCount; in SetCachedCount()
|
H A D | swiper_model_ng.cpp | 125 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 D | grid_model_ng.cpp | 430 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 D | js_water_flow.cpp | 247 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 D | water_flow_layout_algorithm.cpp | 206 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 D | list_model_impl.cpp | 109 void ListModelImpl::SetCachedCount(int32_t cachedCount, bool show) in SetCachedCount() argument 111 JSViewSetProperty(&V2::ListComponent::SetCachedCount, cachedCount); in SetCachedCount()
|
H A D | swiper_model_impl.h | 41 void SetCachedCount(int32_t cachedCount) override;
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | grid_modifier.cpp | 164 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()
|