@SdkSuppress(minSdkVersion = Build.VERSION_CODES.LOLLIPOP) @Test public void gapWorkerWithoutLayout() { RecyclerView recyclerView = new RecyclerView(getContext()); try { assertFalse(recyclerView.mIsAttached); recyclerView.onAttachedToWindow(); recyclerView.mGapWorker.prefetch(RecyclerView.FOREVER_NS); } finally { recyclerView.onDetachedFromWindow(); } }
void prefetch(long deadlineNs) { buildTaskList(); flushTasksWithDeadline(deadlineNs); }
GapWorker implements Runnable { void prefetch(long deadlineNs) { buildTaskList(); flushTasksWithDeadline(deadlineNs); } }
GapWorker implements Runnable { void prefetch(long deadlineNs) { buildTaskList(); flushTasksWithDeadline(deadlineNs); }  }
GapWorker implements Runnable { void prefetch(long deadlineNs) { buildTaskList(); flushTasksWithDeadline(deadlineNs); }  void add(RecyclerView recyclerView); void remove(RecyclerView recyclerView); @Override void run(); }
GapWorker implements Runnable { void prefetch(long deadlineNs) { buildTaskList(); flushTasksWithDeadline(deadlineNs); }  void add(RecyclerView recyclerView); void remove(RecyclerView recyclerView); @Override void run();  }