Searched refs:prefetchLatch (Results 1 - 4 of 4) sorted by relevance

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DRecyclerViewPrefetchTest.java39 CountDownLatch prefetchLatch = new CountDownLatch(1); field in class:RecyclerViewPrefetchTest.PrefetchLayoutManager
62 prefetchLatch.countDown();
67 assertThat(prefetchLatch.await(time, TimeUnit.SECONDS),
94 assertThat(layout.prefetchLatch.getCount(), is(1L)); // shouldn't have fired yet
H A DBaseGridLayoutManagerTest.java155 CountDownLatch prefetchLatch; field in class:BaseGridLayoutManagerTest.WrappedGridLayoutManager
275 prefetchLatch = new CountDownLatch(count);
279 prefetchLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
282 prefetchLatch.getCount(), CoreMatchers.is(0L));
323 if (prefetchLatch != null) prefetchLatch.countDown();
H A DBaseLinearLayoutManagerTest.java358 CountDownLatch prefetchLatch; field in class:BaseLinearLayoutManagerTest.WrappedLinearLayoutManager
415 prefetchLatch = new CountDownLatch(count);
419 prefetchLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
422 prefetchLatch.getCount(), CoreMatchers.is(0L));
640 if (prefetchLatch != null) prefetchLatch.countDown();
H A DBaseStaggeredGridLayoutManagerTest.java477 CountDownLatch prefetchLatch; field in class:BaseStaggeredGridLayoutManagerTest.WrappedLayoutManager
508 prefetchLatch = new CountDownLatch(count);
512 prefetchLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
515 prefetchLatch.getCount(), CoreMatchers.is(0L));
814 if (prefetchLatch != null) prefetchLatch.countDown();

Completed in 142 milliseconds