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

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/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.java50 GapWorker gapWorker = GapWorker.sGapWorker.get();
62 // ensure we detach views, so ThreadLocal GapWorker's list is cleared
66 GapWorker gapWorker = GapWorker.sGapWorker.get();
90 // enable GapWorker
149 GapWorker worker = GapWorker.sGapWorker.get();
H A DRecyclerViewCacheTest.java101 GapWorker gapWorker = GapWorker.sGapWorker.get();
680 assertTrue(GapWorker.isPrefetchPositionAttached(mRecyclerView, 2));
694 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/android/support/v7/widget/
H A DGapWorker.java28 final class GapWorker implements Runnable { class in inherits:Runnable
30 static final ThreadLocal<GapWorker> sGapWorker = new ThreadLocal<>();
297 // type, during this GapWorker prefetch pass).
H A DRecyclerView.java469 GapWorker mGapWorker;
470 GapWorker.LayoutPrefetchRegistryImpl mPrefetchRegistry =
471 ALLOW_THREAD_GAP_WORK ? new GapWorker.LayoutPrefetchRegistryImpl() : null;
2609 mGapWorker = GapWorker.sGapWorker.get();
2611 mGapWorker = new GapWorker();
2624 GapWorker.sGapWorker.set(mGapWorker);
5156 * constructed by {@link GapWorker} prefetch from being bound to a lower priority prefetch.
7138 * Written by {@link GapWorker} when prefetches occur to track largest number of view ever

Completed in 304 milliseconds