Lines Matching refs:LoaderTask

74         LoaderTask task = mTaskList.findTask(parent);  in queryChildDocuments()
85 task = new LoaderTask(mMtpManager, mDatabase, mDevice.operationsSupported, parent); in queryChildDocuments()
94 if (task.getState() == LoaderTask.STATE_LOADING) { in queryChildDocuments()
117 synchronized @Nullable LoaderTask getNextTaskOrReleaseBackgroundThread() { in getNextTaskOrReleaseBackgroundThread()
120 for (final LoaderTask task : mTaskList) { in getNextTaskOrReleaseBackgroundThread()
121 if (task.getState() == LoaderTask.STATE_LOADING) { in getNextTaskOrReleaseBackgroundThread()
128 final LoaderTask existingTask = mTaskList.findTask(identifier); in getNextTaskOrReleaseBackgroundThread()
130 Preconditions.checkState(existingTask.getState() != LoaderTask.STATE_LOADING); in getNextTaskOrReleaseBackgroundThread()
133 final LoaderTask newTask = new LoaderTask( in getNextTaskOrReleaseBackgroundThread()
171 final LoaderTask task; in cancelTask()
193 final LoaderTask task = getNextTaskOrReleaseBackgroundThread(); in run()
199 task.getState() != LoaderTask.STATE_CANCELLED && in run()
202 task.getState() != LoaderTask.STATE_LOADING); in run()
213 private static class TaskList extends LinkedList<LoaderTask> {
214 LoaderTask findTask(Identifier parent) { in findTask()
225 if (get(i).getState() == LoaderTask.STATE_COMPLETED) { in clearCompletedTasks()
238 private static class LoaderTask { class in DocumentLoader
255 LoaderTask(MtpManager manager, MtpDatabase database, int[] operationsSupported, in LoaderTask() method in DocumentLoader.LoaderTask