Lines Matching refs:task
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
1070 minPageDiff = Math.abs(task.page - toPage); in getWidgetPageLoadPriority()
1104 AppsCustomizeAsyncTask task = (AppsCustomizeAsyncTask) iter.next(); in prepareLoadWidgetPreviewsTask() local
1105 int taskPage = task.page; in prepareLoadWidgetPreviewsTask()
1108 task.cancel(false); in prepareLoadWidgetPreviewsTask()
1111 task.setThreadPriority(getThreadPriorityForPage(taskPage)); in prepareLoadWidgetPreviewsTask()
1120 public void run(AppsCustomizeAsyncTask task, AsyncTaskPageData data) { in prepareLoadWidgetPreviewsTask()
1125 loadWidgetPreviewsInBackground(task, data); in prepareLoadWidgetPreviewsTask()
1127 if (task.isCancelled()) { in prepareLoadWidgetPreviewsTask()
1135 public void run(AppsCustomizeAsyncTask task, AsyncTaskPageData data) { in prepareLoadWidgetPreviewsTask()
1136 mRunningTasks.remove(task); in prepareLoadWidgetPreviewsTask()
1137 if (task.isCancelled()) return; in prepareLoadWidgetPreviewsTask()
1271 private void loadWidgetPreviewsInBackground(AppsCustomizeAsyncTask task, in loadWidgetPreviewsInBackground() argument
1275 if (task != null) { in loadWidgetPreviewsInBackground()
1277 task.syncThreadPriority(); in loadWidgetPreviewsInBackground()
1285 if (task != null) { in loadWidgetPreviewsInBackground()
1287 if (task.isCancelled()) break; in loadWidgetPreviewsInBackground()
1290 task.syncThreadPriority(); in loadWidgetPreviewsInBackground()
1321 AppsCustomizeAsyncTask task = (AppsCustomizeAsyncTask) iter.next(); in onSyncWidgetPageItems() local
1322 int pageIndex = task.page; in onSyncWidgetPageItems()
1323 task.setThreadPriority(getThreadPriorityForPage(pageIndex)); in onSyncWidgetPageItems()