Home
last modified time | relevance | path

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

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DBatchingNamedTaskExecutor.java37 private final ArrayList<NamedTask> mQueuedTasks = new ArrayList<NamedTask>(); field in BatchingNamedTaskExecutor
49 synchronized (mQueuedTasks) { in execute()
51 mQueuedTasks.add(task); in execute()
66 synchronized (mQueuedTasks) { in executeNextBatch()
67 int count = Math.min(mQueuedTasks.size(), batchSize); in executeNextBatch()
68 List<NamedTask> nextTasks = mQueuedTasks.subList(0, count); in executeNextBatch()
84 synchronized (mQueuedTasks) { in cancelPendingTasks()
85 mQueuedTasks.clear(); in cancelPendingTasks()