Searched refs:deadlineNs (Results 1 - 5 of 5) sorted by relevance
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | GapWorker.java | 264 int position, long deadlineNs) { 272 position, false, deadlineNs); 291 long deadlineNs) { 315 prefetchPositionWithDeadline(innerView, innerPosition, deadlineNs); 323 private void flushTaskWithDeadline(Task task, long deadlineNs) { argument 324 long taskDeadlineNs = task.immediate ? RecyclerView.FOREVER_NS : deadlineNs; 328 prefetchInnerRecyclerViewWithDeadline(holder.mNestedRecyclerView.get(), deadlineNs); 332 private void flushTasksWithDeadline(long deadlineNs) { argument 338 flushTaskWithDeadline(task, deadlineNs); 343 void prefetch(long deadlineNs) { argument 263 prefetchPositionWithDeadline(RecyclerView view, int position, long deadlineNs) argument 290 prefetchInnerRecyclerViewWithDeadline(@ullable RecyclerView innerView, long deadlineNs) argument [all...] |
H A D | RecyclerView.java | 5042 boolean willCreateInTime(int viewType, long approxCurrentNs, long deadlineNs) { argument 5044 return expectedDurationNs == 0 || (approxCurrentNs + expectedDurationNs < deadlineNs); 5047 boolean willBindInTime(int viewType, long approxCurrentNs, long deadlineNs) { argument 5049 return expectedDurationNs == 0 || (approxCurrentNs + expectedDurationNs < deadlineNs); 5261 * deadlineNs != FOREVER_NS, this method may fail to bind, and return false. 5266 * @param deadlineNs Time, relative to getNanoTime(), by which bind/create work should 5272 int position, long deadlineNs) { 5276 if (deadlineNs != FOREVER_NS 5277 && !mRecyclerPool.willBindInTime(viewType, startBindNs, deadlineNs)) { 5393 * If a deadlineNs othe 5271 tryBindViewHolderByDeadline(ViewHolder holder, int offsetPosition, int position, long deadlineNs) argument 5408 tryGetViewHolderForPositionByDeadline(int position, boolean dryRun, long deadlineNs) argument [all...] |
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | GapWorker.java | 276 int position, long deadlineNs) { 287 position, false, deadlineNs); 309 long deadlineNs) { 333 prefetchPositionWithDeadline(innerView, innerPosition, deadlineNs); 341 private void flushTaskWithDeadline(Task task, long deadlineNs) { argument 342 long taskDeadlineNs = task.immediate ? RecyclerView.FOREVER_NS : deadlineNs; 349 prefetchInnerRecyclerViewWithDeadline(holder.mNestedRecyclerView.get(), deadlineNs); 353 private void flushTasksWithDeadline(long deadlineNs) { argument 359 flushTaskWithDeadline(task, deadlineNs); 364 void prefetch(long deadlineNs) { argument 275 prefetchPositionWithDeadline(RecyclerView view, int position, long deadlineNs) argument 308 prefetchInnerRecyclerViewWithDeadline(@ullable RecyclerView innerView, long deadlineNs) argument [all...] |
H A D | RecyclerView.java | 5466 boolean willCreateInTime(int viewType, long approxCurrentNs, long deadlineNs) { argument 5468 return expectedDurationNs == 0 || (approxCurrentNs + expectedDurationNs < deadlineNs); 5471 boolean willBindInTime(int viewType, long approxCurrentNs, long deadlineNs) { argument 5473 return expectedDurationNs == 0 || (approxCurrentNs + expectedDurationNs < deadlineNs); 5686 * deadlineNs != FOREVER_NS, this method may fail to bind, and return false. 5691 * @param deadlineNs Time, relative to getNanoTime(), by which bind/create work should 5697 int position, long deadlineNs) { 5701 if (deadlineNs != FOREVER_NS 5702 && !mRecyclerPool.willBindInTime(viewType, startBindNs, deadlineNs)) { 5819 * If a deadlineNs othe 5696 tryBindViewHolderByDeadline(@onNull ViewHolder holder, int offsetPosition, int position, long deadlineNs) argument 5834 tryGetViewHolderForPositionByDeadline(int position, boolean dryRun, long deadlineNs) argument [all...] |
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | RecyclerViewCacheTest.java | 446 final long deadlineNs = mRecyclerView.getNanoTime() + TimeUnit.MILLISECONDS.toNanos(19); 450 mRecyclerView.mGapWorker.prefetch(deadlineNs); 511 final long deadlineNs = mRecyclerView.getNanoTime() + TimeUnit.MILLISECONDS.toNanos(9); 515 mRecyclerView.mGapWorker.prefetch(deadlineNs); 1243 final long deadlineNs = mRecyclerView.getNanoTime() + TimeUnit.MILLISECONDS.toNanos(9); 1245 mRecyclerView.mGapWorker.prefetch(deadlineNs);
|
Completed in 37 milliseconds