/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | EmailAsyncTask.java | 54 private void add(EmailAsyncTask<?, ?, ?> task) { in add() argument 56 mTasks.add(task); in add() 60 private void remove(EmailAsyncTask<?, ?, ?> task) { in remove() argument 62 mTasks.remove(task); in remove() 72 for (EmailAsyncTask<?, ?, ?> task : mTasks) { in cancelAllInterrupt() 73 task.cancel(true); in cancelAllInterrupt() 88 for (EmailAsyncTask<?, ?, ?> task : mTasks) { in cancelOthers() 89 if ((task != current) && task.getClass().equals(clazz)) { in cancelOthers() 90 task.cancel(true); in cancelOthers() 91 toRemove.add(task); in cancelOthers() [all …]
|
D | Utility.java | 357 public static void cancelTaskInterrupt(AsyncTask<?, ?, ?> task) { in cancelTaskInterrupt() argument 358 cancelTask(task, true); in cancelTaskInterrupt() 368 public static void cancelTask(AsyncTask<?, ?, ?> task, boolean mayInterruptIfRunning) { in cancelTask() argument 369 if (task != null && task.getStatus() != AsyncTask.Status.FINISHED) { in cancelTask() 370 task.cancel(mayInterruptIfRunning); in cancelTask()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | AppsCustomizePagedView.java | 62 void run(AppsCustomizeAsyncTask task, AsyncTaskPageData data); in run() argument 864 AppsCustomizeAsyncTask task = (AppsCustomizeAsyncTask) iter.next(); in cancelAllTasks() local 865 task.cancel(false); in cancelAllTasks() 867 mDirtyPageContent.set(task.page, true); in cancelAllTasks() 870 View v = getPageAt(task.page); in cancelAllTasks() 898 AppsCustomizeAsyncTask task = (AppsCustomizeAsyncTask) iter.next(); in snapToPage() local 899 int pageIndex = task.page; in snapToPage() 902 task.setThreadPriority(getThreadPriorityForPage(pageIndex)); in snapToPage() 904 task.setThreadPriority(Process.THREAD_PRIORITY_LOWEST); in snapToPage() 1003 AppsCustomizeAsyncTask task = (AppsCustomizeAsyncTask) iter.next(); in getWidgetPageLoadPriority() local [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | DrawableDownloader.java | 233 DrawableLoader task = new DrawableLoader(null, mRecycledBitmaps) { in loadBitmapBlocking() local 243 return task.doInBackground(options); in loadBitmapBlocking() 264 DrawableLoader task = new DrawableLoader(imageView, mRecycledBitmaps) { in loadBitmap() local 274 imageView.setTag(R.id.imageDownloadTask, new SoftReference<DrawableLoader>(task)); in loadBitmap() 275 scheduleTask(task, options); in loadBitmap() 296 DrawableLoader task = new DrawableLoader(null, mRecycledBitmaps) { in getBitmap() local 311 callback.mTask = new SoftReference<DrawableLoader>(task); in getBitmap() 312 scheduleTask(task, options); in getBitmap() 315 private static void scheduleTask(DrawableLoader task, BitmapWorkerOptions options) { in scheduleTask() argument 317 task.executeOnExecutor(BITMAP_RESOURCE_DOWNLOADER_THREAD_POOL_EXECUTOR, options); in scheduleTask() [all …]
|
D | BitmapDownloader.java | 141 BitmapWorkerTask task = new BitmapWorkerTask(null) { in loadBitmapBlocking() local 152 return task.doInBackground(options); in loadBitmapBlocking() 173 BitmapWorkerTask task = new BitmapWorkerTask(imageView) { in loadBitmap() local 183 imageView.setTag(R.id.imageDownloadTask, new SoftReference<BitmapWorkerTask>(task)); in loadBitmap() 184 task.execute(options); in loadBitmap() 201 BitmapWorkerTask task = new BitmapWorkerTask(null) { in getBitmap() local 219 callback.mTask = new SoftReference<BitmapWorkerTask>(task); in getBitmap() 220 task.executeOnExecutor(BITMAP_DOWNLOADER_THREAD_POOL_EXECUTOR, options); in getBitmap() 228 BitmapWorkerTask task = null; in cancelDownload() local 234 task = softReference.get(); in cancelDownload() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AppsCustomizePagedView.java | 69 void run(AppsCustomizeAsyncTask task, AsyncTaskPageData data); in run() argument 933 AppsCustomizeAsyncTask task = (AppsCustomizeAsyncTask) iter.next(); in cancelAllTasks() local 934 task.cancel(false); in cancelAllTasks() 936 mDirtyPageContent.set(task.page, true); in cancelAllTasks() 939 View v = getPageAt(task.page); in cancelAllTasks() 963 AppsCustomizeAsyncTask task = (AppsCustomizeAsyncTask) iter.next(); in snapToPage() local 964 int pageIndex = task.page; in snapToPage() 967 task.setThreadPriority(getThreadPriorityForPage(pageIndex)); in snapToPage() 969 task.setThreadPriority(Process.THREAD_PRIORITY_LOWEST); in snapToPage() 1069 AppsCustomizeAsyncTask task = (AppsCustomizeAsyncTask) iter.next(); in getWidgetPageLoadPriority() local [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | ProcessingTaskController.java | 42 ProcessingTask task = mTasks.get(msg.what); 43 if (task != null) { 45 task.onResult((ProcessingTask.Result) msg.obj); 47 task.onUpdate((ProcessingTask.Update) msg.obj); 57 ProcessingTask task = mTasks.get(msg.what); in handleMessage() local 58 if (task != null) { in handleMessage() 59 task.processRequest((ProcessingTask.Request) msg.obj); in handleMessage() 89 public void add(ProcessingTask task) { in add() argument 90 task.added(this); in add() 91 mTasks.put(task.getType(), task); in add() local
|
/packages/apps/Dialer/tests/src/com/android/dialer/util/ |
D | FakeAsyncTaskExecutor.java | 125 AsyncTask<T, ?, ?> task, T... params) { in submit() argument 133 + "Sorry! Not that's not supported.", task); in submit() 134 mNextTask = task; in submit() 136 return task.executeOnExecutor(this, params); in submit() 141 public <T> AsyncTask<T, ?, ?> submit(Object identifier, AsyncTask<T, ?, ?> task, T... params) { in submit() argument 143 return mBlockingExecutor.submit(identifier, task, params); in submit() 175 for (SubmittedTask task : tasks) { in runAllTasks() 176 runTask(task); in runAllTasks() 212 SubmittedTask task = iter.next(); in getSubmittedTasksByIdentifier() local 213 if (identifier.equals(task.getIdentifier())) { in getSubmittedTasksByIdentifier() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | SingleThreadNamedTaskExecutor.java | 56 public void execute(NamedTask task) { in execute() argument 60 mQueue.add(task); in execute() 76 NamedTask task; in loop() local 78 task = mQueue.take(); in loop() 82 currentThread.setName(threadName + " " + task.getName()); in loop() 84 if (DBG) Log.d(TAG, "Running task " + task.getName()); in loop() 85 task.run(); in loop() 86 if (DBG) Log.d(TAG, "Task " + task.getName() + " complete"); in loop() 88 Log.e(TAG, "Task " + task.getName() + " failed", ex); in loop()
|
D | BatchingNamedTaskExecutor.java | 48 public void execute(NamedTask task) { in execute() argument 50 if (DBG) Log.d(TAG, "Queuing " + task); in execute() 51 mQueuedTasks.add(task); in execute() 55 private void dispatch(NamedTask task) { in dispatch() argument 56 if (DBG) Log.d(TAG, "Dispatching " + task); in dispatch() 57 mExecutor.execute(task); in dispatch() 74 for (NamedTask task : batch) { in executeNextBatch() 75 dispatch(task); in executeNextBatch()
|
D | PerNameExecutor.java | 51 public synchronized void execute(NamedTask task) { in execute() argument 55 String name = task.getName(); in execute() 61 executor.execute(task); in execute()
|
/packages/apps/Camera2/src/com/android/camera/processing/ |
D | ProcessingService.java | 195 ProcessingTask task; in asyncProcessAllTasksAndShutdown() 196 while ((task = mProcessingServiceManager.popNextSession()) != null) { in asyncProcessAllTasksAndShutdown() 197 mCurrentTask = task; in asyncProcessAllTasksAndShutdown() 206 processAndNotify(task); in asyncProcessAllTasksAndShutdown() 217 void processAndNotify(ProcessingTask task) { in processAndNotify() argument 218 if (task == null) { in processAndNotify() 222 CaptureSession session = task.getSession(); in processAndNotify() 225 session = mSessionManager.createNewSession(task.getName(), 0, task.getLocation()); in processAndNotify() 235 task.process(this, getServices(), session); in processAndNotify()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DownloadCache.java | 139 DownloadTask task = mTaskMap.get(stringUrl); in download() local 140 if (task == null) { // if not, start the download task now in download() 141 task = new DownloadTask(stringUrl); in download() 142 mTaskMap.put(stringUrl, task); in download() 143 task.mFuture = mApplication.getThreadPool().submit(task, task); in download() 145 task.addProxy(proxy); in download()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | ExpandableBinaryDictionary.java | 162 private void asyncExecuteTaskWithWriteLock(final Runnable task) { in asyncExecuteTaskWithWriteLock() argument 163 asyncExecuteTaskWithLock(mLock.writeLock(), task); in asyncExecuteTaskWithWriteLock() local 166 private void asyncExecuteTaskWithLock(final Lock lock, final Runnable task) { in asyncExecuteTaskWithLock() argument 167 asyncPreCheckAndExecuteTaskWithLock(lock, null /* preCheckTask */, task); in asyncExecuteTaskWithLock() 171 final Callable<Boolean> preCheckTask, final Runnable task) { in asyncPreCheckAndExecuteTaskWithWriteLock() argument 172 asyncPreCheckAndExecuteTaskWithLock(mLock.writeLock(), preCheckTask, task); in asyncPreCheckAndExecuteTaskWithWriteLock() local 178 final Callable<Boolean> preCheckTask, final Runnable task) { in asyncPreCheckAndExecuteTaskWithLock() argument 194 task.run(); in asyncPreCheckAndExecuteTaskWithLock()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/ |
D | MockTask.java | 71 for (MockTask task : tasks) { in assertRanNever() 72 task.assertRanNever(message); in assertRanNever() 77 for (MockTask task : tasks) { in assertRanOnce() 78 task.assertRanOnce(message); in assertRanOnce()
|
D | SingleThreadNamedTaskExecutorTest.java | 50 MockTask task = new MockTask(name, id); in addTask() local 51 mExecutor.execute(task); in addTask() 52 return task; in addTask()
|
D | PerNameExecutorTest.java | 101 MockTask task = new MockTask(name, id); in addTask() local 102 mExecutor.execute(task); in addTask() 103 return task; in addTask()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PreparePageFadeoutTexture.java | 68 PreparePageFadeoutTexture task = new PreparePageFadeoutTexture(rootPane); in prepareFadeOutTexture() local 69 if (task.isCancelled()) return; in prepareFadeOutTexture() 74 root.addOnGLIdleListener(task); in prepareFadeOutTexture() 75 texture = task.get(); in prepareFadeOutTexture()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
D | DeviceOwnerProvisioningService.java | 37 import com.android.managedprovisioning.task.AddWifiNetworkTask; 38 import com.android.managedprovisioning.task.DeleteNonRequiredAppsTask; 39 import com.android.managedprovisioning.task.DownloadPackageTask; 40 import com.android.managedprovisioning.task.InstallPackageTask; 41 import com.android.managedprovisioning.task.SetDevicePolicyTask;
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PhotoDataAdapter.java | 667 Future<?> task = null; in updateImageRequests() local 672 task = startTaskIfNeeded(currentIndex + offset, bit); in updateImageRequests() 673 if (task != null) break; in updateImageRequests() 678 if (entry.screenNailTask != null && entry.screenNailTask != task) { in updateImageRequests() 683 if (entry.fullImageTask != null && entry.fullImageTask != task) { in updateImageRequests() 913 FutureTask<T> task = new FutureTask<T>(callable); in executeAndWait() local 915 mMainHandler.obtainMessage(MSG_RUN_OBJECT, task)); in executeAndWait() 917 return task.get(); in executeAndWait()
|
D | SinglePhotoDataAdapter.java | 166 Future<?> task = mTask; in pause() local 167 task.cancel(); in pause() 168 task.waitDone(); in pause() 169 if (task.get() == null) { in pause()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | SynchronousContactsProvider2.java | 125 protected void scheduleBackgroundTask(int task) { in scheduleBackgroundTask() argument 126 performBackgroundTask(task, null); in scheduleBackgroundTask() 130 protected void scheduleBackgroundTask(int task, Object arg) { in scheduleBackgroundTask() argument 131 performBackgroundTask(task, arg); in scheduleBackgroundTask()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | AsyncTaskUtil.java | 49 public static <Param> void executeInParallel(AsyncTask<Param, ?, ?> task, Param... params) { in executeInParallel() argument 51 task.execute(params); in executeInParallel() 54 sMethodExecuteOnExecutor.invoke(task, sExecutor, params); in executeInParallel()
|
/packages/apps/Email/tests/src/com/android/email/ |
D | ThrottleTest.java | 186 public void schedule(TimerTask task, long delay) { 188 task.run(); 192 e.mTask = task;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | CallLogProvider.java | 546 private void scheduleBackgroundTask(int task) { in scheduleBackgroundTask() argument 547 mBackgroundHandler.sendEmptyMessage(task); in scheduleBackgroundTask() 550 private void performBackgroundTask(int task) { in performBackgroundTask() argument 551 if (task == BACKGROUND_TASK_INITIALIZE) { in performBackgroundTask()
|