Home
last modified time | relevance | path

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

/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DEmailAsyncTask.java51 private final LinkedList<EmailAsyncTask<?, ?, ?>> mTasks = field in EmailAsyncTask.Tracker
55 synchronized (mTasks) { in add()
56 mTasks.add(task); in add()
61 synchronized (mTasks) { in remove()
62 mTasks.remove(task); in remove()
71 synchronized (mTasks) { in cancelAllInterrupt()
72 for (EmailAsyncTask<?, ?, ?> task : mTasks) { in cancelAllInterrupt()
75 mTasks.clear(); in cancelAllInterrupt()
85 synchronized (mTasks) { in cancelOthers()
88 for (EmailAsyncTask<?, ?, ?> task : mTasks) { in cancelOthers()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DMultiRootDocumentsLoader.java89 private final Map<String, QueryTask> mTasks = new HashMap<>(); field in MultiRootDocumentsLoader
124 synchronized (mTasks) { in loadInBackground()
136 mTasks.put(rootEntry.getKey(), in loadInBackgroundLocked()
140 mFirstPassLatch = new CountDownLatch(mTasks.size()); in loadInBackgroundLocked()
141 for (QueryTask task : mTasks.values()) { in loadInBackgroundLocked()
158 List<Cursor> cursors = new ArrayList<>(mTasks.size()); in loadInBackgroundLocked()
159 for (QueryTask task : mTasks.values()) { in loadInBackgroundLocked()
317 synchronized (mTasks) { in onReset()
318 for (QueryTask task : mTasks.values()) { in onReset()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRecentTasksList.java55 ArrayList<Task> mTasks = new ArrayList<>(); field in RecentTasksList
87 : () -> callback.accept(copyOf(mTasks)); in getTasks()
100 mTasks = tasks; in getTasks()
124 for (int i = mTasks.size() - 1; i >= 0; i--) { in onTaskRemoved()
125 if (mTasks.get(i).key.id == taskId) { in onTaskRemoved()
126 mTasks.remove(i); in onTaskRemoved()
/packages/apps/Email/tests/src/com/android/email/
DThrottleTest.java185 private final BlockingQueue<Entry> mTasks = new LinkedBlockingQueue<Entry>();
199 mTasks.offer(e);
208 while (!mTasks.isEmpty()) {
209 Entry e = mTasks.peek();
214 mTasks.poll();
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DAbstractProvisioningController.java73 private List<AbstractProvisioningTask> mTasks = new ArrayList<>(); field in AbstractProvisioningController
98 mTasks.add(task); in addTasks()
140 if (mTasks.isEmpty()) { in runTask()
144 AbstractProvisioningTask nextTask = mTasks.get(index); in runTask()
164 if (mCurrentTaskIndex == mTasks.size()) { in onSuccess()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DProcessingTaskController.java34 private HashMap<Integer, ProcessingTask> mTasks = new HashMap<Integer, ProcessingTask>(); field in ProcessingTaskController
42 ProcessingTask task = mTasks.get(msg.what);
57 ProcessingTask task = mTasks.get(msg.what); in handleMessage()
91 mTasks.put(task.getType(), task); in add()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DViewOnDrawExecutor.java36 private final ArrayList<Runnable> mTasks = new ArrayList<>(); field in ViewOnDrawExecutor
68 mTasks.add(command); in execute()
102 mTasks.clear(); in markCompleted()
119 for (final Runnable r : mTasks) { in runAllTasks()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/
DOtaControllerTest.java85 private List<Pair<Integer, AbstractProvisioningTask>> mTasks = new ArrayList<>(); field in OtaControllerTest
248 mTasks.add(Pair.create(userId, task)); in execute()
284 assertEquals(tasks.length, mTasks.size()); in assertTaskList()
292 for (Pair<Integer, AbstractProvisioningTask> task : mTasks) { in assertTaskListContains()
301 for (Pair<Integer, AbstractProvisioningTask> task : mTasks) { in assertInstallExistingPackageTask()