Home
last modified time | relevance | path

Searched refs:AsyncTask (Results 1 – 25 of 168) sorted by relevance

1234567

/packages/apps/Dialer/tests/src/com/android/dialer/util/
DFakeAsyncTaskExecutor.java20 import android.os.AsyncTask;
72 AsyncTask<?, ?, ?> getAsyncTask(); in getAsyncTask()
78 private final AsyncTask<?, ?, ?> mAsyncTask;
81 AsyncTask<?, ?, ?> asyncTask) { in SubmittedTaskImpl() argument
98 public AsyncTask<?, ?, ?> getAsyncTask() { in getAsyncTask()
111 @GuardedBy("mNextLock") private AsyncTask<?, ?, ?> mNextTask;
124 public <T> AsyncTask<T, ?, ?> submit(Object identifier, in submit()
125 AsyncTask<T, ?, ?> task, T... params) { in submit()
141 public <T> AsyncTask<T, ?, ?> submit(Object identifier, AsyncTask<T, ?, ?> task, T... params) { in submit()
194 if (submittedTask.getAsyncTask().getStatus() == AsyncTask.Status.FINISHED) { in runTask()
/packages/apps/Camera2/src/com/android/camera/data/
DCameraDataAdapter.java22 import android.os.AsyncTask;
81 public AsyncTask updateMetadata(int dataId) { in updateMetadata()
83 result.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, dataId); in updateMetadata()
293 public List<AsyncTask> preloadItems(List<Integer> items) { in preloadItems()
294 List<AsyncTask> result = new ArrayList<AsyncTask>(); in preloadItems()
304 public void cancelItems(List<AsyncTask> loadTokens) { in cancelItems()
305 for (AsyncTask asyncTask : loadTokens) { in cancelItems()
326 private class LoadNewPhotosTask extends AsyncTask<ContentResolver, Void, List<LocalData>> {
387 private class QueryTask extends AsyncTask<Context, Void, QueryTaskResult> {
463 private class DeletionTask extends AsyncTask<LocalData, Void, Void> {
[all …]
DAbstractLocalDataAdapterWrapper.java21 import android.os.AsyncTask;
110 public AsyncTask updateMetadata(int dataId) { in updateMetadata()
120 public List<AsyncTask> preloadItems(List<Integer> items) { in preloadItems()
125 public void cancelItems(List<AsyncTask> loadTokens) { in cancelItems()
DLocalDataAdapter.java20 import android.os.AsyncTask;
33 Preloader.ItemLoader<Integer, AsyncTask>, Preloader.ItemSource<Integer> {
137 public AsyncTask updateMetadata(int dataId); in updateMetadata()
/packages/apps/Contacts/src/com/android/contacts/list/
DProviderStatusWatcher.java23 import android.os.AsyncTask;
223 mLoaderTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in startLoading()
226 private class LoaderTask extends AsyncTask<Void, Void, Boolean> {
292 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in retryUpgrade()
302 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in retryUpgrade()
/packages/apps/Dialer/src/com/android/dialer/util/
DAsyncTaskExecutors.java19 import android.os.AsyncTask;
52 return new SimpleAsyncTaskExecutor(AsyncTask.SERIAL_EXECUTOR); in createAsyncTaskExecutor()
65 return new SimpleAsyncTaskExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in createThreadPoolExecutor()
94 public <T> AsyncTask<T, ?, ?> submit(Object identifer, AsyncTask<T, ?, ?> task, in submit()
DAsyncTaskExecutor.java19 import android.os.AsyncTask;
47 <T> AsyncTask<T, ?, ?> submit(Object identifier, AsyncTask<T, ?, ?> task, T... params); in submit()
/packages/experimental/PrintApp/src/foo/bar/print/
DPrintActivity.java27 import android.os.AsyncTask;
92 new AsyncTask<Void, Void, Integer>() { in printView()
151 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void[]) null); in printView()
160 new AsyncTask<Void, Void, Integer>() { in printView()
235 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void[]) null); in printView()
/packages/apps/Dialer/src/com/android/dialer/voicemail/
DVoicemailPlaybackPresenter.java24 import android.os.AsyncTask;
171 private AsyncTask<Void, ?, ?> mPrepareTask;
204 mAsyncTaskExecutor.submit(Tasks.CHECK_FOR_CONTENT, new AsyncTask<Void, Void, Boolean>() { in checkThatWeHaveContent()
275 new AsyncTask<Void, Void, Boolean>() { in onChange()
307 new AsyncTask<Void, Void, Exception>() { in postSuccessfullyFetchedContent()
439 private class AsyncPrepareTask extends AsyncTask<Void, Void, Exception> {
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java25 import android.os.AsyncTask;
357 public static void cancelTaskInterrupt(AsyncTask<?, ?, ?> task) { in cancelTaskInterrupt() argument
368 public static void cancelTask(AsyncTask<?, ?, ?> task, boolean mayInterruptIfRunning) { in cancelTask() argument
369 if (task != null && task.getStatus() != AsyncTask.Status.FINISHED) { in cancelTask()
451 public static AsyncTask<Void, Void, Void> runAsync(final Runnable r) { in runAsync()
452 return new AsyncTask<Void, Void, Void>() { in runAsync()
457 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in runAsync()
DEmailAsyncTask.java19 import android.os.AsyncTask;
42 private static final Executor SERIAL_EXECUTOR = AsyncTask.SERIAL_EXECUTOR;
43 private static final Executor PARALLEL_EXECUTOR = AsyncTask.THREAD_POOL_EXECUTOR;
112 extends AsyncTask<Params2, Progress2, Result2> {
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DAsyncTaskUtil.java19 import android.os.AsyncTask;
35 sExecutor = (Executor) AsyncTask.class.getField("THREAD_POOL_EXECUTOR")
37 sMethodExecuteOnExecutor = AsyncTask.class.getMethod(
49 public static <Param> void executeInParallel(AsyncTask<Param, ?, ?> task, Param... params) { in executeInParallel()
/packages/apps/ContactsCommon/src/com/android/contacts/common/dialog/
DClearFrequentsDialog.java26 import android.os.AsyncTask;
51 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in onCreateDialog()
64 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in onCreateDialog()
/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java29 import android.os.AsyncTask;
269 new AsyncTask<Void, Void, Void>() { in getPreview() method
274 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void) null); in getPreview()
402 new AsyncTask<Void, Void, Void>() { in removePackageFromDb() method
424 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void) null); in removePackageFromDb()
428 new AsyncTask<Void, Void, Void>() { in removeItemFromDb() method
442 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void) null); in removeItemFromDb()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DFlipperDreamSettings.java21 import android.os.AsyncTask;
22 import android.os.AsyncTask.Status;
44 private AsyncTask<Void, Void, Void> mLoadingTask;
66 mLoadingTask = new AsyncTask<Void, Void, Void>() { in init()
DPhotoTable.java28 import android.os.AsyncTask;
205 mLoadOnDeckTasks[slot].getStatus() != AsyncTask.Status.FINISHED) { in clearSelection()
261 mLoadOnDeckTasks[slot].getStatus() != AsyncTask.Status.FINISHED) { in promoteSelection()
490 private class LoadNaturalSiblingTask extends AsyncTask<View, Void, View> {
547 private class PhotoLaunchTask extends AsyncTask<Void, Void, View> {
604 mPhotoLaunchTask.getStatus() == AsyncTask.Status.FINISHED) { in launch()
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
DTinyPlanetFragment.java28 import android.os.AsyncTask;
150 (new AsyncTask<Void, Void, Void>() {
179 }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
292 (new AsyncTask<Void, Void, TinyPlanetImage>() { in onCreateTinyPlanet() method
325 }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in onCreateTinyPlanet()
/packages/apps/Calendar/src/com/android/calendar/event/
DEventLocationAdapter.java26 import android.os.AsyncTask;
229 AsyncTask<Void, Void, Bitmap> photoUpdaterTask = in asyncLoadPhotoAndUpdateView()
230 new AsyncTask<Void, Void, Bitmap>() { in asyncLoadPhotoAndUpdateView()
278 AsyncTask<Void, Void, List<Result>> locationsQueryTask = in performFiltering()
279 new AsyncTask<Void, Void, List<Result>>() { in performFiltering()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfileActivity.java37 import android.os.AsyncTask;
196 private final AsyncTask<Void, Void, UserInfo>
197 mAddUserAsyncTask = new AsyncTask<Void, Void, UserInfo>() {
274 || mAppLoadingTask.getStatus() == AsyncTask.Status.FINISHED)) { in onResume()
479 if (AsyncTask.Status.PENDING == mAddUserAsyncTask.getStatus()) { in addRestrictedUser()
/packages/experimental/PrintService2/src/foo/bar/printservice2/
DMyPrintService.java5 import android.os.AsyncTask;
72 AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in onPrintJobQueued()
133 task.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR, (Void[]) null); in onPrintJobQueued()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertActivity.java28 import android.os.AsyncTask;
139 new AsyncTask<List<AlarmId>, Void, Void>() { in initiateGlobalDismiss() method
257 AsyncTask task = new AsyncTask<Context, Void, Void>() { in onStop()
/packages/apps/Mms/src/com/android/mms/util/
DPhoneNumberFormatter.java20 import android.os.AsyncTask;
33 AsyncTask<Void, Void, PhoneNumberFormattingTextWatcher> {
71 .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void[]) null); in setPhoneNumberFormattingTextWatcher()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DPhoneNumberFormatter.java20 import android.os.AsyncTask;
33 AsyncTask<Void, Void, PhoneNumberFormattingTextWatcher> {
71 .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void[]) null); in setPhoneNumberFormattingTextWatcher()
/packages/apps/PhoneCommon/src/com/android/phone/common/
DCallLogAsync.java19 import android.os.AsyncTask;
72 public AsyncTask getLastOutgoingCall(GetLastOutgoingCallArgs args) { in getLastOutgoingCall()
80 private class GetLastOutgoingCallTask extends AsyncTask<GetLastOutgoingCallArgs, Void, String> {
/packages/apps/Email/src/com/android/email/activity/setup/
DHeadlessAccountSettingsLoader.java9 import android.os.AsyncTask;
41 .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, accountID); in onCreate()
49 private class LoadAccountIncomingSettingsAsyncTask extends AsyncTask<Long, Void, Account> {

1234567