Home
last modified time | relevance | path

Searched refs:mGapWorker (Results 1 – 7 of 7) sorted by relevance

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DRecyclerViewCacheTest.java167 mRecyclerView.mGapWorker.prefetch(RecyclerView.FOREVER_NS); in prefetchReusesCacheItems()
202 mRecyclerView.mGapWorker.prefetch(RecyclerView.FOREVER_NS); in prefetchItemsNotEvictedWithInserts()
259 mRecyclerView.mGapWorker.prefetch(RecyclerView.FOREVER_NS); in prefetchItemsNotEvictedOnScroll()
300 mRecyclerView.mGapWorker.prefetch(RecyclerView.FOREVER_NS); in prefetchIsComputingLayout()
339 mRecyclerView.mGapWorker.prefetch(RecyclerView.FOREVER_NS); in prefetchAfterOrientationChange()
450 mRecyclerView.mGapWorker.prefetch(deadlineNs); in prefetchItemsRespectDeadline()
460 mRecyclerView.mGapWorker.prefetch(RecyclerView.FOREVER_NS); in prefetchItemsRespectDeadline()
515 mRecyclerView.mGapWorker.prefetch(deadlineNs); in partialPrefetchAvoidsViewRecycledCallback()
700 mRecyclerView.mGapWorker.prefetch(RecyclerView.FOREVER_NS); in prefetchItemsSkipAnimations()
878 mRecyclerView.mGapWorker.prefetch(RecyclerView.FOREVER_NS); in nestedPrefetchSimple()
[all …]
DLinearLayoutManagerCacheTest.java92 mRecyclerView.mGapWorker.postFromTraversal(mRecyclerView, mDx, mDy); in cacheAndPrefetch()
95 mRecyclerView.mGapWorker.mPostTimeNs += TimeUnit.SECONDS.toNanos(5); in cacheAndPrefetch()
DGridLayoutManagerCacheTest.java103 mRecyclerView.mGapWorker.postFromTraversal(mRecyclerView, mDx, mDy); in cacheAndPrefetch()
106 mRecyclerView.mGapWorker.mPostTimeNs += TimeUnit.SECONDS.toNanos(5); in cacheAndPrefetch()
DStaggeredGridLayoutManagerCacheTest.java117 mRecyclerView.mGapWorker.postFromTraversal(mRecyclerView, mDx, mDy); in cacheAndPrefetch()
120 mRecyclerView.mGapWorker.mPostTimeNs += TimeUnit.SECONDS.toNanos(5); in cacheAndPrefetch()
DGapWorkerTest.java179 recyclerView.mGapWorker.prefetch(RecyclerView.FOREVER_NS); in gapWorkerWithoutLayout()
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java436 GapWorker mGapWorker; field in RecyclerView
2445 mGapWorker = GapWorker.sGapWorker.get(); in onAttachedToWindow()
2446 if (mGapWorker == null) { in onAttachedToWindow()
2447 mGapWorker = new GapWorker(); in onAttachedToWindow()
2459 mGapWorker.mFrameIntervalNs = (long) (1000000000 / refreshRate); in onAttachedToWindow()
2460 GapWorker.sGapWorker.set(mGapWorker); in onAttachedToWindow()
2462 mGapWorker.add(this); in onAttachedToWindow()
2483 mGapWorker.remove(this); in onDetachedFromWindow()
2484 mGapWorker = null; in onDetachedFromWindow()
2837 if (mGapWorker != null && (dx != 0 || dy != 0)) { in onTouchEvent()
[all …]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
DRecyclerView.java498 GapWorker mGapWorker; field in RecyclerView
2754 mGapWorker = GapWorker.sGapWorker.get(); in onAttachedToWindow()
2755 if (mGapWorker == null) { in onAttachedToWindow()
2756 mGapWorker = new GapWorker(); in onAttachedToWindow()
2768 mGapWorker.mFrameIntervalNs = (long) (1000000000 / refreshRate); in onAttachedToWindow()
2769 GapWorker.sGapWorker.set(mGapWorker); in onAttachedToWindow()
2771 mGapWorker.add(this); in onAttachedToWindow()
2790 if (ALLOW_THREAD_GAP_WORK && mGapWorker != null) { in onDetachedFromWindow()
2792 mGapWorker.remove(this); in onDetachedFromWindow()
2793 mGapWorker = null; in onDetachedFromWindow()
[all …]