Searched refs:GapWorker (Results 1 - 7 of 7) sorted by relevance

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DGapWorkerTest.java47 GapWorker.LayoutPrefetchRegistryImpl registry = new GapWorker.LayoutPrefetchRegistryImpl();
59 GapWorker.LayoutPrefetchRegistryImpl registry = new GapWorker.LayoutPrefetchRegistryImpl();
65 GapWorker.LayoutPrefetchRegistryImpl registry = new GapWorker.LayoutPrefetchRegistryImpl();
71 GapWorker.LayoutPrefetchRegistryImpl registry = new GapWorker.LayoutPrefetchRegistryImpl();
84 ArrayList<GapWorker.Task> list = new ArrayList<>();
85 list.add(new GapWorker
[all...]
H A DMultiRecyclerViewPrefetchTest.java52 GapWorker gapWorker = GapWorker.sGapWorker.get();
64 // ensure we detach views, so ThreadLocal GapWorker's list is cleared
68 GapWorker gapWorker = GapWorker.sGapWorker.get();
92 // enable GapWorker
153 GapWorker worker = GapWorker.sGapWorker.get();
H A DRecyclerViewCacheTest.java106 GapWorker gapWorker = GapWorker.sGapWorker.get();
696 assertTrue(GapWorker.isPrefetchPositionAttached(mRecyclerView, 2));
710 assertTrue(GapWorker.isPrefetchPositionAttached(mRecyclerView, 2));
/frameworks/base/core/java/com/android/internal/widget/
H A DGapWorker.java29 final class GapWorker implements Runnable { class in inherits:Runnable
31 static final ThreadLocal<GapWorker> sGapWorker = new ThreadLocal<>();
283 // type, during this GapWorker prefetch pass).
H A DRecyclerView.java436 GapWorker mGapWorker;
437 GapWorker.LayoutPrefetchRegistryImpl mPrefetchRegistry =
438 ALLOW_THREAD_GAP_WORK ? new GapWorker.LayoutPrefetchRegistryImpl() : null;
2445 mGapWorker = GapWorker.sGapWorker.get();
2447 mGapWorker = new GapWorker();
2460 GapWorker.sGapWorker.set(mGapWorker);
4953 * constructed by {@link GapWorker} prefetch from being bound to a lower priority prefetch.
6830 * Written by {@link GapWorker} when prefetches occur to track largest number of view ever
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DGapWorker.java29 final class GapWorker implements Runnable { class in inherits:Runnable
31 static final ThreadLocal<GapWorker> sGapWorker = new ThreadLocal<>();
298 // type, during this GapWorker prefetch pass).
H A DRecyclerView.java498 GapWorker mGapWorker;
499 GapWorker.LayoutPrefetchRegistryImpl mPrefetchRegistry =
500 ALLOW_THREAD_GAP_WORK ? new GapWorker.LayoutPrefetchRegistryImpl() : null;
2754 mGapWorker = GapWorker.sGapWorker.get();
2756 mGapWorker = new GapWorker();
2769 GapWorker.sGapWorker.set(mGapWorker);
5349 * constructed by {@link GapWorker} prefetch from being bound to a lower priority prefetch.
7379 * Written by {@link GapWorker} when prefetches occur to track largest number of view ever

Completed in 241 milliseconds