Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_prefetcher/src/prefetcher/
H A DFetchingRangeEvaluator.ts50 private readonly prefetchCount: PrefetchCount,
83 …een=${this.itemsOnScreen.meanValue}, prefetchCountCurrentLimit=${this.prefetchCount.currentMaxItem…
87 this.prefetchCount.prefetchCountValue = this.evaluatePrefetchCount('visible-area-changed');
88 const rangeToFetch = this.prefetchCount.getRangeToFetch(this.totalItems);
103 …${this.prefetchRangeRatio.minRatio}, prefetchCountCurrentLimit=${this.prefetchCount.currentMaxItem…
109 this.prefetchCount.prefetchCountValue = this.evaluatePrefetchCount('resolved', maxRatioChanged);
110 const rangeToFetch = this.prefetchCount.getRangeToFetch(this.totalItems);
115 …let ratio = this.prefetchRangeRatio.calculateRatio(this.prefetchCount.prefetchCountValue, this.tot…
116 let evaluatedPrefetchCount = this.prefetchCount.getPrefetchCountByRatio(ratio);
120 evaluatedPrefetchCount = this.prefetchCount.getPrefetchCountByRatio(ratio);
[all …]
H A DPrefetchRangeRatio.ts186 calculateRatio(prefetchCount: number, totalCount: number): number {
194 start = Math.max(0, visibleRange.start - prefetchCount);
195 end = Math.min(totalCount, visibleRange.end + prefetchCount);
198 start = Math.max(0, visibleRange.start - prefetchCount);
199 end = Math.min(totalCount, visibleRange.end + Math.round(0.5 * prefetchCount));
202 start = Math.max(0, visibleRange.start - Math.round(0.5 * prefetchCount));
203 end = Math.min(totalCount, visibleRange.end + prefetchCount);
H A DPrefetchCount.ts62 const prefetchCount = minItems + Math.ceil(ratio * (this.currentMaxItems - minItems));
64 …his.itemsOnScreen.speed}, minItems: ${minItems}, ratio: ${ratio}, prefetchCount: ${prefetchCount}`,
66 return prefetchCount;
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsPrefetcher.js22 const prefetchCount = new PrefetchCount(itemsOnScreen, prefetchRangeRatio);
391 return prefetchCount;
428 this.prefetchCount = prefetchCount;
461 const rangeToFetch = this.prefetchCount.getRangeToFetch(this.totalItems);
477 const rangeToFetch = this.prefetchCount.getRangeToFetch(this.totalItems);
497 return this.prefetchCount.prefetchCountValue;
677 calculateRatio(prefetchCount, totalCount) {
683 start = Math.max(0, visibleRange.start - prefetchCount);
684 end = Math.min(totalCount, visibleRange.end + prefetchCount);
687 start = Math.max(0, visibleRange.start - prefetchCount);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_prefetcher/src/
H A DBasicPrefetcher.ts25 const prefetchCount = new PrefetchCount(itemsOnScreen, prefetchRangeRatio);
26 …const evaluator = new FetchingRangeEvaluator(itemsOnScreen, prefetchCount, prefetchRangeRatio, fet…