Home
last modified time | relevance | path

Searched refs:QueuedRunnable (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/
DFakeExecutor.java28 private PriorityQueue<QueuedRunnable> mQueuedRunnables = new PriorityQueue<>();
156 QueuedRunnable container = new QueuedRunnable(r, uptimeMillis); in executeAtTime()
194 private static class QueuedRunnable implements Comparable<QueuedRunnable> { class in FakeExecutor
201 private QueuedRunnable(Runnable r, long when) { in QueuedRunnable() method in FakeExecutor.QueuedRunnable
213 public int compareTo(QueuedRunnable other) { in compareTo()
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/location/
DTestThreadingDomain.java38 static class QueuedRunnable { class in TestThreadingDomain
40 static final Comparator<? super QueuedRunnable> COMPARATOR =
47 QueuedRunnable(@NonNull Runnable runnable, @Nullable Object token, in QueuedRunnable() method in TestThreadingDomain.QueuedRunnable
65 private ArrayList<QueuedRunnable> mQueue = new ArrayList<>();
94 mQueue.add(new QueuedRunnable(r, token, mCurrentTimeMillis + delayMillis)); in postDelayed()
95 mQueue.sort(QueuedRunnable.COMPARATOR); in postDelayed()
140 QueuedRunnable queued = mQueue.remove(0); in executeNext()