Home
last modified time | relevance | path

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

/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java127 private final Map<String, JobRecord> mJobs = new LinkedHashMap<>(); field in FileOperationService
233 synchronized (mJobs) { in handleOperation()
238 if (mJobs.containsKey(jobId)) { in handleOperation()
255 mJobs.put(jobId, new JobRecord(job, future)); in handleOperation()
279 synchronized (mJobs) { in handleCancel()
284 JobRecord record = mJobs.get(jobId); in handleCancel()
326 JobRecord record = mJobs.remove(job.id); in deleteJob()
369 synchronized (mJobs) { in onStart()
400 synchronized (mJobs) { in onFinished()
417 if (mJobs.isEmpty()) { in onFinished()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/
DJobQueue.java30 private final List<LocalPrintJob> mJobs = new CopyOnWriteArrayList<>(); field in JobQueue
35 mJobs.add(job); in print()
41 for (LocalPrintJob job : mJobs) { in cancel()
62 for (LocalPrintJob job : mJobs) { in cancel()
64 mJobs.remove(job); in cancel()
77 if (mJobs.isEmpty() || mCurrent != null) { in startNextJob()
81 mCurrent = mJobs.remove(0); in startNextJob()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DJobLimiter.java37 private final LinkedList<JobWrapper<?>> mJobs = new LinkedList<JobWrapper<?>>(); field in JobLimiter
138 mJobs.addLast(future); in submit()
145 while (mLimit > 0 && !mJobs.isEmpty()) { in submitTasksIfAllowed()
146 JobWrapper wrapper = mJobs.removeFirst(); in submitTasksIfAllowed()