Lines Matching refs:task

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
1004 minPageDiff = Math.abs(task.page - toPage); in getWidgetPageLoadPriority()
1038 AppsCustomizeAsyncTask task = (AppsCustomizeAsyncTask) iter.next(); in prepareLoadWidgetPreviewsTask() local
1039 int taskPage = task.page; in prepareLoadWidgetPreviewsTask()
1042 task.cancel(false); in prepareLoadWidgetPreviewsTask()
1045 task.setThreadPriority(getThreadPriorityForPage(taskPage)); in prepareLoadWidgetPreviewsTask()
1054 public void run(AppsCustomizeAsyncTask task, AsyncTaskPageData data) { in prepareLoadWidgetPreviewsTask()
1059 loadWidgetPreviewsInBackground(task, data); in prepareLoadWidgetPreviewsTask()
1061 if (task.isCancelled()) { in prepareLoadWidgetPreviewsTask()
1069 public void run(AppsCustomizeAsyncTask task, AsyncTaskPageData data) { in prepareLoadWidgetPreviewsTask()
1070 mRunningTasks.remove(task); in prepareLoadWidgetPreviewsTask()
1071 if (task.isCancelled()) return; in prepareLoadWidgetPreviewsTask()
1215 private void loadWidgetPreviewsInBackground(AppsCustomizeAsyncTask task, in loadWidgetPreviewsInBackground() argument
1219 if (task != null) { in loadWidgetPreviewsInBackground()
1221 task.syncThreadPriority(); in loadWidgetPreviewsInBackground()
1229 if (task != null) { in loadWidgetPreviewsInBackground()
1231 if (task.isCancelled()) break; in loadWidgetPreviewsInBackground()
1234 task.syncThreadPriority(); in loadWidgetPreviewsInBackground()
1265 AppsCustomizeAsyncTask task = (AppsCustomizeAsyncTask) iter.next(); in onSyncWidgetPageItems() local
1266 int pageIndex = task.page; in onSyncWidgetPageItems()
1267 task.setThreadPriority(getThreadPriorityForPage(pageIndex)); in onSyncWidgetPageItems()